mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 07:22:55 +08:00
OsuNub -> Nub.
This commit is contained in:
parent
f4dfc477f4
commit
d6714324df
@ -13,7 +13,7 @@ using osu.Framework.Graphics.UserInterface;
|
|||||||
|
|
||||||
namespace osu.Game.Graphics.UserInterface
|
namespace osu.Game.Graphics.UserInterface
|
||||||
{
|
{
|
||||||
class OsuNub : Container, IStateful<CheckBoxState>
|
class Nub : Container, IStateful<CheckBoxState>
|
||||||
{
|
{
|
||||||
public const float COLLAPSED_SIZE = 20;
|
public const float COLLAPSED_SIZE = 20;
|
||||||
public const float EXPANDED_SIZE = 40;
|
public const float EXPANDED_SIZE = 40;
|
||||||
@ -23,7 +23,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
const float border_width = 3;
|
const float border_width = 3;
|
||||||
private Color4 glowingColour, idleColour;
|
private Color4 glowingColour, idleColour;
|
||||||
|
|
||||||
public OsuNub()
|
public Nub()
|
||||||
{
|
{
|
||||||
Size = new Vector2(COLLAPSED_SIZE, 12);
|
Size = new Vector2(COLLAPSED_SIZE, 12);
|
||||||
|
|
@ -66,7 +66,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private OsuNub nub;
|
private Nub nub;
|
||||||
private SpriteText labelSpriteText;
|
private SpriteText labelSpriteText;
|
||||||
private AudioSample sampleChecked;
|
private AudioSample sampleChecked;
|
||||||
private AudioSample sampleUnchecked;
|
private AudioSample sampleUnchecked;
|
||||||
@ -79,7 +79,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Children = new Drawable[]
|
Children = new Drawable[]
|
||||||
{
|
{
|
||||||
labelSpriteText = new OsuSpriteText(),
|
labelSpriteText = new OsuSpriteText(),
|
||||||
nub = new OsuNub
|
nub = new Nub
|
||||||
{
|
{
|
||||||
Anchor = Anchor.CentreRight,
|
Anchor = Anchor.CentreRight,
|
||||||
Origin = Anchor.CentreRight,
|
Origin = Anchor.CentreRight,
|
||||||
|
@ -19,7 +19,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
private AudioSample sample;
|
private AudioSample sample;
|
||||||
private double lastSampleTime;
|
private double lastSampleTime;
|
||||||
|
|
||||||
private OsuNub nub;
|
private Nub nub;
|
||||||
private Box leftBox, rightBox;
|
private Box leftBox, rightBox;
|
||||||
|
|
||||||
public OsuSliderBar()
|
public OsuSliderBar()
|
||||||
@ -45,7 +45,7 @@ namespace osu.Game.Graphics.UserInterface
|
|||||||
Origin = Anchor.CentreRight,
|
Origin = Anchor.CentreRight,
|
||||||
Alpha = 0.5f,
|
Alpha = 0.5f,
|
||||||
},
|
},
|
||||||
nub = new OsuNub
|
nub = new Nub
|
||||||
{
|
{
|
||||||
Origin = Anchor.TopCentre,
|
Origin = Anchor.TopCentre,
|
||||||
State = CheckBoxState.Unchecked,
|
State = CheckBoxState.Unchecked,
|
||||||
|
@ -68,7 +68,7 @@
|
|||||||
<Compile Include="Graphics\Cursor\CursorTrail.cs" />
|
<Compile Include="Graphics\Cursor\CursorTrail.cs" />
|
||||||
<Compile Include="Graphics\Sprites\OsuSpriteText.cs" />
|
<Compile Include="Graphics\Sprites\OsuSpriteText.cs" />
|
||||||
<Compile Include="Graphics\UserInterface\BackButton.cs" />
|
<Compile Include="Graphics\UserInterface\BackButton.cs" />
|
||||||
<Compile Include="Graphics\UserInterface\OsuNub.cs" />
|
<Compile Include="Graphics\UserInterface\Nub.cs" />
|
||||||
<Compile Include="Graphics\UserInterface\OsuSliderBar.cs" />
|
<Compile Include="Graphics\UserInterface\OsuSliderBar.cs" />
|
||||||
<Compile Include="Graphics\UserInterface\OsuTextBox.cs" />
|
<Compile Include="Graphics\UserInterface\OsuTextBox.cs" />
|
||||||
<Compile Include="Graphics\UserInterface\TwoLayerButton.cs" />
|
<Compile Include="Graphics\UserInterface\TwoLayerButton.cs" />
|
||||||
|
Loading…
Reference in New Issue
Block a user