Adjust sizing slightly to ensure we stay within 1366 limits

This commit is contained in:
Dean Herbert 2023-11-02 19:40:20 +09:00 committed by Bartłomiej Dach
parent 6dab5ee4cf
commit 704f5a6de3
No known key found for this signature in database
1 changed files with 7 additions and 3 deletions

View File

@ -101,13 +101,17 @@ public ManiaArgonSkinTransformer(ISkin skin, IBeatmap beatmap)
case LegacyManiaSkinConfigurationLookups.ColumnWidth:
float width = 60;
float width;
bool isSpecialColumn = stage.IsSpecialColumn(columnIndex);
// Best effort until we have better mobile support.
if (RuntimeInfo.IsMobile)
width = 180 * Math.Min(1, 7f / beatmap.TotalColumns);
width = 170 * Math.Min(1, 7f / beatmap.TotalColumns) * (isSpecialColumn ? 1.8f : 1);
else
width = 60 * (isSpecialColumn ? 2 : 1);
return SkinUtils.As<TValue>(new Bindable<float>(stage.IsSpecialColumn(columnIndex) ? width * 2 : width));
return SkinUtils.As<TValue>(new Bindable<float>(width));
case LegacyManiaSkinConfigurationLookups.ColumnBackgroundColour: