2023-07-26 15:56:08 +02:00
|
|
|
#pragma once
|
|
|
|
#include "advanced_surface.h"
|
|
|
|
|
|
|
|
class CBaseSurface : public Forms::Form
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
CBaseSurface();
|
|
|
|
virtual ~CBaseSurface()
|
2023-07-29 17:06:27 +02:00
|
|
|
{};
|
2023-07-26 15:56:08 +02:00
|
|
|
|
2023-07-31 02:51:27 +02:00
|
|
|
void ToggleUpdateView(bool bValue);
|
|
|
|
|
2023-07-26 15:56:08 +02:00
|
|
|
protected:
|
2023-07-28 14:50:46 +02:00
|
|
|
static void OnInstallClick(Forms::Control* Sender);
|
2023-07-31 02:51:27 +02:00
|
|
|
static void OnUpdateClick(Forms::Control* Sender);
|
|
|
|
static void OnLaunchClick(Forms::Control* Sender);
|
2023-07-28 14:50:46 +02:00
|
|
|
|
2023-07-26 15:56:08 +02:00
|
|
|
static void OnAdvancedClick(Forms::Control* Sender);
|
|
|
|
|
|
|
|
|
|
|
|
static void OnSupportClick(Forms::Control* Sender);
|
|
|
|
static void OnJoinClick(Forms::Control* Sender);
|
|
|
|
|
|
|
|
private:
|
2023-07-31 02:51:27 +02:00
|
|
|
void Frame();
|
2023-07-26 15:56:08 +02:00
|
|
|
|
|
|
|
enum class eMode
|
|
|
|
{
|
|
|
|
NONE = -1,
|
|
|
|
HOST,
|
|
|
|
SERVER,
|
|
|
|
CLIENT,
|
|
|
|
};
|
|
|
|
enum class eVisibility
|
|
|
|
{
|
|
|
|
PUBLIC,
|
|
|
|
HIDDEN,
|
|
|
|
};
|
|
|
|
|
|
|
|
// Game.
|
|
|
|
UIX::UIXGroupBox* m_BaseGroup;
|
|
|
|
|
|
|
|
UIX::UIXButton* m_ManageButton;
|
|
|
|
UIX::UIXButton* m_RepairButton;
|
|
|
|
|
|
|
|
UIX::UIXButton* m_DonateButton;
|
|
|
|
UIX::UIXButton* m_JoinButton;
|
|
|
|
UIX::UIXButton* m_AdvancedButton;
|
2023-07-28 14:50:46 +02:00
|
|
|
|
2023-07-31 02:51:27 +02:00
|
|
|
UIX::UIXCheckBox* m_ExperimentalBuildsCheckbox;
|
|
|
|
|
2023-07-28 14:50:46 +02:00
|
|
|
// When this is false, the installer will
|
|
|
|
// download the HD textures as well (STARPAK's).
|
|
|
|
bool m_bPartialInstall;
|
2023-07-31 02:51:27 +02:00
|
|
|
|
|
|
|
bool m_bUpdateViewToggled;
|
|
|
|
bool m_bIsInstalled;
|
2023-07-26 15:56:08 +02:00
|
|
|
};
|