mirror of
https://github.com/ppy/osu.git
synced 2024-11-12 05:27:40 +08:00
cc0f61f545
# Conflicts: # osu-framework # osu.Game/GameModes/OsuGameMode.cs # osu.Game/GameModes/Play/Player.cs # osu.Game/OsuGame.cs # osu.Game/Overlays/MusicController.cs # osu.Game/Overlays/Options/EditorSection.cs # osu.Game/Overlays/Options/Input/MouseOptions.cs # osu.Game/Overlays/Options/Online/InGameChatOptions.cs # osu.Game/Overlays/Options/SkinSection.cs
57 lines
1.9 KiB
C#
57 lines
1.9 KiB
C#
using OpenTK;
|
|
using osu.Framework;
|
|
using osu.Framework.Allocation;
|
|
using osu.Framework.Graphics;
|
|
using osu.Framework.Graphics.UserInterface;
|
|
using osu.Game.Configuration;
|
|
using osu.Game.Graphics;
|
|
|
|
namespace osu.Game.Overlays.Options
|
|
{
|
|
public class EditorSection : OptionsSection
|
|
{
|
|
public override string Header => "Editor";
|
|
public override FontAwesome Icon => FontAwesome.fa_pencil;
|
|
|
|
[BackgroundDependencyLoader]
|
|
private void load(OsuConfigManager config)
|
|
{
|
|
content.Spacing = new Vector2(0, 5);
|
|
Children = new Drawable[]
|
|
{
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "Background video",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.VideoEditor)
|
|
},
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "Always use default skin",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.EditorDefaultSkin)
|
|
},
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "Snaking sliders",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.EditorSnakingSliders)
|
|
},
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "Hit animations",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.EditorHitAnimations)
|
|
},
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "Follow points",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.EditorFollowPoints)
|
|
},
|
|
new CheckBoxOption
|
|
{
|
|
LabelText = "Stacking",
|
|
Bindable = config.GetBindable<bool>(OsuConfig.EditorStacking)
|
|
},
|
|
};
|
|
}
|
|
}
|
|
}
|
|
|