prevent zooming when in orthographic perspective
This commit is contained in:
@ -173,17 +173,11 @@ private:
|
|||||||
|
|
||||||
public:
|
public:
|
||||||
auto GetBackgroundColor() const -> Color;
|
auto GetBackgroundColor() const -> Color;
|
||||||
|
|
||||||
auto HelpPopup() -> void;
|
auto HelpPopup() -> void;
|
||||||
|
|
||||||
auto DrawSavePresetPopup() -> void;
|
auto DrawSavePresetPopup() -> void;
|
||||||
|
|
||||||
auto DrawMainMenu() -> void;
|
auto DrawMainMenu() -> void;
|
||||||
|
|
||||||
auto DrawPuzzleBoard() -> void;
|
auto DrawPuzzleBoard() -> void;
|
||||||
|
|
||||||
auto DrawGraphOverlay(int fps, int ups) -> void;
|
auto DrawGraphOverlay(int fps, int ups) -> void;
|
||||||
|
|
||||||
auto Update() -> void;
|
auto Update() -> void;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -115,7 +115,8 @@ auto InputHandler::CameraRotate() -> void {
|
|||||||
auto InputHandler::CameraStopRotate() -> void { camera_rotating = false; }
|
auto InputHandler::CameraStopRotate() -> void { camera_rotating = false; }
|
||||||
|
|
||||||
auto InputHandler::CameraZoom() -> void {
|
auto InputHandler::CameraZoom() -> void {
|
||||||
if (!MouseInGraphPane() || IsKeyDown(KEY_LEFT_CONTROL)) {
|
if (!MouseInGraphPane() || IsKeyDown(KEY_LEFT_CONTROL) ||
|
||||||
|
camera.projection == CAMERA_ORTHOGRAPHIC) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -16,6 +16,15 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// TODO: Click states in the graph to display them in the board
|
// TODO: Click states in the graph to display them in the board
|
||||||
|
// TODO: Add some popups
|
||||||
|
// - Next move, goto target, goto worst: Notify that the graph needs to be
|
||||||
|
// populated
|
||||||
|
// - Clear graph: Notify that this will clear the visited states and move
|
||||||
|
// history
|
||||||
|
// - Reset state: Notify that this will reset the move count
|
||||||
|
// Remove the keybindings, as it's simpler to show the popups from the
|
||||||
|
// button?
|
||||||
|
// TODO: Set selection to 0, 0 when resetting the state
|
||||||
|
|
||||||
// NOTE: Tracy uses a huge amount of memory. For longer testing disable Tracy.
|
// NOTE: Tracy uses a huge amount of memory. For longer testing disable Tracy.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user