Preserve interpolation braces, invariant number formatting, ON/OFF updates and line breaks. Update both initial and refresh paths, portrait and landscape. Exact helper names, unlocks, charges and effects: Resources/sweettapper/Levels/levels.json / boosters. 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 |
|---|
StFx.cs:46 / void Init(RectTransform root) | var t = HzUI.Label("n", root, "", 60, Color.white); t.horizontalOverflow = HorizontalWrapMode.Overflow; |
SweetTapperGame.cs:69 / void RebalancedPopup() => | StPopup("Faster baking!", "Chapters are shorter now and new\nbakers, recipes and helpers unlock\nmuch more often. Your bakery,\nstars and helpers are all kept.", Strawberry, StArt.Get("mascot"), "Bun has news!", ("Let's bake!", Good, null)); |
SweetTapperGame.cs:288 / string BuyModeLabel() => _buyMode == 1 ? "x1" : _buyMode == 10 ? "x10" : "MAX"; | string BuyModeLabel() => _buyMode == 1 ? "x1" : _buyMode == 10 ? "x10" : "MAX"; |
SweetTapperGame.cs:493 / int Arg(int i, int d) => p.Length > i && int.TryParse(p[i], NumberStyles.Integer, Inv, out var v) ? v : d; | $"charges={string.Join(",", Array.ConvertAll(S.charges, x => x.ToString(Inv)))} goldens={S.goldens} tab={_tab} buy={BuyModeLabel()} hint={_hintKey} guide={_guide} " + |
SweetTapperGame.cs:586 / string PopupTitle() | return t ? t.GetComponent<Text>().text.Replace(' ', '_') : "popup"; |
SweetTapperGame.Layout.cs:172 / void BuildCounter(float cx, float cy, float w, float fontPx) | _treatsTxt = HzUI.Label("Treats", grp, "0", (int)fontPx, Color.white); |
SweetTapperGame.Layout.cs:175 / void BuildCounter(float cx, float cy, float w, float fontPx) | _cpsTxt = HzUI.Label("Cps", grp, "", (int)(fontPx * 0.4f), HzUI.Hex("#FFE9C9"), TextAnchor.MiddleCenter, false); |
SweetTapperGame.Layout.cs:196 / void BuildGoalCard(float cx, float cy, float w, float h) | _goalChapterTxt = HzUI.Label("Ch", card.transform, "", (int)(h * 0.2f), Caramel, TextAnchor.MiddleLeft); |
SweetTapperGame.Layout.cs:198 / void BuildGoalCard(float cx, float cy, float w, float h) | _goalTxt = HzUI.Label("Goal", card.transform, "", (int)(h * 0.235f), Ink, TextAnchor.MiddleLeft); |
SweetTapperGame.Layout.cs:209 / void BuildGoalCard(float cx, float cy, float w, float h) | _goalNumTxt = HzUI.Label("Num", card.transform, "", (int)(h * 0.18f), CocoaSoft, TextAnchor.MiddleRight); |
SweetTapperGame.Layout.cs:221 / void BuildPills() | var t = HzUI.Label("T", p.transform, "", 28, Color.white); t.rectTransform.Stretch(4); |
SweetTapperGame.Layout.cs:268 / void BuildHeat(float cx, float cy, float w) | _heatLbl = HzUI.Label("L", bar.transform, "OVEN HEAT", 26, new Color(1, 1, 1, 0.9f)); _heatLbl.rectTransform.Stretch(); |
SweetTapperGame.Layout.cs:289 / void BuildBoosters(float cx, float cy, float w, bool horizontal) | var btn = HzUI.Button("Booster" + b, _layer, null, Color.white, Color.white, () => OnBooster(bb), 40, (int)(size * 0.32f)); |
SweetTapperGame.Layout.cs:313 / void BuildBoosters(float cx, float cy, float w, bool horizontal) | v.BadgeText = HzUI.Label("N", bdg.transform, "", (int)(size * 0.25f), Color.white); v.BadgeText.rectTransform.Stretch(); |
SweetTapperGame.Layout.cs:315 / void BuildBoosters(float cx, float cy, float w, bool horizontal) | v.Caption = HzUI.Label("Cap", v.Root, "", 28, Color.white); |
SweetTapperGame.Layout.cs:333 / void RefreshBoosters() | v.BadgeText.text = _guide == b ? "!" : c > 0 ? c.ToString(Inv) : "+"; |
SweetTapperGame.Layout.cs:352 / void UpdateBoosterTimer(int b) | v.Caption.text = act ? sec.ToString(Inv) + "s" : E.BoosterUnlocked(b) ? bd.name : "Ch. " + bd.unlockChapter.ToString(Inv); |
SweetTapperGame.Layout.cs:370 / void BuildSheet(float x, float y, float w, float h, float pad, bool portrait) | var tb = HzUI.Button("Tab" + t, sheet.transform, TabNames[t], HzUI.Hex(TabColors[t]), Color.white, () => OnTabClick(tt), portrait ? 38 : 36, 30); |
SweetTapperGame.Layout.cs:380 / void BuildSheet(float x, float y, float w, float h, float pad, bool portrait) | var bm = HzUI.Button("BuyMode", sheet.transform, "", Cocoa, Color.white, CycleBuyMode, 40, 30); |
SweetTapperGame.Layout.cs:384 / void BuildSheet(float x, float y, float w, float h, float pad, bool portrait) | var bml = HzUI.Label("Buy", _buyModeBtn, "BUY", 22, HzUI.Hex("#F7D9B9")); bml.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(buyW, 30), new Vector2(0, -16)); |
SweetTapperGame.Layout.cs:385 / void BuildSheet(float x, float y, float w, float h, float pad, bool portrait) | _buyModeTxt = HzUI.Label("Mode", _buyModeBtn, BuyModeLabel(), 40, Color.white); _buyModeTxt.rectTransform.Place(new Vector2(0.5f, 0), new Vector2(buyW, 50), new Vector2(0, 26)); |
SweetTapperGame.Layout.cs:542 / float InfoRow(float y, float w, string text) | var t = HzUI.Label("Info", _content, text, 32, CocoaSoft, TextAnchor.MiddleCenter, false); |
SweetTapperGame.Layout.cs:560 / float InfoRow(float y, float w, string text) | string artName = tab == 0 ? D.producers[idx].art : (D.upgrades[idx].kind == "prod_mult" ? D.producers[Mathf.Clamp(D.upgrades[idx].target, 0, D.producers.Length - 1)].art : D.upgrades[idx].art); |
SweetTapperGame.Layout.cs:574 / float InfoRow(float y, float w, string text) | r.ownedTxt = HzUI.Label("N", ob.transform, "0", 28, Color.white); r.ownedTxt.rectTransform.Stretch(); |
SweetTapperGame.Layout.cs:578 / float InfoRow(float y, float w, string text) | r.name = HzUI.Label("Name", r.rt, "", (int)(h * 0.27f), Ink, TextAnchor.MiddleLeft); |
SweetTapperGame.Layout.cs:581 / float InfoRow(float y, float w, string text) | r.sub = HzUI.Label("Sub", r.rt, "", (int)(h * 0.19f), CocoaSoft, TextAnchor.UpperLeft, false); |
SweetTapperGame.Layout.cs:586 / float InfoRow(float y, float w, string text) | r.btn = HzUI.Button("Buy", r.rt, null, Good, Color.white, () => { if (tt == 0) BuyProducer(ii); else BuyUpgrade(ii); }, 40, 28); |
SweetTapperGame.Layout.cs:591 / float InfoRow(float y, float w, string text) | r.cost = HzUI.Label("Cost", brt, "", 40, Color.white); r.cost.rectTransform.Place(new Vector2(0.5f, 0.5f), new Vector2(btnW - 70, 56), new Vector2(26, -8)); |
SweetTapperGame.Layout.cs:594 / float InfoRow(float y, float w, string text) | r.count = HzUI.Label("Cnt", brt, "", 24, new Color(1, 1, 1, 0.9f)); r.count.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(btnW, 30), new Vector2(0, -16)); |
SweetTapperGame.Layout.cs:616 / void UpdateProducerRow(Row r) | if (!un) { r.name.text = "???"; r.sub.text = "Unlocks in chapter " + p.unlockChapter.ToString(Inv); } |
SweetTapperGame.Layout.cs:625 / void UpdateProducerRow(Row r) | r.sub.text = "+" + StNum.Fmt(E.OutputEach(i), true) + "/s each" + (r.owned > 0 ? " - " + StNum.Fmt(E.ProducerCps(i), true) + "/s" : "\n" + p.desc); |
SweetTapperGame.Layout.cs:627 / void UpdateProducerRow(Row r) | r.count.text = n > 1 ? "BUY x" + n.ToString(Inv) : "BUY"; |
SweetTapperGame.Layout.cs:639 / void UpdateUpgradeRow(Row r) | r.sub.text = StEcon.EffectText(D, x) + (avail ? "" : "\nNeeds: " + E.ReqText(u)); |
SweetTapperGame.Layout.cs:641 / void UpdateUpgradeRow(Row r) | r.count.text = avail ? "LEARN" : "LOCKED"; |
SweetTapperGame.Layout.cs:659 / float BuildGoalsTab(float w) | var t1 = HzUI.Label("Ch", crt, "CHAPTER " + S.chapter.ToString(Inv) + " - " + c.name, 38, Berry, TextAnchor.MiddleLeft); |
SweetTapperGame.Layout.cs:661 / float BuildGoalsTab(float w) | var t2 = HzUI.Label("Story", crt, c.story, 30, Ink, TextAnchor.UpperLeft, false); |
SweetTapperGame.Layout.cs:663 / float BuildGoalsTab(float w) | var t3 = HzUI.Label("Goal", crt, E.GoalText(c), 36, Cocoa, TextAnchor.MiddleLeft); |
SweetTapperGame.Layout.cs:671 / float BuildGoalsTab(float w) | _gNum = HzUI.Label("Num", crt, "", 30, CocoaSoft, TextAnchor.MiddleRight); _gNum.rectTransform.Place(new Vector2(1, 1), new Vector2(240, 40), new Vector2(-24, -218), new Vector2(1, 1)); |
SweetTapperGame.Layout.cs:674 / float BuildGoalsTab(float w) | var t4 = HzUI.Label("Reward", crt, reward, 26, CocoaSoft, TextAnchor.MiddleLeft, false); t4.fontStyle = FontStyle.Bold; |
SweetTapperGame.Layout.cs:691 / float BuildGoalsTab(float w) | var l = HzUI.Label("N", rt, label, 32, done ? CocoaSoft : Ink, TextAnchor.MiddleLeft); l.rectTransform.Place(new Vector2(0, 0.5f), new Vector2(w * 0.5f, 60), new Vector2(90, 0), new Vector2(0, 0.5f)); |
SweetTapperGame.Layout.cs:694 / float BuildGoalsTab(float w) | var g = HzUI.Label("G", rt, done ? "Done!" : E.GoalText(ch), 26, CocoaSoft, TextAnchor.MiddleRight, false); g.fontStyle = FontStyle.Bold; |
SweetTapperGame.Layout.cs:711 / float BuildGoalsTab(float w) | var n = HzUI.Label("N", rt, a.name, 28, got ? Ink : CocoaSoft, TextAnchor.MiddleLeft); n.rectTransform.Place(new Vector2(0, 1), new Vector2(cw - 90, 42), new Vector2(78, -8), new Vector2(0, 1)); |
SweetTapperGame.Layout.cs:713 / float BuildGoalsTab(float w) | var dsc = HzUI.Label("D", rt, a.desc, 22, CocoaSoft, TextAnchor.MiddleLeft, false); dsc.rectTransform.Place(new Vector2(0, 0), new Vector2(cw - 90, 40), new Vector2(78, 8), new Vector2(0, 0)); |
SweetTapperGame.Layout.cs:722 / float Header(float y, float w, string text) | var t = HzUI.Label("H", _content, text, 34, Cocoa, TextAnchor.MiddleLeft); |
SweetTapperGame.Layout.cs:736 / void UpdateGoalsTab() | if (key != _gKey) { _gKey = key; _gNum.text = StNum.Fmt(System.Math.Min(prog, c.value)) + " / " + StNum.Fmt(c.value); } |
SweetTapperGame.Layout.cs:750 / float BuildStarsTab(float w) | _starsTxt = HzUI.Label("N", crt, "", 52, Plum); _starsTxt.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(w - 60, 64), new Vector2(0, -222)); |
SweetTapperGame.Layout.cs:751 / float BuildStarsTab(float w) | _starsSubTxt = HzUI.Label("S", crt, "", 30, HzUI.Hex("#6E5A8A"), TextAnchor.MiddleCenter, false); _starsSubTxt.fontStyle = FontStyle.Bold; |
SweetTapperGame.Layout.cs:753 / float BuildStarsTab(float w) | _reopenGainTxt = HzUI.Label("G", crt, "", 38, Berry); _reopenGainTxt.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(w - 60, 52), new Vector2(0, -338)); |
SweetTapperGame.Layout.cs:754 / float BuildStarsTab(float w) | _nextStarTxt = HzUI.Label("Nx", crt, "", 26, HzUI.Hex("#6E5A8A"), TextAnchor.MiddleCenter, false); _nextStarTxt.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(w - 60, 40), new Vector2(0, -386)); |
SweetTapperGame.Layout.cs:755 / float BuildStarsTab(float w) | var b = HzUI.Button("Reopen", crt, "Grand Reopening", Lilac, Color.white, ShowReopenPopup, 44, 36); |
SweetTapperGame.Layout.cs:758 / float BuildStarsTab(float w) | var info = HzUI.Label("Info", crt, "You keep: chapters, achievements, boosters and your treat.\nStarting over: treats, bakers and recipes.", 24, HzUI.Hex("#6E5A8A"), TextAnchor.MiddleCenter, false); |
SweetTapperGame.Layout.cs:772 / void UpdateStarsTab() | _starsTxt.text = "Bakery Stars: " + S.stars.ToString("#,0", Inv); |
SweetTapperGame.Layout.cs:773 / void UpdateStarsTab() | _starsSubTxt.text = "Each star: +" + Mathf.RoundToInt((float)(D.tuning.starBonus * 100)) + "% taps and production (now +" + StNum.Fmt(S.stars * D.tuning.starBonus * 100) + "%)"; |
SweetTapperGame.Layout.cs:774 / void UpdateStarsTab() | _reopenGainTxt.text = gain > 0 ? "Reopen now for +" + gain.ToString("#,0", Inv) + " stars" : "Bake more to earn stars"; |
SweetTapperGame.Layout.cs:775 / void UpdateStarsTab() | _nextStarTxt.text = "Next star at " + StNum.Fmt(E.NextStarAt) + " treats baked in total (now " + StNum.Fmt(S.allBaked) + ")"; |
SweetTapperGame.Layout.cs:810 / void RefreshCounter(bool force) | if (force || k2 != _cpsKey) { _cpsKey = k2; _cpsTxt.text = cps > 0 ? StNum.Fmt(cps, true) + " treats per second" : "tap the treat to bake!"; } |
SweetTapperGame.Layout.cs:820 / void RefreshGoalCard(bool force) | _goalChapterTxt.text = "CHAPTER " + S.chapter.ToString(Inv) + " - " + c.name.ToUpperInvariant(); |
SweetTapperGame.Layout.cs:828 / void RefreshGoalCard(bool force) | if (key != _goalKey) { _goalKey = key; _goalNumTxt.text = StNum.Fmt(prog) + " / " + StNum.Fmt(c.value); } |
SweetTapperGame.Layout.cs:846 / void RefreshHeat(bool force) | _heatLbl.text = hot ? "HOT STREAK x" + D.tuning.streakMult.ToString("0", Inv) : "OVEN HEAT"; |
SweetTapperGame.Layout.cs:870 / void RefreshPills(bool force) | case 0: img.color = Fire; _pillTxt[i].text = "HOT STREAK " + sec.ToString(Inv) + "s"; break; |
SweetTapperGame.Layout.cs:871 / void RefreshPills(bool force) | case 1: img.color = HzUI.Hex(D.boosters[BRush].color); _pillTxt[i].text = "SUGAR RUSH " + sec.ToString(Inv) + "s"; break; |
SweetTapperGame.Layout.cs:872 / void RefreshPills(bool force) | case 2: img.color = HzUI.Hex("#F2A93C"); _pillTxt[i].text = "FRENZY x" + D.tuning.frenzyMult.ToString("0", Inv) + " " + sec.ToString(Inv) + "s"; break; |
SweetTapperGame.Layout.cs:873 / void RefreshPills(bool force) | case 3: img.color = HzUI.Hex(D.boosters[BBot].color); _pillTxt[i].text = "WHISK BOT " + sec.ToString(Inv) + "s"; break; |
SweetTapperGame.Popups.cs:64 / HzPopup StPopup(string title, string message, Color accent, Sprite art, string subtitle, params (string label, Color color, Action action)[] buttons) | var t = HzUI.Label("Title", ribbon.transform, title, 64, Color.white); t.rectTransform.Stretch(8); |
SweetTapperGame.Popups.cs:70 / HzPopup StPopup(string title, string message, Color accent, Sprite art, string subtitle, params (string label, Color color, Action action)[] buttons) | var st = HzUI.Label("Sub", card.transform, subtitle, 40, Caramel); st.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(cw - 80, 50), new Vector2(0, y - 25)); |
SweetTapperGame.Popups.cs:75 / HzPopup StPopup(string title, string message, Color accent, Sprite art, string subtitle, params (string label, Color color, Action action)[] buttons) | p.Message = HzUI.Label("Msg", card.transform, message, 40, Ink, TextAnchor.MiddleCenter, false); |
SweetTapperGame.Popups.cs:114 / void StartChapter(bool afterComplete) | Enqueue(() => StPopup("Sweet Tapper", "Hi, I'm Bun! Let's turn this little\nkitchen into the sweetest bakery\nin the universe.", Strawberry, StArt.Get("mascot"), "Welcome to the bakery!", ("Let's bake!", Good, null))); |
SweetTapperGame.Popups.cs:149 / void OnChapterComplete(StChapter c, int number, double reward, int prevStage, int prevArea) | StPopup("Chapter " + number + " complete!", string.Join("\n", lines), Strawberry, StArt.Get("mascot"), c.name, ("Next chapter", Good, null)); |
SweetTapperGame.Popups.cs:169 / void EvolvePopup() | StPopup("Your treat evolved!", "Every tap now bakes x" + mult.ToString("0.#", Inv) + " as much!", Caramel, StArt.Get("tap_" + st), D.tuning.stageNames[st], ("Yummy!", Good, null)); |
SweetTapperGame.Popups.cs:184 / void ShowChapterPopup() | StPopup("Chapter " + S.chapter, Wrap(c.story, 34) + "\n\nGoal: " + E.GoalText(c) + "\nReward: " + reward, Caramel, StArt.Get("mascot"), c.name, ("Let's bake!", Good, null)); |
SweetTapperGame.Popups.cs:214 / void UnlockPopup(int b) | StPopup("New helper: " + bd.name + "!", bd.desc + "\nYou get " + bd.freeCharges + " free!", HzUI.Hex(bd.color), StArt.Get(bd.art), null, |
SweetTapperGame.Popups.cs:224 / void OfferCharge(int b) | StPopup("+1 " + bd.name, "Out of " + bd.name + ".\nWatch a short ad for one more?", HzUI.Hex(bd.color), StArt.Get(bd.art), null, |
SweetTapperGame.Popups.cs:238 / void WelcomeBack(double amount, double away, double counted) | StPopup("Welcome back!", "You were away " + StNum.Time(away) + ".\nYour bakers baked\n" + StNum.Fmt(amount) + " treats!" + capped, Caramel, StArt.Get("mascot"), null, |
SweetTapperGame.Popups.cs:258 / void ShowReopenPopup() | StPopup("Grand Reopening?", "Renovate the bakery and earn\n+" + gain.ToString("#,0", Inv) + " Bakery Stars (+" + pct + "% each).\n\nTreats, bakers and recipes start over.\nChapters, achievements, helpers\nand your treat are kept.", |
SweetTapperGame.Popups.cs:281 / void ShowSettingsPopup() | var p = StPopup("Settings", "", Cocoa, null, null, |
SweetTapperGame.Popups.cs:286 / void ShowSettingsPopup() | ("How to Play", Strawberry, () => HelpPage(0)), |
SweetTapperGame.Popups.cs:297 / void ShowSettingsPopup() | parts.onClick.AddListener(() => { bool on = HzSave.GetInt("sweettapper_particles", 1) == 0; HzSave.SetInt("sweettapper_particles", on ? 1 : 0); if (_fx) _fx.Enabled = on; parts.SetText(ParticleLabel()); HzAudio.Play(StSfx.Toggle, 0.6f); }); |
SweetTapperGame.Popups.cs:300 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; | static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; |
SweetTapperGame.Popups.cs:301 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; | static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; |
SweetTapperGame.Popups.cs:302 / static string ParticleLabel() => HzSave.GetInt("sweettapper_particles", 1) == 1 ? "Sprinkles: ON" : "Sprinkles: OFF"; | static string ParticleLabel() => HzSave.GetInt("sweettapper_particles", 1) == 1 ? "Sprinkles: ON" : "Sprinkles: OFF"; |
SweetTapperGame.Popups.cs:317 / void ShowStats() | var p = StPopup("Bakery Stats", s, Caramel, null, null, ("Close", Good, null)); |
SweetTapperGame.Popups.cs:323 / void ConfirmWipe() | StPopup("Wipe save?", "This deletes all progress,\nstars and achievements.", HzUI.Hex("#C0584A"), null, null, |
SweetTapperGame.Popups.cs:331 / void ConfirmWipe() | "Recipes are one-time upgrades\nthat multiply your baking.\nHelpers below the treat give\nshort, sweet boosts.", |
SweetTapperGame.Popups.cs:339 / void HelpPage(int i) | StPopup($"How to Play {i + 1}/{HelpPages.Length}", HelpPages[i], Strawberry, i == 0 ? StArt.Get("mascot") : null, null, |
SweetTapperGame.Popups.cs:340 / void HelpPage(int i) | (last ? "Got it" : "Next", Good, last ? (Action)null : () => HelpPage(i + 1))); |
SweetTapperGame.Popups.cs:357 / void ShowHint(string key, bool resume = false) | case "hire": SetTab(0, false); text = "Hire a Whisk Mouse: bakers bake\ntreats for you every second!"; target = FirstRowButton(); break; |
SweetTapperGame.Popups.cs:374 / void MoveHintToRow() | if (_tipText) _tipText.text = "Learn a recipe to bake faster!"; |
SweetTapperGame.Popups.cs:375 / void MoveHintToRow() | HzTween.Delay(0.05f, () => { if (_hintKey == "upgrades") PointAt(FirstRowButton()); }); |
SweetTapperGame.Popups.cs:404 / void ShowTip(string text) | _tipText = HzUI.Label("T", _tip, text, 34, Ink, TextAnchor.MiddleLeft, false); |