Upgrade matrix you can read at a glance
- Each tree sits centred under the Earth Uplink; links run square between rows and down the gaps between columns, never through a node or a name - Clear node states: gold is done, a green ring is buyable now, green tint is started, grey is not open yet; the selected node has a blue ring - Every node shows the price of its next level and pips for its levels - The detail panel lists every level with what it gives and what it costs; requirements turn green as they are met - Tabs show how much of each tree is bought - -demoshop [slot] shoots every tab Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -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!
|
||||
|
||||
@ -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!
|
||||
|
||||
@ -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 !
|
||||
|
||||
@ -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!
|
||||
|
||||
@ -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! とっとと行って、あのいまいましい惑星を刈ってこい!
|
||||
|
||||
@ -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! 당장 나가서 그 빌어먹을 행성을 깎아!
|
||||
|
||||
@ -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Ę!
|
||||
|
||||
@ -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!
|
||||
|
||||
@ -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! А ТЕПЕРЬ МАРШ НАРУЖУ И СКОСИТЕ ЭТУ ЧЁРТОВУ ПЛАНЕТУ!
|
||||
|
||||
@ -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!
|
||||
|
||||
@ -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! 现在都给我滚出去,把那颗该死的星球割干净!
|
||||
|
||||
40
Assets/Scripts/Core/DemoBot.Shop.cs
Normal file
40
Assets/Scripts/Core/DemoBot.Shop.cs
Normal file
@ -0,0 +1,40 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
namespace GrassCutter
|
||||
{
|
||||
public partial class DemoBot
|
||||
{
|
||||
/// <summary>
|
||||
/// -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.
|
||||
/// </summary>
|
||||
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();
|
||||
}
|
||||
}
|
||||
}
|
||||
2
Assets/Scripts/Core/DemoBot.Shop.cs.meta
Normal file
2
Assets/Scripts/Core/DemoBot.Shop.cs.meta
Normal file
@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8a69e95e36ced72458cec3d35add3642
|
||||
@ -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();
|
||||
|
||||
@ -7,8 +7,9 @@ namespace GrassCutter
|
||||
{
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
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<PerkId, VisualElement> _nodes = new Dictionary<PerkId, VisualElement>();
|
||||
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;
|
||||
/// <summary>How far above a row its links turn: below the names of the row before, above the nodes of this one.</summary>
|
||||
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;
|
||||
}
|
||||
|
||||
/// <summary>Levels bought in a tree, out of all it has.</summary>
|
||||
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 ─────────────────────────
|
||||
|
||||
/// <summary>The tree's columns sit in the middle of the canvas, under the uplink.</summary>
|
||||
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;
|
||||
/// <summary>The uplink row is short: it has one node with a one-line name.</summary>
|
||||
float RowTop(int row) => Hub ? (row == 0 ? PadY : PadY + HubH + (row - 1) * RowH) : PadY + row * RowH;
|
||||
/// <summary>Top left of a node: centred on its column, its top on its row (a big one stands a little higher).</summary>
|
||||
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<ClickEvent>(_ => { _selected = id; Sfx.Play("ui_click", 0.6f, 1.1f); Rebuild(false); });
|
||||
node.RegisterCallback<MouseEnterEvent>(_ => 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<Link> _links = new List<Link>();
|
||||
|
||||
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)
|
||||
/// <summary>
|
||||
/// 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.
|
||||
/// </summary>
|
||||
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<string>();
|
||||
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 ? $"<color=#3E8A24>{n}</color>" : $"<color=#B0402C>{n}</color>");
|
||||
}
|
||||
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);
|
||||
|
||||
@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user