Add more flexible skin element confine modes

This commit is contained in:
Dean Herbert
2019-07-18 12:10:28 +09:00
parent 38d39be678
commit 74c961bcff
10 changed files with 43 additions and 27 deletions

View File

@ -41,7 +41,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Connections
Anchor = Anchor.Centre,
Alpha = 0.5f,
}
}, restrictSize: false);
}, confineMode: ConfineMode.NoScaling);
}
}
}

View File

@ -37,7 +37,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
{
RelativeSizeAxes = Axes.Both,
Icon = FontAwesome.Solid.ChevronRight
}, restrictSize: false)
})
};
}

View File

@ -23,7 +23,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
public DrawableSliderTick(SliderTick sliderTick)
: base(sliderTick)
{
Size = new Vector2(16) * sliderTick.Scale;
Size = new Vector2(16 * sliderTick.Scale);
Origin = Anchor.Centre;
InternalChildren = new Drawable[]
@ -44,7 +44,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
Colour = AccentColour,
Alpha = 0.3f,
}
}, restrictSize: false)
})
};
}

View File

@ -46,7 +46,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables.Pieces
{
Font = OsuFont.Numeric.With(size: 40),
UseFullGlyphHeight = false,
}, restrictSize: false)
}, confineMode: ConfineMode.NoScaling)
{
Text = @"1"
}