mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 15:16:38 +09:00
Naming adjustments
This commit is contained in:
@ -12,11 +12,11 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.Profile.Header.Components
|
||||
{
|
||||
public class GamemodeControl : TabControl<RulesetInfo>
|
||||
public class ProfileRulesetSelector : TabControl<RulesetInfo>
|
||||
{
|
||||
protected override Dropdown<RulesetInfo> CreateDropdown() => null;
|
||||
|
||||
protected override TabItem<RulesetInfo> CreateTabItem(RulesetInfo value) => new GamemodeTabItem(value)
|
||||
protected override TabItem<RulesetInfo> CreateTabItem(RulesetInfo value) => new RulesetTabItem(value)
|
||||
{
|
||||
AccentColour = AccentColour
|
||||
};
|
||||
@ -35,12 +35,12 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
|
||||
foreach (TabItem<RulesetInfo> tabItem in TabContainer)
|
||||
{
|
||||
((GamemodeTabItem)tabItem).AccentColour = value;
|
||||
((RulesetTabItem)tabItem).AccentColour = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public GamemodeControl()
|
||||
public ProfileRulesetSelector()
|
||||
{
|
||||
TabContainer.Masking = false;
|
||||
TabContainer.Spacing = new Vector2(10, 0);
|
||||
@ -62,7 +62,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
{
|
||||
foreach (TabItem<RulesetInfo> tabItem in TabContainer)
|
||||
{
|
||||
((GamemodeTabItem)tabItem).IsDefault = ((GamemodeTabItem)tabItem).Value.ShortName == gamemode;
|
||||
((RulesetTabItem)tabItem).IsDefault = ((RulesetTabItem)tabItem).Value.ShortName == gamemode;
|
||||
}
|
||||
}
|
||||
|
||||
@ -70,9 +70,9 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
{
|
||||
foreach (TabItem<RulesetInfo> tabItem in TabContainer)
|
||||
{
|
||||
if (((GamemodeTabItem)tabItem).IsDefault)
|
||||
if (((RulesetTabItem)tabItem).IsDefault)
|
||||
{
|
||||
Current.Value = ((GamemodeTabItem)tabItem).Value;
|
||||
Current.Value = ((RulesetTabItem)tabItem).Value;
|
||||
return;
|
||||
}
|
||||
}
|
@ -15,7 +15,7 @@ using osuTK.Graphics;
|
||||
|
||||
namespace osu.Game.Overlays.Profile.Header.Components
|
||||
{
|
||||
public class GamemodeTabItem : TabItem<RulesetInfo>
|
||||
public class RulesetTabItem : TabItem<RulesetInfo>
|
||||
{
|
||||
private readonly OsuSpriteText text;
|
||||
private readonly SpriteIcon icon;
|
||||
@ -52,7 +52,7 @@ namespace osu.Game.Overlays.Profile.Header.Components
|
||||
}
|
||||
}
|
||||
|
||||
public GamemodeTabItem(RulesetInfo value)
|
||||
public RulesetTabItem(RulesetInfo value)
|
||||
: base(value)
|
||||
{
|
||||
AutoSizeAxes = Axes.Both;
|
Reference in New Issue
Block a user