TitleTimes
Namespace Mc.Scripting · Kind struct (readonly)
public readonly struct TitleTimes : IEquatable<TitleTimes>The timings of a title, in ticks (20 per second).
Constructors
Section titled “Constructors”| Member | Description |
|---|---|
TitleTimes(int FadeIn, int Stay, int FadeOut) |
The timings of a title, in ticks (20 per second). |
Constructor
Section titled “Constructor”public TitleTimes(int FadeIn, int Stay, int FadeOut)The timings of a title, in ticks (20 per second).
Parameters
| Name | Type | Description |
|---|---|---|
FadeIn |
int |
Time to fade in. |
Stay |
int |
Time on screen. |
FadeOut |
int |
Time to fade out. |
Properties
Section titled “Properties”| Member | Description |
|---|---|
int FadeIn { get; init; } |
Time to fade in. |
int FadeOut { get; init; } |
Time to fade out. |
int Stay { get; init; } |
Time on screen. |
static TitleTimes Default { get; } |
The vanilla defaults: 0.5 s in, 3.5 s on screen, 1 s out. |
FadeIn
Section titled “FadeIn”public int FadeIn { get; init; }Time to fade in.
FadeOut
Section titled “FadeOut”public int FadeOut { get; init; }Time to fade out.
public int Stay { get; init; }Time on screen.
Default
Section titled “Default”public static TitleTimes Default { get; }The vanilla defaults: 0.5 s in, 3.5 s on screen, 1 s out.
Methods
Section titled “Methods”| Member | Description |
|---|---|
static TitleTimes From(TimeSpan fadeIn, TimeSpan stay, TimeSpan fadeOut) |
Creates timings from durations. |
public static TitleTimes From(TimeSpan fadeIn, TimeSpan stay, TimeSpan fadeOut)Creates timings from durations.
Parameters
| Name | Type | Description |
|---|---|---|
fadeIn |
TimeSpan |
Fade in. |
stay |
TimeSpan |
On screen. |
fadeOut |
TimeSpan |
Fade out. |
Returns TitleTimes