pub enum ControlAction {
None,
Newline,
PageBreak,
Done,
SetSpeed(u8),
Clear,
CallScript,
WaitInput,
MoveCursor {
x: u16,
y: u16,
},
Scroll,
Pause(u8),
}Expand description
Action produced when a control code is processed by the text provider.
Variants§
None
No action — continue processing.
Newline
Move the cursor to the next line.
PageBreak
Pause until the player presses a button, then clear the text box.
Done
End the current dialog.
SetSpeed(u8)
Change the text speed (0 = instant, higher = slower).
Clear
Clear the text buffer.
CallScript
Jump to a named script handler.
WaitInput
Pause until the player presses a button.
MoveCursor
Move the cursor to a specific tile position.
Scroll
Scroll the buffer up by one row (discards top row).
Pause(u8)
Pause for a given number of frames.
Trait Implementations§
Source§impl Clone for ControlAction
impl Clone for ControlAction
Source§fn clone(&self) -> ControlAction
fn clone(&self) -> ControlAction
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 ControlAction
Source§impl Debug for ControlAction
impl Debug for ControlAction
impl Eq for ControlAction
Source§impl PartialEq for ControlAction
impl PartialEq for ControlAction
impl StructuralPartialEq for ControlAction
Auto Trait Implementations§
impl Freeze for ControlAction
impl RefUnwindSafe for ControlAction
impl Send for ControlAction
impl Sync for ControlAction
impl Unpin for ControlAction
impl UnsafeUnpin for ControlAction
impl UnwindSafe for ControlAction
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