mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-07-09 17:28:09 +00:00
* LoadCreateJoin Menu: Adjusted size (Is 100% accurate but works fine), fix X Padding (Y Padding still need fixes), * Settings Menu: Added Message Box to "Reset Defaults Settings" * Pause Menu: Added Message Box for Save Game and Exit.
61 lines
1.5 KiB
C++
61 lines
1.5 KiB
C++
#pragma once
|
|
|
|
#pragma push_macro("byte")
|
|
#pragma push_macro("GetNextSibling")
|
|
#pragma push_macro("GetFirstChild")
|
|
#undef byte
|
|
#undef GetNextSibling
|
|
#undef GetFirstChild
|
|
|
|
#include "UIScene.h"
|
|
#include <RmlUi/Core/EventListener.h>
|
|
#include <RmlUi/Core/ElementDocument.h>
|
|
|
|
// NOTE: pop_macro at end of file
|
|
|
|
class UIScene_SettingsMenu : public UIScene, public Rml::EventListener
|
|
{
|
|
public:
|
|
UIScene_SettingsMenu(int iPad, void *initData, UILayer *parentLayer);
|
|
virtual ~UIScene_SettingsMenu();
|
|
|
|
virtual EUIScene getSceneType() { return eUIScene_SettingsMenu; }
|
|
|
|
virtual void tick();
|
|
virtual void render(S32 width, S32 height, C4JRender::eViewportType viewport);
|
|
|
|
virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
|
|
|
|
// Override focus/movie lifecycle for RmlUi (no Iggy movie)
|
|
virtual void gainFocus() override;
|
|
virtual void reloadMovie(bool force) override;
|
|
|
|
// Rml::EventListener
|
|
void ProcessEvent(Rml::Event& event) override;
|
|
|
|
protected:
|
|
virtual wstring getMoviePath() { return L""; }
|
|
|
|
virtual void handleLoseFocus() override;
|
|
virtual void updateTooltips() override;
|
|
virtual void updateComponents() override;
|
|
|
|
void navigateBack();
|
|
|
|
void OnOptions();
|
|
void OnAudio();
|
|
void OnControls();
|
|
void OnGraphics();
|
|
void OnUI();
|
|
void OnResetToDefaults();
|
|
|
|
static int ResetDefaultsDialogReturned(void *pParam,int iPad,C4JStorage::EMessageResult result);
|
|
|
|
private:
|
|
Rml::ElementDocument* m_document;
|
|
};
|
|
|
|
#pragma pop_macro("GetFirstChild")
|
|
#pragma pop_macro("GetNextSibling")
|
|
#pragma pop_macro("byte")
|