mirror of
https://github.com/GabsPuNs/Project-Zenith-Main.git
synced 2026-07-09 23:18:30 +00:00
42 lines
1.2 KiB
C++
42 lines
1.2 KiB
C++
#pragma once
|
|
|
|
#pragma push_macro("byte")
|
|
#pragma push_macro("GetNextSibling")
|
|
#pragma push_macro("GetFirstChild")
|
|
#undef byte
|
|
#undef GetNextSibling
|
|
#undef GetFirstChild
|
|
|
|
#include "UIScene_RmlBase.h"
|
|
|
|
class UIScene_SettingsControlMenu : public UIScene_RmlBase
|
|
{
|
|
private:
|
|
int m_gameSensitivityValue;
|
|
int m_interfaceSensitivityValue;
|
|
int m_dragSliderIndex;
|
|
|
|
void setSliderValue(const Rml::String& id, const Rml::String& labelPrefix, int value, int min, int max);
|
|
int getSliderValue(const Rml::String& id);
|
|
|
|
void registerEvents();
|
|
void deregisterEvents();
|
|
|
|
public:
|
|
UIScene_SettingsControlMenu(int iPad, void *initData, UILayer *parentLayer);
|
|
virtual ~UIScene_SettingsControlMenu();
|
|
|
|
EUIScene getSceneType() override { return eUIScene_SettingsControlMenu; }
|
|
void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled) override;
|
|
void updateComponents() override;
|
|
|
|
void ProcessEvent(Rml::Event& event) override;
|
|
|
|
protected:
|
|
virtual void handleSliderMove(int sliderIndex, int value);
|
|
void handleSliderMouseEvent(int sliderIndex, const Rml::Event& event);
|
|
};
|
|
|
|
#pragma pop_macro("GetFirstChild")
|
|
#pragma pop_macro("GetNextSibling")
|
|
#pragma pop_macro("byte") |