| Scripts/TinyBlocksGame.Hud.cs:66 / void BuildHudLandscape(float W, float H) | var title = HzUI.Label("Title", _layer, "Tiny Blocks", 52, Yellow, TextAnchor.MiddleLeft); |
| Scripts/TinyBlocksGame.Hud.cs:85 / void LevelPill(Image pill, float w) | _levelTxt = HzUI.Label("Level", pill.transform, "", 60, Color.white); _levelTxt.AddOutline(new Color(0.05f, 0.15f, 0.15f, 0.4f), 3); |
| Scripts/TinyBlocksGame.Hud.cs:87 / void LevelPill(Image pill, float w) | _nameTxt = HzUI.Label("Name", pill.transform, "", 32, new Color(1, 1, 1, 0.95f), TextAnchor.MiddleCenter, false); _nameTxt.fontStyle = FontStyle.Bold; |
| Scripts/TinyBlocksGame.Hud.cs:117 / void GoalCard(Image card, float w, float h) | _piecesTxt = HzUI.Label("N", _piecesDisc.transform, "", (int)(disc * 0.44f), Color.white); _piecesTxt.AddOutline(Plum, 3); |
| Scripts/TinyBlocksGame.Hud.cs:119 / void GoalCard(Image card, float w, float h) | _piecesLbl = HzUI.Label("L", _piecesDisc.transform, "pieces", (int)(disc * 0.17f), Color.white, TextAnchor.MiddleCenter, false); _piecesLbl.fontStyle = FontStyle.Bold; |
| Scripts/TinyBlocksGame.Hud.cs:126 / void GoalCard(Image card, float w, float h) | _scoreTxt = HzUI.Label("Score", card.transform, "", wide ? 42 : 38, Plum, TextAnchor.MiddleLeft); |
| Scripts/TinyBlocksGame.Hud.cs:134 / void GoalCard(Image card, float w, float h) | _goal2Txt = HzUI.Label("Goal2", card.transform, "", wide ? 34 : 32, PlumSoft, TextAnchor.MiddleLeft, false); _goal2Txt.fontStyle = FontStyle.Bold; |
| Scripts/TinyBlocksGame.Hud.cs:136 / void GoalCard(Image card, float w, float h) | _goal3Txt = HzUI.Label("Goal3", card.transform, "", wide ? 34 : 32, PlumSoft, TextAnchor.MiddleLeft, false); _goal3Txt.fontStyle = FontStyle.Bold; |
| Scripts/TinyBlocksGame.Hud.cs:159 / void GoalCard(Image card, float w, float h) | _partyTxt = HzUI.Label("PartyLbl", _partyRow, "Party", wide ? 28 : 26, Pink, TextAnchor.MiddleLeft, false); _partyTxt.fontStyle = FontStyle.Bold; |
| Scripts/TinyBlocksGame.Hud.cs:203 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal) | var btn = HzUI.Button("Booster" + b.ToString(CultureInfo.InvariantCulture), parent, null, Color.white, Color.white, () => OnBooster(bb), 40, (int)(size * 0.32f)); |
| Scripts/TinyBlocksGame.Hud.cs:226 / 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(); |
| Scripts/TinyBlocksGame.Hud.cs:228 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal) | v.Caption = HzUI.Label("Cap", v.Root, "", 30, Plum); |
| Scripts/TinyBlocksGame.Hud.cs:238 / void RefreshHud() | _nameTxt.text = D.name + (D.breather ? " - easy one" : ""); |
| Scripts/TinyBlocksGame.Hud.cs:241 / void RefreshHud() | _piecesLbl.text = left == 1 ? "piece" : "pieces"; |
| Scripts/TinyBlocksGame.Hud.cs:249 / void RefreshHud() | _scoreTxt.text = "Score " + B.Score.ToString(CultureInfo.InvariantCulture) + " / " + D.goalScore.ToString(CultureInfo.InvariantCulture); |
| Scripts/TinyBlocksGame.Hud.cs:252 / void RefreshHud() | else _scoreTxt.text = "Score " + B.Score.ToString(CultureInfo.InvariantCulture); |
| Scripts/TinyBlocksGame.Hud.cs:266 / void RefreshHud() | _goal2Txt.text = lines.Count > 0 ? lines[0] : (D.goalScore > 0 ? "Pack big bricks to score" : ""); |
| Scripts/TinyBlocksGame.Hud.cs:268 / void RefreshHud() | _goal3Txt.text = lines.Count > 1 ? lines[1] : ""; |
| Scripts/TinyBlocksGame.Hud.cs:276 / void RefreshHud() | _partyTxt.text = B.PartyLeft > 0 ? "PARTY x" + B.PartyLeft.ToString(CultureInfo.InvariantCulture) : "Party"; |
| Scripts/TinyBlocksGame.Hud.cs:280 / void RefreshHud() | if (IsPortrait && showParty && _goal3Txt.text.Length > 0) _goal3Txt.text = ""; |
| Scripts/TinyBlocksGame.Hud.cs:295 / void RefreshBoosters() | v.BadgeText.text = c > 0 ? c.ToString(CultureInfo.InvariantCulture) : "+"; |
| Scripts/TinyBlocksGame.Hud.cs:297 / void RefreshBoosters() | v.Caption.text = un ? BoostName[b] : "Level " + BoostUnlock[b].ToString(CultureInfo.InvariantCulture); |
| Scripts/TinyBlocksGame.Hud.cs:384 / HzPopup TbPopupFull(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); |
| Scripts/TinyBlocksGame.Hud.cs:389 / HzPopup TbPopupFull(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, Teal); st.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(cw - 80, 50), new Vector2(0, y - 25)); |
| Scripts/TinyBlocksGame.Hud.cs:394 / HzPopup TbPopupFull(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, Plum, TextAnchor.MiddleCenter, false); |
| Scripts/TinyBlocksGame.Hud.cs:429 / void UnlockPopup(int b, Action done) | TbPopup("New: " + BoostName[b] + "!", BoostDesc[b] + "\nYou get " + BoostStart[b].ToString(CultureInfo.InvariantCulture) + " free!", HzUI.Hex(BoostColor[b]), TbArt.Get(BoostArt[b]), null, |
| Scripts/TinyBlocksGame.Hud.cs:438 / void ShowSettingsPopup() | var p = TbPopup("Settings", "", Grape, null, null, |
| Scripts/TinyBlocksGame.Hud.cs:452 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; | static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; |
| Scripts/TinyBlocksGame.Hud.cs:453 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; | static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; |
| Scripts/TinyBlocksGame.Hud.cs:467 / void HelpPage(int i) | TbPopup("How to Play " + (i + 1).ToString(CultureInfo.InvariantCulture) + "/" + HelpPages.Length.ToString(CultureInfo.InvariantCulture), HelpPages[i], Blue, |
| Scripts/TinyBlocksGame.Hud.cs:484 / void ShowTip(string text, float seconds) | _tipText = HzUI.Label("T", tip.transform, text, IsPortrait ? 40 : 32, Cream, TextAnchor.MiddleCenter, false); |
| Scripts/TinyBlocksGame.Hud.cs:543 / void RefreshTutorialHand() | ShowTip("Great! Keep going until you reach the goal.", 3f); |
| Scripts/TinyBlocksGame.Hud.cs:610 / void RefreshGuide() | if (_guideStep == 0) text = "New helper: " + BoostName[_guide] + "!\nTap it - this one is free."; |
| Scripts/TinyBlocksGame.Hud.cs:678 / void CompleteGuide(int b) | Toast("Nice! " + BoostName[b] + " is ready when you need it", Yellow, 1.4f, ToastY); |
| Scripts/TinyBlocksGame.View.cs:136 / void BuildBoard() | v.Hp = HzUI.Label("Hp", v.Crate.transform, "", (int)(_cs * 0.34f), Color.white); v.Hp.AddOutline(Plum, 3); |
| Scripts/TinyBlocksGame.View.cs:184 / void SyncBoard() | v.Hp.text = chest ? B.Hp[i].ToString(CultureInfo.InvariantCulture) : ""; |
| Scripts/TinyBlocksGame.View.cs:232 / void PaintBrick(Image face, Image stud, int c) | v.Value = HzUI.Label("V", badge.transform, "", (int)(_cs * 0.42f), Plum); v.Value.rectTransform.Stretch(2); |
| Scripts/TinyBlocksGame.View.cs:437 / void DropGhost(Vector2 tl) | if (_tutorial && !TutorialAllowsDrop(slot, x, y)) { if (B.CanPlace(B.Tray[slot].Value, x, y)) Toast("Follow the hand!", Yellow, 1.1f, ToastY); } |
| Scripts/TinyBlocksGame.View.cs:492 / void ShowFuses(List<TbFuse> fuses) | if (maxK >= 3) { HzAudio.Play(Sfx.SnapBig, 0.7f); if (maxK >= 4) Toast(maxK >= 5 ? "MEGA brick!" : "Huge brick!", Gold, 1.0f, ToastY); } |
| Scripts/TinyBlocksGame.View.cs:585 / void PartyStart() | Toast("PARTY TIME! Any colour snaps!", Pink, 2.0f, ToastY); |
| Scripts/TinyBlocksGame.View.cs:637 / void ScorePop(Vector2 at, string text, Color c, int k) | var t = HzUI.Label("Score", _fxLayer, text, (int)Mathf.Clamp(_cs * (0.5f + 0.1f * k), 40, 96), c, TextAnchor.MiddleCenter); |
| Scripts/TinyBlocksGame.cs:22 / declarations | public override string Title => "Tiny Blocks"; |
| Scripts/TinyBlocksGame.cs:29 / declarations | public static readonly string[] BoostName = { "Hammer", "Turn", "Rainbow", "Popper" }; |
| Scripts/TinyBlocksGame.cs:115 / string LevelLabel() => "Level " + _playLevel.ToString(CultureInfo.InvariantCulture); | string LevelLabel() => "Level " + _playLevel.ToString(CultureInfo.InvariantCulture); |
| Scripts/TinyBlocksGame.cs:123 / void ShowLevelCard() | var p = TbPopup(LevelLabel(), msg, Teal, LevelCardArt(), D.name, ("Play", Good, (Action)Begin)); |
| Scripts/TinyBlocksGame.cs:212 / void Lose(string reason) | TbPopup(title, msg, Red, TbArt.Get("crate"), null, buttons.ToArray()); |
| Scripts/TinyBlocksGame.cs:291 / public void OnBlockTap(int id) | Toast("Aim at a small brick or a crate", null, 1.1f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; |
| Scripts/TinyBlocksGame.cs:319 / void AfterMove() | Toast("No room! Tap a big brick to pack it", Yellow, 1.6f, ToastY); |
| Scripts/TinyBlocksGame.cs:333 / IEnumerator AutoPack() | Toast("Last piece! Packing the rest...", Yellow, 1.3f, ToastY); |
| Scripts/TinyBlocksGame.cs:364 / 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); |
| Scripts/TinyBlocksGame.cs:427 / void UseBooster(int b, int target) | if (!wasCrate && !loose) { Toast("Tap a small brick or a crate", null, 1.1f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; } |
| Scripts/TinyBlocksGame.cs:457 / void UseBooster(int b, int target) | if (r < 0 || r == p.Shape) { Toast("This piece looks the same turned", null, 1.1f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; } |
| Scripts/TinyBlocksGame.cs:468 / void UseBooster(int b, int target) | if (p.Color == TbBoard.Wild) { Toast("Already a rainbow piece", null, 1.1f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; } |
| Scripts/TinyBlocksGame.cs:498 / void OfferCharge(int b) | TbPopup("+1 " + BoostName[b], "Out of " + BoostName[b] + ".\nWatch a short ad for one more?", HzUI.Hex(BoostColor[b]), TbArt.Get(BoostArt[b]), null, |
| Scripts/TinyBlocksGame.cs:647 / string PopupTitle() | return t ? t.GetComponent<Text>().text.Replace(' ', '_') : "popup"; |