mirror of https://github.com/ppy/osu
Move sizing to ctor
This commit is contained in:
parent
400514630d
commit
09b5cf4891
|
@ -33,6 +33,12 @@ public class Toolbar : OverlayContainer
|
||||||
|
|
||||||
private readonly Bindable<OverlayActivation> overlayActivationMode = new Bindable<OverlayActivation>(OverlayActivation.All);
|
private readonly Bindable<OverlayActivation> overlayActivationMode = new Bindable<OverlayActivation>(OverlayActivation.All);
|
||||||
|
|
||||||
|
public Toolbar()
|
||||||
|
{
|
||||||
|
RelativeSizeAxes = Axes.X;
|
||||||
|
Size = new Vector2(1, HEIGHT);
|
||||||
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader(true)]
|
[BackgroundDependencyLoader(true)]
|
||||||
private void load(OsuGame osuGame)
|
private void load(OsuGame osuGame)
|
||||||
{
|
{
|
||||||
|
@ -77,9 +83,6 @@ private void load(OsuGame osuGame)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
RelativeSizeAxes = Axes.X;
|
|
||||||
Size = new Vector2(1, HEIGHT);
|
|
||||||
|
|
||||||
StateChanged += visibility =>
|
StateChanged += visibility =>
|
||||||
{
|
{
|
||||||
if (overlayActivationMode.Value == OverlayActivation.Disabled)
|
if (overlayActivationMode.Value == OverlayActivation.Disabled)
|
||||||
|
|
Loading…
Reference in New Issue