SusHudDeploymentReady

部署阶段的行动号召 — 醒目的准备按钮,带启用开关。
包
SusGame · HUD(商业)
属性
| 名称 | 类型 | 默认值 | |
|---|---|---|---|
Label | Prop<string> | "Deployment ready" | |
Enabled | Prop<bool> | true |
插槽
没有插槽。
事件
| 名称 | 字段 | 载荷 |
|---|---|---|
Ready | OnReady | — |
样式钩子
USS 类契约 — 无需改 C# 即可覆盖外观。状态通过这些类切换:
sus-hud-deployment-readysus-hud-deployment-ready__btn
用法
csharp
var ready = new SusHudDeploymentReady();
ready.Label.Value = "Deployment ready";
ready.Enabled.Value = true;
ready.OnReady += () => { /* lock deployment / start battle */ };
// or: ready.ApplyData("Ready!", enabled: canConfirm);xml
<template>
<sus:SusHudDeploymentReady :Label="Label.Value"
:Enabled="Enabled.Value"
@ready="OnReady" />
</template>
<script>
public Prop<string> Label = new("Deployment ready");
public Prop<bool> Enabled = new(true);
void OnReady() { /* … */ }
</script>| Prop / API | 作用 |
|---|---|
Label | 按钮文字(默认 Deployment ready) |
Enabled | false 时禁用按钮 |
ApplyData(label, enabled?) | 批量更新 |
OnReady | 启用状态下的点击 |
备注
- 应放置在部署阶段的 HUD 外框中(通常与单位栏 / 小地图并列),而不是作为独立屏幕。
- 空标题会回退到默认值
Deployment ready。