Preserve interpolation braces, invariant number formatting, ON/OFF updates and line breaks. Update both initial and refresh paths, portrait and landscape. Exact names/unlocks/free charges: Scripts/BubbleBlitzGame.cs; effect/help strings: Scripts/BubbleBlitzGame.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 |
|---|
BbArt.cs:20 / class/static declarations | public static readonly string[] DropName = { "cherry", "tangerine", "lemon", "mint", "sky", "cobalt", "grape", "bubblegum" }; |
BbArt.cs:28 / public static Color DropColor(int c) => c >= 0 && c < Drop.Length ? Drop[c] : Color.white; | new SkyTheme { Name = "Dusk", Top = HzUI.Hex("#2B2466"), Bottom = HzUI.Hex("#5B3F94"), Tint = new Color(0.55f, 0.35f, 0.9f, 0.10f), Arena = new Color(0.08f, 0.06f, 0.22f, 0.55f) }, |
BbArt.cs:29 / public static Color DropColor(int c) => c >= 0 && c < Drop.Length ? Drop[c] : Color.white; | new SkyTheme { Name = "Midnight", Top = HzUI.Hex("#141238"), Bottom = HzUI.Hex("#2C2A6E"), Tint = new Color(0.1f, 0.12f, 0.4f, 0.30f), Arena = new Color(0.04f, 0.04f, 0.16f, 0.6f) }, |
BbArt.cs:30 / public static Color DropColor(int c) => c >= 0 && c < Drop.Length ? Drop[c] : Color.white; | new SkyTheme { Name = "Aurora", Top = HzUI.Hex("#13324F"), Bottom = HzUI.Hex("#2E6E73"), Tint = new Color(0.2f, 0.85f, 0.7f, 0.16f), Arena = new Color(0.03f, 0.12f, 0.16f, 0.55f) }, |
BbArt.cs:31 / public static Color DropColor(int c) => c >= 0 && c < Drop.Length ? Drop[c] : Color.white; | new SkyTheme { Name = "Dawn", Top = HzUI.Hex("#3C2E6E"), Bottom = HzUI.Hex("#C9688C"), Tint = new Color(1f, 0.55f, 0.6f, 0.16f), Arena = new Color(0.14f, 0.06f, 0.2f, 0.5f) }, |
BbArt.cs:32 / public static Color DropColor(int c) => c >= 0 && c < Drop.Length ? Drop[c] : Color.white; | new SkyTheme { Name = "Sunset", Top = HzUI.Hex("#3A1E5C"), Bottom = HzUI.Hex("#E0794A"), Tint = new Color(1f, 0.55f, 0.25f, 0.18f), Arena = new Color(0.16f, 0.06f, 0.14f, 0.5f) }, |
BubbleBlitzGame.cs:30 / class/static declarations | public static readonly string[] BoostName = { "Swap", "Laser Sight", "Thunder Bomb", "Prism" }; |
BubbleBlitzGame.cs:120 / void ShowLevelCard() | var p = BbPopup(LevelLabel(), msg, Violet, LevelCardArt(), D.name + " - " + D.sky + " sky", ("Play", Mint, (Action)Begin)); |
BubbleBlitzGame.cs:124 / string LevelLabel() => (BbLevels.IsGenerated(_playLevel) ? "Storm " : "Level ") + _playLevel.ToString(CultureInfo.InvariantCulture); | string LevelLabel() => (BbLevels.IsGenerated(_playLevel) ? "Storm " : "Level ") + _playLevel.ToString(CultureInfo.InvariantCulture); |
BubbleBlitzGame.cs:215 / void Lose(BbOutcome why) | BbPopup(title, msg, Cherry, BbArt.Get("volt"), null, buttons.ToArray()); |
BubbleBlitzGame.cs:231 / void SecondWind() | Toast("Whoosh! A second wind!", Gold, 1.3f, ToastY); |
BubbleBlitzGame.cs:242 / void ExtraShots() | Toast("+5 shots!", Gold, 1.2f, ToastY); |
BubbleBlitzGame.cs:392 / void OnBooster(int b) | Toast(BoostName[b] + " unlocks at level " + BoostUnlock[b].ToString(CultureInfo.InvariantCulture), null, 1.3f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); |
BubbleBlitzGame.cs:409 / void OnBooster(int b) | if (S.Current == S.Next) { Toast("Both drops are the same colour", null, 1.1f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; } |
BubbleBlitzGame.cs:415 / void OnBooster(int b) | if (_laserShots > 0) { Toast("Laser Sight is already on", null, 1.1f, ToastY); return; } |
BubbleBlitzGame.cs:418 / void OnBooster(int b) | Toast("Laser Sight: 3 shots", Mint, 1.2f, ToastY); |
BubbleBlitzGame.cs:424 / void OnBooster(int b) | else Toast("Thunder Bomb loaded - aim at a crowd!", Gold, 1.4f, ToastY); |
BubbleBlitzGame.cs:427 / void OnBooster(int b) | if (S.Current == BbBoard.Prism) { Toast("A prism is already loaded", null, 1.1f, ToastY); return; } |
BubbleBlitzGame.cs:445 / void OfferCharge(int b) | BbPopup("+1 " + BoostName[b], "Out of " + BoostName[b] + ".\nWatch a short ad for one more?", HzUI.Hex(BoostColor[b]), BbArt.Get(BoostArt[b]), null, |
BubbleBlitzGame.cs:564 / string PopupTitle() | return t ? t.GetComponent<Text>().text.Replace(' ', '_') : "popup"; |
BubbleBlitzGame.Hud.cs:62 / void BuildHudLandscape(float W, float H) | var title = HzUI.Label("Title", _layer, "Bubble\nBurst Bay", 58, Gold, TextAnchor.MiddleLeft); |
BubbleBlitzGame.Hud.cs:71 / void BuildHudLandscape(float W, float H) | var rb = HzUI.Button("Restart", _layer, "", GoldDark, Color.white, () => { if (_playing && !_busy) Restart(); }, 40, 36); |
BubbleBlitzGame.Hud.cs:73 / void BuildHudLandscape(float W, float H) | ButtonIconLabel(rb, HzIcons.Replay, "Restart"); |
BubbleBlitzGame.Hud.cs:74 / void BuildHudLandscape(float W, float H) | var sb = HzUI.Button("Settings", _layer, "", Violet, Color.white, ShowSettingsPopup, 40, 36); |
BubbleBlitzGame.Hud.cs:76 / void BuildHudLandscape(float W, float H) | ButtonIconLabel(sb, HzIcons.Settings, "Settings"); |
BubbleBlitzGame.Hud.cs:77 / void BuildHudLandscape(float W, float H) | var help = HzUI.Label("Help", _layer, "Aim with the mouse, click to fire\nSpace fires, Q swaps", 30, Cloud, TextAnchor.MiddleCenter, false); |
BubbleBlitzGame.Hud.cs:84 / void LevelPillText(Image pill) | _levelTxt = HzUI.Label("Level", pill.transform, "", 58, Color.white); _levelTxt.AddOutline(new Color(0.1f, 0.05f, 0.3f, 0.45f), 3); |
BubbleBlitzGame.Hud.cs:86 / void LevelPillText(Image pill) | _nameTxt = HzUI.Label("Name", pill.transform, "", 32, new Color(1, 1, 1, 0.95f), TextAnchor.MiddleCenter, false); _nameTxt.fontStyle = FontStyle.Bold; |
BubbleBlitzGame.Hud.cs:93 / 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); |
BubbleBlitzGame.Hud.cs:114 / void GoalCard(Image card, float w, float h) | _goalNum = HzUI.Label("GoalNum", card.transform, "", 44, Ink, TextAnchor.MiddleLeft); |
BubbleBlitzGame.Hud.cs:117 / void GoalCard(Image card, float w, float h) | _goalTxt = HzUI.Label("Goal", card.transform, "", 26, Sub, TextAnchor.MiddleLeft, false); _goalTxt.fontStyle = FontStyle.Bold; |
BubbleBlitzGame.Hud.cs:126 / void GoalCard(Image card, float w, float h) | _scoreTxt = HzUI.Label("Score", card.transform, "", 26, Sub, TextAnchor.MiddleRight, false); _scoreTxt.fontStyle = FontStyle.Bold; |
BubbleBlitzGame.Hud.cs:130 / void GoalCard(Image card, float w, float h) | _stormTxt = HzUI.Label("Storm", card.transform, "", tall ? 30 : 28, Cherry, TextAnchor.MiddleCenter, false); _stormTxt.fontStyle = FontStyle.Bold; |
BubbleBlitzGame.Hud.cs:161 / 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)); |
BubbleBlitzGame.Hud.cs:184 / 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(); |
BubbleBlitzGame.Hud.cs:186 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal) | v.Caption = HzUI.Label("Cap", v.Root, "", 30, Ink); |
BubbleBlitzGame.Hud.cs:196 / void RefreshHud() | _nameTxt.text = D.name + (D.breather ? " - breather" : ""); |
BubbleBlitzGame.Hud.cs:199 / void RefreshHud() | _goalNum.text = $"{S.ChicksFreed.ToString(CultureInfo.InvariantCulture)}/{S.ChicksTotal.ToString(CultureInfo.InvariantCulture)} chicks"; |
BubbleBlitzGame.Hud.cs:200 / void RefreshHud() | _goalTxt.text = "Free the chicks"; |
BubbleBlitzGame.Hud.cs:205 / void RefreshHud() | _goalNum.text = on == 0 ? "Sky clear!" : on.ToString(CultureInfo.InvariantCulture) + (on == 1 ? " wall left" : " walls left"); |
BubbleBlitzGame.Hud.cs:206 / void RefreshHud() | _goalTxt.text = "Empty the outer lines"; |
BubbleBlitzGame.Hud.cs:208 / void RefreshHud() | _scoreTxt.text = "Score " + S.Score.ToString(CultureInfo.InvariantCulture); |
BubbleBlitzGame.Hud.cs:236 / void RefreshBoosters() | v.BadgeText.text = c > 0 ? c.ToString(CultureInfo.InvariantCulture) : "+"; |
BubbleBlitzGame.Hud.cs:238 / void RefreshBoosters() | v.Caption.text = un ? BoostName[b] : "Level " + BoostUnlock[b].ToString(CultureInfo.InvariantCulture); |
BubbleBlitzGame.Hud.cs:306 / HzPopup BbPopupFull(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); |
BubbleBlitzGame.Hud.cs:311 / HzPopup BbPopupFull(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, Violet); st.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(cw - 80, 50), new Vector2(0, y - 25)); |
BubbleBlitzGame.Hud.cs:316 / HzPopup BbPopupFull(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, Ink, TextAnchor.MiddleCenter, false); |
BubbleBlitzGame.Hud.cs:351 / void UnlockPopup(int b, Action done) | BbPopup("New: " + BoostName[b] + "!", BoostDesc[b] + "\nYou get " + BoostStart[b].ToString(CultureInfo.InvariantCulture) + " free!", HzUI.Hex(BoostColor[b]), BbArt.Get(BoostArt[b]), null, |
BubbleBlitzGame.Hud.cs:359 / void ShowSettingsPopup() | var p = BbPopup("Settings", "", Violet, null, null, |
BubbleBlitzGame.Hud.cs:362 / void ShowSettingsPopup() | ("How to Play", GoldDark, () => HelpPage(0)), |
BubbleBlitzGame.Hud.cs:373 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; | static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; |
BubbleBlitzGame.Hud.cs:374 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; | static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; |
BubbleBlitzGame.Hud.cs:387 / void HelpPage(int i) | BbPopup($"How to Play {i + 1}/{HelpPages.Length}", HelpPages[i], Sky, i == 0 ? BbArt.Get("volt") : null, null, |
BubbleBlitzGame.Hud.cs:388 / void HelpPage(int i) | (last ? "Got it" : "Next", Mint, last ? (Action)null : () => HelpPage(i + 1))); |
BubbleBlitzGame.Hud.cs:451 / void ShowTip(string text) | _tipText = HzUI.Label("T", tip.transform, text, IsPortrait ? 38 : 32, Cloud, TextAnchor.MiddleCenter, false); |
BubbleBlitzGame.Hud.cs:513 / void CompleteGuide(int b) | Toast("Nice! " + BoostName[b] + " is yours", Gold, 1.3f, ToastY); |
BubbleBlitzGame.View.cs:466 / void BuildFxPool() | var t = HzUI.Label("Float", _fxRt, "", (int)Mathf.Max(30, _cs * 0.62f), Gold); t.AddOutline(Ink, 3); |
BubbleBlitzGame.View.cs:570 / void EffectsFor(BbEvents ev, bool quiet) | if (ev.RingFull) { HzTween.Delay(this, 0.3f, () => HzAudio.Play(Sfx.RingFull, 0.7f)); HzTween.Punch(_cannonRt, 0.25f, 0.4f); Toast("Prism drop ready!", Gold, 1.1f, ToastY); } |
BubbleBlitzGame.View.cs:574 / void EffectsFor(BbEvents ev, bool quiet) | if (S.B.ActiveWalls() > 0 || D.Rescue) Toast(BbBoard.WallNames[w] + " wall cleared!", Gold, 1.1f, ToastY); |
BubbleBlitzGame.View.cs:600 / void PushAnim() | Toast("The storm pushes in!", Cherry, 1.0f, ToastY); |