Refactor and more appropriately organize logic
- move play logic to simulation module - update play hotkey to call play game/scene delegate function - link hotkey tooltip text to inputOptions
This commit is contained in:
@@ -303,7 +303,7 @@ namespace FlaxEditor.Windows
|
||||
Editor.Options.OptionsChanged += OnOptionsChanged;
|
||||
OnOptionsChanged(Editor.Options.Options);
|
||||
|
||||
InputActions.Add(options => options.Play, Editor.Simulation.RequestPlayOrStopPlay);
|
||||
InputActions.Add(options => options.Play, Editor.Simulation.DelegatePlayOrStopPlayInEditor);
|
||||
InputActions.Add(options => options.Pause, Editor.Simulation.RequestResumeOrPause);
|
||||
InputActions.Add(options => options.StepFrame, Editor.Simulation.RequestPlayOneFrame);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user