osb/source/frontend/StarGraphicsMenu.hpp
WereTech 6294e9ed1c add camera panning speed setting
- adds a setting that changes the speed of the camera when panning with the CameraShift keybind.
- fixes what I assume is a typo in the zoom slider that referenced the resolution list size instead of the zoom list size
2023-11-28 11:04:45 -06:00

38 lines
540 B
C++

#ifndef STAR_GRAPHICS_MENU_HPP
#define STAR_GRAPHICS_MENU_HPP
#include "StarPane.hpp"
namespace Star {
STAR_CLASS(GraphicsMenu);
class GraphicsMenu : public Pane {
public:
GraphicsMenu();
void show() override;
void dismissed() override;
void toggleFullscreen();
private:
static StringList const ConfigKeys;
void initConfig();
void syncGui();
void apply();
void applyWindowSettings();
List<Vec2U> m_resList;
List<float> m_zoomList;
List<float> m_cameraSpeedList;
JsonObject m_localChanges;
};
}
#endif