mirror of
https://github.com/ppy/osu
synced 2024-12-13 02:17:32 +00:00
Remove useless update calls in ToolbarRulesetSelector
This commit is contained in:
parent
b93446688c
commit
210437042f
@ -31,6 +31,7 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
public ToolbarRulesetSelector()
|
public ToolbarRulesetSelector()
|
||||||
{
|
{
|
||||||
RelativeSizeAxes = Axes.Y;
|
RelativeSizeAxes = Axes.Y;
|
||||||
|
AutoSizeAxes = Axes.X;
|
||||||
|
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
@ -111,12 +112,6 @@ namespace osu.Game.Overlays.Toolbar
|
|||||||
|
|
||||||
private void disabledChanged(bool isDisabled) => this.FadeColour(isDisabled ? Color4.Gray : Color4.White, 300);
|
private void disabledChanged(bool isDisabled) => this.FadeColour(isDisabled ? Color4.Gray : Color4.White, 300);
|
||||||
|
|
||||||
protected override void Update()
|
|
||||||
{
|
|
||||||
base.Update();
|
|
||||||
Size = new Vector2(modeButtons.DrawSize.X, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
private void rulesetChanged(ValueChangedEvent<RulesetInfo> e)
|
private void rulesetChanged(ValueChangedEvent<RulesetInfo> e)
|
||||||
{
|
{
|
||||||
foreach (ToolbarRulesetButton m in modeButtons.Children.Cast<ToolbarRulesetButton>())
|
foreach (ToolbarRulesetButton m in modeButtons.Children.Cast<ToolbarRulesetButton>())
|
||||||
|
Loading…
Reference in New Issue
Block a user