diff --git a/Assets/Resources/Loc/de.txt b/Assets/Resources/Loc/de.txt index 3e4c716..03d27f8 100644 --- a/Assets/Resources/Loc/de.txt +++ b/Assets/Resources/Loc/de.txt @@ -381,7 +381,6 @@ Nail Scissors Basket Nagelschere-Korb NE NO Never once lost a scythe. Hat noch nie eine Sense verloren. NEW GAME NEUES SPIEL -NEXT {0} NÄCHSTE {0} Night Vision Nachtsicht Night vision on Nachtsicht an Night Vision: {0}. N goes from the headlamp to night vision to nothing. Nachtsicht: {0}. N schaltet von Stirnlampe zu Nachtsicht zu gar nichts. @@ -400,7 +399,6 @@ nothing to run, {0:0.#} kW free nichts zu versorgen, {0:0.#} kW frei nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nichts zu versorgen, {0:0.#} kW frei, Batterien {1:0.0} von {2:0} kWh Nothing to set on this one. Hier gibt es nichts einzustellen. Nothing to tie: cut some grass first Nichts zu binden: erst etwas Gras schneiden -NOW {0} JETZT {0} NOW {0} of {1} slots JETZT {0} von {1} Plätzen NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! JETZT MACHT DIE ANDEREN NEUNUNDNEUNZIG KOMMA NEUN NEUN NEUN! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! UND JETZT RAUS MIT EUCH UND MÄHT DIESEN VERDAMMTEN PLANETEN! diff --git a/Assets/Resources/Loc/es.txt b/Assets/Resources/Loc/es.txt index b616a38..0c162eb 100644 --- a/Assets/Resources/Loc/es.txt +++ b/Assets/Resources/Loc/es.txt @@ -380,7 +380,6 @@ Nail Scissors Basket Cesta de Tijeras de uñas NE NE Never once lost a scythe. Nunca ha perdido una guadaña. NEW GAME NUEVA PARTIDA -NEXT {0} SIGUIENTE {0} Night Vision Visión nocturna Night vision on Visión nocturna activada Night Vision: {0}. N goes from the headlamp to night vision to nothing. Visión nocturna: {0}. N pasa de la linterna a la visión nocturna y luego a nada. @@ -399,7 +398,6 @@ nothing to run, {0:0.#} kW free nada que alimentar, {0:0.#} kW libres nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nada que alimentar, {0:0.#} kW libres, baterías {1:0.0} de {2:0} kWh Nothing to set on this one. Aquí no hay nada que ajustar. Nothing to tie: cut some grass first Nada que atar: primero corta algo de hierba -NOW {0} AHORA {0} NOW {0} of {1} slots AHORA {0} de {1} huecos NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! ¡AHORA HACED EL OTRO NOVENTA Y NUEVE COMA NUEVE NUEVE NUEVE! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! ¡AHORA SALID AHÍ FUERA Y SEGAD ESE MALDITO PLANETA! diff --git a/Assets/Resources/Loc/fr.txt b/Assets/Resources/Loc/fr.txt index 2715016..715f27c 100644 --- a/Assets/Resources/Loc/fr.txt +++ b/Assets/Resources/Loc/fr.txt @@ -381,7 +381,6 @@ Nail Scissors Basket Panier de Ciseaux à ongles NE NE Never once lost a scythe. N'a jamais perdu une seule faux. NEW GAME NOUVELLE PARTIE -NEXT {0} SUIVANT {0} Night Vision Vision nocturne Night vision on Vision nocturne activée Night Vision: {0}. N goes from the headlamp to night vision to nothing. Vision nocturne : {0}. N passe de la lampe frontale à la vision nocturne, puis à rien. @@ -400,7 +399,6 @@ nothing to run, {0:0.#} kW free rien à alimenter, {0:0.#} kW libres nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh rien à alimenter, {0:0.#} kW libres, batteries {1:0.0} sur {2:0} kWh Nothing to set on this one. Rien à régler ici. Nothing to tie: cut some grass first Rien à lier : coupe d'abord de l'herbe -NOW {0} ACTUEL {0} NOW {0} of {1} slots ACTUEL {0} étuis sur {1} NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! MAINTENANT, FAITES LES QUATRE-VINGT-DIX-NEUF VIRGULE NEUF NEUF NEUF RESTANTS ! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! MAINTENANT, SORTEZ ET TONDEZ-MOI CETTE FOUTUE PLANÈTE ! diff --git a/Assets/Resources/Loc/it.txt b/Assets/Resources/Loc/it.txt index 9cbe7c1..b5aea5f 100644 --- a/Assets/Resources/Loc/it.txt +++ b/Assets/Resources/Loc/it.txt @@ -381,7 +381,6 @@ Nail Scissors Basket Cestino Forbicine NE NE Never once lost a scythe. Mai persa una falce. NEW GAME NUOVA PARTITA -NEXT {0} DOPO {0} Night Vision Visore notturno Night vision on Visore notturno acceso Night Vision: {0}. N goes from the headlamp to night vision to nothing. Visore notturno: {0}. N passa dalla lampada frontale al visore notturno a niente. @@ -400,7 +399,6 @@ nothing to run, {0:0.#} kW free niente da alimentare, {0:0.#} kW liberi nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh niente da alimentare, {0:0.#} kW liberi, batterie {1:0.0} di {2:0} kWh Nothing to set on this one. Niente da regolare qui. Nothing to tie: cut some grass first Niente da legare: prima taglia un po' d'erba -NOW {0} ORA {0} NOW {0} of {1} slots ORA {0} posti su {1} NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! ORA FATE IL RESTANTE NOVANTANOVE VIRGOLA NOVE NOVE NOVE! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! ORA FUORI DI QUI A FALCIARE QUEL DANNATO PIANETA! diff --git a/Assets/Resources/Loc/ja.txt b/Assets/Resources/Loc/ja.txt index f6c582d..7c8fe4f 100644 --- a/Assets/Resources/Loc/ja.txt +++ b/Assets/Resources/Loc/ja.txt @@ -381,7 +381,6 @@ Nail Scissors Basket 爪切りばさみのカゴ NE 北東 Never once lost a scythe. 大鎌をなくしたことは一度もない。 NEW GAME ニューゲーム -NEXT {0} 次 {0} Night Vision 暗視装置 Night vision on 暗視 オン Night Vision: {0}. N goes from the headlamp to night vision to nothing. 暗視装置:{0}。Nでヘッドランプ → 暗視 → オフと切り替わる。 @@ -400,7 +399,6 @@ nothing to run, {0:0.#} kW free 稼働する機械なし、{0:0.#} kW余り nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh 稼働する機械なし、{0:0.#} kW余り、バッテリー {1:0.0}/{2:0} kWh Nothing to set on this one. 設定項目はありません。 Nothing to tie: cut some grass first 束ねる草がない:先に草を刈ろう -NOW {0} 現在 {0} NOW {0} of {1} slots 現在 {0}/{1}枠 NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! 残りの99.999パーセントもさっさとやれ! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! とっとと行って、あのいまいましい惑星を刈ってこい! diff --git a/Assets/Resources/Loc/ko.txt b/Assets/Resources/Loc/ko.txt index c3991aa..b5d8c22 100644 --- a/Assets/Resources/Loc/ko.txt +++ b/Assets/Resources/Loc/ko.txt @@ -381,7 +381,6 @@ Nail Scissors Basket 손톱가위 바구니 NE 북동 Never once lost a scythe. 큰낫을 잃어버린 적이 한 번도 없다. NEW GAME 새 게임 -NEXT {0} 다음 {0} Night Vision 야간 투시경 Night vision on 야간 투시경 켬 Night Vision: {0}. N goes from the headlamp to night vision to nothing. 야간 투시경: {0}. N을 누를 때마다 헤드램프 → 야간 투시경 → 끔 순서로 바뀌어요. @@ -400,7 +399,6 @@ nothing to run, {0:0.#} kW free 가동할 것 없음, {0:0.#} kW 여유 nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh 가동할 것 없음, {0:0.#} kW 여유, 배터리 {1:0.0} / {2:0} kWh Nothing to set on this one. 설정할 게 없어요. Nothing to tie: cut some grass first 묶을 게 없어요: 먼저 풀을 깎으세요 -NOW {0} 현재 {0} NOW {0} of {1} slots 현재 {0} / {1}칸 NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! 이제 나머지 구십구 점 구구구 퍼센트도 해치워! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! 당장 나가서 그 빌어먹을 행성을 깎아! diff --git a/Assets/Resources/Loc/pl.txt b/Assets/Resources/Loc/pl.txt index b4f829e..3c83973 100644 --- a/Assets/Resources/Loc/pl.txt +++ b/Assets/Resources/Loc/pl.txt @@ -381,7 +381,6 @@ Nail Scissors Basket Kosz: Nożyczki do paznokci NE NE Never once lost a scythe. Ani razu nie zgubił kosy. NEW GAME NOWA GRA -NEXT {0} NASTĘPNY {0} Night Vision Noktowizor Night vision on Noktowizor włączony Night Vision: {0}. N goes from the headlamp to night vision to nothing. Noktowizor: {0}. N przełącza: czołówka, noktowizor, nic. @@ -400,7 +399,6 @@ nothing to run, {0:0.#} kW free nic nie pracuje, wolne {0:0.#} kW nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nic nie pracuje, wolne {0:0.#} kW, baterie {1:0.0} z {2:0} kWh Nothing to set on this one. Tu nie ma nic do ustawienia. Nothing to tie: cut some grass first Nie ma czego wiązać: najpierw skoś trochę trawy -NOW {0} TERAZ {0} NOW {0} of {1} slots TERAZ miejsca: {0} z {1} NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! A TERAZ ZRÓBCIE POZOSTAŁE DZIEWIĘĆDZIESIĄT DZIEWIĘĆ PRZECINEK DZIEWIĘĆ DZIEWIĘĆ DZIEWIĘĆ! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! A TERAZ WYNOCHA I KOŚCIE TĘ PRZEKLĘTĄ PLANETĘ! diff --git a/Assets/Resources/Loc/pt-BR.txt b/Assets/Resources/Loc/pt-BR.txt index f309cf1..154bee1 100644 --- a/Assets/Resources/Loc/pt-BR.txt +++ b/Assets/Resources/Loc/pt-BR.txt @@ -381,7 +381,6 @@ Nail Scissors Basket Cesto da Tesoura de Unha NE NE Never once lost a scythe. Nunca perdeu uma foice. NEW GAME NOVO JOGO -NEXT {0} PRÓXIMO {0} Night Vision Visão Noturna Night vision on Visão noturna ligada Night Vision: {0}. N goes from the headlamp to night vision to nothing. Visão Noturna: {0}. N alterna entre lanterna, visão noturna e nada. @@ -400,7 +399,6 @@ nothing to run, {0:0.#} kW free nada para alimentar, {0:0.#} kW livres nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh nada para alimentar, {0:0.#} kW livres, baterias {1:0.0} de {2:0} kWh Nothing to set on this one. Nada para ajustar aqui. Nothing to tie: cut some grass first Nada para amarrar: corte um pouco de grama primeiro -NOW {0} AGORA {0} NOW {0} of {1} slots AGORA {0} de {1} espaços NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! AGORA FAÇAM OS OUTROS NOVENTA E NOVE VÍRGULA NOVE NOVE NOVE! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! AGORA VÃO LÁ FORA E CORTEM ESSE MALDITO PLANETA! diff --git a/Assets/Resources/Loc/ru.txt b/Assets/Resources/Loc/ru.txt index 971e96d..13302e2 100644 --- a/Assets/Resources/Loc/ru.txt +++ b/Assets/Resources/Loc/ru.txt @@ -381,7 +381,6 @@ Nail Scissors Basket Корзина маникюрных ножниц NE СВ Never once lost a scythe. Ни разу не потерял косу. NEW GAME НОВАЯ ИГРА -NEXT {0} ДАЛЕЕ {0} Night Vision Ночное зрение Night vision on Ночное зрение включено Night Vision: {0}. N goes from the headlamp to night vision to nothing. Ночное зрение: {0}. N переключает: фонарь, ночное зрение, ничего. @@ -400,7 +399,6 @@ nothing to run, {0:0.#} kW free нечего питать, свободно {0:0 nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh нечего питать, свободно {0:0.#} кВт, батареи {1:0.0} из {2:0} кВт·ч Nothing to set on this one. Здесь нечего настраивать. Nothing to tie: cut some grass first Нечего вязать: сначала накоси травы -NOW {0} СЕЙЧАС {0} NOW {0} of {1} slots СЕЙЧАС ячеек: {0} из {1} NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! А ТЕПЕРЬ ОСТАЛЬНЫЕ ДЕВЯНОСТО ДЕВЯТЬ ЦЕЛЫХ ДЕВЯТЬСОТ ДЕВЯНОСТО ДЕВЯТЬ ТЫСЯЧНЫХ! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! А ТЕПЕРЬ МАРШ НАРУЖУ И СКОСИТЕ ЭТУ ЧЁРТОВУ ПЛАНЕТУ! diff --git a/Assets/Resources/Loc/tr.txt b/Assets/Resources/Loc/tr.txt index 42609b3..284fb1c 100644 --- a/Assets/Resources/Loc/tr.txt +++ b/Assets/Resources/Loc/tr.txt @@ -381,7 +381,6 @@ Nail Scissors Basket Tırnak Makası Sepeti NE KD Never once lost a scythe. Bir kez bile tırpan kaybetmedi. NEW GAME YENİ OYUN -NEXT {0} SONRAKİ {0} Night Vision Gece Görüşü Night vision on Gece görüşü açık Night Vision: {0}. N goes from the headlamp to night vision to nothing. Gece Görüşü: {0}. N kafa lambasından gece görüşüne, oradan kapalıya geçer. @@ -400,7 +399,6 @@ nothing to run, {0:0.#} kW free çalışacak bir şey yok, {0:0.#} kW boşta nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh çalışacak bir şey yok, {0:0.#} kW boşta, bataryalar {1:0.0} / {2:0} kWh Nothing to set on this one. Bunda ayarlanacak bir şey yok. Nothing to tie: cut some grass first Bağlanacak bir şey yok: önce biraz çim biç -NOW {0} ŞU AN {0} NOW {0} of {1} slots ŞU AN {0} / {1} cep NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! ŞİMDİ KALAN DOKSAN DOKUZ VİRGÜL DOKUZ DOKUZ DOKUZU DA YAPIN! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! ŞİMDİ ÇIKIN DIŞARI VE O KAHROLASI GEZEGENİ BİÇİN! diff --git a/Assets/Resources/Loc/zh-Hans.txt b/Assets/Resources/Loc/zh-Hans.txt index 0f14923..aab9cf7 100644 --- a/Assets/Resources/Loc/zh-Hans.txt +++ b/Assets/Resources/Loc/zh-Hans.txt @@ -380,7 +380,6 @@ Nail Scissors Basket 指甲剪草篮 NE 东北 Never once lost a scythe. 从没丢过一把镰刀。 NEW GAME 新游戏 -NEXT {0} 下一级 {0} Night Vision 夜视仪 Night vision on 夜视仪已开启 Night Vision: {0}. N goes from the headlamp to night vision to nothing. 夜视仪:{0}。按 N 依次切换头灯、夜视仪和关闭。 @@ -399,7 +398,6 @@ nothing to run, {0:0.#} kW free 没有机器在运转,空闲 {0:0.#} kW nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh 没有机器在运转,空闲 {0:0.#} kW,电池 {1:0.0}/{2:0} kWh Nothing to set on this one. 这个没有可设置的选项。 Nothing to tie: cut some grass first 没东西可捆:先割点草 -NOW {0} 当前 {0} NOW {0} of {1} slots 当前 {0}/{1} 个槽位 NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! 现在去把剩下的百分之九十九点九九九也割了! NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! 现在都给我滚出去,把那颗该死的星球割干净! diff --git a/Assets/Scripts/Core/DemoBot.Shop.cs b/Assets/Scripts/Core/DemoBot.Shop.cs new file mode 100644 index 0000000..ee94475 --- /dev/null +++ b/Assets/Scripts/Core/DemoBot.Shop.cs @@ -0,0 +1,40 @@ +using System.Collections; +using UnityEngine; + +namespace GrassCutter +{ + public partial class DemoBot + { + /// + /// -demoshop [slot]: the upgrade matrix on a save (a fresh planet without one), every tab, with a node picked in each + /// and the detail panel showing it; then the same with a pile of money, so the affordable look shows too. + /// + IEnumerator ShopDemo(int slot) + { + if (slot > 0) SaveSlots.Current = slot - 1; + else TeamState.DeleteSave(); + yield return new WaitForSeconds(2f); + NetSession.Instance.HostLocal(); + while (!Me || !Ts) yield return null; + yield return new WaitForSeconds(3f); + Log($"perks {Ts.Installs} / {TeamState.TotalInstalls}, money {Ts.Money.Value:0}"); + for (int pass = 0; pass < 2; pass++) + { + if (pass == 1) Ts.ServerSetMoney(Ts.Money.Value + 250000d); + UIRoot.I.OpenShop(); + yield return new WaitForSeconds(1.2f); + var shop = UIRoot.I.Shop; + foreach (var tree in ShopScreen.TerminalTrees) + { + shop.SetTree(tree, false); + yield return new WaitForSeconds(0.6f); + yield return Shot($"shop{pass}_{(int)tree}_{tree}"); + } + UIRoot.I.CloseTopModal(); + yield return new WaitForSeconds(0.5f); + } + Log("shop done"); + Application.Quit(); + } + } +} diff --git a/Assets/Scripts/Core/DemoBot.Shop.cs.meta b/Assets/Scripts/Core/DemoBot.Shop.cs.meta new file mode 100644 index 0000000..fe80b5e --- /dev/null +++ b/Assets/Scripts/Core/DemoBot.Shop.cs.meta @@ -0,0 +1,2 @@ +fileFormatVersion: 2 +guid: 8a69e95e36ced72458cec3d35add3642 \ No newline at end of file diff --git a/Assets/Scripts/Core/DemoBot.cs b/Assets/Scripts/Core/DemoBot.cs index 6cc1f79..13fe54d 100644 --- a/Assets/Scripts/Core/DemoBot.cs +++ b/Assets/Scripts/Core/DemoBot.cs @@ -3013,6 +3013,11 @@ namespace GrassCutter yield return Perf(int.Parse(perfSlot)); yield break; } + if (CommandLine.Has("-demoshop")) + { + yield return ShopDemo(int.TryParse(CommandLine.Get("-demoshop"), out int shopSlot) ? shopSlot : 0); + yield break; + } if (CommandLine.Has("-demoauto")) { yield return AutoDemo(); diff --git a/Assets/Scripts/UI/ShopScreen.cs b/Assets/Scripts/UI/ShopScreen.cs index 528d445..a551ad4 100644 --- a/Assets/Scripts/UI/ShopScreen.cs +++ b/Assets/Scripts/UI/ShopScreen.cs @@ -7,8 +7,9 @@ namespace GrassCutter { /// /// The upgrade matrix as node graphs: the GreenHaul console shows CONTAINERS · CUTTING · SUIT · LOGISTICS · ECONOMY · AUTOMATION, - /// each branch growing out of the free Earth Uplink, the garage shows the FLEET. Click a node to inspect it, buy it from - /// the shared crew wallet. + /// each branch growing out of the free Earth Uplink. Click a node to inspect it, buy it from the shared crew wallet. + /// Each tree sits in the middle under the uplink, its links run square between the rows (never through a node or a + /// name), every node says what it costs, and the detail panel lays out every level with what it gives and costs. /// public class ShopScreen { @@ -21,17 +22,23 @@ namespace GrassCutter int TreeCount => _trees.Length; readonly Button[] _tabs; readonly Label[] _tabBadges; + readonly VisualElement[] _tabFill; readonly VisualElement _graph, _canvas, _lines, _detail; readonly Dictionary _nodes = new Dictionary(); VisualElement _hubNode; PerkTree _tree = PerkTree.Containers; PerkId _selected = PerkId.BinScissors; - const float ColW = 236f, RowH = 196f, Node = 112f, PadX = 30f, PadY = 22f; + // Node matches .node in the style sheet; a big step is drawn a size up + const float ColW = 236f, RowH = 228f, HubH = 196f, Node = 118f, BigNode = 140f, PadX = 30f, PadY = 22f; + /// How far above a row its links turn: below the names of the row before, above the nodes of this one. + const float Bus = 30f; + const float Corner = 16f; // the canvas fits the widest / deepest tree so every tab has the same scale static int MaxCol { get { int m = 0; foreach (var d in GameDefs.Perks) m = Mathf.Max(m, d.col); return m; } } static int MaxRow { get { int m = 0; foreach (var d in GameDefs.Perks) m = Mathf.Max(m, d.row); return m; } } - static readonly float CanvasW = PadX * 2f + ColW * (MaxCol + 1), CanvasH = PadY + RowH * (MaxRow + 1) + Node + 64f; + // (below the last row only its nodes and their names) + static readonly float CanvasW = PadX * 2f + ColW * (MaxCol + 1), CanvasH = PadY + HubH + RowH * MaxRow + Node + 86f; static readonly string[] TreeNames = { Loc.N("CONTAINERS"), Loc.N("CUTTING"), Loc.N("SUIT"), Loc.N("LOGISTICS"), Loc.N("ECONOMY"), Loc.N("AUTOMATION") }; static readonly Color[] TreeColors = @@ -39,6 +46,8 @@ namespace GrassCutter new Color(0.9f, 0.72f, 0.24f), new Color(0.45f, 0.8f, 0.2f), new Color(0.85f, 0.75f, 0.4f), new Color(1f, 0.8f, 0.25f), new Color(0.25f, 0.7f, 0.45f), new Color(0.3f, 0.66f, 0.86f), }; + static readonly Color Ink = new Color(0.165f, 0.13f, 0.08f, 1f); + static readonly Color Open = new Color(1f, 0.99f, 0.94f), Shut = new Color(0.7f, 0.66f, 0.56f); TeamState Ts => TeamState.Instance; @@ -48,6 +57,7 @@ namespace GrassCutter _trees = trees ?? TerminalTrees; _tabs = new Button[_trees.Length]; _tabBadges = new Label[_trees.Length]; + _tabFill = new VisualElement[_trees.Length]; _tree = _trees[0]; Card = UIK.El("card shop", layer); Card.pickingMode = PickingMode.Position; @@ -75,6 +85,11 @@ namespace GrassCutter // label as a child: a Button that has children is no longer measured by its own text _tabs[i] = UIK.Btn("", () => SetTree(_trees[t], true), "tab", tabs); UIK.Text(Loc.T(TreeNames[(int)_trees[i]]), "tab-label", _tabs[i]).pickingMode = PickingMode.Ignore; + // how much of the tree is bought, as a strip along the bottom of the tab + var bar = UIK.El("tab-progress", _tabs[i]); + bar.pickingMode = PickingMode.Ignore; + _tabFill[i] = UIK.El("tab-progress-fill", bar); + _tabFill[i].style.backgroundColor = TreeColors[(int)_trees[i]]; _tabBadges[i] = UIK.Text("", "tab-badge", _tabs[i]); } @@ -95,9 +110,9 @@ namespace GrassCutter // the wallet moves all the time: it recolours the prices, the pill and the tab counts, it doesn't rebuild the tree UIK.FollowWallet(Card); Card.schedule.Execute(Wallet).Every(250); - // open on the first tree that has something affordable // a single tree needs no tab row if (TreeCount == 1) tabs.style.display = DisplayStyle.None; + // open on the first tree that has something affordable for (int i = 0; i < TreeCount; i++) if (Affordable(_trees[i]) > 0) { _tree = _trees[i]; break; } SetTree(_tree, true); } @@ -112,6 +127,21 @@ namespace GrassCutter return n; } + /// Levels bought in a tree, out of all it has. + float Bought(PerkTree tree) + { + var ts = Ts; + if (!ts) return 0f; + int have = 0, all = 0; + foreach (var d in GameDefs.Perks) + { + if (d.tree != tree) continue; + have += Mathf.Min(ts.Level(d.id), d.maxLevel); + all += d.maxLevel; + } + return all > 0 ? (float)have / all : 0f; + } + public void SetTree(PerkTree tree, bool animate) { _tree = tree; @@ -143,8 +173,26 @@ namespace GrassCutter _canvas.style.top = (r.height - CanvasH * k) * 0.5f; } - Vector2 NodePos(PerkDef d) => new Vector2(PadX + d.col * ColW + (ColW - Node) * 0.5f, PadY + (d.row + (Hub ? 1 : 0)) * RowH); - Vector2 NodeCenter(PerkDef d) => NodePos(d) + new Vector2(Node, Node) * 0.5f; + // ───────────────────────── where things go ───────────────────────── + + /// The tree's columns sit in the middle of the canvas, under the uplink. + float TreeLeft + { + get + { + int cols = 0; + foreach (var d in GameDefs.Perks) if (d.tree == _tree) cols = Mathf.Max(cols, d.col + 1); + return PadX + (MaxCol + 1 - cols) * ColW * 0.5f; + } + } + + static float Size(PerkDef d) => d.big ? BigNode : Node; + int Row(PerkDef d) => d.row + (Hub ? 1 : 0); + float ColX(PerkDef d, float left) => left + d.col * ColW + ColW * 0.5f; + /// The uplink row is short: it has one node with a one-line name. + float RowTop(int row) => Hub ? (row == 0 ? PadY : PadY + HubH + (row - 1) * RowH) : PadY + row * RowH; + /// Top left of a node: centred on its column, its top on its row (a big one stands a little higher). + Vector2 NodePos(PerkDef d, float left) => new Vector2(ColX(d, left) - Size(d) * 0.5f, RowTop(Row(d)) - (Size(d) - Node) * 0.5f); static Vector2 HubPos => new Vector2(CanvasW * 0.5f - Node * 0.5f, PadY); void Wallet() @@ -158,26 +206,30 @@ namespace GrassCutter int n = Affordable(_trees[i]); _tabBadges[i].text = n > 0 ? n.ToString() : ""; _tabBadges[i].style.display = n > 0 ? DisplayStyle.Flex : DisplayStyle.None; + _tabFill[i].style.width = Length.Percent(Bought(_trees[i]) * 100f); } } + // ───────────────────────── the graph ───────────────────────── + void Rebuild(bool animate) { var ts = Ts; if (!ts) return; Wallet(); - // nodes foreach (var n in _nodes.Values) n.RemoveFromHierarchy(); _nodes.Clear(); _hubNode?.RemoveFromHierarchy(); if (Hub) { - _hubNode = UIK.El("node node-maxed", _canvas); + _hubNode = UIK.El("node node-maxed node-hub", _canvas); _hubNode.style.left = HubPos.x; _hubNode.style.top = HubPos.y; UIK.Img(AssetBank.I.Tex("icon_star"), "node-icon", _hubNode); - UIK.Text(Loc.T("Earth Uplink"), "node-name", _hubNode, false); + var hubName = UIK.Text(Loc.T("Earth Uplink"), "node-name", _hubNode, false); + PlaceName(hubName, Node, false); } + float left = TreeLeft; int k = 0; foreach (var d in GameDefs.Perks) { @@ -185,25 +237,45 @@ namespace GrassCutter int lvl = ts.Level(d.id); bool maxed = lvl >= d.maxLevel; bool avail = ts.PerkAvailable(d); - bool afford = avail && !maxed && ts.Money.Value >= d.PriceFor(lvl); + long price = d.PriceFor(lvl); + float size = Size(d); var node = UIK.El("node", _canvas); node.pickingMode = PickingMode.Position; - var pos = NodePos(d); + var pos = NodePos(d, left); node.style.left = pos.x; node.style.top = pos.y; - if (maxed || lvl > 0 || !avail) node.AddToClassList(maxed ? "node-maxed" : lvl > 0 ? "node-owned" : "node-locked"); - else UIK.Costs(node, d.PriceFor(lvl), "node-afford", "node-available"); + node.style.width = size; node.style.height = size; + if (d.big) node.AddToClassList("node-big"); + if (maxed) node.AddToClassList("node-maxed"); + else if (!avail) node.AddToClassList("node-locked"); + else + { + if (lvl > 0) node.AddToClassList("node-owned"); + // the wallet keeps this one current: a node you can pay for lights up + UIK.Costs(node, price, "node-afford", "node-available"); + } if (d.id == _selected) node.AddToClassList("node-selected"); var icon = UIK.Img(AssetBank.I.Tex(d.icon), "node-icon", node); icon.pickingMode = PickingMode.Ignore; - if (!avail) UIK.Text("?", "node-lock t-outline", node).pickingMode = PickingMode.Ignore; - if (d.maxLevel > 1) UIK.Text($"{lvl}/{d.maxLevel}", "node-level t-outline", node).pickingMode = PickingMode.Ignore; - else if (lvl > 0) UIK.Text(Loc.T("OWNED"), "node-level t-outline", node).pickingMode = PickingMode.Ignore; + if (d.big) { icon.style.width = 100; icon.style.height = 100; } + if (!avail && !maxed) UIK.Text("?", "node-lock t-outline", node).pickingMode = PickingMode.Ignore; + if (d.maxLevel > 1) + { + var pips = UIK.El("node-pips", node); + pips.pickingMode = PickingMode.Ignore; + for (int i = 0; i < d.maxLevel; i++) UIK.El(i < lvl ? "node-pip node-pip-on" : "node-pip", pips).pickingMode = PickingMode.Ignore; + } + // under the node: what the next level costs, or that it is all bought + bool hasChip = !maxed || d.maxLevel == 1; + if (!maxed && avail) UIK.Costs(UIK.Text(UIK.Money(price), "node-price t-outline", node), price, "node-price-yes", "node-price-no").pickingMode = PickingMode.Ignore; + else if (!maxed) UIK.Text(UIK.Money(price), "node-price node-price-shut t-outline", node).pickingMode = PickingMode.Ignore; + else if (d.maxLevel == 1) UIK.Text(Loc.T("OWNED"), "node-price node-price-done t-outline", node).pickingMode = PickingMode.Ignore; var name = UIK.Text(d.name, "node-name", node, false); name.pickingMode = PickingMode.Ignore; + PlaceName(name, size, hasChip); var id = d.id; node.RegisterCallback(_ => { _selected = id; Sfx.Play("ui_click", 0.6f, 1.1f); Rebuild(false); }); node.RegisterCallback(_ => Sfx.Play("ui_hover", 0.35f, 1.2f)); - if (afford) Pulse(node); + if (avail && !maxed && ts.Money.Value >= price) Pulse(node); _nodes[d.id] = node; if (animate) UIK.PopIn(node, 0.03f * k, 0.35f); k++; @@ -212,56 +284,95 @@ namespace GrassCutter BuildDetail(animate); } + static void PlaceName(Label name, float size, bool chip) + { + name.style.top = size + (chip ? 30f : 12f); + name.style.left = (size - 230f) * 0.5f; + } + static void Pulse(VisualElement e) { - Tween.Run(e, 1.2f, t => { if (e.panel != null) e.style.scale = new Scale(Vector3.one * (1f + Mathf.Sin(t * Mathf.PI * 2f) * 0.035f)); }, Ease.Linear, 0f, () => { if (e.panel != null) Pulse(e); }); + Tween.Run(e, 1.2f, t => { if (e.panel != null) e.style.scale = new Scale(Vector3.one * (1f + Mathf.Sin(t * Mathf.PI * 2f) * 0.03f)); }, Ease.Linear, 0f, () => { if (e.panel != null) Pulse(e); }); } + struct Link { public Vector2[] pts; public Color color; public int rank; } + readonly List _links = new List(); + void DrawLines(MeshGenerationContext ctx) { var ts = Ts; if (!ts) return; - var p = ctx.painter2D; - p.lineCap = LineCap.Round; - p.lineJoin = LineJoin.Round; + float left = TreeLeft; + _links.Clear(); + var hubOut = new Vector2(CanvasW * 0.5f, PadY + Node); foreach (var d in GameDefs.Perks) { if (d.tree != _tree) continue; - if (Hub && d.requires.Length == 0) Link(p, HubPos + new Vector2(Node, Node) * 0.5f, NodeCenter(d), ts.Has(d.id)); + bool mine = ts.Has(d.id); + var into = new Vector2(ColX(d, left), NodePos(d, left).y); + if (Hub && d.requires.Length == 0) Add(Route(hubOut, 1, into, Row(d), left), mine, true); foreach (var r in d.requires) { var rd = GameDefs.Perk(r); // a root that needs a perk from another tree has no line to draw (the detail panel names it) if (rd.tree != d.tree) continue; - Link(p, NodeCenter(rd), NodeCenter(d), ts.Has(d.id), ts.Has(r)); + var from = new Vector2(ColX(rd, left), NodePos(rd, left).y + Size(rd)); + Add(Route(from, Row(rd) + 1, into, Row(d), left), mine, ts.Level(r) >= d.requireLevel); } } + // the dull ones first, the bought ones on top, all of them outlined before any is filled: crossings merge cleanly + _links.Sort((a, b) => a.rank.CompareTo(b.rank)); + var p = ctx.painter2D; + p.lineCap = LineCap.Round; + p.lineJoin = LineJoin.Round; + p.strokeColor = Ink; + p.lineWidth = 15f; + foreach (var l in _links) Path(p, l.pts); + p.lineWidth = 8f; + foreach (var l in _links) + { + p.strokeColor = l.color; + Path(p, l.pts); + } } - void Link(Painter2D p, Vector2 a, Vector2 b, bool mine, bool have = true) + void Add(Vector2[] pts, bool mine, bool open) { - // outline then fill, so lines read like the chunky UI borders - p.strokeColor = new Color(0.165f, 0.13f, 0.08f, 1f); - p.lineWidth = 16f; - Path(p, a, b); - p.strokeColor = mine ? TreeColors[(int)_tree] : have ? new Color(1f, 1f, 1f) : new Color(0.78f, 0.8f, 0.66f); - p.lineWidth = 9f; - Path(p, a, b); + _links.Add(new Link { pts = pts, color = mine ? TreeColors[(int)_tree] : open ? Open : Shut, rank = mine ? 2 : open ? 1 : 0 }); } - static void Path(Painter2D p, Vector2 a, Vector2 b) + /// + /// Down from a node, along the gap above the row it goes to, down into it. One that skips rows goes down the gap + /// between columns instead, so it never runs through a node in between. + /// + Vector2[] Route(Vector2 a, int fromRow, Vector2 b, int toRow, float left) + { + float busB = b.y - Bus; + if (toRow <= fromRow) + return Mathf.Abs(a.x - b.x) < 1f ? new[] { a, b } : new[] { a, new Vector2(a.x, busB), new Vector2(b.x, busB), b }; + float busA = RowTop(fromRow) - Bus; + // the gap beside the column it goes to, on the side it comes from + float gap = b.x + (a.x < b.x ? -ColW * 0.5f : ColW * 0.5f); + return new[] { a, new Vector2(a.x, busA), new Vector2(gap, busA), new Vector2(gap, busB), new Vector2(b.x, busB), b }; + } + + static void Path(Painter2D p, Vector2[] pts) { p.BeginPath(); - p.MoveTo(a); - if (Mathf.Abs(a.x - b.x) < 1f) p.LineTo(b); - else + p.MoveTo(pts[0]); + for (int i = 1; i < pts.Length - 1; i++) { - float midY = (a.y + b.y) * 0.5f; - p.BezierCurveTo(new Vector2(a.x, midY), new Vector2(b.x, midY), b); + // round the corner, but never by more than half of either side of it + float r = Mathf.Min(Corner, (pts[i] - pts[i - 1]).magnitude * 0.5f, (pts[i + 1] - pts[i]).magnitude * 0.5f); + if (r < 1f) p.LineTo(pts[i]); + else p.ArcTo(pts[i], pts[i + 1], r); } + p.LineTo(pts[pts.Length - 1]); p.Stroke(); } + // ───────────────────────── the detail panel ───────────────────────── + void BuildDetail(bool animate) { var ts = Ts; @@ -277,30 +388,43 @@ namespace GrassCutter top.style.backgroundColor = Color.Lerp(TreeColors[(int)_tree], Color.white, 0.55f); UIK.Img(AssetBank.I.Tex(d.icon), "detail-icon", top); UIK.Text(d.name, "t-h1 t-dark t-center detail-title", _detail); - if (d.maxLevel > 1) - { - var pips = UIK.El("item-level detail-pips", _detail); - for (int i = 0; i < d.maxLevel; i++) UIK.El(i < lvl ? "pip pip-on" : "pip", pips); - } - var desc = UIK.Text(d.desc, "item-desc t-center", _detail, false); + var desc = UIK.Text(d.desc, "item-desc t-center detail-desc", _detail, false); desc.style.whiteSpace = WhiteSpace.Normal; - if (d.effect != null) + + // every level: what it gives and what it costs, the bought ones ticked off and the next one picked out + if (d.maxLevel > 1 || d.effect != null) { - var fx = UIK.El("detail-effect", _detail); - if (lvl > 0) UIK.Text(Loc.F("NOW {0}", d.EffectFor(lvl)), "t-small t-muted", fx, false); - if (!maxed) UIK.Text(Loc.F("NEXT {0}", d.EffectFor(lvl + 1)), "t-body t-dark", fx, false); + var ladder = UIK.El("ladder", _detail); + for (int l = 1; l <= d.maxLevel; l++) + { + bool done = l <= lvl, next = l == lvl + 1; + var row = UIK.El(done ? "ladder-row ladder-done" : next ? "ladder-row ladder-next" : "ladder-row", ladder); + UIK.Text(GameDefs.ToRoman(l), "ladder-lvl t-outline", row); + var fx = UIK.Text(d.EffectFor(l), "ladder-fx", row, false); + fx.style.whiteSpace = WhiteSpace.Normal; + if (!done) UIK.Text(UIK.Money(d.PriceFor(l - 1)), next && avail ? "ladder-price" : "ladder-price ladder-price-later", row); + } } - var spacer = UIK.El(null, _detail); - spacer.style.flexGrow = 1; - if (maxed) UIK.Text(d.maxLevel > 1 ? Loc.T("MAXED OUT!") : Loc.T("OWNED"), "price t-green t-outline t-center", _detail); - else if (!avail) + + // what it waits for, each one green once it is there (including perks from other trees) + if (d.requires.Length > 0 && !maxed) { var names = new List(); - foreach (var r in d.requires) if (ts.Level(r) < d.requireLevel) names.Add(d.requireLevel > 1 ? $"{GameDefs.Perk(r).name} {GameDefs.ToRoman(d.requireLevel)}" : GameDefs.Perk(r).name); - var req = UIK.Text(Loc.F("Requires {0}", string.Join(" + ", names)), "t-body t-muted t-center", _detail, false); + foreach (var r in d.requires) + { + var rd = GameDefs.Perk(r); + string n = d.requireLevel > 1 ? $"{rd.name} {GameDefs.ToRoman(d.requireLevel)}" : rd.name; + names.Add(ts.Level(r) >= d.requireLevel ? $"{n}" : $"{n}"); + } + var req = UIK.Text(Loc.F("Requires {0}", string.Join(" + ", names)), "t-body t-muted t-center detail-req", _detail, false); req.style.whiteSpace = WhiteSpace.Normal; + req.enableRichText = true; } - else + + var spacer = UIK.El(null, _detail); + spacer.style.flexGrow = 1; + if (maxed) UIK.Text(d.maxLevel > 1 ? Loc.T("MAXED OUT!") : Loc.T("OWNED"), "price t-green t-outline t-center detail-maxed", _detail); + else if (avail) { var b = UIK.Btn(lvl > 0 ? Loc.F("UPGRADE {0}", UIK.Money(price)) : Loc.F("UNLOCK {0}", UIK.Money(price)), () => Buy(d, UIK.CanPay(price)), "btn", _detail); UIK.Costs(b, price); diff --git a/Assets/UI/GrassCutter.uss b/Assets/UI/GrassCutter.uss index 8ec8f28..7c78301 100644 --- a/Assets/UI/GrassCutter.uss +++ b/Assets/UI/GrassCutter.uss @@ -834,7 +834,7 @@ border-width: 0; border-radius: 0; } -.slot-on, .node-afford, .node-maxed, .build-card-on { background-color: rgba(0, 0, 0, 0); background-image: url("../Art/UI/ui_slot_on.png"); } +.slot-on, .node-maxed, .build-card-on { background-color: rgba(0, 0, 0, 0); background-image: url("../Art/UI/ui_slot_on.png"); } .node-available, .node-owned, .node-locked { background-color: rgba(0, 0, 0, 0); } .node-owned { -unity-background-image-tint-color: #CFE3A0; } .node-locked { -unity-background-image-tint-color: #A89E86; } @@ -996,3 +996,53 @@ .set-foot { flex-direction: row; align-items: center; flex-shrink: 0; margin-top: 10px; padding-top: 12px; border-top-width: 3px; border-color: rgba(42, 33, 20, 0.18); } .set-desc { flex-grow: 1; flex-shrink: 1; font-size: 21px; color: #6A5A3A; white-space: normal; margin: 0 28px 0 28px; min-height: 56px; -unity-text-align: middle-left; } +/* ───────── v4: the upgrade matrix, readable at a glance ───────── */ +/* gold is done; a green ring is what you can buy now; green tint is started; grey is not open yet */ +.node { padding-bottom: 8px; } +.node-afford { border-width: 5px; border-color: #63C43A; border-radius: 18px; } +.node-selected, .node-afford.node-selected { border-width: 7px; border-color: #3A9BE8; border-radius: 18px; -unity-background-image-tint-color: #FFFDF0; } +.node-locked > .node-icon { opacity: 0.3; } +.node-lock { font-size: 40px; color: #FFFFFF; } +.node-pips { position: absolute; bottom: 9px; flex-direction: row; justify-content: center; } +.node-pip { width: 15px; height: 7px; border-radius: 4px; margin: 0 2px 0 2px; background-color: rgba(42, 33, 20, 0.28); } +.node-pip-on { background-color: #4FAE2E; } +.node-maxed .node-pip-on { background-color: #2A2114; } +.node-price { + position: absolute; bottom: -19px; font-size: 23px; padding: 1px 11px 1px 11px; border-radius: 10px; + background-color: #7A5A3A; color: #FFFFFF; -unity-text-align: middle-center; +} +.node-price-yes { background-color: #3E8A24; } +.node-price-no { background-color: #8B5E34; color: #F1E6C6; } +.node-price-shut { background-color: #8F8672; color: #ECE6D4; } +.node-price-done { background-color: #C28F1C; } +.node-name { width: 230px; font-size: 20px; } + +.shop-tabs > .tab { padding-bottom: 12px; } +.tab-progress { + position: absolute; left: 16px; right: 16px; bottom: 6px; height: 5px; border-radius: 3px; + background-color: rgba(42, 33, 20, 0.2); overflow: hidden; +} +.tab-progress-fill { height: 100%; border-radius: 3px; width: 0; } + +.detail-top { height: 150px; } +.detail-icon { width: 130px; height: 130px; } +.detail-desc { margin-top: 2px; margin-bottom: 8px; } +.ladder { margin-top: 4px; } +.ladder-row { + flex-direction: row; align-items: center; padding: 6px 10px 6px 8px; margin-bottom: 6px; border-radius: 12px; + background-color: rgba(139, 94, 52, 0.1); border-width: 3px; border-color: rgba(0, 0, 0, 0); +} +.ladder-done { background-color: rgba(99, 196, 58, 0.22); } +.ladder-next { background-color: #FFF6D6; border-color: #2A2114; } +.ladder-lvl { + width: 44px; height: 32px; border-radius: 9px; margin-right: 10px; flex-shrink: 0; + background-color: #A89E86; color: #FFFFFF; font-size: 19px; -unity-text-align: middle-center; +} +.ladder-done > .ladder-lvl { background-color: #3E8A24; } +.ladder-next > .ladder-lvl { background-color: #C28F1C; } +.ladder-fx { flex-grow: 1; flex-shrink: 1; font-size: 20px; color: #2A2114; } +.ladder-done > .ladder-fx { color: #3B5A22; } +.ladder-price { font-size: 21px; color: #2A2114; margin-left: 8px; flex-shrink: 0; -unity-font-style: bold; } +.ladder-price-later { color: #8F8672; -unity-font-style: normal; } +.detail-req { margin-top: 8px; } +.detail-maxed { font-size: 40px; } diff --git a/Tools/loc/keys.tsv b/Tools/loc/keys.tsv index 08527b5..3631f55 100644 --- a/Tools/loc/keys.tsv +++ b/Tools/loc/keys.tsv @@ -96,12 +96,12 @@ Assistant tips UI/UIRoot.Settings.cs:115 ASSISTANT · G.R.A.S.S.A. UI/Assistant.cs:234 Audio UI/UIRoot.Settings.cs:32 Auto-Binder Gameplay/GameDefs.cs:243 Perk name (upgrade matrix node, short, wraps on ~2 lines). -AUTOMATION UI/ShopScreen.cs:36 +AUTOMATION UI/ShopScreen.cs:43 Autopilot Gameplay/GameDefs.cs:568 Autopilot on: the {0} mows round here and unloads itself. Hop back in to take over. Gameplay/Vehicle.cs:263 -autopilot: mowing Gameplay/Vehicle.Auto.cs:91 -autopilot: nothing left to mow round here Gameplay/Vehicle.Auto.cs:90 -autopilot: off to unload Gameplay/Vehicle.Auto.cs:89 +autopilot: mowing Gameplay/Vehicle.Auto.cs:94 +autopilot: nothing left to mow round here Gameplay/Vehicle.Auto.cs:93 +autopilot: off to unload Gameplay/Vehicle.Auto.cs:92 B build, G gravity boots UI/NotebookScreen.cs:241 Back Player/Binds.cs:42 BACK UI/UIRoot.cs:391 @@ -188,7 +188,7 @@ Container {0:0.##} kg UI/SupplyScreen.cs:151 Tool detail line: how much grass t Container full! Press E at the DEPOT to hand it all in, or Q to tie a 1 kg bundle you can carry and throw. UI/Hud.cs:849 Container full! Q ties a bundle, E at the DEPOT hands it all in Player/PlayerTools.cs:284 Toast. Q and E are keys, keep them. DEPOT is the drop-off building. Container x{0:0} Gameplay/GameDefs.cs:229 Perk effect line under a basket perk, after "NOW " / "NEXT ". {0} = multiplier (2, 4, 8). -CONTAINERS UI/ShopScreen.cs:36 Upgrade matrix tab label, CAPS, short. +CONTAINERS UI/ShopScreen.cs:43 Upgrade matrix tab label, CAPS, short. Controls UI/UIRoot.Settings.cs:32 Conveyor belts! Grass that moves BY ITSELF! caption:dir_belts (Director, spoken in English, subtitle) Copy a piece Player/Binds.cs:58 @@ -205,7 +205,7 @@ Cruise control Player/Binds.cs:60 CTRL + wheel sets the height, {0:0.0} to {1:0} m. Posts grow down to the ground by themselves. UI/NotebookScreen.cs:130 Ctrl+wheel lifts it onto stilts Player/PlayerBuild.cs:295 Cutter Control Gameplay/GameDefs.cs:565 Machine upgrade name in the garage upgrade list, followed by "level/max" (e.g. "Big Hopper 1/3"). -CUTTING UI/ShopScreen.cs:36 Upgrade matrix tab label, CAPS, short. +CUTTING UI/ShopScreen.cs:43 Upgrade matrix tab label, CAPS, short. Dash every {0:0.#} s UI/SupplyScreen.cs:131 Jetpack detail line: cooldown in seconds. Dash in the air UI/SupplyScreen.cs:85 Gear tile subtitle (jetpack), very short. deals bundles out in turn Gameplay/BeltSplitter.cs:28 Belt splitter mode (lowercase phrase): sends bundles to each exit in turn. @@ -242,7 +242,7 @@ E gets in and out, SHIFT boosts. With Cruise Control, C holds your speed. UI/Not E hands it the contents of your tool. It ties them into bundles and puts them on the belt, so you don't have to walk to the depot. UI/NotebookScreen.cs:217 E hands it what's in your tool. It ties the grass into bundles and puts them on the belt at its front. Gameplay/GameDefs.cs:331 Build piece description in the build menu / notebook. Keep numbers and units (kW, kWh, m, kg); write decimals your way (7.5 -> 7,5). E = interact key, keep it. E picks a bundle up. LEFT CLICK throws it, E at the depot hands it in, E anywhere else drops it. UI/NotebookScreen.cs:104 -E: another station Gameplay/Train.cs:358 +E: another station Gameplay/Train.cs:404 Earth has grass again! Now. caption:dir_m100 (Director, spoken in English, subtitle) Earth has run out of grass and Herbaria-7 is covered in it. Cut it, bundle it, ship it home. UI/NotebookScreen.cs:72 Earth has run out of grass. Cut it, bundle it, ship it home. Core/DemoBot.Lang.cs:87, UI/Hud.cs:278 @@ -251,10 +251,10 @@ Earth is desperate for grass. Make it pay. Gameplay/GameDefs.cs:276 Perk descrip EARTH IS OUT OF GRASS! NO GRASS! caption:dir_intro (Director, spoken in English, subtitle) Earth Prices Gameplay/GameDefs.cs:275 Perk name (upgrade matrix node, short, wraps on ~2 lines). Earth thanks you. Barely. caption:dir_m0001 (Director, spoken in English, subtitle) -Earth Uplink UI/ShopScreen.cs:179 Name of the free root node every upgrade branch grows from. +Earth Uplink UI/ShopScreen.cs:229 Name of the free root node every upgrade branch grows from. Earth's lawns will be green by Christmas! caption:dir_combine (Director, spoken in English, subtitle) EASY World/Difficulty.cs:18 -ECONOMY UI/ShopScreen.cs:36 Upgrade matrix tab label, CAPS, short. +ECONOMY UI/ShopScreen.cs:43 Upgrade matrix tab label, CAPS, short. Effects UI/UIRoot.Settings.cs:172 Eleven more stations stand around the planet. Walk up to one and it opens for the crew: a depot, a supply wall, a console and a travel terminal. UI/NotebookScreen.cs:230 Empty UI/UIRoot.cs:603 @@ -444,7 +444,7 @@ Listening for LAN games… UI/UIRoot.cs:368 LMB Player/Binds.cs:192 LMB where the belt starts · height {0:0.0} m Player/PlayerBuild.cs:342 Belt laying hint. LMB = left mouse button, {0} = height in metres. LMB: go on from this end Player/PlayerBuild.cs:342 Belt laying hint. LMB = left mouse button. -LOGISTICS UI/Hud.cs:563, UI/ShopScreen.cs:36 Build menu category (belts, splitters...). +LOGISTICS UI/Hud.cs:563, UI/ShopScreen.cs:43 Build menu category (belts, splitters...). Long Handles Gameplay/GameDefs.cs:249 Perk name (upgrade matrix node, short, wraps on ~2 lines). Long Leash Gameplay/GameDefs.cs:285 Long Scythe Gameplay/GameDefs.cs:191 Hand tool name: supply wall tile (short, ~18 chars), detail title, HUD. @@ -464,7 +464,7 @@ Map Player/Binds.cs:62, UI/Hud.cs:140, UI/PhoneScreen.cs:140 Master volume UI/UIRoot.Settings.cs:169 MAX UI/GarageScreen.cs:161 Short button label in place of a price: upgrade fully bought. Very little room. MAXED UI/SupplyScreen.cs:84 Short price tag on the supply wall: no more belt slots. -MAXED OUT! UI/ShopScreen.cs:295, UI/SupplyScreen.cs:176 Big label instead of the buy button when every level is bought. +MAXED OUT! UI/ShopScreen.cs:426, UI/SupplyScreen.cs:176 Big label instead of the buy button when every level is bought. ME UI/MapScreen.cs:61 Medium UI/UIRoot.Settings.cs:155, UI/UIRoot.Settings.cs:159, UI/UIRoot.Settings.cs:163 Merger Gameplay/GameDefs.cs:312 Build piece name: build menu card, piece settings header (shown in CAPS there), prompts. Short. @@ -506,7 +506,6 @@ Nail Scissors Basket Gameplay/GameDefs.cs:235 Perk name (upgrade matrix node, ma NE UI/Compass.cs:14 Never once lost a scythe. Player/Roster.cs:26 Crew member tagline (character select), one short line. NEW GAME UI/UIRoot.cs:604 -NEXT {0} UI/ShopScreen.cs:291 Perk detail: effect of the next level. Same as "NOW {0}". Next category Player/Binds.cs:54 Night Vision UI/SupplyScreen.cs:87, UI/SupplyScreen.cs:141 Gear item name. Night vision on World/DayNight.cs:142 Toast. @@ -520,7 +519,7 @@ NORMAL World/Difficulty.cs:18 NOT A SINGLE DAMN BLADE! caption:dir_intro (Director, spoken in English, subtitle) Not Alone Out Here Core/Achievements.cs:52 Not enough cash Player/PlayerBuild.cs:289, Player/PlayerBuild.cs:361 Build refusal. -Not enough cash: mow more! UI/GarageScreen.cs:118, UI/ShopScreen.cs:319, UI/SupplyScreen.cs:214 Warning toast when a purchase is too expensive. +Not enough cash: mow more! UI/GarageScreen.cs:118, UI/ShopScreen.cs:443, UI/SupplyScreen.cs:214 Warning toast when a purchase is too expensive. Not enough money. Mow more. caption:asst_nocash (assistant, spoken in English, subtitle) Notebook Player/Binds.cs:63, UI/Hud.cs:142, UI/PhoneScreen.cs:141 Nothing goes on standing grass: cut it first. The ghost turns red and says how much is cut, and its outline on the ground shows what has to go. A belt needs a mown path along its whole length. UI/NotebookScreen.cs:124 @@ -528,7 +527,6 @@ nothing to run, {0:0.#} kW free Gameplay/PowerNode.cs:41 Power network summary ( nothing to run, {0:0.#} kW free, batteries {1:0.0} of {2:0} kWh Gameplay/PowerNode.cs:41 Power network summary (lowercase). Nothing to set on this one. UI/PieceScreen.cs:95 Piece settings card when the piece has no options. Nothing to tie: cut some grass first Player/PlayerTools.cs:371 Toast after pressing Q (tie a bundle) with an empty container. -NOW {0} UI/ShopScreen.cs:290 Perk detail: current effect. {0} = an effect line such as "Speed +7%". Two spaces kept as a gap. NOW {0} of {1} slots UI/SupplyScreen.cs:125 Belt slot detail line: slots you have and the maximum. NOW DO THE OTHER NINETY-NINE POINT NINE NINE NINE! caption:dir_m0001 (Director, spoken in English, subtitle) NOW GET OUT THERE AND MOW THAT GODDAMN PLANET! caption:dir_intro (Director, spoken in English, subtitle) @@ -565,7 +563,7 @@ Overdrive Motors Gameplay/GameDefs.cs:287 Own UI/UIRoot.Settings.cs:155 Own every blade on the wall Core/Achievements.cs:56 Own the Scythe Core/Achievements.cs:55 -OWNED UI/GarageScreen.cs:85, UI/ShopScreen.cs:200, UI/ShopScreen.cs:295 Short tag/label: you already have it (on a node, a supply tile, a garage tile, or the big label instead of a buy button). +OWNED UI/GarageScreen.cs:85, UI/ShopScreen.cs:271, UI/ShopScreen.cs:426 Short tag/label: you already have it (on a node, a supply tile, a garage tile, or the big label instead of a buy button). PAUSED UI/UIRoot.cs:333 Paused: it takes grass in but doesn't work it. UI/PieceScreen.cs:118 Machine switched off. Payout UI/Hud.cs:340 @@ -626,7 +624,7 @@ REFRESH UI/UIRoot.cs:359 RELAY UI/PhoneScreen.cs:215, UI/PhoneScreen.cs:654 Phone status bar: the link to Earth (the web connection) is up. Keep it short. RELAY IDLE UI/PhoneScreen.cs:654 Phone status bar: the link to Earth is idle. Keep it short. Render scale UI/UIRoot.Settings.cs:156 -Requires {0} UI/ShopScreen.cs:300 Perk detail. {0} = perk names joined with " + ", e.g. "Wider Blades II + Long Handles II". +Requires {0} UI/ShopScreen.cs:419 Perk detail. {0} = perk names joined with " + ", e.g. "Wider Blades II + Long Handles II". RESET PROGRESS UI/UIRoot.Settings.cs:120 Reset progress? Core/DemoBot.Lang.cs:51, UI/UIRoot.Settings.cs:123 Resolution UI/UIRoot.Settings.cs:135 @@ -747,7 +745,7 @@ Strip width {0:0.#} cm UI/SupplyScreen.cs:151 Tool detail line. Strip width +{0:0}% Gameplay/GameDefs.cs:248, Gameplay/GameDefs.cs:252 Perk effect line: the cut strip is {0} percent wider. Strip {0:0.##} m · top speed {1:0} km/h · {2} of {3} UI/GarageScreen.cs:147 Machine detail line. {2} and {3} = weights already formatted ("120 kg of 500 kg"): grass in the hopper and its capacity. STRUCTURES UI/Hud.cs:563 Build menu category (foundations). -SUIT UI/ShopScreen.cs:36 Upgrade matrix tab label (the crew's work suit), CAPS, short. +SUIT UI/ShopScreen.cs:43 Upgrade matrix tab label (the crew's work suit), CAPS, short. Sun and night UI/NotebookScreen.cs:144 Sunflowers World/Crops.cs:38 HUD crop name before the sector number, see "Wheat". Supply Deals Gameplay/GameDefs.cs:279 Perk name (upgrade matrix node, short, wraps on ~2 lines). @@ -856,12 +854,12 @@ UNLOAD · {0} {1:0} m UI/Hud.cs:740 Marker over the nearest unloading place. {0} unloading Gameplay/Mowbot.cs:95 Short robot mower status word (lowercase). Unloading UI/NotebookScreen.cs:197 Unloading… UI/Hud.cs:622 -UNLOCK {0} UI/ShopScreen.cs:305 Buy button for the first level of a perk. {0} = price. +UNLOCK {0} UI/ShopScreen.cs:429 Buy button for the first level of a perk. {0} = price. Untangle the stake: {0:0}% World/Landmarks.cs:176 Progress prompt while holding the interact key. {0} = percent done. Untangled Core/Achievements.cs:47 Untouched UI/MapScreen.cs:95 Map legend: sectors nobody has cut. -UPGRADE {0} UI/ShopScreen.cs:305 Buy button for the next level of a perk. {0} = price, e.g. "$140". -UPGRADE MATRIX UI/ShopScreen.cs:58 Screen title of the GreenHaul console's upgrade tree, CAPS. +UPGRADE {0} UI/ShopScreen.cs:429 Buy button for the next level of a perk. {0} = price, e.g. "$140". +UPGRADE MATRIX UI/ShopScreen.cs:68 Screen title of the GreenHaul console's upgrade tree, CAPS. Upgrade to {0} UI/PieceScreen.cs:62 Piece settings card row title. {0} = tier name, e.g. "Mk II". Upgrades UI/NotebookScreen.cs:22, UI/NotebookScreen.cs:201 Upgrades are for the whole crew and come out of the shared wallet. UI/PieceScreen.cs:96 Footnote in the piece settings card. @@ -879,8 +877,8 @@ waiting for room, connect a belt Gameplay/Mowbot.cs:96 Robot mower status (lower Walk to the supply wall on the west side of the deck and take the nail scissors. caption:asst_tools (assistant, spoken in English, subtitle) Wall Gameplay/GameDefs.cs:354 Was that a UFO?! Listen to me. caption:dir_ufo (Director, spoken in English, subtitle) -WASD to drive · SHIFT boost · R chase view · E to hop off Player/PlayerAgent.cs:705 Toast when getting into a machine. WASD/SHIFT/R/E are keys, keep them. -WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot Player/PlayerAgent.cs:705 +WASD to drive · SHIFT boost · R chase view · E to hop off Player/PlayerAgent.cs:710 Toast when getting into a machine. WASD/SHIFT/R/E are keys, keep them. +WASD to drive · SHIFT boost · R chase view · E to hop off · C autopilot Player/PlayerAgent.cs:710 WASD walk, SHIFT run, SPACE jump, E use UI/NotebookScreen.cs:239 Weight UI/Hud.cs:338 WELCOME TO HERBARIA-7 Core/DemoBot.Lang.cs:87, UI/Hud.cs:278 @@ -969,12 +967,12 @@ Zero point zero zero one percent. caption:dir_m0001 (Director, spoken in English {0}/m UI/Hud.cs:593 Build menu price of a belt: money per metre. {0}/{1} crew UI/UIRoot.cs:336 {0}: 1 kg of grass from your tool. {1}, {2} for 2½ minutes Gameplay/VendingMachine.cs:33 -{0}: laying track to {1}, {2} of {3} m Gameplay/Train.cs:357 +{0}: laying track to {1}, {2} of {3} m Gameplay/Train.cs:403 {0}: press a key or a mouse button. Esc cancels. UI/UIRoot.Settings.cs:287 {0}: reaches {1:0} m, {2} Gameplay/PowerPole.cs:8 Power pole prompt. {0} = name, {1} = radius in metres, {2} = power network summary (lowercase). {0}: reaches {1:0} m, {2}. String them out to bring power to a far machine. UI/NotebookScreen.cs:166 Notebook: power pole name, reach, price. -{0}: running to {1} and back, cutting {2} m out either side, {3} on board Gameplay/Train.cs:361 -{0}: the line to {1} is mown clean as far as it reaches. An upgrade reaches further. Gameplay/Train.cs:360 +{0}: running to {1} and back, cutting {2} m out either side, {3} on board Gameplay/Train.cs:407 +{0}: the line to {1} is mown clean as far as it reaches. An upgrade reaches further. Gameplay/Train.cs:406 {0}: {1:0.##} m strip, {2:0} kg hopper, {3} UI/NotebookScreen.cs:193 Notebook: mower name, cutting width, hopper size, price. {0}: {1:0.#} cm strip, {2:0.##} kg container, {3} UI/NotebookScreen.cs:89 Notebook tool line: tool name, cutting width, container size, price. {0}: {1:0.#} kW, {2:0} m, {3} UI/NotebookScreen.cs:155 Notebook: solar panel name, power, reach radius in metres, price.