mirror of
https://github.com/ppy/osu.git
synced 2024-12-13 05:22:54 +08:00
Fix formatting
This commit is contained in:
parent
b87ff4db0d
commit
2fa52de87a
@ -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", () =>
|
||||
{
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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;
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user