mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Update with framework bindable changes
This commit is contained in:
@ -80,10 +80,10 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
|
||||
{
|
||||
base.LoadComplete();
|
||||
|
||||
button.Selected.ValueChanged += v =>
|
||||
button.Selected.ValueChanged += e =>
|
||||
{
|
||||
updateSelectionState();
|
||||
if (v)
|
||||
if (e.NewValue)
|
||||
Selected?.Invoke(button);
|
||||
};
|
||||
|
||||
@ -95,16 +95,16 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
|
||||
if (!IsLoaded)
|
||||
return;
|
||||
|
||||
BackgroundColour = button.Selected ? selectedBackgroundColour : defaultBackgroundColour;
|
||||
bubble.Colour = button.Selected ? selectedBubbleColour : defaultBubbleColour;
|
||||
BackgroundColour = button.Selected.Value ? selectedBackgroundColour : defaultBackgroundColour;
|
||||
bubble.Colour = button.Selected.Value ? selectedBubbleColour : defaultBubbleColour;
|
||||
}
|
||||
|
||||
protected override bool OnClick(ClickEvent e)
|
||||
{
|
||||
if (button.Selected)
|
||||
if (button.Selected.Value)
|
||||
return true;
|
||||
|
||||
if (!Enabled)
|
||||
if (!Enabled.Value)
|
||||
return true;
|
||||
|
||||
button.Selected.Value = true;
|
||||
|
Reference in New Issue
Block a user