pub struct OnGuiInventoryActionEvent {Show 13 fields
pub action: &'static str,
pub alt: bool,
pub button: &'static str,
pub control: bool,
pub element: LuaGuiElement,
pub item: LuaItemPrototype,
pub item_number: u32,
pub name: &'static str,
pub player_index: u32,
pub quality: LuaQualityPrototype,
pub shift: bool,
pub slot: u32,
pub tick: u32,
}Expand description
Called when a player interacts with a custom inventory GUI.
Fields§
§action: &'static str§alt: bool§control: bool§element: LuaGuiElement§item: LuaItemPrototype§item_number: u32§name: &'static str§player_index: u32§quality: LuaQualityPrototype§shift: bool§slot: u32§tick: u32Trait Implementations§
Source§impl Clone for OnGuiInventoryActionEvent
impl Clone for OnGuiInventoryActionEvent
Source§fn clone(&self) -> OnGuiInventoryActionEvent
fn clone(&self) -> OnGuiInventoryActionEvent
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 OnGuiInventoryActionEvent
Source§impl Debug for OnGuiInventoryActionEvent
impl Debug for OnGuiInventoryActionEvent
Source§impl Default for OnGuiInventoryActionEvent
impl Default for OnGuiInventoryActionEvent
Source§fn default() -> OnGuiInventoryActionEvent
fn default() -> OnGuiInventoryActionEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnGuiInventoryActionEvent
Auto Trait Implementations§
impl Freeze for OnGuiInventoryActionEvent
impl RefUnwindSafe for OnGuiInventoryActionEvent
impl Send for OnGuiInventoryActionEvent
impl Sync for OnGuiInventoryActionEvent
impl Unpin for OnGuiInventoryActionEvent
impl UnsafeUnpin for OnGuiInventoryActionEvent
impl UnwindSafe for OnGuiInventoryActionEvent
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