| Scripts/SnowRushGame.UI.cs:134 / void BuildHud() | _levelText = HzUI.Label("Level", _col, "LEVEL " + _playLevel, 88, Color.white); |
| Scripts/SnowRushGame.UI.cs:146 / void BuildHud() | _coinText = HzUI.Label("N", cp.transform, "0", 48, Color.white, TextAnchor.MiddleRight); |
| Scripts/SnowRushGame.UI.cs:167 / void BuildHud() | _rankText = HzUI.Label("Rank", _col, "4th", 58, Color.white); |
| Scripts/SnowRushGame.UI.cs:178 / void BuildHud() | _tipText = HzUI.Label("T", _tipPanel, "", 40, Ink, TextAnchor.MiddleCenter, false); _tipText.fontStyle = FontStyle.Bold; |
| Scripts/SnowRushGame.UI.cs:280 / void BuildSides() | var title = HzUI.Label("Title", left.transform, "Snowball\nRush", 84, Color.white); |
| Scripts/SnowRushGame.UI.cs:284 / void BuildSides() | _sideLevel = HzUI.Label("Lvl", left.transform, "Level " + _playLevel, 60, Ink); |
| Scripts/SnowRushGame.UI.cs:286 / void BuildSides() | var nm = HzUI.Label("Nm", left.transform, _def != null ? _def.name : "", 40, HzUI.Hex("#3D6FA8"), TextAnchor.MiddleCenter, false); nm.fontStyle = FontStyle.Bold; |
| Scripts/SnowRushGame.UI.cs:288 / void BuildSides() | _sideStars = HzUI.Label("Stars", left.transform, "", 40, HzUI.Hex("#E39A1E"), TextAnchor.MiddleCenter, false); _sideStars.fontStyle = FontStyle.Bold; |
| Scripts/SnowRushGame.UI.cs:294 / void BuildSides() | var gt = HzUI.Label("Goal", right.transform, "HOW TO PLAY", 52, Blue); gt.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(cw - 30, 80), new Vector2(0, -24), new Vector2(0.5f, 1)); |
| Scripts/SnowRushGame.UI.cs:295 / void BuildSides() | var gm = HzUI.Label("Msg", right.transform, "Drag (or WASD / arrows)\nto run and roll snow.\nPush into YOUR lane\nto build a bridge.\nBigger balls knock\nsmaller ones over.\nFirst to the finish wins!", 36, Ink, TextAnchor.MiddleCenter, false); |
| Scripts/SnowRushGame.UI.cs:304 / void BuildSides() | v.Btn = HzUI.Button("Booster" + b, parent, null, new Color(1, 1, 1, 0), Color.white, () => OnBooster(id), 40, 44); |
| Scripts/SnowRushGame.UI.cs:325 / void BuildSides() | v.Timer = HzUI.Label("Timer", v.Root, "", 46, Yellow); v.Timer.raycastTarget = false; |
| Scripts/SnowRushGame.UI.cs:333 / void BuildSides() | v.LockText = HzUI.Label("Lv", lockGo, "Lv " + BoostUnlock[b], 36, Color.white); v.LockText.raycastTarget = false; |
| Scripts/SnowRushGame.UI.cs:340 / void BuildSides() | v.BadgeText = HzUI.Label("N", bd.transform, "", 34, Color.white); v.BadgeText.rectTransform.Stretch(); v.BadgeText.raycastTarget = false; |
| Scripts/SnowRushGame.UI.cs:357 / void RefreshBoosters() | v.BadgeText.text = c > 0 ? c.ToString(CultureInfo.InvariantCulture) : "+"; |
| Scripts/SnowRushGame.UI.cs:367 / void UpdateHud(bool punch) | _levelText.text = "LEVEL " + _playLevel; |
| Scripts/SnowRushGame.UI.cs:375 / void UpdateHud(bool punch) | if (_sideLevel) _sideLevel.text = "Level " + _playLevel; |
| Scripts/SnowRushGame.UI.cs:380 / void UpdateHud(bool punch) | _sideStars.text = "Stars: " + total; |
| Scripts/SnowRushGame.UI.cs:399 / void UpdateHudLive(float dt) | _rankText.text = rank == 1 ? "1st" : rank == 2 ? "2nd" : rank == 3 ? "3rd" : "4th"; |
| Scripts/SnowRushGame.UI.cs:455 / void BuildPops() | var t = HzUI.Label("Pop", _labels, "", 64, Color.white); |
| Scripts/SnowRushGame.UI.cs:465 / void BuildPops() | var t = HzUI.Label("Zone" + (i + 1), _labels, "x" + (i + 1), 54, Color.white); |
| Scripts/SnowRushGame.UI.cs:540 / void LevelBanner() | var t = HzUI.Label("L", bg.transform, _def.name, 72, Yellow); t.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(760, 90), new Vector2(0, -8), new Vector2(0.5f, 1)); |
| Scripts/SnowRushGame.UI.cs:543 / void LevelBanner() | var n = HzUI.Label("N", bg.transform, sub, 40, Color.white); n.rectTransform.Place(new Vector2(0.5f, 0), new Vector2(760, 56), new Vector2(0, 12), new Vector2(0.5f, 0)); |
| Scripts/SnowRushGame.UI.cs:583 / void RefreshTutorial() | ShowTip(IsPortrait ? "Drag to run and roll a snowball!" : "Drag (or WASD / arrows) to roll a snowball!", 0); |
| Scripts/SnowRushGame.UI.cs:587 / void RefreshTutorial() | ShowTip("Push into your RED lane to build a bridge!", 0); |
| Scripts/SnowRushGame.UI.cs:591 / void RefreshTutorial() | ShowTip("Keep pushing forward to build!", 0); |
| Scripts/SnowRushGame.UI.cs:595 / void RefreshTutorial() | ShowTip("Almost there! Out of snow? Roll more.", 3f); |
| Scripts/SnowRushGame.UI.cs:599 / void RefreshTutorial() | ShowTip("Bridge done! Run to the finish!", 3f); |
| Scripts/SnowRushGame.UI.cs:617 / void RefreshGuide() | ShowTip("Tap " + BoostName[_guide] + " to try it. This one is free!", 0); |
| Scripts/SnowRushGame.UI.cs:630 / void CompleteGuide(int b) | Toast("Nice! " + BoostName[b] + " is yours", Yellow, 1.3f, 0.66f); |
| Scripts/SnowRushGame.UI.cs:716 / HzPopup SrPopup(string title, string message, Color accent, Sprite art, params (string label, Color color, Action action)[] buttons) | var t = HzUI.Label("Title", ribbon.transform, title, 68, Color.white); t.rectTransform.Stretch(6); |
| Scripts/SnowRushGame.UI.cs:722 / HzPopup SrPopup(string title, string message, Color accent, Sprite art, params (string label, Color color, Action action)[] buttons) | p.Message = HzUI.Label("Msg", card.transform, message, 42, Ink, TextAnchor.MiddleCenter, false); |
| Scripts/SnowRushGame.UI.cs:771 / string TopPopupTitle() | return r ? r.GetComponent<Text>().text : "popup"; |
| Scripts/SnowRushGame.UI.cs:807 / void UnlockPopup(int b, Action done) | SrPopup("New: " + BoostName[b] + "!", BoostDesc[b] + "\nYou get " + BoostStart[b] + " for free!", Purple, Art(BoostArt[b]), ("Try it!", Lime, done)); |
| Scripts/SnowRushGame.UI.cs:813 / void ShowSettingsPopup() | var p = SrPopup("Settings", "", Blue, null, |
| Scripts/SnowRushGame.UI.cs:842 / void ShowHowToPage(int page) | SrPopup(HowTitle[page] + " " + (page + 1) + "/" + HowTitle.Length, HowText[page], Purple, Art(HowArt[page]), |
| Scripts/SnowRushGame.UI.cs:846 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; | static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; |
| Scripts/SnowRushGame.UI.cs:847 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; | static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; |
| Scripts/SnowRushGame.cs:19 / declarations | public override string Title => "Snowball Rush"; |
| Scripts/SnowRushGame.cs:26 / declarations | static readonly string[] BoostName = { "Snow Boost", "Speed Skates", "Ice Shield", "Snow Cannon" }; |
| Scripts/SnowRushGame.cs:142 / void IntroFlow(bool restart) | _intro.Add(() => SrPopup("Level " + _playLevel, "Roll snow, build your bridge\nand beat the others to the finish!", Blue, Art("howto_roll"), |
| Scripts/SnowRushGame.cs:153 / void IntroFlow(bool restart) | UnlockPopup(id, () => { if (HzSave.GetInt("snowrush_guided" + id, 0) == 0) StartGuide(id); else NextIntro(); }); |
| Scripts/SnowRushGame.cs:165 / void IntroFlow(bool restart) | SrPopup(mm.Title, mm.Text, Blue, Art(mm.Art), ("Got it!", Lime, (Action)NextIntro)); |
| Scripts/SnowRushGame.cs:251 / void HandleEvents() | if (shown < 3 || _tutStep > 0) { HzSave.SetInt("snowrush_nosnowtip", shown + 1); ShowTip("Out of snow! Go back and roll more.", 2.6f); } |
| Scripts/SnowRushGame.cs:287 / void OnKnock(int victim, int pusher) | ShowTip("Bumped! A bigger ball knocked you over.", 2.2f); |
| Scripts/SnowRushGame.cs:301 / void OnGift() | SrPopup("Snow Gift", "Watch an ad to fill\nyour snowball!", Blue, Art("gift"), |
| Scripts/SnowRushGame.cs:306 / void OnGift() | if (ok && _w != null && !_ended) { _w.ClaimGift(); HzAudio.Play(Sfx.GiftClaim, 0.8f); PunchBall(); Toast("Snowball full!", Yellow, 1.2f, 0.62f); } |
| Scripts/SnowRushGame.cs:330 / void OnFinish(int racer) | Toast(RacerName(winner) + " got there first!", Color.white, 1.6f, 0.62f); |
| Scripts/SnowRushGame.cs:334 / void OnFinish(int racer) | var p = SrPopup("FAIL", RacerName(winner) + " won this race.\nRoll bigger balls and dodge\nthe bumps. Try again!", FailBlue, null, |
| Scripts/SnowRushGame.cs:345 / void OnFinish(int racer) | if (_tutStep > 0) { _tutStep = 6; ShowTip("Throw! A bigger ball rolls farther.", 2.4f); } |
| Scripts/SnowRushGame.cs:368 / void WinPopup(int zone, int coins, int stars) | var p = SrPopup("VICTORY!", "x" + zone + " zone +" + coins + " coins", VictoryRed, Art("win_badge"), |
| Scripts/SnowRushGame.cs:374 / void WinPopup(int zone, int coins, int stars) | if (ok) { Wallet += coins; HzAudio.Play(Sfx.Coin, 0.8f); Toast("+" + coins + " coins!", Yellow, 1.3f, 0.62f); } |
| Scripts/SnowRushGame.cs:391 / void OnBooster(int b) | if (!Unlocked(b)) { HzAudio.Play(Sfx.Wrong, 0.5f); Toast(BoostName[b] + " unlocks at level " + BoostUnlock[b], null, 1.4f, 0.62f); return; } |
| Scripts/SnowRushGame.cs:398 / void OnBooster(int b) | if (p.Ball >= 0.999) { Toast("Your snowball is already full!", null, 1.2f, 0.62f); return; } |
| Scripts/SnowRushGame.cs:402 / void OnBooster(int b) | if (_w.SkatesT > 0) { Toast("Skates are already on!", null, 1.2f, 0.62f); return; } |
| Scripts/SnowRushGame.cs:406 / void OnBooster(int b) | if (_w.ShieldT > 0) { Toast("Shield is already up!", null, 1.2f, 0.62f); return; } |
| Scripts/SnowRushGame.cs:410 / void OnBooster(int b) | if (!_w.BoostCannon()) { Toast("No lane left to build!", null, 1.2f, 0.62f); return; } |
| Scripts/SnowRushGame.cs:436 / void OutOfCharges(int b) | if (ok) { SetCharges(b, Charges(b) + 1); HzAudio.Play(Sfx.Unlock, 0.6f); RefreshBoosters(); Toast("+1 " + BoostName[b], Yellow, 1.2f, 0.62f); } |
| Scripts/SnowRushGame.cs:441 / void OutOfCharges(int b) | SrPopup("Out of " + BoostName[b], BoostDesc[b] + "\nYou have " + Wallet + " coins.", Blue, Art(BoostArt[b]), list.ToArray()); |
| Scripts/SnowRushGame.cs:539 / int Arg(int i, int d) => parts.Length > i && int.TryParse(parts[i], NumberStyles.Integer, ci, out var v) ? v : d; | case "settings": ShowSettingsPopup(); return "ok"; |