pub struct DialogueLimits {
pub box_width: usize,
pub box_lines: usize,
pub max_text: usize,
pub max_option: usize,
pub min_options: usize,
pub max_options: usize,
pub max_reaction_texts: usize,
}Expand description
How much text a game’s dialogue box and reply menu hold: the limits the
checks keep a script to, counted in cells (text_width).
Fields§
§box_width: usizeCells per line of the text box.
box_lines: usizeLines of text the text box shows at once: one page.
max_text: usizeLongest text of one speech or narration line.
max_option: usizeLongest text of a reply choice: it must fit the menu.
min_options: usizeFewest replies a @choice offers.
max_options: usizeMost replies a @choice offers.
max_reaction_texts: usizeMost text steps (speech or narration) in one reply’s reaction, so the scene rejoins quickly.
Trait Implementations§
Source§impl Clone for DialogueLimits
impl Clone for DialogueLimits
Source§fn clone(&self) -> DialogueLimits
fn clone(&self) -> DialogueLimits
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 DialogueLimits
Source§impl Debug for DialogueLimits
impl Debug for DialogueLimits
impl Eq for DialogueLimits
Source§impl PartialEq for DialogueLimits
impl PartialEq for DialogueLimits
impl StructuralPartialEq for DialogueLimits
Auto Trait Implementations§
impl Freeze for DialogueLimits
impl RefUnwindSafe for DialogueLimits
impl Send for DialogueLimits
impl Sync for DialogueLimits
impl Unpin for DialogueLimits
impl UnsafeUnpin for DialogueLimits
impl UnwindSafe for DialogueLimits
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