it works?
This commit is contained in:
@@ -1,26 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
#include "UIScene.h"
|
||||
#include "UIControl_MultiList.h"
|
||||
|
||||
class UIScene_SettingsAudioMenu : public UIScene
|
||||
{
|
||||
private:
|
||||
enum EControls
|
||||
{
|
||||
eControl_Music,
|
||||
eControl_Sound,
|
||||
eControl_CaveSounds,
|
||||
eControl_MinecartSounds
|
||||
eControl_MultiList = 0,
|
||||
eControl_Music = 1,
|
||||
eControl_Sound = 2,
|
||||
eControl_CaveSounds = 3,
|
||||
eControl_MinecartSounds = 4,
|
||||
eControl_GameChat = 5
|
||||
};
|
||||
|
||||
UIControl_Slider m_sliderMusic, m_sliderSound; // Sliders
|
||||
UIControl_CheckBox m_checkboxCaveSounds; // Checkboxes
|
||||
UIControl_CheckBox m_checkboxMinecartSounds;
|
||||
UIControl_MultiList m_multiList;
|
||||
bool m_bNeedsMultiListPopulate;
|
||||
bool m_bInitialPopulateDone;
|
||||
bool m_bPendingSliderUpdate;
|
||||
int m_iPendingSliderId;
|
||||
int m_iPendingSliderValue;
|
||||
|
||||
UI_BEGIN_MAP_ELEMENTS_AND_NAMES(UIScene)
|
||||
UI_MAP_ELEMENT( m_sliderMusic, "Music")
|
||||
UI_MAP_ELEMENT( m_sliderSound, "Sound")
|
||||
UI_MAP_ELEMENT( m_checkboxCaveSounds, "CaveSounds")
|
||||
UI_MAP_ELEMENT( m_checkboxMinecartSounds, "MinecartSounds")
|
||||
UI_END_MAP_ELEMENTS_AND_NAMES()
|
||||
|
||||
public:
|
||||
@@ -29,6 +32,7 @@ public:
|
||||
|
||||
virtual EUIScene getSceneType() { return eUIScene_SettingsAudioMenu;}
|
||||
|
||||
virtual void tick();
|
||||
virtual void updateTooltips();
|
||||
virtual void updateComponents();
|
||||
|
||||
@@ -40,4 +44,10 @@ public:
|
||||
// INPUT
|
||||
virtual void handleInput(int iPad, int key, bool repeat, bool pressed, bool released, bool &handled);
|
||||
|
||||
virtual void handleSliderMove(F64 sliderId, F64 currentValue); virtual void handleCheckboxToggled(F64 controlId, bool selected);};
|
||||
virtual void handleSliderMove(F64 sliderId, F64 currentValue);
|
||||
virtual void handleCheckboxToggled(F64 controlId, bool selected);
|
||||
virtual void handlePress(F64 controlId, F64 childId);
|
||||
virtual void handleGainFocus(bool navBack);
|
||||
|
||||
void setGameSettings();
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user