diff --git a/Store/lang/ch.json b/Store/lang/ch.json index 5b91117..4dbcba1 100644 --- a/Store/lang/ch.json +++ b/Store/lang/ch.json @@ -26,6 +26,10 @@ "Speed expired": "{white}你的加速时间已过.", "menu.bottom.text": " [ WASD - 移动 ]
[ - 退出 ]", + "menu.selection.left": " ", + "menu.selection.right": " ", + "menu.selection.prefix": "", + "menu.selection.optionsbelow": " ", "menu_store": "Store [你的积分: {0}]", diff --git a/Store/lang/en.json b/Store/lang/en.json index bdb4ac4..1a927b0 100644 --- a/Store/lang/en.json +++ b/Store/lang/en.json @@ -25,7 +25,11 @@ "Godmode expired": "{white}Your godmode time is expired.", "Speed expired": "{white}Your speed time is expired.", - "menu_store<text>": " <font color='cyan'>[ WASD - To Move ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - To Exit ]", + "menu.buttom.text": " <font color='cyan'>[ WASD - To Move ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - To Exit ]", + "menu.selection.left": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/left.gif' class=''> <font color='orange'>", + "menu.selection.right": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/right.gif' class=''> <font color='white'>", + "menu.selection.prefix": "<font color='green'>", + "menu.selection.optionsbelow": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''>", "menu_store<title>": "Store [Your credits: {0}]", diff --git a/Store/lang/pt-BR.json b/Store/lang/pt-BR.json index 008a451..2daf93f 100644 --- a/Store/lang/pt-BR.json +++ b/Store/lang/pt-BR.json @@ -25,7 +25,11 @@ "Godmode expired": "{white}Seu tempo de godmode expirou.", "Speed expired": "{white}Seu tempo de velocidade expirou.", - "menu_store<text>": " <font color='cyan'>[ WASD - Para mover ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - Sair ]", + "menu.buttom.text": " <font color='cyan'>[ WASD - Para mover ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - Sair ]", + "menu.selection.left": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/left.gif' class=''> <font color='orange'>", + "menu.selection.right": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/right.gif' class=''> <font color='white'>", + "menu.selection.prefix": "<font color='green'>", + "menu.selection.optionsbelow": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''>", "menu_store<title>": "Loja [Seus créditos: {0}]", diff --git a/Store/lang/ru.json b/Store/lang/ru.json index b462812..8f76cb4 100644 --- a/Store/lang/ru.json +++ b/Store/lang/ru.json @@ -25,7 +25,11 @@ "Godmode expired": "{white}Время вашего бессмертия истекло.", "Speed expired": "{white}Время вашей скорости истекло.", - "menu_store<text>": " <font color='cyan'>[ WASD - Чтобы переехать ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - Выйти с сайта ]", + "menu.buttom.text": " <font color='cyan'>[ WASD - Чтобы переехать ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - Выйти с сайта ]", + "menu.selection.left": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/left.gif' class=''> <font color='orange'>", + "menu.selection.right": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/right.gif' class=''> <font color='white'>", + "menu.selection.prefix": "<font color='green'>", + "menu.selection.optionsbelow": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''>", "menu_store<title>": "Магазин [Ваши кредиты: {0}]", diff --git a/Store/lang/sl.json b/Store/lang/sl.json index bbf10f3..2544bee 100644 --- a/Store/lang/sl.json +++ b/Store/lang/sl.json @@ -25,7 +25,11 @@ "Godmode expired": "{white}Vaš čas boga načina je potekel.", "Speed expired": "{white}Vaš hitrostni čas je potekel.", - "menu_store<text>": " <font color='cyan'>[ WASD - Premikanje ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - Izstopite iz ]", + "menu.buttom.text": " <font color='cyan'>[ WASD - Premikanje ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - Izstopite iz ]", + "menu.selection.left": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/left.gif' class=''> <font color='orange'>", + "menu.selection.right": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/right.gif' class=''> <font color='white'>", + "menu.selection.prefix": "<font color='green'>", + "menu.selection.optionsbelow": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''>", "menu_store<title>": "Trgovina [Vaši krediti: {0}]", diff --git a/Store/lang/tr.json b/Store/lang/tr.json index c6756ea..91699a5 100644 --- a/Store/lang/tr.json +++ b/Store/lang/tr.json @@ -25,7 +25,11 @@ "Godmode expired": "{white}Godmode süreniz bitti.", "Speed expired": "{white}Hızlı koşma süreniz bitti.", - "menu_store<text>": " <font color='cyan'>[ WASD - Hareket ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - Çıkış ]", + "menu.buttom.text": " <font color='cyan'>[ WASD - Hareket ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - Çıkış ]", + "menu.selection.left": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/left.gif' class=''> <font color='orange'>", + "menu.selection.right": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/right.gif' class=''> <font color='white'>", + "menu.selection.prefix": "<font color='green'>", + "menu.selection.optionsbelow": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''>", "menu_store<title>": "Market [Krediniz: {0}]", diff --git a/Store/lang/ua.json b/Store/lang/ua.json index 2a844b5..05f918f 100644 --- a/Store/lang/ua.json +++ b/Store/lang/ua.json @@ -25,7 +25,11 @@ "Godmode expired": "{white}Час вашого богомоду закінчився.", "Speed expired": "{white}Час вашої швидкості закінчився.", - "menu_store<text>": " <font color='cyan'>[ WASD - Перемістити ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - Виходьте ]", + "menu.bottom.text": " <font color='cyan'>[ WASD - Перемістити ]</font> <br><font color='purple'>[ <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/tab.gif' class=''> - Виходьте ]", + "menu.selection.left": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/left.gif' class=''> <font color='orange'>", + "menu.selection.right": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/right.gif' class=''> <font color='white'>", + "menu.selection.prefix": "<font color='green'>", + "menu.selection.optionsbelow": "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''>", "menu_store<title>": "Магазин [Ваші кредити: {0}]", diff --git a/Store/src/menu/WASDMenu/Classes/WasdMenuPlayer.cs b/Store/src/menu/WASDMenu/Classes/WasdMenuPlayer.cs index 990ec56..f30e6a9 100644 --- a/Store/src/menu/WASDMenu/Classes/WasdMenuPlayer.cs +++ b/Store/src/menu/WASDMenu/Classes/WasdMenuPlayer.cs @@ -7,11 +7,6 @@ namespace Store; public class WasdMenuPlayer { - public const string MenuSelectionLeft = "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/left.gif' class=''>"; - public const string MenuSelectionRight = "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/right.gif' class=''>"; - public const string Prefix = "<font color='green'>"; - public const string OptionsBelow = "<img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''> <img src='https://raw.githubusercontent.com/oqyh/cs2-Kill-Sound-GoldKingZ/main/Resources/arrow.gif' class=''>"; - public CCSPlayerController player = null!; public WasdMenu? MainMenu = null; public LinkedListNode<IWasdMenuOption>? CurrentChoice = null; @@ -128,13 +123,13 @@ private void UpdateCenterHtml() LinkedListNode<IWasdMenuOption>? option = MenuStart!; if (option.Value.Parent?.Title != "") { - builder.AppendLine($"{Prefix}{option.Value.Parent?.Title}</u><font color='white'><br>"); + builder.AppendLine($"{Instance.Localizer["menu.prefix"]}{option.Value.Parent?.Title}</u><font color='white'><br>"); } while (i < VisibleOptions && option != null) { if (option == CurrentChoice) - builder.AppendLine($"{MenuSelectionLeft} {option.Value.OptionDisplay} {MenuSelectionRight} <br>"); + builder.AppendLine($"{Instance.Localizer["menu.selection.left"]} {option.Value.OptionDisplay} {Instance.Localizer["menu.selection.right"]} <br>"); else builder.AppendLine($"{option.Value.OptionDisplay} <br>"); option = option.Next; @@ -144,11 +139,11 @@ private void UpdateCenterHtml() if (option != null) { builder.AppendLine( - $"{OptionsBelow}"); + $"{Instance.Localizer["menu.selection.optionsbelow"]}"); } builder.AppendLine("<br>" + - $"{Instance.Localizer["menu_store<text>"]}<br>"); + $"{Instance.Localizer["menu.bottom.text"]}<br>"); builder.AppendLine("</div>"); CenterHtml = builder.ToString(); }