diff --git a/AquaMai/Resources/Locale.Designer.cs b/AquaMai/Resources/Locale.Designer.cs index 2e6303cb..d97753fe 100644 --- a/AquaMai/Resources/Locale.Designer.cs +++ b/AquaMai/Resources/Locale.Designer.cs @@ -143,6 +143,15 @@ namespace AquaMai.Resources { } } + /// + /// Looks up a localized string similar to SSS+ => DXRating += {0}. + /// + internal static string RatingUpWhenSSSp { + get { + return ResourceManager.GetString("RatingUpWhenSSSp", resourceCulture); + } + } + /// /// Looks up a localized string similar to Loop Not Set. /// diff --git a/AquaMai/Resources/Locale.resx b/AquaMai/Resources/Locale.resx index 93004b44..a60455dd 100644 --- a/AquaMai/Resources/Locale.resx +++ b/AquaMai/Resources/Locale.resx @@ -81,4 +81,7 @@ Data download not success + + SSS+ => DXRating += {0} + diff --git a/AquaMai/Resources/Locale.zh.resx b/AquaMai/Resources/Locale.zh.resx index 8f0111d9..10c19982 100644 --- a/AquaMai/Resources/Locale.zh.resx +++ b/AquaMai/Resources/Locale.zh.resx @@ -74,4 +74,7 @@ 数据下载不成功 + + 推到鸟加可上 {0} 分 + diff --git a/AquaMai/Utils/SelectionDetail.cs b/AquaMai/Utils/SelectionDetail.cs index 14702de6..e3ce2a64 100644 --- a/AquaMai/Utils/SelectionDetail.cs +++ b/AquaMai/Utils/SelectionDetail.cs @@ -1,6 +1,7 @@ using System.Collections.Generic; using System.Linq; using AquaMai.Helpers; +using AquaMai.Resources; using HarmonyLib; using MAI2.Util; using Manager; @@ -82,21 +83,22 @@ public class SelectionDetail var rate = CalcB50(SelectData.MusicData, difficulty[player]); if (rate > 0) { - dataToShow.Add($"SSS+ => DXRating += {rate}"); + dataToShow.Add(string.Format(Locale.RatingUpWhenSSSp, rate)); } - var x = GuiSizes.PlayerCenter - 100 + GuiSizes.PlayerWidth * player; + var width = GuiSizes.FontSize * 15f; + var x = GuiSizes.PlayerCenter - width / 2f + GuiSizes.PlayerWidth * player; var y = Screen.height * 0.87f; var labelStyle = GUI.skin.GetStyle("label"); labelStyle.fontSize = GuiSizes.FontSize; labelStyle.alignment = TextAnchor.MiddleCenter; - GUI.Box(new Rect(x, y, 200, dataToShow.Count * GuiSizes.LabelHeight + 2 * GuiSizes.Margin), ""); + GUI.Box(new Rect(x, y, width, dataToShow.Count * GuiSizes.LabelHeight + 2 * GuiSizes.Margin), ""); for (var i = 0; i < dataToShow.Count; i++) { - GUI.Label(new Rect(x, y + GuiSizes.Margin + i * GuiSizes.LabelHeight, 200, GuiSizes.LabelHeight), dataToShow[i]); + GUI.Label(new Rect(x, y + GuiSizes.Margin + i * GuiSizes.LabelHeight, width, GuiSizes.LabelHeight), dataToShow[i]); } }