using UnityEngine; public static class UILocaleScreens { public static void ApplySettings(Transform root) { if (root == null) return; const string c = "IMG_BG/Scroll View/Viewport/Content"; LocaleUI.SetText(root, "IMG_BG/IMG_Title/TMP_Title", "settings.title"); LocaleUI.SetText(root, "IMG_BG/IMG_PauseModeBadge/TMP_Badge", "settings.about_sections"); LocaleUI.SetText(root, c + "/GRP_Audio/Image/TMP_SectionTitle", "settings.section.audio"); LocaleUI.SetText(root, c + "/GRP_Display/Image/TMP_SectionTitle", "settings.section.display"); LocaleUI.SetText(root, c + "/GRP_Data/Image/TMP_SectionTitle", "settings.section.data"); LocaleUI.SetText(root, c + "/GRP_About/Image/TMP_SectionTitle", "settings.section.about"); LocaleUI.SetText(root, c + "/GRP_Audio/IMG_MusicRow/TMP_RowTitle", "settings.music"); LocaleUI.SetText(root, c + "/GRP_Audio/IMG_MusicRow/TMP_RowDescription", "settings.music_desc"); LocaleUI.SetText(root, c + "/GRP_Audio/IMG_SoundFxRow/TMP_RowTitle", "settings.sound_fx"); LocaleUI.SetText(root, c + "/GRP_Audio/IMG_SoundFxRow/TMP_RowDescription", "settings.sound_fx_desc"); LocaleUI.SetText(root, c + "/GRP_Display/IMG_MusicRow/TMP_RowTitle", "settings.reduce_motion"); LocaleUI.SetText(root, c + "/GRP_Display/IMG_MusicRow/TMP_RowDescription", "settings.motion_desc"); LocaleUI.SetText(root, c + "/GRP_Data/IMG_MusicRow/TMP_RowTitle", "settings.coin_ledger"); LocaleUI.SetText(root, c + "/GRP_Data/IMG_MusicRow/TMP_RowDescription", "settings.ledger_desc"); LocaleUI.SetText(root, c + "/GRP_Data/IMG_MusicRow/Button/TMP_ButtonLabel", "common.open"); LocaleUI.SetText(root, c + "/GRP_Data/IMG_SoundFxRow/TMP_RowTitle", "settings.reset_save"); LocaleUI.SetText(root, c + "/GRP_Data/IMG_SoundFxRow/TMP_RowDescription", "settings.reset_row_desc"); LocaleUI.SetText(root, c + "/GRP_Data/IMG_SoundFxRow/Button/TMP_ButtonLabel", "common.reset"); LocaleUI.SetText(root, c + "/GRP_Data/IMG_SwitchLanuage/TMP_RowTitle", "settings.language.row"); LocaleUI.SetText(root, c + "/GRP_Data/IMG_SwitchLanuage/Button/TMP_ButtonLabel", "common.select"); LocaleUI.SetText(root, c + "/GRP_About/IMG_MusicRow/TMP_RowTitle", "settings.version"); LocaleUI.SetText(root, c + "/GRP_About/IMG_MusicRow/TMP_RowDescription", "settings.version_line"); LocaleUI.SetText(root, c + "/GRP_About/IMG_SoundFxRow/TMP_RowTitle", "settings.local_save"); LocaleUI.SetText(root, "GRP_ResetSave/IMG_BG/IMG_Title/TMP_Title", "settings.reset_title"); LocaleUI.SetText(root, "GRP_ResetSave/IMG_BG/IMG_PauseModeBadge/TMP_Badge", "settings.reset_warning"); LocaleUI.SetText(root, "GRP_ResetSave/IMG_BG/TMP_Message", "settings.reset_body"); LocaleUI.SetText(root, "GRP_ResetSave/IMG_BG/BTN_Cancel/TMP_ButtonLabel", "common.cancel"); LocaleUI.SetText(root, "GRP_ResetSave/IMG_BG/BTN_Confirm/TMP_ButtonLabel", "common.confirm"); LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/IMG_Title/TMP_Title", "settings.section.language"); LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/IMG_PauseModeBadge/TMP_Badge", "settings.language.choose"); LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/Image/TMP_Instruction", "settings.language.hint"); // LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/GRP_Content/GRP_US/TMP_LanguageName", "settings.language.name.en"); // LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/GRP_Content/GRP_ES/TMP_LanguageName", "settings.language.name.es"); // LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/GRP_Content/GRP_BR/TMP_LanguageName", "settings.language.name.pt-BR"); // LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/GRP_Content/GRP_DE/TMP_LanguageName", "settings.language.name.de"); // LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/GRP_Content/GRP_FR/TMP_LanguageName", "settings.language.name.fr"); // LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/GRP_Content/GRP_IT/TMP_LanguageName", "settings.language.name.it"); LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/BTN_Confirm/TMP_ButtonLabel", "common.confirm"); LocaleUI.SetText(root, "GRP_SelectLanuage/IMG_BG/BTN_Cancel/TMP_ButtonLabel", "common.cancel"); ApplySettingsDuplicateDataSection(root); LocaleUI.ApplyLocalizedTmp(root); } static void ApplySettingsDuplicateDataSection(Transform root) { const string c = "GRP_Data"; LocaleUI.SetText(root, c + "/Image/TMP_SectionTitle", "settings.section.data"); LocaleUI.SetText(root, c + "/IMG_MusicRow/TMP_RowTitle", "settings.coin_ledger"); LocaleUI.SetText(root, c + "/IMG_MusicRow/TMP_RowDescription", "settings.ledger_desc"); LocaleUI.SetText(root, c + "/IMG_MusicRow/Button/TMP_ButtonLabel", "common.open"); LocaleUI.SetText(root, c + "/IMG_SoundFxRow/TMP_RowTitle", "settings.reset_save"); LocaleUI.SetText(root, c + "/IMG_SoundFxRow/TMP_RowDescription", "settings.reset_row_desc"); LocaleUI.SetText(root, c + "/IMG_SoundFxRow/Button/TMP_ButtonLabel", "common.reset"); } public static void ApplyLobby(Transform root) { if (root == null) return; LocaleUI.ApplyLocalizedTmp(root); } public static void ApplyCheckIn(Transform root) { if (root == null) return; LocaleUI.SetText(root, "IMG_BG/IMG_DailyCheckInTitle/TMP_Title", "checkin.title"); LocaleUI.SetText(root, "IMG_BG/TMP_GameTip", "checkin.miss_note"); LocaleUI.ApplyLocalizedTmp(root); } public static void ApplyDraw(Transform root) { if (root == null) return; LocaleUI.SetText(root, "IMG_BG/IMG_DrawTitle/TMP_Title", "draw.title"); LocaleUI.SetText(root, "IMG_BG/TMP_GameTip", "draw.hint"); LocaleUI.ApplyLocalizedTmp(root); } public static void ApplyShop(Transform root) { if (root == null) return; LocaleUI.ApplyLocalizedTmp(root); } public static void ApplyProfile(Transform root) { if (root == null) return; LocaleUI.SetText(root, "IMG_BG/IMG_Title/TMP_Title", "profile.title"); LocaleUI.SetText(root, "IMG_BG/IMG_PauseModeBadge/TMP_PauseModeInfo", "profile.local_save"); LocaleUI.SetText(root, "IMG_BG/GRP_PlayerBar/GRP_PlayerStats/GRP_LevelsCleared/TMP_LevelsClearedLabel", "profile.levels_cleared"); LocaleUI.SetText(root, "IMG_BG/GRP_PlayerBar/GRP_PlayerStats/GRP_SetsServed/TMP_SetsServedLabel", "profile.sets_served"); LocaleUI.SetText(root, "IMG_BG/GRP_PlayerBar/GRP_PlayerStats/GRP_BestScore/TMP_BestScoreLabel", "profile.best_score"); LocaleUI.SetText(root, "IMG_BG/GRP_PlayerBar/GRP_PlayerStats/GRP_CoinsEarned/TMP_CoinsEarnedLabel", "profile.coins_earned"); LocaleUI.SetText(root, "IMG_BG/GRP_ModeProgress/Image/TMP_ModeProgress", "profile.mode_progress"); LocaleUI.SetText(root, "IMG_BG/GRP_ModeProgress/GRP_ClassicStand/TMP_ModeClassic", "defs.mode.classic.name"); LocaleUI.SetText(root, "IMG_BG/GRP_ModeProgress/GRP_RushHour/TMP_ModeRush", "defs.mode.rush.name"); LocaleUI.SetText(root, "IMG_BG/GRP_ModeProgress/GRP_SealedStand/TMP_ModeSealed", "defs.mode.sealed.name"); LocaleUI.SetText(root, "IMG_BG/GRP_EditName/Image (3)/TMP_NameLabel", "profile.name"); LocaleUI.SetText(root, "IMG_BG/GRP_AvatarSelect/Image (3)/TMP_AvatarLabel", "profile.avatar"); LocaleUI.SetText(root, "IMG_BG/GRP_EditName/BTN_Save/TMP_Label", "common.save"); LocaleUI.ApplyLocalizedTmp(root); } public static void ApplyHelp(Transform root) { if (root == null) return; LocaleUI.SetText(root, "IMG_BG/IMG_DailyCheckInTitle/TMP_Title", "help.title"); LocaleUI.SetText(root, "IMG_BG/IMG_PauseModeBadge/TMP_PauseModeInfo", "help.tagline"); LocaleUI.SetText(root, "IMG_BG/GRP_Content/Viewport/Content/TMP_SectionBasics/Image/TMP_Label", "help.basics"); LocaleUI.SetText(root, "IMG_BG/GRP_Content/Viewport/Content/TMP_SectionFaq/Image/TMP_Label", "help.faq"); LocaleUI.SetText(root, "IMG_BG/GRP_Content/Viewport/Content/GRP_BtnReplayIntro/BTN_ReplayIntro/TMP_Label", "help.replay_intro"); LocaleUI.ApplyLocalizedTmp(root); } public static void ApplyLoading(Transform root) { if (root == null) return; LocaleUI.SetText(root, "IMG_EditionBanner/TMP_EditionInfo", "common.retro_edition"); LocaleUI.ApplyLocalizedTmp(root); } public static void ApplyStart(Transform root) { if (root == null) return; LocaleUI.SetText(root, "bg/IMG_FeatureInfoBG/TMP_FeatureInfo", "common.retro_fruit_tagline"); LocaleUI.SetText(root, "bg/IMG_FooterBoard/TMP_FooterInfo", "common.retro_fruit_tagline"); LocaleUI.ApplyLocalizedTmp(root); } public static void ApplyPausePanel(Transform panel) { if (panel == null) return; LocaleUI.SetText(panel, "IMG_BG/IMG_PauseTitle/TMP_Title", "pause.title"); LocaleUI.SetText(panel, "IMG_BG/TMP_ProgressWarning", "pause.hint"); LocaleUI.SetText(panel, "IMG_BG/BTN_Resume/TMP_Label", "common.resume"); LocaleUI.SetText(panel, "IMG_BG/BTN_Quit/TMP_Label", "common.quit"); LocaleUI.ApplyLocalizedTmp(panel.transform); } public static void ApplyWinPanel(Transform panel) { if (panel == null) return; LocaleUI.SetText(panel, "IMG_BG/IMG_Title/TMP_Title", "result.cleared"); LocaleUI.SetText(panel, "IMG_BG/IMG_ClearedScoreBG/GRP_SetsServed/TMP_Label", "result.level_bonus"); LocaleUI.SetText(panel, "IMG_BG/IMG_ClearedScoreBG/GRP_FruitLeft/TMP_Label", "result.leftover_moves"); LocaleUI.SetText(panel, "IMG_BG/IMG_ClearedScoreBG/GRP_MovesLeft/TMP_Label", "result.sets_served"); LocaleUI.SetText(panel, "IMG_BG/BTN_Back/TMP_Label", "common.back"); LocaleUI.ApplyLocalizedTmp(panel.transform); } public static void ApplyLosePanel(Transform panel) { if (panel == null) return; LocaleUI.SetText(panel, "IMG_BG/GRP_TimeUp/IMG_Title/TMP_Title", "result.time_up"); LocaleUI.SetText(panel, "IMG_BG/GRP_NoMoves/IMG_Title/TMP_Title", "result.no_moves"); LocaleUI.SetText(panel, "IMG_BG/IMG_ClearedScoreBG/GRP_SetsServed/TMP_Label", "result.sets_served"); LocaleUI.SetText(panel, "IMG_BG/IMG_ClearedScoreBG/GRP_FruitLeft/TMP_Label", "result.fruit_left"); LocaleUI.SetText(panel, "IMG_BG/IMG_ClearedScoreBG/GRP_MovesLeft/TMP_Label", "result.moves_left"); LocaleUI.SetText(panel, "IMG_BG/BTN_Back/TMP_Label", "common.back"); LocaleUI.ApplyLocalizedTmp(panel.transform); } public static void ApplyGameHud(Transform root) { if (root == null) return; LocaleUI.SetText(root, "IMG_GameBoardFrame/IMG_FruitCounterBG/IMG_Title/TMP_Title", "game.still_no_stand"); LocaleUI.SetText(root, "PowerUpsGroup/BTN_AddMoves/TMP_Name", "defs.item.moves.name"); LocaleUI.SetText(root, "PowerUpsGroup/BTN_Hammer/TMP_Name", "defs.item.hammer.name"); LocaleUI.SetText(root, "PowerUpsGroup/BTN_Key/TMP_Name", "defs.item.key.short"); LocaleUI.SetText(root, "PowerUpsGroup/BTN_Shuffle/TMP_Name", "defs.item.shuffle.name"); LocaleUI.SetText(root, "IMG_GameTip/TMP_GameTip", "game.tip.tap_drag"); LocaleUI.ApplyLocalizedTmp(root); } }