Struct ClientChatOptions
pub struct ClientChatOptions {
pub visibility: u8,
pub colors: bool,
pub links: bool,
pub opacity: f32,
pub scale: f32,
pub width: f32,
pub height_focused: f32,
pub height_unfocused: f32,
pub line_spacing: f32,
pub delay: f64,
}Expand description
A snapshot of the client’s chat preferences.
Fields§
§visibility: u8Which chat is shown: 0 all, 1 commands only, 2 hidden.
colors: boolWhether colours in chat show.
links: boolWhether links in chat are clickable.
opacity: f32Raw chatOpacity preference, 0 to 1; text opacity is value * 0.9 + 0.1.
Background opacity is ClientGuiOptions::text_background_opacity.
scale: f32Chat scale.
width: f32Chat width, 0 to 1 of its range.
height_focused: f32Chat height while the chat is open, 0 to 1 of its range.
height_unfocused: f32Chat height while the chat is closed, 0 to 1 of its range.
line_spacing: f32Chat line spacing.
delay: f64Seconds between player chat messages showing.
Trait Implementations§
§impl Clone for ClientChatOptions
impl Clone for ClientChatOptions
§fn clone(&self) -> ClientChatOptions
fn clone(&self) -> ClientChatOptions
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 ClientChatOptions
§impl Debug for ClientChatOptions
impl Debug for ClientChatOptions
§impl PartialEq for ClientChatOptions
impl PartialEq for ClientChatOptions
impl StructuralPartialEq for ClientChatOptions
Auto Trait Implementations§
impl Freeze for ClientChatOptions
impl RefUnwindSafe for ClientChatOptions
impl Send for ClientChatOptions
impl Sync for ClientChatOptions
impl Unpin for ClientChatOptions
impl UnsafeUnpin for ClientChatOptions
impl UnwindSafe for ClientChatOptions
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