Windows default to non-portable + Reworked MLC handling and related UI (#1252)

This commit is contained in:
Exzap 2024-07-23 03:13:36 +02:00 committed by GitHub
parent 7522c8470e
commit 64232ffdbd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 515 additions and 651 deletions

View file

@ -13,9 +13,6 @@ class GettingStartedDialog : public wxDialog
public:
GettingStartedDialog(wxWindow* parent = nullptr);
[[nodiscard]] bool HasGamePathChanged() const { return m_game_path_changed; }
[[nodiscard]] bool HasMLCChanged() const { return m_mlc_changed; }
private:
wxPanel* CreatePage1();
wxPanel* CreatePage2();
@ -23,22 +20,29 @@ private:
void UpdateWindowSize();
void OnClose(wxCloseEvent& event);
void OnDownloadGPs(wxCommandEvent& event);
void OnConfigureGPs(wxCommandEvent& event);
void OnInputSettings(wxCommandEvent& event);
void OnMLCPathChar(wxKeyEvent& event);
wxSimplebook* m_notebook;
wxCheckBox* m_fullscreen;
wxCheckBox* m_separate;
wxCheckBox* m_update;
wxCheckBox* m_dont_show;
wxStaticBoxSizer* m_mlc_box_sizer;
wxStaticText* m_prev_mlc_warning;
wxDirPickerCtrl* m_mlc_folder;
wxDirPickerCtrl* m_game_path;
struct
{
// header
wxStaticText* staticText11{};
wxStaticText* portableModeInfoText{};
bool m_game_path_changed = false;
bool m_mlc_changed = false;
// game path box
wxStaticBoxSizer* gamePathBoxSizer{};
wxStaticText* gamePathText{};
wxStaticText* gamePathText2{};
wxDirPickerCtrl* gamePathPicker{};
}m_page1;
struct
{
wxCheckBox* fullscreenCheckbox;
wxCheckBox* separateCheckbox;
wxCheckBox* updateCheckbox;
}m_page2;
};