mirror of
https://github.com/ppy/osu.git
synced 2025-01-13 16:32:54 +08:00
Hook up more bindables for hitobjects/hitsounds
This commit is contained in:
parent
db672becbc
commit
5ccfc1918e
@ -23,6 +23,8 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
|||||||
Masking = true;
|
Masking = true;
|
||||||
CornerRadius = 5;
|
CornerRadius = 5;
|
||||||
|
|
||||||
|
OsuCheckbox hitObjectsCheckbox;
|
||||||
|
OsuCheckbox hitSoundsCheckbox;
|
||||||
OsuCheckbox waveformCheckbox;
|
OsuCheckbox waveformCheckbox;
|
||||||
InternalChildren = new Drawable[]
|
InternalChildren = new Drawable[]
|
||||||
{
|
{
|
||||||
@ -59,8 +61,8 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
|||||||
Spacing = new Vector2(0, 4),
|
Spacing = new Vector2(0, 4),
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
new OsuCheckbox { LabelText = "Hitobjects" },
|
hitObjectsCheckbox = new OsuCheckbox { LabelText = "Hitobjects" },
|
||||||
new OsuCheckbox { LabelText = "Hitsounds" },
|
hitSoundsCheckbox = new OsuCheckbox { LabelText = "Hitsounds" },
|
||||||
waveformCheckbox = new OsuCheckbox { LabelText = "Waveform" }
|
waveformCheckbox = new OsuCheckbox { LabelText = "Waveform" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -107,6 +109,8 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
hitObjectsCheckbox.Current.Value = true;
|
||||||
|
hitSoundsCheckbox.Current.Value = true;
|
||||||
waveformCheckbox.Current.Value = true;
|
waveformCheckbox.Current.Value = true;
|
||||||
|
|
||||||
timelineContainer.Beatmap.BindTo(Beatmap);
|
timelineContainer.Beatmap.BindTo(Beatmap);
|
||||||
|
@ -14,6 +14,8 @@ namespace osu.Game.Screens.Edit.Screens.Compose.Timeline
|
|||||||
{
|
{
|
||||||
internal class ScrollingTimelineContainer : ScrollContainer
|
internal class ScrollingTimelineContainer : ScrollContainer
|
||||||
{
|
{
|
||||||
|
public readonly Bindable<bool> HitObjectsVisible = new Bindable<bool>();
|
||||||
|
public readonly Bindable<bool> HitSoundsVisible = new Bindable<bool>();
|
||||||
public readonly Bindable<bool> WaveformVisible = new Bindable<bool>();
|
public readonly Bindable<bool> WaveformVisible = new Bindable<bool>();
|
||||||
public readonly Bindable<WorkingBeatmap> Beatmap = new Bindable<WorkingBeatmap>();
|
public readonly Bindable<WorkingBeatmap> Beatmap = new Bindable<WorkingBeatmap>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user