Files
Workspace/Assets/Demos/Demo2/UI/Demo2.uxml
T
2026-08-18 02:03:34 +08:00

104 lines
10 KiB
XML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?xml version="1.0" encoding="utf-8"?>
<ui:UXML xmlns:ui="UnityEngine.UIElements">
<ui:VisualElement name="safe-area" class="safe-area">
<ui:VisualElement name="title-screen" class="screen title-screen">
<ui:VisualElement name="title-background" class="title-background" />
<ui:VisualElement class="title-shade" />
<ui:VisualElement class="title-content">
<ui:Label text="规则工厂" class="title-heading" />
<ui:Label text="自动化生产 × 有序规则构筑 × 炮塔波次结算" class="title-subtitle" />
<ui:VisualElement class="title-actions">
<ui:Button name="solo-button" text="开始单人生产" class="button button-primary button-large" />
<ui:Button name="host-button" text="创建 LAN 房间" class="button button-cyan" />
<ui:Button name="join-button" text="加入 LAN 房间" class="button" />
<ui:TextField name="direct-ip-input" value="127.0.0.1" class="ip-input" />
<ui:Button name="transport-button" text="传输:TCP" class="button button-quiet" />
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="lobby-screen" class="screen lobby-screen hidden">
<ui:VisualElement class="header-bar">
<ui:Button name="lobby-back-button" text="←" tooltip="返回" class="icon-button" />
<ui:Label text="LAN 合作大厅" class="header-title" />
</ui:VisualElement>
<ui:Label name="lobby-status" text="offline" class="lobby-status" />
<ui:Label name="lobby-players" text="等待房间同步…" class="lobby-players" />
<ui:VisualElement class="lobby-actions">
<ui:Button name="lobby-ready-button" text="准备" class="button" />
<ui:Button name="lobby-start-button" text="Host 开始对局" class="button button-primary" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="factory-screen" class="screen factory-screen hidden">
<ui:VisualElement name="grid-input-surface" class="grid-input-surface" />
<ui:VisualElement class="top-bar">
<ui:Label name="core-text" text="核心 ◆◆◆" class="top-stat core-stat" />
<ui:Label name="money-text" text="资金 500" class="top-stat money-stat" />
<ui:Label name="phase-text" text="周期 1/5 · 建造" class="top-stat phase-stat" />
<ui:Label name="timer-text" text="01:00" class="top-stat timer-stat" />
<ui:Label name="network-text" text="单人本地" class="top-stat network-stat" />
<ui:Button name="ready-button" text="准备" class="top-button button-primary" />
<ui:Button name="speed-1-button" text="1×" tooltip="正常速度" class="top-button compact-button" />
<ui:Button name="speed-4-button" text="4×" tooltip="四倍速度" class="top-button compact-button" />
<ui:Button name="speed-10-button" text="10×" tooltip="十倍速度" class="top-button compact-button" />
<ui:Button name="save-button" text="存" tooltip="保存" class="top-button compact-button" />
<ui:Button name="load-button" text="读" tooltip="读取" class="top-button compact-button" />
<ui:Button name="exit-button" text="×" tooltip="返回标题" class="top-button compact-button danger-button" />
</ui:VisualElement>
<ui:VisualElement class="left-panel panel">
<ui:Label text="建造分类" class="panel-title" />
<ui:ScrollView name="build-palette" class="build-palette">
<ui:Button name="miner-button" class="machine-button"><ui:VisualElement name="miner-icon" class="machine-icon" /><ui:Label text="采集器 40" /></ui:Button>
<ui:Button name="conveyor-button" class="machine-button"><ui:VisualElement name="conveyor-icon" class="machine-icon" /><ui:Label text="传送带 5" /></ui:Button>
<ui:Button name="splitter-button" class="machine-button"><ui:VisualElement name="splitter-icon" class="machine-icon" /><ui:Label text="分流器 15" /></ui:Button>
<ui:Button name="smelter-button" class="machine-button"><ui:VisualElement name="smelter-icon" class="machine-icon" /><ui:Label text="熔炼机 80" /></ui:Button>
<ui:Button name="assembler-button" class="machine-button"><ui:VisualElement name="assembler-icon" class="machine-icon" /><ui:Label text="组装机 110" /></ui:Button>
<ui:Button name="loader-button" class="machine-button"><ui:VisualElement name="loader-icon" class="machine-icon" /><ui:Label text="装填器 70" /></ui:Button>
<ui:Button name="turret-button" class="machine-button"><ui:VisualElement name="turret-icon" class="machine-icon" /><ui:Label text="炮塔 150" /></ui:Button>
<ui:Button name="generator-button" class="machine-button"><ui:VisualElement name="generator-icon" class="machine-icon" /><ui:Label text="能量站 60" /></ui:Button>
</ui:ScrollView>
</ui:VisualElement>
<ui:VisualElement class="right-panel panel">
<ui:Label name="target-text" text="目标火力&#10;载荷 × 倍率" class="target-text" />
<ui:VisualElement class="rules-list">
<ui:VisualElement class="rule-slot"><ui:Label name="rule-name-1" text="1. 空槽位" class="rule-name cyan-text" /><ui:Label name="rule-description-1" text="防守成功后选择规则" class="rule-description" /><ui:Button name="rule-up-1" text="↑" tooltip="上移" class="rule-up" /></ui:VisualElement>
<ui:VisualElement class="rule-slot"><ui:Label name="rule-name-2" text="2. 空槽位" class="rule-name amber-text" /><ui:Label name="rule-description-2" text="防守成功后选择规则" class="rule-description" /><ui:Button name="rule-up-2" text="↑" tooltip="上移" class="rule-up" /></ui:VisualElement>
<ui:VisualElement class="rule-slot"><ui:Label name="rule-name-3" text="3. 空槽位" class="rule-name cyan-text" /><ui:Label name="rule-description-3" text="防守成功后选择规则" class="rule-description" /><ui:Button name="rule-up-3" text="↑" tooltip="上移" class="rule-up" /></ui:VisualElement>
<ui:VisualElement class="rule-slot"><ui:Label name="rule-name-4" text="4. 空槽位" class="rule-name amber-text" /><ui:Label name="rule-description-4" text="防守成功后选择规则" class="rule-description" /><ui:Button name="rule-up-4" text="↑" tooltip="上移" class="rule-up" /></ui:VisualElement>
<ui:VisualElement class="rule-slot"><ui:Label name="rule-name-5" text="5. 空槽位" class="rule-name cyan-text" /><ui:Label name="rule-description-5" text="防守成功后选择规则" class="rule-description" /><ui:Button name="rule-up-5" text="↑" tooltip="上移" class="rule-up" /></ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement class="bottom-bar">
<ui:Label name="selection-text" text="建造 传送带 · 朝向 0°" class="selection-text" />
<ui:Label name="error-text" text="" class="error-text" />
<ui:Button name="recipe-button" text="配方:无" class="bottom-button" />
<ui:Button name="rotate-button" text="↻" tooltip="旋转" class="bottom-button icon-bottom-button" />
<ui:Button name="remove-button" text="拆除" class="bottom-button danger-button" />
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="reward-screen" class="screen reward-screen hidden">
<ui:Label text="选择一条规则写入流水线" class="reward-title" />
<ui:Label text="规则严格从左到右执行,并获得一项机器效率升级" class="reward-subtitle" />
<ui:VisualElement class="reward-cards">
<ui:VisualElement class="reward-card"><ui:VisualElement class="card-stripe cyan-bg" /><ui:Label name="reward-category-1" text="生产链修正" class="reward-category" /><ui:Label name="reward-name-1" text="规则名" class="reward-name" /><ui:Label name="reward-description-1" text="规则说明" class="reward-description" /><ui:Button name="reward-choose-1" text="写入规则槽" class="button button-cyan" /></ui:VisualElement>
<ui:VisualElement class="reward-card"><ui:VisualElement class="card-stripe amber-bg" /><ui:Label name="reward-category-2" text="生产链修正" class="reward-category" /><ui:Label name="reward-name-2" text="规则名" class="reward-name" /><ui:Label name="reward-description-2" text="规则说明" class="reward-description" /><ui:Button name="reward-choose-2" text="写入规则槽" class="button button-primary" /></ui:VisualElement>
<ui:VisualElement class="reward-card"><ui:VisualElement class="card-stripe cyan-bg" /><ui:Label name="reward-category-3" text="生产链修正" class="reward-category" /><ui:Label name="reward-name-3" text="规则名" class="reward-name" /><ui:Label name="reward-description-3" text="规则说明" class="reward-description" /><ui:Button name="reward-choose-3" text="写入规则槽" class="button button-cyan" /></ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
<ui:VisualElement name="end-screen" class="screen end-screen hidden">
<ui:Label name="end-title" text="工厂守住了核心" class="end-title" />
<ui:Label name="end-summary" text="" class="end-summary" />
<ui:VisualElement class="end-actions">
<ui:Button name="restart-button" text="重新生产" class="button button-primary" />
<ui:Button name="title-button" text="返回模式选择" class="button" />
</ui:VisualElement>
</ui:VisualElement>
</ui:VisualElement>
</ui:UXML>