mirror of
https://github.com/osukey/osukey.git
synced 2025-08-07 16:43:52 +09:00
Add ruleset_height to remove magic numbers
This commit is contained in:
@ -26,6 +26,7 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
{
|
{
|
||||||
private readonly MarginPadding content_padding = new MarginPadding { Horizontal = 20, Vertical = 10 };
|
private readonly MarginPadding content_padding = new MarginPadding { Horizontal = 20, Vertical = 10 };
|
||||||
private const float transition_duration = 100;
|
private const float transition_duration = 100;
|
||||||
|
private const float ruleset_height = 30;
|
||||||
|
|
||||||
private readonly Box statusStrip;
|
private readonly Box statusStrip;
|
||||||
private readonly Container coverContainer, rulesetContainer, flagContainer;
|
private readonly Container coverContainer, rulesetContainer, flagContainer;
|
||||||
@ -192,11 +193,11 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
{
|
{
|
||||||
rulesetContainer = new Container
|
rulesetContainer = new Container
|
||||||
{
|
{
|
||||||
Size = new Vector2(30f),
|
Size = new Vector2(ruleset_height),
|
||||||
},
|
},
|
||||||
new Container //todo: game type icon
|
new Container //todo: game type icon
|
||||||
{
|
{
|
||||||
Size = new Vector2(30f),
|
Size = new Vector2(ruleset_height),
|
||||||
CornerRadius = 15f,
|
CornerRadius = 15f,
|
||||||
Masking = true,
|
Masking = true,
|
||||||
Children = new[]
|
Children = new[]
|
||||||
@ -211,7 +212,7 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
new Container
|
new Container
|
||||||
{
|
{
|
||||||
AutoSizeAxes = Axes.X,
|
AutoSizeAxes = Axes.X,
|
||||||
Height = 30f,
|
Height = ruleset_height,
|
||||||
Margin = new MarginPadding { Left = 5 },
|
Margin = new MarginPadding { Left = 5 },
|
||||||
Children = new[]
|
Children = new[]
|
||||||
{
|
{
|
||||||
@ -436,7 +437,7 @@ namespace osu.Game.Screens.Multiplayer
|
|||||||
{
|
{
|
||||||
new DifficultyIcon(value)
|
new DifficultyIcon(value)
|
||||||
{
|
{
|
||||||
Size = new Vector2(rulesetContainer.DrawHeight),
|
Size = new Vector2(ruleset_height),
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user