pub struct MenuOverride(pub Option<bool>);Expand description
An external per-frame driver (the cn editor HUD) can force the world’s
“menu active” state through this resource: Some(true) frees the cursor and
freezes gameplay/physics/animation (edit mode), Some(false) captures the
cursor and lets the world run (play mode), both regardless of whether the
world has its own menu UI. GraphicsSystem also puts the backend in menu mode
while it is set, so a click frees to a UI action instead of re-capturing the
camera. None (the default absence) leaves the world’s own menu logic in
charge; a shipped runtime never publishes it.
Tuple Fields§
§0: Option<bool>Trait Implementations§
Source§impl Clone for MenuOverride
impl Clone for MenuOverride
Source§fn clone(&self) -> MenuOverride
fn clone(&self) -> MenuOverride
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MenuOverride
Source§impl Debug for MenuOverride
impl Debug for MenuOverride
Source§impl Default for MenuOverride
impl Default for MenuOverride
Source§fn default() -> MenuOverride
fn default() -> MenuOverride
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MenuOverride
impl RefUnwindSafe for MenuOverride
impl Send for MenuOverride
impl Sync for MenuOverride
impl Unpin for MenuOverride
impl UnsafeUnpin for MenuOverride
impl UnwindSafe for MenuOverride
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more