mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
* Fix bug regarding searching for prerelease builds, prerelease was assumed to be always at the top but this isn't true. * Make the prerelease toggle button check for updates instantly. * Automatically launch the game after the update has finished.
67 lines
1.4 KiB
C++
67 lines
1.4 KiB
C++
#pragma once
|
|
#include "advanced_surface.h"
|
|
|
|
class CBaseSurface : public Forms::Form
|
|
{
|
|
public:
|
|
CBaseSurface();
|
|
virtual ~CBaseSurface()
|
|
{};
|
|
|
|
void ToggleUpdateView(bool bValue);
|
|
bool CheckForUpdate();
|
|
|
|
protected:
|
|
static void OnLoad(Forms::Control* pSender);
|
|
static void OnClose(const std::unique_ptr<FormClosingEventArgs>& pEventArgs, Forms::Control* pSender);
|
|
|
|
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 OnExperimentalBuildsClick(Forms::Control* Sender);
|
|
|
|
static void OnSupportClick(Forms::Control* Sender);
|
|
static void OnJoinClick(Forms::Control* Sender);
|
|
static void OnYouTubeClick(Forms::Control* Sender);
|
|
|
|
private:
|
|
void Frame();
|
|
|
|
void LoadSettings();
|
|
void SaveSettings();
|
|
|
|
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;
|
|
};
|