| Scripts/PotionSortGame.Hud.cs:47 / void BuildHeader() | _levelTxt = HzUI.Label("Level", pin.transform, "", 60, Cream); _levelTxt.rectTransform.Stretch(4); |
| Scripts/PotionSortGame.Hud.cs:52 / void BuildHeader() | _nameTxt = HzUI.Label("Name", _col, "", 34, Cream, TextAnchor.MiddleCenter, false); _nameTxt.fontStyle = FontStyle.Bold; _nameTxt.raycastTarget = false; |
| Scripts/PotionSortGame.Hud.cs:65 / void BuildHeader() | _brewTxt = HzUI.Label("Brew", bp.transform, "", 42, Cream, TextAnchor.MiddleLeft); _brewTxt.raycastTarget = false; |
| Scripts/PotionSortGame.Hud.cs:93 / void BuildBoosterBar() | var btn = HzUI.Button("Booster" + b, parent, null, Color.white, Color.white, () => OnBooster(bb), 40, (int)(size * 0.5f)); |
| Scripts/PotionSortGame.Hud.cs:119 / void BuildBoosterBar() | v.BadgeText = HzUI.Label("N", bd.transform, "", (int)(size * 0.25f), Color.white); v.BadgeText.rectTransform.Stretch(); v.BadgeText.raycastTarget = false; |
| Scripts/PotionSortGame.Hud.cs:121 / void BuildBoosterBar() | v.Caption = HzUI.Label("Cap", v.Root, "", 30, Cream); v.Caption.raycastTarget = false; |
| Scripts/PotionSortGame.Hud.cs:134 / void BuildSides(float W, float H, float colW) | var title = HzUI.Label("Title", _layer, "Potion Pour\nSort", 92, GoldC, TextAnchor.MiddleCenter); |
| Scripts/PotionSortGame.Hud.cs:141 / void BuildSides(float W, float H, float colW) | _sideLevel = HzUI.Label("Level", cin.transform, "", 60, Cream); _sideLevel.AddOutline(PanelDeep, 3); |
| Scripts/PotionSortGame.Hud.cs:143 / void BuildSides(float W, float H, float colW) | _sideName = HzUI.Label("Name", cin.transform, "", 36, Sub, TextAnchor.MiddleCenter, false); _sideName.fontStyle = FontStyle.Bold; |
| Scripts/PotionSortGame.Hud.cs:149 / void BuildSides(float W, float H, float colW) | _sideBrew = HzUI.Label("Brew", cin.transform, "", 34, Cream, TextAnchor.MiddleCenter, false); _sideBrew.fontStyle = FontStyle.Bold; |
| Scripts/PotionSortGame.Hud.cs:154 / void BuildSides(float W, float H, float colW) | var how = HzUI.Label("How", tip.transform, "Tap a flask to pick it up,\nthen tap another to pour.\nPour onto the same colour\nor into an empty flask.", 32, Cream, TextAnchor.MiddleCenter, false); |
| Scripts/PotionSortGame.Hud.cs:168 / void BuildSides(float W, float H, float colW) | var bt = HzUI.Label("T", bubble.transform, "One colour per flask!", 44, Ink); bt.rectTransform.Stretch(10); |
| Scripts/PotionSortGame.Hud.cs:169 / void BuildSides(float W, float H, float colW) | var restart = HzUI.Button("Restart", _layer, "Restart", Sky, Color.white, () => { if (!PopupOpen) Retry(); }, 40, 34); |
| Scripts/PotionSortGame.Hud.cs:180 / void RefreshHud() | if (_nameTxt) _nameTxt.text = D.name + (D.breather ? " - breather" : ""); |
| Scripts/PotionSortGame.Hud.cs:183 / void RefreshHud() | if (_sideName) _sideName.text = D.name + (D.breather ? " (breather)" : ""); |
| Scripts/PotionSortGame.Hud.cs:185 / void RefreshHud() | if (_brewTxt) _brewTxt.text = Num(done) + "/" + Num(_startColors); |
| Scripts/PotionSortGame.Hud.cs:186 / void RefreshHud() | if (_sideBrew) _sideBrew.text = "Potions brewed " + Num(done) + "/" + Num(_startColors); |
| Scripts/PotionSortGame.Hud.cs:206 / void RefreshBoosters() | v.BadgeText.text = c > 0 ? Num(c) : "+"; |
| Scripts/PotionSortGame.Hud.cs:208 / void RefreshBoosters() | v.Caption.text = un ? BoostShort[b] : "Lv " + Num(BoostUnlock[b]); |
| Scripts/PotionSortGame.Hud.cs:258 / HzPopup PsPopup(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, 66, Cream); t.rectTransform.Stretch(6); |
| Scripts/PotionSortGame.Hud.cs:263 / HzPopup PsPopup(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, GoldC); st.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(cw - 80, 50), new Vector2(0, y - 25)); |
| Scripts/PotionSortGame.Hud.cs:269 / HzPopup PsPopup(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, 42, Cream, TextAnchor.MiddleCenter, false); |
| Scripts/PotionSortGame.Hud.cs:308 / void UnlockPopup(int b, Action done) | PsPopup("New: " + BoostName[b] + "!", BoostDesc[b] + "\nYou get " + BoostStart[b] + " free!", HzUI.Hex(BoostColor[b]), PsArt.Get(BoostArt[b]), null, |
| Scripts/PotionSortGame.Hud.cs:317 / void ShowSettingsPopup() | var p = PsPopup("Settings", "", Panel, null, null, |
| Scripts/PotionSortGame.Hud.cs:319 / void ShowSettingsPopup() | (MusicLabel(), HzUI.Hex("#8E5BEF"), null), |
| Scripts/PotionSortGame.Hud.cs:331 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; | static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; |
| Scripts/PotionSortGame.Hud.cs:332 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; | static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; |
| Scripts/PotionSortGame.Hud.cs:348 / void HelpPage(int i) | if (last) PsPopup($"How to Play {i + 1}/{HelpPages.Length}", HelpPages[i], Sky, art, null, ("Got it", Mint, (Action)null)); |
| Scripts/PotionSortGame.Hud.cs:349 / void HelpPage(int i) | else PsPopup($"How to Play {i + 1}/{HelpPages.Length}", HelpPages[i], Sky, art, null, ("Next", Mint, () => HelpPage(i + 1)), ("Close", PanelDark, (Action)null)); |
| Scripts/PotionSortGame.Hud.cs:461 / void CompleteGuide(int b) | Say("Nice! " + BoostName[b] + " is yours", GoldC, 1.4f); |
| Scripts/PotionSortGame.View.cs:196 / void LayoutFlasks(bool keepState) | var q = HzUI.Label("Q", l.transform, "?", (int)(_uh * 0.62f), new Color(1, 1, 1, 0.9f)); q.raycastTarget = false; q.rectTransform.Stretch(); |
| Scripts/PotionSortGame.View.cs:241 / void LayoutFlasks(bool keepState) | v.hourTxt = HzUI.Label("N", v.hourBadge.transform, "", (int)(_fw * 0.34f), Color.white); v.hourTxt.raycastTarget = false; v.hourTxt.rectTransform.Stretch(); |
| Scripts/PotionSortGame.View.cs:627 / void BuildStrip() | _stripText = HzUI.Label("T", _stripBg.transform, "", 36, Cream, TextAnchor.MiddleCenter, false); |
| Scripts/PotionSortGame.cs:23 / declarations | public override string Title => "Potion Pour Sort"; |
| Scripts/PotionSortGame.cs:30 / declarations | public static readonly string[] BoostName = { "Rewind", "Spare Flask", "Stir", "Dispel" }; |
| Scripts/PotionSortGame.cs:109 / void ShowIntro() | PsPopup("Welcome, apprentice!", "Help Professor Hoot brew pure potions.\nPour until every flask holds\njust one colour.", Panel, PsArt.Get("mascot"), "Level 1", ("Let's brew!", Mint, (Action)Begin)); |
| Scripts/PotionSortGame.cs:115 / void ShowIntro() | PsPopup($"Level {_playLevel}", D.hint, Panel, HintArt(), D.name, ("Play", Mint, (Action)Begin)); |
| Scripts/PotionSortGame.cs:127 / void ShowIntro() | else if (_playLevel >= 18 && HasLabel()) a = "label"; |
| Scripts/PotionSortGame.cs:173 / void Win() | PsPopup("Brew complete!", msg, Panel, PsArt.Get("win_badge") ?? PsArt.Get("mascot"), D.name, |
| Scripts/PotionSortGame.cs:193 / void Lose() | PsPopup("No moves left!", "The brews are stuck: no flask can\ntake another pour.", Rose, PsArt.Get("mystery"), null, buttons.ToArray()); |
| Scripts/PotionSortGame.cs:405 / void OnBooster(int b) | Say(BoostName[b] + " unlocks at level " + BoostUnlock[b], null, 1.4f); HzAudio.Play(Sfx.Locked, 0.4f); |
| Scripts/PotionSortGame.cs:463 / void OfferCharge(int b) | PsPopup("+1 " + BoostName[b], "Out of " + BoostName[b] + ".\nWatch a short ad for one more?", HzUI.Hex(BoostColor[b]), PsArt.Get(BoostArt[b]), null, |
| Scripts/PotionSortGame.cs:647 / string PopupTitle() | return t ? t.GetComponent<Text>().text.Replace(' ', '_') : "popup"; |