| Scripts/PaperTurfGame.Hud.cs:47 / void BuildHud() | _levelTxt = HzUI.Label("Level", pill.transform, "", 50, Color.white); _levelTxt.AddOutline(new Color(0.4f, 0.1f, 0.15f, 0.35f), 3); |
| Scripts/PaperTurfGame.Hud.cs:49 / void BuildHud() | _nameTxt = HzUI.Label("Name", pill.transform, "", 28, new Color(1, 1, 1, 0.95f), TextAnchor.MiddleCenter, false); _nameTxt.fontStyle = FontStyle.Bold; |
| Scripts/PaperTurfGame.Hud.cs:54 / void BuildHud() | _timerTxt = HzUI.Label("Time", _timerCard.transform, "", 60, Navy); _timerTxt.rectTransform.Stretch(); _timerTxt.rectTransform.offsetMin = new Vector2(70, 0); |
| Scripts/PaperTurfGame.Hud.cs:77 / void BuildHud() | _pctTxt = HzUI.Label("Pct", bar.transform, "0%", 50, Color.white); _pctTxt.AddOutline(new Color(0.05f, 0.05f, 0.2f, 0.6f), 3); |
| Scripts/PaperTurfGame.Hud.cs:79 / void BuildHud() | _goalTxt = HzUI.Label("Goal", col, "", 30, Navy, TextAnchor.MiddleCenter, false); _goalTxt.fontStyle = FontStyle.Bold; |
| Scripts/PaperTurfGame.Hud.cs:93 / void BuildHud() | _bannerTxt = HzUI.Label("Banner", IsPortrait ? col : _layer, "", IsPortrait ? 66 : 64, Color.white); |
| Scripts/PaperTurfGame.Hud.cs:112 / void BuildSidePanels() | var title = HzUI.Label("Title", _layer, "Paper Turf", 92, Color.white); title.AddOutline(Navy, 5); title.AddShadow(new Color(0.2f, 0.1f, 0.3f, 0.4f), 8); |
| Scripts/PaperTurfGame.Hud.cs:116 / void BuildSidePanels() | var lt = HzUI.Label("Lv", lvCard.transform, "", 56, Coral); lt.rectTransform.Stretch(); lt.rectTransform.offsetMin = new Vector2(0, 70); |
| Scripts/PaperTurfGame.Hud.cs:117 / void BuildSidePanels() | var nt = HzUI.Label("Nm", lvCard.transform, "", 36, Navy, TextAnchor.MiddleCenter, false); nt.fontStyle = FontStyle.Bold; |
| Scripts/PaperTurfGame.Hud.cs:123 / void BuildSidePanels() | var bt = HzUI.Label("T", board.transform, "Leaderboard", 46, Color.white); bt.AddOutline(new Color(0.05f, 0.1f, 0.3f, 0.5f), 3); |
| Scripts/PaperTurfGame.Hud.cs:126 / void BuildSidePanels() | var skins = HzUI.Button("Skins", _layer, "Critters", Grape, Color.white, ShowSkins, 46, 36); |
| Scripts/PaperTurfGame.Hud.cs:154 / void BuildSidePanels() | s.rank = HzUI.Label("R", s.medal.transform, "1", (int)(m * (row ? 0.48f : 0.4f)), Color.white); s.rank.rectTransform.Stretch(); s.rank.AddOutline(new Color(0, 0, 0, 0.2f), 2); |
| Scripts/PaperTurfGame.Hud.cs:159 / void BuildSidePanels() | s.name = HzUI.Label("N", s.rt, "", (int)(h * 0.42f), Navy, TextAnchor.MiddleLeft); |
| Scripts/PaperTurfGame.Hud.cs:162 / void BuildSidePanels() | s.pct = HzUI.Label("P", s.rt, "", (int)(h * (row ? 0.46f : 0.42f)), Navy, TextAnchor.MiddleRight); |
| Scripts/PaperTurfGame.Hud.cs:183 / void BoosterTray(RectTransform parent, float cx, float cy, float w, float h) | var btn = HzUI.Button("Booster" + b, tray, null, HzUI.Hex(BoostColor[b]), Color.white, () => OnBooster(bb), 40, (int)(d / 2)); |
| Scripts/PaperTurfGame.Hud.cs:202 / void BoosterTray(RectTransform parent, float cx, float cy, float w, float h) | v.BadgeText = HzUI.Label("N", badge.transform, "", 36, Color.white); v.BadgeText.rectTransform.Stretch(); |
| Scripts/PaperTurfGame.Hud.cs:204 / void BoosterTray(RectTransform parent, float cx, float cy, float w, float h) | v.Caption = HzUI.Label("Cap", tray, "", 30, Color.white, TextAnchor.MiddleCenter, false); v.Caption.fontStyle = FontStyle.Bold; |
| Scripts/PaperTurfGame.Hud.cs:217 / void RefreshBoosters() | v.Caption.text = un ? BoostName[b] : "Level " + BoostUnlock[b].ToString(CultureInfo.InvariantCulture); |
| Scripts/PaperTurfGame.Hud.cs:223 / void RefreshBoosters() | v.BadgeText.text = _guide == b ? "FREE" : n > 0 ? n.ToString(CultureInfo.InvariantCulture) : "+"; |
| Scripts/PaperTurfGame.Hud.cs:237 / void RefreshHud() | if (_sideLevel) { _sideLevel.text = "Level " + _playLevel.ToString(CultureInfo.InvariantCulture); _sideName.text = L.name; } |
| Scripts/PaperTurfGame.Hud.cs:240 / void RefreshHud() | _goalTxt.text = "Goal: claim " + L.goal.ToString(CultureInfo.InvariantCulture) + "% of the sheet"; |
| Scripts/PaperTurfGame.Hud.cs:264 / void RefreshProgress() | _pctTxt.text = Mathf.FloorToInt((float)pct).ToString(CultureInfo.InvariantCulture) + "%"; |
| Scripts/PaperTurfGame.Hud.cs:300 / void FillSlots(LbSlot[] slots, int n) | sl.pct.text = Mathf.FloorToInt((float)S.Pct(a)).ToString(CultureInfo.InvariantCulture) + "%"; |
| Scripts/PaperTurfGame.Hud.cs:303 / void FillSlots(LbSlot[] slots, int n) | if (sl.name) sl.name.text = a == 0 ? "You" : AgentName(a); |
| Scripts/PaperTurfGame.Hud.cs:360 / void ShowTip(string text, bool pulse) | _tipText = HzUI.Label("T", tip.transform, text, IsPortrait ? (lines > 1 ? 34 : 38) : 40, Navy, TextAnchor.MiddleCenter, false); |
| Scripts/PaperTurfGame.Hud.cs:394 / void ShowTutorialStep() | case 0: ShowTip(IsPortrait ? "Drag anywhere to steer your critter!" : "Drag anywhere (or use the arrow keys)\nto steer your critter!", true); MakeHand(); break; |
| Scripts/PaperTurfGame.Hud.cs:395 / void ShowTutorialStep() | case 1: ShowTip("Head out of your land to draw a line!", false); MakeHand(); break; |
| Scripts/PaperTurfGame.Hud.cs:396 / void ShowTutorialStep() | case 2: ShowTip("Now steer back to your land\nto claim everything inside the loop!", false); MakeHand(); break; |
| Scripts/PaperTurfGame.Hud.cs:399 / void ShowTutorialStep() | ShowTip($"Great! Claim {L.goal}% of the sheet\nbefore the timer runs out.", false); |
| Scripts/PaperTurfGame.Hud.cs:403 / void ShowTutorialStep() | ShowTip("Keep loops small and safe:\ncrossing your own line knocks you out!", false); |
| Scripts/PaperTurfGame.Hud.cs:505 / void CompleteGuide(int b) | Toast("Nice! " + BoostName[b] + " is yours", Gold, 1.3f, 0.8f); |
| Scripts/PaperTurfGame.Hud.cs:581 / HzPopup PtPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons, float extraH = 0) | var t = HzUI.Label("Title", ribbon.transform, title, 70, Color.white); t.rectTransform.Stretch(6); |
| Scripts/PaperTurfGame.Hud.cs:586 / HzPopup PtPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons, float extraH = 0) | var st = HzUI.Label("Sub", card.transform, subtitle, 40, Coral); st.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(cw - 80, 54), new Vector2(0, y - 27)); |
| Scripts/PaperTurfGame.Hud.cs:591 / HzPopup PtPopupFull(string title, string message, Color accent, Sprite art, string subtitle, int stars, (string label, Color color, Action action)[] buttons, float extraH = 0) | p.Message = HzUI.Label("Msg", card.transform, message, 42, Ink, TextAnchor.MiddleCenter, false); |
| Scripts/PaperTurfGame.Hud.cs:629 / void UnlockPopup(int b, Action done) | PtPopup("New: " + BoostName[b] + "!", BoostDesc[b] + "\nYou get " + BoostStart[b] + " free!", HzUI.Hex(BoostColor[b]), PtArt.Get(BoostArt[b]), null, |
| Scripts/PaperTurfGame.Hud.cs:638 / void SkinUnlockPopup(int i, Action done) | PtPopup("New Critter!", CritterName[i] + " wants to play.\nWear it now?", CritterCol(i), PtArt.Get(CritterArt[i]), null, |
| Scripts/PaperTurfGame.Hud.cs:655 / void ShowSkins() | var cell = HzUI.Button("Skin" + i, p.Card, null, i == Skin ? HzUI.Hex("#FFF3C4") : Color.white, Navy, () => |
| Scripts/PaperTurfGame.Hud.cs:657 / void ShowSkins() | if (!SkinUnlocked(ii)) { HzAudio.Play(PtSfx.Locked, 0.5f); Toast(CritterName[ii] + " joins at level " + CritterUnlock[ii], null, 1.3f, 0.8f); return; } |
| Scripts/PaperTurfGame.Hud.cs:665 / void ShowSkins() | var nm = HzUI.Label("N", rt, un ? CritterName[i] : "Level " + CritterUnlock[i].ToString(CultureInfo.InvariantCulture), 32, un ? CritterCol(i) : Sub); |
| Scripts/PaperTurfGame.Hud.cs:679 / void ShowSettingsPopup() | var p = PtPopup("Settings", "", Navy, null, null, |
| Scripts/PaperTurfGame.Hud.cs:693 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; | static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; |
| Scripts/PaperTurfGame.Hud.cs:694 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; | static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; |
| Scripts/PaperTurfGame.Hud.cs:708 / void HelpPage(int i) | PtPopup($"How to Play {i + 1}/{HelpPages.Length}", HelpPages[i], Sky, null, null, |
| Scripts/PaperTurfGame.View.cs:223 / void BuildBoard() | _floats[i] = HzUI.Label("Float", _fxLayer, "", Mathf.RoundToInt(Mathf.Clamp(_cs * 0.9f, 34, 54)), Gold); |
| Scripts/PaperTurfGame.View.cs:254 / void BuildBoard() | v.tagText = HzUI.Label("T", tag.transform, i == 0 ? "YOU" : AgentName(i), Mathf.RoundToInt(Mathf.Max(20, sz * 0.2f)), i == 0 ? Color.white : AgentColor(i)); |
| Scripts/PaperTurfGame.cs:23 / declarations | public override string Title => "Paper Turf"; |
| Scripts/PaperTurfGame.cs:30 / declarations | public static readonly string[] BoostName = { "Ink Bomb", "Bubble", "Dash", "Freeze" }; |
| Scripts/PaperTurfGame.cs:88 / void StartLevel() | ShowTip("Folding a fresh sheet...", false); |
| Scripts/PaperTurfGame.cs:147 / void ShowPreLevel() | var p = PtPopup($"Level {_playLevel}", msg, Navy, art, L.name + (L.breather ? " (breather)" : ""), ("Play", Mint, (Action)Begin)); |
| Scripts/PaperTurfGame.cs:172 / void Begin() | ShowTip(IsPortrait ? "Drag anywhere to steer" : "Drag (or use the arrow keys) to steer", true); |
| Scripts/PaperTurfGame.cs:243 / void GameOver() | HzTween.Delay(0.9f, () => PtPopup(timeUp ? "Time's Up!" : "Knocked Out!", why, Red, PtArt.Get(CritterArt[Skin]), null, buttons.ToArray())); |
| Scripts/PaperTurfGame.cs:253 / void Rescue() | Toast("Back in the game! Shielded for 3 seconds", Gold, 1.6f, 0.8f); |
| Scripts/PaperTurfGame.cs:254 / void Rescue() | ShowTip("Drag to continue", true); |
| Scripts/PaperTurfGame.cs:332 / void HandleEvents() | if (_tutStep >= 0 || (_playLevel == 2 && _knocks == 1)) ShowTipTimed("Nice! Their land is blank paper again.", 2.2f); |
| Scripts/PaperTurfGame.cs:359 / void HandleEvents() | if (_tutStep >= 0) ShowTipTimed("Careful! Crossing your own line knocks you out\n(the tutorial forgives you this time).", 3f); |
| Scripts/PaperTurfGame.cs:438 / void OnBooster(int b) | Toast(BoostName[b] + " unlocks at level " + BoostUnlock[b], null, 1.4f, 0.8f); HzAudio.Play(PtSfx.Locked, 0.4f); |
| Scripts/PaperTurfGame.cs:469 / void OfferCharge(int b) | PtPopup("+1 " + BoostName[b], "Out of " + BoostName[b] + ".\nWatch a short ad for one more?", HzUI.Hex(BoostColor[b]), PtArt.Get(BoostArt[b]), null, |
| Scripts/PaperTurfGame.cs:470 / void OfferCharge(int b) | ("Watch ad", Orange, () => HzPlatform.Rewarded(GameId, "booster_" + BoostName[b].Replace(" ", "").ToLowerInvariant(), ok => |
| Scripts/PaperTurfGame.cs:503 / void EquipSkin(int i) | else Toast(CritterName[i] + " joins from the next round!", Gold, 1.5f, 0.8f); |
| Scripts/PaperTurfGame.cs:612 / string PopupTitle() | return t ? t.GetComponent<UnityEngine.UI.Text>().text.Replace(' ', '_') : "popup"; |