pub struct LuaGameScriptShowMessageDialogParams {
pub image: String,
pub point_to: GuiArrowSpecification,
pub style: String,
pub text: String,
pub wrapper_frame_style: String,
}Expand description
Show an in-game message dialog.
Can only be used when the map contains exactly one player.
Fields§
§image: StringPath to an image to show on the dialog
point_to: GuiArrowSpecificationIf specified, dialog will show an arrow pointing to this place. When not specified, the arrow will point to the player’s position. (Use point_to={type="nowhere"} to remove the arrow entirely.) The dialog itself will be placed near the arrow’s target.
style: StringThe gui style to use for this speech bubble. Must be of type speech_bubble.
text: StringWhat the dialog should say
wrapper_frame_style: StringMust be of type flow_style.
Trait Implementations§
Source§impl Clone for LuaGameScriptShowMessageDialogParams
impl Clone for LuaGameScriptShowMessageDialogParams
Source§fn clone(&self) -> LuaGameScriptShowMessageDialogParams
fn clone(&self) -> LuaGameScriptShowMessageDialogParams
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 moreSource§impl Default for LuaGameScriptShowMessageDialogParams
impl Default for LuaGameScriptShowMessageDialogParams
Source§fn default() -> LuaGameScriptShowMessageDialogParams
fn default() -> LuaGameScriptShowMessageDialogParams
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for LuaGameScriptShowMessageDialogParams
impl RefUnwindSafe for LuaGameScriptShowMessageDialogParams
impl Send for LuaGameScriptShowMessageDialogParams
impl Sync for LuaGameScriptShowMessageDialogParams
impl Unpin for LuaGameScriptShowMessageDialogParams
impl UnsafeUnpin for LuaGameScriptShowMessageDialogParams
impl UnwindSafe for LuaGameScriptShowMessageDialogParams
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