pub enum ElementKind {
Show 28 variants
Group {
children: Vec<Option<String>>,
},
Page {
children: Vec<Option<String>>,
page: i32,
},
Radio {
children: Vec<Option<String>>,
selected: i32,
},
Ribbon {
vertical: bool,
uniform: bool,
spacing: i32,
children: Vec<Option<String>>,
},
Border {
sprite_sheet: Option<String>,
sprites: [String; 9],
},
Image {
sprite_sheet: Option<String>,
sprite: String,
size: [i32; 2],
},
FrustumOutline {
sprite_sheet: Option<String>,
sprite: String,
size: [i32; 2],
},
AnimatedImage {
sprite_sheet: Option<String>,
sprite: String,
size: [i32; 2],
frames: Vec<String>,
rate: i32,
},
Button(Button),
Check {
button: Button,
check: Option<String>,
},
Combo {
button: Button,
refs: [Option<String>; 3],
},
Text(Text),
Label(Label),
ClipRegion {
unknown: [i32; 2],
content: Option<String>,
},
Container {
unknown: [i32; 3],
refs: [Option<String>; 3],
unknown_bools: [bool; 2],
},
Edit {
font: Option<String>,
text: String,
max_length: i32,
unknown_bool: bool,
unknown_string: String,
},
Graph {
unknown: [i32; 3],
unknown_u32: u32,
sprite_sheet: Option<String>,
sprite: String,
},
Layout {
items: Vec<LayoutItem>,
},
List {
refs: [Option<String>; 2],
sprite_sheet: Option<String>,
sprite: String,
unknown: [u32; 2],
},
NumberEdit {
font: Option<String>,
unknown: [i32; 4],
unknown_bool: bool,
},
Number {
font: Option<String>,
color: u32,
unknown_int: i32,
unknown_float: f32,
unknown_bool: bool,
},
Slider {
track: Option<String>,
sprite_sheet: Option<String>,
sprites: [String; 5],
unknown: [i32; 2],
range: [f32; 2],
unknown_b0: i32,
},
Spinner {
refs: [Option<String>; 3],
unknown: i32,
},
Tab {
refs: [Option<String>; 3],
sprite_sheet: Option<String>,
sprites: [String; 3],
unknown: i32,
tabs: Vec<(Option<String>, Option<String>)>,
},
Progress {
color: u32,
sprite_sheet: Option<String>,
sprites: [String; 6],
unknown_ref: Option<String>,
},
Scroll {
sprite_sheet: Option<String>,
sprites: [String; 9],
vertical: bool,
unknown: i32,
unknown_u32: [u32; 2],
},
Table {
unknown: [i32; 3],
cells: Vec<TableCell>,
},
DocumentText(DocumentText),
}Expand description
What an element description is, with the fields of its class.
Variants§
Group
Children laid out on top of each other, each by its alignment.
Page
Pages, of which one is shown.
Radio
Radio buttons, of which one is selected.
Ribbon
Children in a row or a column.
Fields
Border
A frame drawn from nine sprites.
Fields
Image
One sprite.
Fields
FrustumOutline
The game’s FrustumOutlineDescription (MapUI’s camera outline): an image block whose
element draws lines instead of the sprite.
Original: FUN_14006c7f0.
Fields
AnimatedImage
A sequence of sprites played as an animation.
Fields
Button(Button)
A button.
Check
A check box.
Combo
A combo box: a button that opens a list.
Fields
The button that shows the choice.
Text(Text)
Text.
Label(Label)
Text with an optional icon.
ClipRegion
A window onto its content, cut at its edges.
Container
A scrolling area.
Fields
Edit
An edit box.
Fields
Graph
A graph of values over time.
Fields
Layout
Children placed by anchors relative to the element.
Fields
items: Vec<LayoutItem>The children and their anchors.
List
A list of rows.
Fields
NumberEdit
An edit box for a number.
Fields
Number
A number shown as text.
Fields
Slider
A slider.
Fields
Spinner
A number with up and down arrows.
Fields
Tab
Tabs: a header for each tab, and the page of the selected one.
Fields
Progress
A progress bar.
Fields
Scroll
A scroll bar.
Fields
Table
A table of cells in rows and columns.
Fields
DocumentText(DocumentText)
A document with markup (the help pages and the tutorials).
Trait Implementations§
Source§impl Clone for ElementKind
impl Clone for ElementKind
Source§fn clone(&self) -> ElementKind
fn clone(&self) -> ElementKind
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more