pub struct ToolbarItem {
pub string_table: Option<String>,
pub sprite_sheet: Option<String>,
pub tooltip: String,
pub sprite: String,
pub kind: u32,
pub parent: Option<String>,
pub template: Option<String>,
pub value: u32,
pub visible: bool,
pub enabled: bool,
pub id: i32,
pub order: i32,
}Expand description
One entry of the in-game toolbar: a button or a sub-menu. The game builds each level of the
toolbar from the entries whose parent matches, in the order of order.
Original: FUN_1400d74e0; the toolbar is built by FUN_1400bede0.
Fields§
§string_table: Option<String>The string table.
sprite_sheet: Option<String>The icon’s sprite sheet.
tooltip: StringTooltip string key.
sprite: StringIcon sprite name in sprite_sheet.
kind: u32Action kind: 0 sub-menu, 1 build template, 6–10 time controls, …
parent: Option<String>Parent toolbar, None for the top level.
template: Option<String>Template placed by this entry, or the utility it opens.
value: u32Not identified yet.
visible: boolListed in the toolbar.
enabled: boolNot identified yet.
id: i32Not identified yet.
order: i32Sort key within its parent.
Trait Implementations§
Source§impl Clone for ToolbarItem
impl Clone for ToolbarItem
Source§fn clone(&self) -> ToolbarItem
fn clone(&self) -> ToolbarItem
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 moreAuto Trait Implementations§
impl Freeze for ToolbarItem
impl RefUnwindSafe for ToolbarItem
impl Send for ToolbarItem
impl Sync for ToolbarItem
impl Unpin for ToolbarItem
impl UnsafeUnpin for ToolbarItem
impl UnwindSafe for ToolbarItem
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