Preserve interpolation braces, invariant number formatting, ON/OFF updates and line breaks. Update both initial and refresh paths, portrait and landscape. WhBoosters.All in WhBoosters.cs owns Name, Desc, Guide, Unlock, FreeCharges and Color for every helper. Level names/hints remain separate JSON content. If a title appears in art, Title property or another screen, update those visible uses deliberately without renaming GameId, namespace, resources or save keys.
Hard-coded game strings do not automatically use shared localization. To translate the interface, route every display assignment through your translation table. Dictionaries, word banks and theme pools are independent gameplay assets and need separate validation. Test help, settings, results, tutorial and helper introductions after a fresh launch.
| Source | Exact current code |
|---|
WhBoard.cs:116 / class/static declarations | var t = HzUI.Label("C", letters, p.Grid[r, c].ToString(), fs, Ink); |
WhBoosters.cs:23 / class/static declarations | new WhBoosterDef { Id = WhBooster.Spyglass, Name = "Spyglass", Art = "booster_spyglass", Icon = HzIcons.Search, Unlock = 3, FreeCharges = 3, |
WhBoosters.cs:25 / class/static declarations | Desc = "Reveals the first letter of a hidden word.", |
WhBoosters.cs:26 / class/static declarations | Guide = "Can't spot a word? Tap the SPYGLASS to reveal where one starts." }, |
WhBoosters.cs:27 / class/static declarations | new WhBoosterDef { Id = WhBooster.Torch, Name = "Torch", Art = "booster_torch", Icon = HzIcons.Bolt, Unlock = 6, FreeCharges = 2, |
WhBoosters.cs:29 / class/static declarations | Desc = "Lights up the whole line (row, column or diagonal) a hidden word lies on.", |
WhBoosters.cs:30 / class/static declarations | Guide = "Tap the TORCH: a word hides somewhere on the glowing line." }, |
WhBoosters.cs:31 / class/static declarations | new WhBoosterDef { Id = WhBooster.Hourglass, Name = "Hourglass", Art = "booster_hourglass", Icon = HzIcons.Timer, Unlock = 9, FreeCharges = 2, |
WhBoosters.cs:33 / class/static declarations | Desc = "Stops the clock for 30 seconds. On timed camps that buys you extra time.", |
WhBoosters.cs:34 / class/static declarations | Guide = "Racing the clock? Tap the HOURGLASS to freeze time for 30 seconds." }, |
WhBoosters.cs:35 / class/static declarations | new WhBoosterDef { Id = WhBooster.Map, Name = "Map", Art = "booster_map", Icon = HzIcons.Flag, Unlock = 13, FreeCharges = 1, |
WhBoosters.cs:37 / class/static declarations | Desc = "Reveals a whole word on the grid.", |
WhBoosters.cs:38 / class/static declarations | Guide = "Tap the MAP to circle one hidden word for you." }, |
WordHuntGame.cs:65 / void LoadData() | _themes = WhContent.Parse(th ? th.text : ""); |
WordHuntGame.cs:212 / void MarkFound(int i, bool byClue) | else if (!byClue && _combo >= 2) Toast($"Combo x{_combo + 1}!", Gold, 0.9f); |
WordHuntGame.cs:258 / void OnBooster(WhBooster b) | Toast($"Unlocks at camp {WhBoosters.Def(b).Unlock}", Color.white, 1.2f); |
WordHuntGame.cs:320 / void Use(WhBooster b) | Toast("Clock frozen for 30 s!", HzUI.Hex("#BFEFFF"), 1.3f); |
WordHuntGame.Ui.cs:99 / void ShowTitle() | var t1 = HzUI.Label("Title", card.transform, "WORD HUNT", 130, Jungle); |
WordHuntGame.Ui.cs:105 / void ShowTitle() | var q = HzUI.Label("Quest", rib.transform, "QUEST", 64, Color.white); q.rectTransform.Stretch(); |
WordHuntGame.Ui.cs:110 / void ShowTitle() | var sub = HzUI.Label("Sub", _layer, "Find the hidden words. They can run in any direction!", 40, Color.white, TextAnchor.MiddleCenter, false); |
WordHuntGame.Ui.cs:115 / void ShowTitle() | var play = HzUI.Button("Play", _layer, "PLAY CAMP " + camp, Green, Color.white, () => StartCamp(Level), 66, 46); |
WordHuntGame.Ui.cs:121 / void ShowTitle() | var dl = HzUI.Label("DailyL", _layer, "DAILY TRAIL", 46, Gold); |
WordHuntGame.Ui.cs:128 / void ShowTitle() | var b = HzUI.Button("Daily" + d, _layer, null, col, Color.white, () => StartDaily(diff, false), 40, 34); |
WordHuntGame.Ui.cs:130 / void ShowTitle() | var name = HzUI.Label("N", b.transform, DiffNames[d], 46, Color.white); |
WordHuntGame.Ui.cs:135 / void ShowTitle() | var info = HzUI.Label("I", b.transform, done ? "DONE " + Fmt(HzSave.GetInt($"{GameId}_dtime_{Today}_{d}", 0) / 100f) : best > 0 ? "BEST " + Fmt(best) : (d == 0 ? "9x9" : d == 1 ? "12x12" : "15x15"), 30, new Color(1, 1, 1, 0.9f)); |
WordHuntGame.Ui.cs:211 / void BuildGameView() | var hdr = HzUI.Label("Hdr", pill.transform, head, 48, Gold); |
WordHuntGame.Ui.cs:216 / void BuildGameView() | var thm = HzUI.Label("Theme", pill.transform, sub, 32, Color.white, TextAnchor.MiddleCenter, false); |
WordHuntGame.Ui.cs:265 / void BuildInfoRow(float x0, float y, float w) | _timeText = HzUI.Label("Time", _timeChip.transform, Fmt(ShownTime), 58, Color.white); |
WordHuntGame.Ui.cs:274 / void BuildInfoRow(float x0, float y, float w) | _countText = HzUI.Label("C", cnt.transform, "", 50, Color.white); |
WordHuntGame.Ui.cs:284 / void BuildInfoRow(float x0, float y, float w) | var bl = HzUI.Label("BL", bst.transform, label, 26, new Color(1, 1, 1, 0.65f)); |
WordHuntGame.Ui.cs:286 / void BuildInfoRow(float x0, float y, float w) | _bestText = HzUI.Label("BV", bst.transform, val, 46, Gold); |
WordHuntGame.Ui.cs:295 / void UpdateCount(bool punch) | _countText.text = $"{_st.FoundCount}/{_p.Words.Count}"; |
WordHuntGame.Ui.cs:336 / string BonusMask() | c.Label = HzUI.Label("T", c.Root, text, (int)ChipBaseFont, bonus ? BonusTextColor : Ink); |
WordHuntGame.Ui.cs:392 / void LayoutWordList(RectTransform root, Rect r, bool port) | var hd = HzUI.Label("Head", root, "FIND THESE WORDS", 38, Gold); |
WordHuntGame.Ui.cs:479 / void BuildBoosterBar(Rect r) | var btn = HzUI.Button("Booster" + d.Name, bar.transform, null, d.Color, Color.white, () => OnBooster(id), 40, 36); |
WordHuntGame.Ui.cs:490 / void BuildBoosterBar(Rect r) | var cap = HzUI.Label("Caption", v.Root, d.Name.ToUpperInvariant(), 28, Color.white); |
WordHuntGame.Ui.cs:497 / void BuildBoosterBar(Rect r) | v.Count = HzUI.Label("N", badge.transform, "0", 32, Ink); v.Count.rectTransform.Stretch(); |
WordHuntGame.Ui.cs:503 / void BuildBoosterBar(Rect r) | var lt = HzUI.Label("Lv", lk.transform, "CAMP " + d.Unlock, 26, Gold); |
WordHuntGame.Ui.cs:524 / void RefreshBoosters() | v.Count.text = n > 0 ? n.ToString() : "+"; |
WordHuntGame.Ui.cs:544 / void BuildCoach() | _coachText = HzUI.Label("T", _coach, "", 36, Color.white, TextAnchor.MiddleLeft, false); |
WordHuntGame.Ui.cs:644 / void ShowPauseVeil() | var veil = HzUI.Button("PauseVeil", _layer, null, new Color(0.02f, 0.1f, 0.07f, 0.6f), Color.white, TogglePause, 40, 0); |
WordHuntGame.Ui.cs:650 / void ShowPauseVeil() | var t = HzUI.Label("P", _pauseVeil, "PAUSED", 110, Color.white); t.rectTransform.Place(new Vector2(0.5f, 0.5f), new Vector2(900, 140)); |
WordHuntGame.Ui.cs:652 / void ShowPauseVeil() | var s = HzUI.Label("S", _pauseVeil, "Tap anywhere to continue", 44, new Color(1, 1, 1, 0.85f), TextAnchor.MiddleCenter, false); |
WordHuntGame.Ui.cs:698 / void HidePauseVeil() | var t = HzUI.Label("Title", ribbon.transform, title, 66, Color.white); t.rectTransform.Stretch(6); |
WordHuntGame.Ui.cs:721 / void HidePauseVeil() | var b = HzUI.Label("Body", card.transform, body, 40, HzUI.Hex("#5A4636"), TextAnchor.MiddleCenter, false); |
WordHuntGame.Ui.cs:803 / void Box(string label, string value, float x, Color col) | var v = HzUI.Label("V", bx.transform, value, 62, col); v.rectTransform.Place(new Vector2(0.5f, 0.5f), new Vector2(320, 80), new Vector2(0, 16)); |
WordHuntGame.Ui.cs:804 / void Box(string label, string value, float x, Color col) | var l = HzUI.Label("L", bx.transform, label, 28, new Color(1, 1, 1, 0.65f)); l.rectTransform.Place(new Vector2(0.5f, 0.5f), new Vector2(320, 40), new Vector2(0, -42)); |
WordHuntGame.Ui.cs:812 / void Box(string label, string value, float x, Color col) | var nt = HzUI.Label("T", nb.transform, "NEW BEST!", 34, Color.white); nt.rectTransform.Stretch(); |
WordHuntGame.Ui.cs:819 / void Box(string label, string value, float x, Color col) | var bw = HzUI.Label("Bonus", d.Extra, "+ bonus word " + _p.Bonus.Text, 32, HzUI.Hex("#B8860B")); |
WordHuntGame.Ui.cs:848 / void ShowSettingsDialog() | MakeToggle(d.Extra, new Vector2(-170, 0), IcoVolume, IcoVolumeOff, "Sound", () => !HzAudio.Muted, on => HzAudio.Muted = !on); |
WordHuntGame.Ui.cs:849 / void ShowSettingsDialog() | MakeToggle(d.Extra, new Vector2(170, 0), IcoMusic, IcoMusicOff, "Music", () => !HzAudio.MusicMuted, on => HzAudio.MusicMuted = !on); |
WordHuntGame.Ui.cs:860 / void Refresh() | text.text = label + (on ? " ON" : " OFF"); |
WordHuntGame.Ui.cs:866 / void Refresh() | text = HzUI.Label("L", b.transform, label, 34, Color.white); |