osb/source/frontend/StarOptionsMenu.hpp

75 lines
1.7 KiB
C++
Raw Normal View History

#pragma once
2023-06-20 04:33:09 +00:00
#include "StarPane.hpp"
#include "StarConfiguration.hpp"
#include "StarMainInterfaceTypes.hpp"
namespace Star {
STAR_CLASS(SliderBarWidget);
STAR_CLASS(ButtonWidget);
STAR_CLASS(LabelWidget);
2023-07-19 13:16:59 +00:00
STAR_CLASS(VoiceSettingsMenu);
2023-06-20 04:33:09 +00:00
STAR_CLASS(KeybindingsMenu);
STAR_CLASS(GraphicsMenu);
2023-07-02 07:19:54 +00:00
STAR_CLASS(BindingsMenu);
2023-06-20 04:33:09 +00:00
STAR_CLASS(OptionsMenu);
class OptionsMenu : public Pane {
public:
OptionsMenu(PaneManager* manager);
virtual void show() override;
void toggleFullscreen();
private:
static StringList const ConfigKeys;
void initConfig();
2024-01-03 09:08:57 +00:00
void updateInstrumentVol();
2023-06-20 04:33:09 +00:00
void updateSFXVol();
void updateMusicVol();
void updateTutorialMessages();
void updateClientIPJoinable();
void updateClientP2PJoinable();
void updateAllowAssetsMismatch();
void syncGuiToConf();
void displayControls();
2023-07-19 13:16:59 +00:00
void displayVoiceSettings();
2023-07-02 07:19:54 +00:00
void displayModBindings();
2023-06-20 04:33:09 +00:00
void displayGraphics();
2024-01-03 09:08:57 +00:00
SliderBarWidgetPtr m_instrumentSlider;
2023-06-20 04:33:09 +00:00
SliderBarWidgetPtr m_sfxSlider;
SliderBarWidgetPtr m_musicSlider;
ButtonWidgetPtr m_tutorialMessagesButton;
ButtonWidgetPtr m_interactiveHighlightButton;
ButtonWidgetPtr m_clientIPJoinableButton;
ButtonWidgetPtr m_clientP2PJoinableButton;
ButtonWidgetPtr m_allowAssetsMismatchButton;
2024-01-03 09:08:57 +00:00
LabelWidgetPtr m_instrumentLabel;
2023-06-20 04:33:09 +00:00
LabelWidgetPtr m_sfxLabel;
LabelWidgetPtr m_musicLabel;
LabelWidgetPtr m_p2pJoinableLabel;
2024-01-03 09:08:57 +00:00
//TODO: add instrument range (or just use one range for all 3, it's kinda silly.)
2023-06-20 04:33:09 +00:00
Vec2I m_sfxRange;
Vec2I m_musicRange;
JsonObject m_origConfig;
JsonObject m_localChanges;
2023-07-19 13:16:59 +00:00
VoiceSettingsMenuPtr m_voiceSettingsMenu;
2023-07-02 07:19:54 +00:00
BindingsMenuPtr m_modBindingsMenu;
2023-06-20 04:33:09 +00:00
KeybindingsMenuPtr m_keybindingsMenu;
GraphicsMenuPtr m_graphicsMenu;
PaneManager* m_paneManager;
};
}