RenderOptions

Struct RenderOptions 

Source
pub struct RenderOptions {
Show 51 fields pub resolution: RenderResolution, pub global_volume: u8, pub music_volume: u8, pub hitsound_volume: u8, pub show_hit_error_meter: bool, pub show_unstable_rate: bool, pub show_score: bool, pub show_hp_bar: bool, pub show_combo_counter: bool, pub show_pp_counter: bool, pub show_scoreboard: bool, pub show_borders: bool, pub show_mods: bool, pub show_result_screen: bool, pub use_skin_cursor: bool, pub use_skin_colors: bool, pub use_skin_hitsounds: bool, pub use_beatmap_colors: bool, pub cursor_scale_to_cs: bool, pub cursor_rainbow: bool, pub cursor_trail_glow: bool, pub draw_follow_points: bool, pub beat_scaling: bool, pub slider_merge: bool, pub objects_rainbow: bool, pub flash_objects: bool, pub use_slider_hitcircle_color: bool, pub seizure_warning: bool, pub load_storyboard: bool, pub load_video: bool, pub intro_bg_dim: u8, pub ingame_bg_dim: u8, pub break_bg_dim: u8, pub bg_parallax: bool, pub show_danser_logo: bool, pub skip_intro: bool, pub cursor_ripples: bool, pub cursor_size: f32, pub cursor_trail: bool, pub draw_combo_numbers: bool, pub slider_snaking_in: bool, pub slider_snaking_out: bool, pub show_hit_counter: bool, pub show_key_overlay: bool, pub show_avatars_on_scoreboard: bool, pub show_aim_error_meter: bool, pub play_nightcore_samples: bool, pub show_strain_graph: bool, pub show_slider_breaks: bool, pub ignore_fail: bool, pub discord_user_id: Option<u64>,
}
Expand description

Customize danser settings when rendering.

Fields§

§resolution: RenderResolution§global_volume: u8

The global volume for the video, in percent, from 0 to 100.

§music_volume: u8

The music volume for the video, in percent, from 0 to 100.

§hitsound_volume: u8

The hitsounds volume for the video, in percent, from 0 to 100.

§show_hit_error_meter: bool

Show the hit error meter.

§show_unstable_rate: bool

Show the unstable rate, only takes effect if show_hit_error_meter is set to true.

§show_score: bool

Show the score.

§show_hp_bar: bool

Show the HP bar.

§show_combo_counter: bool

Show the combo counter.

§show_pp_counter: bool

Show the PP Counter or not.

§show_scoreboard: bool

Show the scoreboard or not.

§show_borders: bool

Show the playfield borders or not.

§show_mods: bool

Show the mods used during the game or not.

§show_result_screen: bool

Show the result screen or not.

§use_skin_cursor: bool

Use the skin cursor or not. If not, danser cursor will be used.

§use_skin_colors: bool

Use the skin combo colors or not.

§use_skin_hitsounds: bool

Use skin hitsounds, if false beatmap hitsounds will be used.

§use_beatmap_colors: bool

Use the beatmap combo colors or not, overrides useSkinColors if true.

§cursor_scale_to_cs: bool

Scale cursor to circle size. Does not do anything at the moment.

§cursor_rainbow: bool

Makes the cursor rainbow, only takes effect if use_skin_cursor is set to false.

§cursor_trail_glow: bool

Have a glow with the trail or not.

§draw_follow_points: bool

Draw follow points between objects or not.

§beat_scaling: bool

Scale objects to the beat.

§slider_merge: bool

Merge sliders or not.

§objects_rainbow: bool

Makes the objects rainbow, overrides use_skin_colors and use_beatmap_colors.

§flash_objects: bool

Makes the objects flash to the beat.

§use_slider_hitcircle_color: bool

Makes the slider body have the same color as the hit circles.

§seizure_warning: bool

Display a 5 second seizure warning before the video.

§load_storyboard: bool

Load the background storyboard.

§load_video: bool

Load the background video (load_storyboard has to be set to true).

§intro_bg_dim: u8

Background dim for the intro, in percent, from 0 to 100.

§ingame_bg_dim: u8

Background dim in game, in percent, from 0 to 100.

§break_bg_dim: u8

Background dim in break, in percent, from 0 to 100.

§bg_parallax: bool

Adds a parallax effect.

Show danser logo on the intro.

§skip_intro: bool

Skip the intro or not.

§cursor_ripples: bool

Show cursor ripples when keypress.

§cursor_size: f32

Set the cursor size, multiplier from 0.5 to 2.

§cursor_trail: bool

Show the cursor trail or not.

§draw_combo_numbers: bool

Show the combo numbers in objects.

§slider_snaking_in: bool

Have slider snaking in.

§slider_snaking_out: bool

Have slider snaking out.

§show_hit_counter: bool

Shows a hit counter (100, 50, miss) below the PP counter.

§show_key_overlay: bool

Show the key overlay or not.

§show_avatars_on_scoreboard: bool

Show avatars on the left of the username of a player on the scoreboard. May break some skins because the width of the scoreboard increases.

§show_aim_error_meter: bool

Show the Aim Error Meter or not.

§play_nightcore_samples: bool

Play nightcore hitsounds or not.

§show_strain_graph: bool

Show the strain graph or not.

§show_slider_breaks: bool

Show the slider breaks count in the hit counter.

§ignore_fail: bool

Ignores fail in the replay or not.

§discord_user_id: Option<u64>

For verified bots, supplying the requester’s Discord ID allows the o!rdr server to set their favorite preset if they have one saved and set to be used with bots in their issou.best account.

Implementations§

Source§

impl RenderOptions

Source

pub const DEFAULT_RESOLUTION: RenderResolution = RenderResolution::HD720

Trait Implementations§

Source§

impl Clone for RenderOptions

Source§

fn clone(&self) -> RenderOptions

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for RenderOptions

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for RenderOptions

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for RenderOptions

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for RenderOptions

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> ErasedDestructor for T
where T: 'static,