tirbofish/dropbear · commit
4667c90d3e54534095bb4f6cfb654aecd9886cfc
fix: fixed some editor and project settings stuff, which means HistoricalOption was implemented as a new type. Unverified
@@ -0,0 +1,3 @@ +# Enable auto-env through the sdkman_auto_env config +# Add key=value pairs of SDKs to use below +java=21.0.9-tem @@ -931,6 +931,9 @@ impl ApplicationHandler for App { self.windows.remove(&target_window_id); } } + scene::SceneCommand::SetFPS(new_fps) => { + self.set_target_fps(new_fps); + } _ => {} } } @@ -33,6 +33,7 @@ pub enum SceneCommand { DebugMessage(String), RequestWindow(WindowData), CloseWindow(WindowId), + SetFPS(u32), } impl Default for SceneCommand { @@ -145,7 +146,7 @@ impl Manager { } SceneCommand::None => {} SceneCommand::DebugMessage(msg) => log::debug!("{}", msg), - SceneCommand::RequestWindow(_) | SceneCommand::CloseWindow(_) => { + SceneCommand::RequestWindow(_) | SceneCommand::CloseWindow(_) | SceneCommand::SetFPS(_) => { return vec![command]; } } @@ -4,6 +4,7 @@ use crate::scene::SceneConfig; use crate::states::{PROJECT, SCENES};
Large diffs are not rendered by default. Showing the first 50 of 446 lines. Show full diff