Add color support and improve menu option formatting
This commit is contained in:
parent
5ee1764318
commit
6422436252
15 changed files with 65 additions and 40 deletions
|
|
@ -132,7 +132,7 @@
|
|||
"gambler": "Gambler",
|
||||
"gambler_desc": "Select a skill from the list provided.",
|
||||
"gambler_select_info": "Select your skill:",
|
||||
"gambler_more": "<font class='fontSize-m' color='#00FF00'>Refresh for $100</font>",
|
||||
"gambler_more": "#00FF00|Refresh for ${0}",
|
||||
|
||||
"ghost": "Ghost",
|
||||
"ghost_desc": "You are completely invisible",
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@
|
|||
"gambler": "Hazardzista",
|
||||
"gambler_desc": "Wybierz umiejętność z podanej listy.",
|
||||
"gambler_select_info": "Wybierz umiejętność:",
|
||||
"gambler_more": "<font class='fontSize-m' color='#00FF00'>Odśwież za $100</font>",
|
||||
"gambler_more": "#00FF00|Odśwież za ${0}",
|
||||
|
||||
"ghost": "Duszek",
|
||||
"ghost_desc": "Jesteś całkowicie niewidzialny",
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@
|
|||
"gambler": "Apostador",
|
||||
"gambler_desc": "Selecione uma habilidade da lista.",
|
||||
"gambler_select_info": "Escolha sua habilidade:",
|
||||
"gambler_more": "<font class='fontSize-m' color='#00FF00'>Atualizar por $100</font>",
|
||||
"gambler_more": "#00FF00|Atualizar por ${0}",
|
||||
|
||||
"ghost": "Fantasma",
|
||||
"ghost_desc": "Você é completamente invisível",
|
||||
|
|
|
|||
|
|
@ -132,7 +132,7 @@
|
|||
"gambler": "赌徒",
|
||||
"gambler_desc": "从提供的列表中选择一个技能。",
|
||||
"gambler_select_info": "选择你的技能:",
|
||||
"gambler_more": "<font class='fontSize-m' color='#00FF00'>刷新 $100</font>",
|
||||
"gambler_more": "#00FF00|刷新 ${0}",
|
||||
|
||||
"ghost": "幽灵",
|
||||
"ghost_desc": "你完全隐形",
|
||||
|
|
|
|||
|
|
@ -47,6 +47,8 @@ namespace jRandomSkills
|
|||
Instance.AddTimer(.1f, () =>
|
||||
{
|
||||
playerInfo.Skill = skill.Skill;
|
||||
if (skill.Skill != skillName)
|
||||
playerInfo.SpecialSkill = skillName;
|
||||
playerInfo.SkillChance = 1;
|
||||
Instance.SkillAction(skill.Skill.ToString(), "EnableSkill", [player]);
|
||||
});
|
||||
|
|
@ -73,7 +75,7 @@ namespace jRandomSkills
|
|||
|
||||
HashSet<(string, string)> menuItems = [(firstSkill.Name, firstSkill.Skill.ToString()),
|
||||
(secondSkill.Name, secondSkill.Skill.ToString()),
|
||||
(Localization.GetTranslation("gambler_more"), skillName.ToString())];
|
||||
(Localization.GetTranslation("gambler_more", refreshPrice), skillName.ToString())];
|
||||
SkillUtils.CreateMenu(player, menuItems);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue