6294e9ed1c
- 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
38 lines
540 B
C++
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
|