pub struct ColourString {Show 14 fields
pub from: Colour,
pub to: Colour,
pub player_colour: PlayerColour,
pub blending: bool,
pub colour_ch_idx: i32,
pub from_opacity: f32,
pub to_opacity: f32,
pub opacity_toggled: bool,
pub inherited_col_ch_idx: i32,
pub copied_hsv: Option<HSVColour>,
pub deltatime: f32,
pub duration: f32,
pub copy_opacity: bool,
pub unknown_property18: bool,
}Expand description
Descriptor struct for the colour string.
Reference: https://boomlings.dev/resources/client/level-components/color-string
Fields§
§from: ColourThe colour itself
to: ColourWhat this colour changes to
player_colour: PlayerColourPlayer colour that is being copied by this colour
blending: boolUsing blending
colour_ch_idx: i32This colour’s channel index
from_opacity: f32Opacity of this colour
to_opacity: f32What opacity this colour becomes
opacity_toggled: boolToggles changing opacity
inherited_col_ch_idx: i32The channel index that this colour inherits (if any)
copied_hsv: Option<HSVColour>HSV of the copied colour
deltatime: f32Delta used to change colour
duration: f32Time of transiton from from colour to to colour
copy_opacity: bool@nodoc
unknown_property18: boolUnknown property with index 18
Implementations§
Trait Implementations§
Source§impl Clone for ColourString
impl Clone for ColourString
Source§fn clone(&self) -> ColourString
fn clone(&self) -> ColourString
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 Debug for ColourString
impl Debug for ColourString
Source§impl Default for ColourString
impl Default for ColourString
Source§fn default() -> ColourString
fn default() -> ColourString
Returns the “default value” for a type. Read more
Source§impl PartialEq for ColourString
impl PartialEq for ColourString
Source§fn eq(&self, other: &ColourString) -> bool
fn eq(&self, other: &ColourString) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ColourString
Auto Trait Implementations§
impl Freeze for ColourString
impl RefUnwindSafe for ColourString
impl Send for ColourString
impl Sync for ColourString
impl Unpin for ColourString
impl UnsafeUnpin for ColourString
impl UnwindSafe for ColourString
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