ML: Fixed HotReload and RTL/LTR integration for UI Arabic

This commit is contained in:
rtw1x1
2026-02-18 20:00:05 +00:00
parent 5e5e49f048
commit c9052deb4d
16 changed files with 670 additions and 657 deletions

View File

@@ -683,10 +683,16 @@ class CommentSlot(ui.Window):
class GuildWindow(ui.ScriptWindow):
JOB_NAME = { 0 : localeInfo.JOB_WARRIOR,
JOB_NAME = {}
@staticmethod
def _RebuildLocaleStrings():
GuildWindow.JOB_NAME = {
0 : localeInfo.JOB_WARRIOR,
1 : localeInfo.JOB_ASSASSIN,
2 : localeInfo.JOB_SURA,
3 : localeInfo.JOB_SHAMAN, }
3 : localeInfo.JOB_SHAMAN,
}
GUILD_SKILL_PASSIVE_SLOT = 0
GUILD_SKILL_ACTIVE_SLOT = 1
@@ -2876,3 +2882,5 @@ Destroy building:
net.SendChatPacket("/build d vid")
"""
GuildWindow._RebuildLocaleStrings()
localeInfo.RegisterReloadCallback(GuildWindow._RebuildLocaleStrings)