Preserve interpolation braces, invariant number formatting, ON/OFF updates and line breaks. Update both initial and refresh paths, portrait and landscape. BoostName/BoostUnlock/BoostStart in StretchCatGame.cs; BoostDesc and tutorial text in StretchCatGame.Hud.cs. 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 |
|---|
ScArt.cs:23 / class/static declarations | new RoomTheme { Name = "Living Room", FloorA = HzUI.Hex("#FBE3C4"), FloorB = HzUI.Hex("#F6D3AA"), Rim = HzUI.Hex("#8A5A3C"), Tint = new Color(1f, 0.85f, 0.65f, 0.10f), BlockBase = HzUI.Hex("#D9B48C") }, |
ScArt.cs:24 / class/static declarations | new RoomTheme { Name = "Kitchen", FloorA = HzUI.Hex("#E3F4EC"), FloorB = HzUI.Hex("#CBEAD9"), Rim = HzUI.Hex("#3F7A6A"), Tint = new Color(0.6f, 1f, 0.85f, 0.12f), BlockBase = HzUI.Hex("#A9D2C2") }, |
ScArt.cs:25 / class/static declarations | new RoomTheme { Name = "Garden", FloorA = HzUI.Hex("#DDF0B8"), FloorB = HzUI.Hex("#C9E59A"), Rim = HzUI.Hex("#5B7A33"), Tint = new Color(0.7f, 1f, 0.5f, 0.14f), BlockBase = HzUI.Hex("#A8C87A") }, |
ScArt.cs:26 / class/static declarations | new RoomTheme { Name = "Library", FloorA = HzUI.Hex("#EADDF6"), FloorB = HzUI.Hex("#DCC9EE"), Rim = HzUI.Hex("#5E4682"), Tint = new Color(0.75f, 0.6f, 1f, 0.14f), BlockBase = HzUI.Hex("#BCA6D8") }, |
ScArt.cs:27 / class/static declarations | new RoomTheme { Name = "Attic", FloorA = HzUI.Hex("#D7E3F5"), FloorB = HzUI.Hex("#C3D3EE"), Rim = HzUI.Hex("#34446E"), Tint = new Color(0.25f, 0.3f, 0.65f, 0.32f), BlockBase = HzUI.Hex("#9FB0D6") }, |
ScCore.cs:91 / public int FloorCells() { int n = 0; foreach (var s in rows) foreach (var x in s) if (ScBoard.IsOpenChar(x)) n++; return n; } | public static readonly string[] Name = { "up", "right", "down", "left" }; |
ScGen.cs:124 / static float Clamp01(float v) => v < 0 ? 0 : v > 1 ? 1 : v; | p.Name = NameA[rng.Range(0, NameA.Length)] + " " + NameB[rng.Range(0, NameB.Length)]; |
StretchCatGame.cs:57 / class/static declarations | public static readonly string[] BoostName = { "Undo", "Hint", "Yarn Drop", "Peek" }; |
StretchCatGame.cs:243 / void ShowLevelCard() | var p = ScPopup(LevelLabel(), msg, Ginger, LevelCardArt(), D.name + " - " + D.room, ("Play", Teal, (Action)Begin)); |
StretchCatGame.cs:251 / string LevelLabel() => ScLevels.IsGenerated(_playLevel) ? "Room " + _playLevel.ToString(CultureInfo.InvariantCulture) : "Level " + _playLevel.ToString(CultureInfo.InvariantCulture); | string LevelLabel() => ScLevels.IsGenerated(_playLevel) ? "Room " + _playLevel.ToString(CultureInfo.InvariantCulture) : "Level " + _playLevel.ToString(CultureInfo.InvariantCulture); |
StretchCatGame.cs:387 / void Stuck() | Toast("Tangled! Let's try that again", Cream, 1.2f, ToastY); |
StretchCatGame.cs:409 / void Stuck() | ScPopup("Tangled!", $"Mochi can't move and {Left} tile{(Left == 1 ? " is" : "s are")} still empty.", Berry, ScArt.Get("cat_head"), null, |
StretchCatGame.cs:645 / void OnBooster(int b) | Toast(BoostName[b] + " unlocks at level " + BoostUnlock[b], null, 1.3f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); |
StretchCatGame.cs:665 / void OnBooster(int b) | if (_moveStart.Count == 0) { Toast("Nothing to undo yet", null, 1.1f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; } |
StretchCatGame.cs:681 / void OnBooster(int b) | else Toast("Tap an empty tile to drop a yarn ball", null, 1.4f, ToastY); |
StretchCatGame.cs:733 / void OfferCharge(int b) | ScPopup("+1 " + BoostName[b], "Out of " + BoostName[b] + ".\nWatch a short ad for one more?", HzUI.Hex(BoostColor[b]), ScArt.Get(BoostArt[b]), null, |
StretchCatGame.cs:797 / void UseHint() | if (!r.Solvable || r.Route == null || r.Route.Count == 0) { Toast("Try restarting this room", null, 1.4f, ToastY); return; } |
StretchCatGame.cs:809 / void UseHint() | Toast(rewound == 1 ? "Rewound one swipe - now:" : $"Rewound {rewound} swipes - now:", Mustard, 1.4f, ToastY); |
StretchCatGame.cs:849 / void UsePeek() | if (!r.Solvable) { Toast("Mochi is tangled - Undo or restart first", Berry, 1.6f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; } |
StretchCatGame.cs:871 / void DropYarn(int cell) | Toast("Pick an empty plain tile", null, 1.1f, ToastY); |
StretchCatGame.cs:1131 / string PopupTitle() | return t ? t.GetComponent<Text>().text.Replace(' ', '_') : "popup"; |
StretchCatGame.Hud.cs:105 / void BuildHudPortrait(float W, float H) | _levelTxt = HzUI.Label("Level", pill.transform, "", 58, Color.white); _levelTxt.AddOutline(new Color(0.4f, 0.15f, 0, 0.35f), 3); |
StretchCatGame.Hud.cs:109 / void BuildHudPortrait(float W, float H) | _nameTxt = HzUI.Label("Name", pill.transform, "", 32, new Color(1, 1, 1, 0.95f), TextAnchor.MiddleCenter, false); _nameTxt.fontStyle = FontStyle.Bold; |
StretchCatGame.Hud.cs:137 / void BuildHudLandscape(float W, float H) | var title = HzUI.Label("Title", _layer, "Stretch Cat", 82, Ginger, TextAnchor.MiddleLeft); |
StretchCatGame.Hud.cs:145 / void BuildHudLandscape(float W, float H) | _levelTxt = HzUI.Label("Level", pill.transform, "", 58, Color.white); _levelTxt.AddOutline(new Color(0.4f, 0.15f, 0, 0.35f), 3); |
StretchCatGame.Hud.cs:149 / void BuildHudLandscape(float W, float H) | _nameTxt = HzUI.Label("Name", pill.transform, "", 32, new Color(1, 1, 1, 0.95f), TextAnchor.MiddleCenter, false); _nameTxt.fontStyle = FontStyle.Bold; |
StretchCatGame.Hud.cs:159 / void BuildHudLandscape(float W, float H) | var rb = HzUI.Button("Restart", _layer, "", Ginger, Color.white, () => { if (CanPlay || _playing) Restart(); }, 40, 36); |
StretchCatGame.Hud.cs:163 / void BuildHudLandscape(float W, float H) | ButtonIconLabel(rb, HzIcons.Replay, "Restart"); |
StretchCatGame.Hud.cs:165 / void BuildHudLandscape(float W, float H) | var sb = HzUI.Button("Settings", _layer, "", Lilac, Color.white, ShowSettingsPopup, 40, 36); |
StretchCatGame.Hud.cs:169 / void BuildHudLandscape(float W, float H) | ButtonIconLabel(sb, HzIcons.Settings, "Settings"); |
StretchCatGame.Hud.cs:171 / void BuildHudLandscape(float W, float H) | var help = HzUI.Label("Help", _layer, "Swipe, drag or use the arrow keys", 32, CardInk, TextAnchor.MiddleCenter, false); |
StretchCatGame.Hud.cs:187 / void ButtonIconLabel(Button b, string icon, string label) | var t = HzUI.Label("L", b.transform, label, 40, Color.white); t.rectTransform.Stretch(); t.rectTransform.offsetMin = new Vector2(80, 0); |
StretchCatGame.Hud.cs:219 / void ProgressCard(Image card, float w, float h) | _leftTxt = HzUI.Label("Left", card.transform, "", tall ? 46 : 42, CardInk, TextAnchor.MiddleLeft); |
StretchCatGame.Hud.cs:223 / void ProgressCard(Image card, float w, float h) | _swipesTxt = HzUI.Label("Swipes", card.transform, "", 30, Sub, TextAnchor.MiddleLeft, false); _swipesTxt.fontStyle = FontStyle.Bold; |
StretchCatGame.Hud.cs:319 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal) | var btn = HzUI.Button("Booster" + b, parent, null, Color.white, Color.white, () => OnBooster(bb), 40, (int)(size * 0.32f)); |
StretchCatGame.Hud.cs:365 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal) | v.BadgeText = HzUI.Label("N", bd.transform, "", (int)(size * 0.24f), Color.white); v.BadgeText.rectTransform.Stretch(); |
StretchCatGame.Hud.cs:369 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal) | v.Caption = HzUI.Label("Cap", v.Root, "", 30, CardInk); |
StretchCatGame.Hud.cs:389 / void RefreshHud() | _nameTxt.text = D.name + " - " + D.room + (D.breather ? " - breather" : ""); |
StretchCatGame.Hud.cs:393 / void RefreshHud() | _leftTxt.text = left == 0 ? "All covered!" : left.ToString(CultureInfo.InvariantCulture) + (left == 1 ? " tile left" : " tiles left"); |
StretchCatGame.Hud.cs:395 / void RefreshHud() | if (_swipesTxt) _swipesTxt.text = "Swipes: " + _moveDir.Count.ToString(CultureInfo.InvariantCulture); |
StretchCatGame.Hud.cs:433 / void RefreshBoosters() | v.BadgeText.text = c > 0 ? c.ToString(CultureInfo.InvariantCulture) : "+"; |
StretchCatGame.Hud.cs:437 / void RefreshBoosters() | v.Caption.text = un ? BoostName[b] : "Level " + BoostUnlock[b].ToString(CultureInfo.InvariantCulture); |
StretchCatGame.Hud.cs:573 / HzPopup ScPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons) | var t = HzUI.Label("Title", ribbon.transform, title, 72, Color.white); t.rectTransform.Stretch(6); |
StretchCatGame.Hud.cs:583 / HzPopup ScPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons) | var st = HzUI.Label("Sub", card.transform, subtitle, 40, GingerDark); st.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(cw - 80, 50), new Vector2(0, y - 25)); |
StretchCatGame.Hud.cs:593 / HzPopup ScPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons) | p.Message = HzUI.Label("Msg", card.transform, message, 44, CardInk, TextAnchor.MiddleCenter, false); |
StretchCatGame.Hud.cs:669 / void UnlockPopup(int b, Action done) | ScPopup("New: " + BoostName[b] + "!", BoostDesc[b] + "\nYou get " + BoostStart[b].ToString(CultureInfo.InvariantCulture) + " free!", HzUI.Hex(BoostColor[b]), ScArt.Get(BoostArt[b]), null, |
StretchCatGame.Hud.cs:685 / void ShowSettingsPopup() | var p = ScPopup("Settings", "", Lilac, null, null, |
StretchCatGame.Hud.cs:691 / void ShowSettingsPopup() | ("How to Play", Mustard, () => HelpPage(0)), |
StretchCatGame.Hud.cs:713 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; | static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; |
StretchCatGame.Hud.cs:715 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; | static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; |
StretchCatGame.Hud.cs:741 / void HelpPage(int i) | ScPopup($"How to Play {i + 1}/{HelpPages.Length}", HelpPages[i], Sky, i == 0 ? ScArt.Get("cat_head") : null, null, |
StretchCatGame.Hud.cs:743 / void HelpPage(int i) | (last ? "Got it" : "Next", Teal, last ? (Action)null : () => HelpPage(i + 1))); |
StretchCatGame.Hud.cs:883 / void ShowTip(string text) | _tipText = HzUI.Label("T", tip.transform, text, IsPortrait ? 38 : 36, Cream, TextAnchor.MiddleCenter, false); |
StretchCatGame.Hud.cs:1029 / void CompleteGuide(int b) | Toast("Nice! " + BoostName[b] + " is yours", Mustard, 1.3f, ToastY); |