mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Fix editor buttons inheriting from TriangleButton
when they have no need to
This commit is contained in:
@ -16,7 +16,7 @@ using osuTK.Graphics;
|
|||||||
|
|
||||||
namespace osu.Game.Screens.Edit.Components.RadioButtons
|
namespace osu.Game.Screens.Edit.Components.RadioButtons
|
||||||
{
|
{
|
||||||
public class DrawableRadioButton : TriangleButton
|
public class DrawableRadioButton : OsuButton
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Invoked when this <see cref="DrawableRadioButton"/> has been selected.
|
/// Invoked when this <see cref="DrawableRadioButton"/> has been selected.
|
||||||
@ -49,8 +49,6 @@ namespace osu.Game.Screens.Edit.Components.RadioButtons
|
|||||||
selectedBackgroundColour = colours.BlueDark;
|
selectedBackgroundColour = colours.BlueDark;
|
||||||
selectedBubbleColour = selectedBackgroundColour.Lighten(0.5f);
|
selectedBubbleColour = selectedBackgroundColour.Lighten(0.5f);
|
||||||
|
|
||||||
Triangles.Alpha = 0;
|
|
||||||
|
|
||||||
Content.EdgeEffect = new EdgeEffectParameters
|
Content.EdgeEffect = new EdgeEffectParameters
|
||||||
{
|
{
|
||||||
Type = EdgeEffectType.Shadow,
|
Type = EdgeEffectType.Shadow,
|
||||||
|
@ -15,7 +15,7 @@ using osuTK.Graphics;
|
|||||||
|
|
||||||
namespace osu.Game.Screens.Edit.Components.TernaryButtons
|
namespace osu.Game.Screens.Edit.Components.TernaryButtons
|
||||||
{
|
{
|
||||||
internal class DrawableTernaryButton : TriangleButton
|
internal class DrawableTernaryButton : OsuButton
|
||||||
{
|
{
|
||||||
private Color4 defaultBackgroundColour;
|
private Color4 defaultBackgroundColour;
|
||||||
private Color4 defaultBubbleColour;
|
private Color4 defaultBubbleColour;
|
||||||
@ -43,8 +43,6 @@ namespace osu.Game.Screens.Edit.Components.TernaryButtons
|
|||||||
selectedBackgroundColour = colours.BlueDark;
|
selectedBackgroundColour = colours.BlueDark;
|
||||||
selectedBubbleColour = selectedBackgroundColour.Lighten(0.5f);
|
selectedBubbleColour = selectedBackgroundColour.Lighten(0.5f);
|
||||||
|
|
||||||
Triangles.Alpha = 0;
|
|
||||||
|
|
||||||
Content.EdgeEffect = new EdgeEffectParameters
|
Content.EdgeEffect = new EdgeEffectParameters
|
||||||
{
|
{
|
||||||
Type = EdgeEffectType.Shadow,
|
Type = EdgeEffectType.Shadow,
|
||||||
|
Reference in New Issue
Block a user