1
0
mirror of https://github.com/ppy/osu.git synced 2024-09-21 18:47:27 +08:00

Fix formatting

This commit is contained in:
Nguyên Minh Hồ 2024-01-25 15:52:57 +07:00
parent b87ff4db0d
commit 2fa52de87a
4 changed files with 7 additions and 8 deletions

View File

@ -46,8 +46,8 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
{
var popover = getPopover();
var buttons = popover.ChildrenOfType<EditorRadioButton>();
return buttons.Any(btn => btn.Text == "Selection centre" && btn.Enabled.Value is false) &&
buttons.Any(btn => btn.Text == "Playfield centre" && btn.Enabled.Value is true);
return buttons.Any(btn => btn.Text == "Selection centre" && !btn.Enabled.Value)
&& buttons.Any(btn => btn.Text == "Playfield centre" && btn.Enabled.Value);
});
AddStep("press rotate hotkey", () =>
{
@ -73,8 +73,8 @@ namespace osu.Game.Rulesets.Osu.Tests.Editor
{
var popover = getPopover();
var buttons = popover.ChildrenOfType<EditorRadioButton>();
return buttons.Any(btn => btn.Text == "Selection centre" && btn.Enabled.Value is true) &&
buttons.Any(btn => btn.Text == "Playfield centre" && btn.Enabled.Value is true);
return buttons.Any(btn => btn.Text == "Selection centre" && btn.Enabled.Value)
&& buttons.Any(btn => btn.Text == "Playfield centre" && btn.Enabled.Value);
});
AddStep("press rotate hotkey", () =>
{

View File

@ -19,7 +19,8 @@ namespace osu.Game.Rulesets.Osu.Edit
{
public partial class OsuSelectionRotationHandler : SelectionRotationHandler
{
public BindableBool CanRotatePlayfieldOrigin { get; private set; } = new();
public BindableBool CanRotatePlayfieldOrigin { get; private set; } = new BindableBool();
[Resolved]
private IEditorChangeHandler? changeHandler { get; set; }

View File

@ -33,9 +33,6 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
private Drawable icon = null!;
[Resolved]
private EditorBeatmap? editorBeatmap { get; set; }
public EditorRadioButton(RadioButton button)
{
Button = button;

View File

@ -20,6 +20,7 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
/// Tooltip text that will be shown on hover if button is enabled.
/// </summary>
public LocalisableString TooltipTextWhenEnabled { get; set; } = string.Empty;
/// <summary>
/// Tooltip text that will be shown on hover if button is disabled.
/// </summary>