r5sdk/r5dev/sdklauncher/base_surface.h
Kawe Mazidjatari 9642ea18f3 New features
- check if game is running, and if so, warn and discard update/install request.
- check if launcher instance is running, and if so, not create another one but instead move focus to existing one
- periodic update checks and update installations
2023-07-31 02:51:27 +02:00

59 lines
1.1 KiB
C++

#pragma once
#include "advanced_surface.h"
class CBaseSurface : public Forms::Form
{
public:
CBaseSurface();
virtual ~CBaseSurface()
{};
void ToggleUpdateView(bool bValue);
protected:
static void OnInstallClick(Forms::Control* Sender);
static void OnUpdateClick(Forms::Control* Sender);
static void OnLaunchClick(Forms::Control* Sender);
static void OnAdvancedClick(Forms::Control* Sender);
static void OnSupportClick(Forms::Control* Sender);
static void OnJoinClick(Forms::Control* Sender);
private:
void Frame();
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;
UIX::UIXCheckBox* m_ExperimentalBuildsCheckbox;
// When this is false, the installer will
// download the HD textures as well (STARPAK's).
bool m_bPartialInstall;
bool m_bUpdateViewToggled;
bool m_bIsInstalled;
};