UI: redesign inspect panel — stat bars, sections, scroll, clearer tabs
Replace the single per-tab text blob with structured widgets: - StatBar: RimWorld-style colored bars for needs, skills, capacities, blood/pain, mood. Good→bad gradient (red/amber/green); drives & skills use a neutral blue; pain fills by amount but colors inverted (more pain = red). - Section headers (accent) group Health (vitals/capacities/conditions) and Mood; section keys lose the "— … —" dashes (the header styling separates them now). - Body lives in a fixed-height ScrollViewer so long tabs (Health) scroll and the panel keeps a constant size instead of jumping between tabs. - Active tab gets a background highlight, not just accent text; tab buttons padded. - Narrative data (overview/genes/products) stays as styled lines; plant growth-to- next-stage shown as a bar. New loc: inspect.health.vitals, inspect.vital.blood/pain (ru/en). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 4.8
parent
56f2c22932
commit
02dcd01c0f
@@ -27,7 +27,7 @@
|
||||
"inspect.state.dormanthot": "покой — слишком жарко",
|
||||
"inspect.stress": "Стресс: {0:0.0} дн до гибели",
|
||||
"inspect.temp": "Температура: рост {0:0}…{1:0}°C, оптимум {2:0}…{3:0}°C",
|
||||
"inspect.genes": "— Гены —",
|
||||
"inspect.genes": "Гены",
|
||||
"inspect.gene.vigor": "Бодрость {0:0.00} · жизнь {1:0} дн",
|
||||
"inspect.gene.env": "Опт. свет {0:0.00} · опт. почва {1:0.00}",
|
||||
"inspect.gene.repro": "Расселение {0:0.0} кл · период {1:0.0} дн",
|
||||
@@ -48,14 +48,17 @@
|
||||
"skill.hunting": "охота",
|
||||
"skill.evasion": "уклонение",
|
||||
"inspect.health.blood": "Кровь: {0:0}% · боль: {1:0}%",
|
||||
"inspect.health.caps": "— Способности —",
|
||||
"inspect.health.vitals": "Жизненные показатели",
|
||||
"inspect.vital.blood": "кровь",
|
||||
"inspect.vital.pain": "боль",
|
||||
"inspect.health.caps": "Способности",
|
||||
"inspect.health.cap": "{0}: {1:0}%",
|
||||
"inspect.health.hediffs": "— Состояния —",
|
||||
"inspect.health.hediffs": "Состояния",
|
||||
"inspect.health.hediffline": "{0}: тяжесть {1:0}%",
|
||||
"inspect.health.none": "Здоров, ран и болезней нет",
|
||||
"inspect.mood.value": "Настроение: {0:0}%",
|
||||
"inspect.mood.none": "Настроения нет (примитивный мозг)",
|
||||
"inspect.mood.thoughts": "— Мысли —",
|
||||
"inspect.mood.thoughts": "Мысли",
|
||||
"inspect.mood.thoughtline": "{0}: {1}",
|
||||
"inspect.mood.calm": "Спокоен, особых мыслей нет",
|
||||
"animalstage.baby": "детёныш",
|
||||
|
||||
Reference in New Issue
Block a user