| Scripts/YarnWorldGame.Hud.cs:78 / void BuildHudLandscape(float W, float H) | var title = HzUI.Label("Title", _layer, "Yarn World", 76, Mustard); |
| Scripts/YarnWorldGame.Hud.cs:85 / void BuildHudLandscape(float W, float H) | var rb = HzUI.Button("Restart", _layer, "", Coral, Color.white, () => { if (_playing) Restart(); }, 40, 36); |
| Scripts/YarnWorldGame.Hud.cs:87 / void BuildHudLandscape(float W, float H) | ButtonIconLabel(rb, HzIcons.Replay, "Retry"); |
| Scripts/YarnWorldGame.Hud.cs:88 / void BuildHudLandscape(float W, float H) | var sb = HzUI.Button("Settings", _layer, "", Lilac, Color.white, ShowSettingsPopup, 40, 36); |
| Scripts/YarnWorldGame.Hud.cs:90 / void BuildHudLandscape(float W, float H) | ButtonIconLabel(sb, HzIcons.Settings, "Menu"); |
| Scripts/YarnWorldGame.Hud.cs:91 / void BuildHudLandscape(float W, float H) | var help = HzUI.Label("Help", _layer, "Tap a free piece to unravel it.\nFill the tags, keep the rail clear!", 30, Cream, TextAnchor.MiddleCenter, false); |
| Scripts/YarnWorldGame.Hud.cs:100 / void LevelPill(Image pill) | _levelTxt = HzUI.Label("Level", pill.transform, "", 58, Color.white); _levelTxt.AddOutline(new Color(0.4f, 0.05f, 0.1f, 0.4f), 3); |
| Scripts/YarnWorldGame.Hud.cs:102 / void LevelPill(Image pill) | _nameTxt = HzUI.Label("Name", pill.transform, "", 32, new Color(1, 1, 1, 0.95f), TextAnchor.MiddleCenter, false); _nameTxt.fontStyle = FontStyle.Bold; |
| Scripts/YarnWorldGame.Hud.cs:109 / 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(76, 0); |
| Scripts/YarnWorldGame.Hud.cs:125 / void ProgressCard(Image card, float w, float h) | _leftTxt = HzUI.Label("Left", card.transform, "", tall ? 38 : 34, Cream, TextAnchor.MiddleLeft); |
| Scripts/YarnWorldGame.Hud.cs:127 / void ProgressCard(Image card, float w, float h) | _ordersTxt = HzUI.Label("Orders", card.transform, "", 30, Sub, TextAnchor.MiddleLeft, false); _ordersTxt.fontStyle = FontStyle.Bold; |
| Scripts/YarnWorldGame.Hud.cs:174 / 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)); |
| Scripts/YarnWorldGame.Hud.cs:197 / 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/YarnWorldGame.Hud.cs:199 / void BoosterBar(float cx, float cy, float w, float h, bool horizontal) | v.Caption = HzUI.Label("Cap", v.Root, "", 30, Cream); |
| Scripts/YarnWorldGame.Hud.cs:210 / void RefreshHud() | _nameTxt.text = D.name + (D.breather ? " - easy stitch" : ""); |
| Scripts/YarnWorldGame.Hud.cs:212 / void RefreshHud() | _leftTxt.text = left == 0 ? "All unravelled!" : left.ToString(CultureInfo.InvariantCulture) + (left == 1 ? " piece left" : " pieces left"); |
| Scripts/YarnWorldGame.Hud.cs:213 / void RefreshHud() | if (_ordersTxt) _ordersTxt.text = "Orders shipped: " + Mathf.Min(_shipped, B.Orders.Length).ToString(CultureInfo.InvariantCulture) + "/" + B.Orders.Length.ToString(CultureInfo.InvariantCulture); |
| Scripts/YarnWorldGame.Hud.cs:232 / void RefreshBoosters() | v.BadgeText.text = c > 0 ? c.ToString(CultureInfo.InvariantCulture) : "+"; |
| Scripts/YarnWorldGame.Hud.cs:234 / void RefreshBoosters() | v.Caption.text = un ? BoostName[b] : "Level " + BoostUnlock[b].ToString(CultureInfo.InvariantCulture); |
| Scripts/YarnWorldGame.Hud.cs:305 / HzPopup YwPopupFull(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/YarnWorldGame.Hud.cs:310 / HzPopup YwPopupFull(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, HzUI.Hex("#B4507A")); st.rectTransform.Place(new Vector2(0.5f, 1), new Vector2(cw - 80, 50), new Vector2(0, y - 25)); |
| Scripts/YarnWorldGame.Hud.cs:315 / HzPopup YwPopupFull(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, CardInk, TextAnchor.MiddleCenter, false); |
| Scripts/YarnWorldGame.Hud.cs:350 / void UnlockPopup(int b, Action done) | YwPopup("New: " + BoostName[b] + "!", BoostDesc[b] + "\nYou get " + BoostStart[b].ToString(CultureInfo.InvariantCulture) + " free!", HzUI.Hex(BoostColor[b]), YwArt.Get(BoostArt[b]), null, |
| Scripts/YarnWorldGame.Hud.cs:358 / void ShowSettingsPopup() | var p = YwPopup("Settings", "", Lilac, null, null, |
| Scripts/YarnWorldGame.Hud.cs:372 / static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; | static string SoundLabel() => HzAudio.Muted ? "Sound: OFF" : "Sound: ON"; |
| Scripts/YarnWorldGame.Hud.cs:373 / static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; | static string MusicLabel() => HzAudio.MusicMuted ? "Music: OFF" : "Music: ON"; |
| Scripts/YarnWorldGame.Hud.cs:386 / void HelpPage(int i) | YwPopup($"How to Play {i + 1}/{HelpPages.Length}", HelpPages[i], Sky, i == 0 ? YwArt.Get("keyart") : null, null, |
| Scripts/YarnWorldGame.Hud.cs:400 / void StartTutorial() | ShowTip("Tap a piece of the picture to unravel it!\nIts skein flies to the tag of the same colour."); |
| Scripts/YarnWorldGame.Hud.cs:411 / void RefreshTutorial() | if (_tutMoves == 1) ShowTip("Three skeins of one colour ship an order.\nKeep unravelling!"); |
| Scripts/YarnWorldGame.Hud.cs:412 / void RefreshTutorial() | else if (_tutMoves == 4) ShowTip("No matching tag? The skein waits on the peg rail.\nDon't let the rail fill up!"); |
| Scripts/YarnWorldGame.Hud.cs:457 / void ShowTip(string text) | _tipText = HzUI.Label("T", tip.transform, text, IsPortrait ? 36 : 34, Cream, TextAnchor.MiddleCenter, false); |
| Scripts/YarnWorldGame.Hud.cs:527 / void CompleteGuide(int b) | Toast("Nice! " + BoostName[b] + " is yours", Mustard, 1.3f, ToastY); |
| Scripts/YarnWorldGame.View.cs:276 / void RedrawBoard() | t = HzUI.Label("T", _marksRt, "", size, c); t.horizontalOverflow = HorizontalWrapMode.Overflow; |
| Scripts/YarnWorldGame.View.cs:397 / void BuildTags(float W, float H) | _previewLbl = HzUI.Label("L", prev.transform, "NEXT", 30, Sub); |
| Scripts/YarnWorldGame.View.cs:477 / void RefreshPreview() | if (_previewLbl) _previewLbl.text = _vQueue >= B.Orders.Length ? "LAST" : "NEXT"; |
| Scripts/YarnWorldGame.View.cs:500 / void BuildRail(float W, float H) | _basketTxt = HzUI.Label("N", bd.transform, "0", (int)(bsz * 0.26f), Color.white); _basketTxt.rectTransform.Stretch(); |
| Scripts/YarnWorldGame.cs:23 / declarations | public override string Title => "Yarn World"; |
| Scripts/YarnWorldGame.cs:30 / declarations | public static readonly string[] BoostName = { "Extra Peg", "Lantern", "Tidy Basket", "Snip" }; |
| Scripts/YarnWorldGame.cs:114 / void ShowLevelCard() | var p = YwPopup(LevelLabel(), msg, Coral, LevelCardArt(), D.name + (D.breather ? " - easy stitch" : ""), ("Start", Mint, (Action)Begin)); |
| Scripts/YarnWorldGame.cs:118 / string LevelLabel() => (YwLevels.IsGenerated(_playLevel) ? "Hoop " : "Level ") + _playLevel.ToString(CultureInfo.InvariantCulture); | string LevelLabel() => (YwLevels.IsGenerated(_playLevel) ? "Hoop " : "Level ") + _playLevel.ToString(CultureInfo.InvariantCulture); |
| Scripts/YarnWorldGame.cs:206 / void Lose() | YwPopup("Out of Room!", $"The peg rail is full and no free piece fits an order.\n{Left} piece{(Left == 1 ? "" : "s")} left.", Coral, YwArt.Get("booster_basket"), null, buttons.ToArray()); |
| Scripts/YarnWorldGame.cs:258 / void Refuse(int p, YwBoard.Why why) | Toast($"Knotted! Unravel {B.KnotLeft(S, p).ToString(CultureInfo.InvariantCulture)} more piece{(B.KnotLeft(S, p) == 1 ? "" : "s")} to loosen it", Cream, 1.5f, ToastY); |
| Scripts/YarnWorldGame.cs:263 / void Refuse(int p, YwBoard.Why why) | Toast("Tied with a ribbon: its partner must be free too", Cream, 1.6f, ToastY); |
| Scripts/YarnWorldGame.cs:268 / void Refuse(int p, YwBoard.Why why) | Toast("No room on the rail! Pick a colour an order needs", Coral, 1.6f, ToastY); |
| Scripts/YarnWorldGame.cs:319 / 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/YarnWorldGame.cs:328 / void OnBooster(int b) | if (S.PegCap >= YwBoard.MaxPegs) { Toast("The rail can't get any longer", null, 1.2f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; } |
| Scripts/YarnWorldGame.cs:337 / void OnBooster(int b) | if (S.PegsUsed == 0) { Toast("The rail is empty - nothing to tidy yet", null, 1.3f, ToastY); HzAudio.Play(Sfx.Cancel, 0.4f); return; } |
| Scripts/YarnWorldGame.cs:345 / void OnBooster(int b) | else Toast("Tap any piece to snip it free", null, 1.4f, ToastY); |
| Scripts/YarnWorldGame.cs:371 / void OfferCharge(int b) | YwPopup("+1 " + BoostName[b], "Out of " + BoostName[b] + ".\nWatch a short ad for one more?", HzUI.Hex(BoostColor[b]), YwArt.Get(BoostArt[b]), null, |
| Scripts/YarnWorldGame.cs:386 / void UseLantern() | Toast("Even the lantern sees no way through - try Tidy Basket or an Extra Peg", Coral, 1.8f, ToastY); |
| Scripts/YarnWorldGame.cs:430 / void Snip(int p) | Toast("No room for that colour - snip one an order needs", Coral, 1.5f, ToastY); |
| Scripts/YarnWorldGame.cs:601 / string PopupTitle() | return t ? t.GetComponent<Text>().text.Replace(' ', '_') : "popup"; |