Struct amethyst_ui::UiButtonSystem [−][src]
pub struct UiButtonSystem { /* fields omitted */ }
This system manages button mouse events. It changes images and text colors, as well as playing audio when necessary.
It's automatically registered with the UiBundle
.
Methods
impl UiButtonSystem
[src]
impl UiButtonSystem
Trait Implementations
impl Default for UiButtonSystem
[src]
impl Default for UiButtonSystem
fn default() -> UiButtonSystem
[src]
fn default() -> UiButtonSystem
Returns the "default value" for a type. Read more
impl<'s> System<'s> for UiButtonSystem
[src]
impl<'s> System<'s> for UiButtonSystem
type SystemData = (ReadStorage<'s, UiButton>, ReadStorage<'s, OnUiActionImage>, ReadStorage<'s, OnUiActionSound>, WriteStorage<'s, UiImage>, WriteStorage<'s, UiText>, Write<'s, EventChannel<UiEvent>>, Read<'s, AssetStorage<Source>>, Option<Read<'s, Output>>, ReadExpect<'s, ParentHierarchy>)
The resource bundle required to execute this system. Read more
fn setup(&mut self, res: &mut Resources)
[src]
fn setup(&mut self, res: &mut Resources)
Sets up the Resources
using Self::SystemData::setup
.
fn run(
&mut self,
(button_storage, action_image, action_sound, image_storage, text_storage, events, audio_storage, audio_output, hierarchy): Self::SystemData
)
[src]
fn run(
&mut self,
(button_storage, action_image, action_sound, image_storage, text_storage, events, audio_storage, audio_output, hierarchy): Self::SystemData
)
Executes the system with the required system data. Read more
fn running_time(&self) -> RunningTime
[src]
fn running_time(&self) -> RunningTime
Returns a hint how long the system needs for running. This is used to optimize the way they're executed (might allow more parallelization). Read more
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
[src]
fn accessor(&'b self) -> AccessorCow<'a, 'b, Self>
Return the accessor from the SystemData
.
Auto Trait Implementations
impl Send for UiButtonSystem
impl Send for UiButtonSystem
impl Sync for UiButtonSystem
impl Sync for UiButtonSystem