跳转到内容

SusHudDeploymentReady

SusHudDeploymentReady

部署阶段的行动号召 — 醒目的准备按钮,带启用开关。

SusGame · HUD(商业)

在 Playground 中打开

SusGame · HUD

属性

名称类型默认值
LabelProp<string>"Deployment ready"
EnabledProp<bool>true

插槽

没有插槽。

事件

名称字段载荷
ReadyOnReady

样式钩子

USS 类契约 — 无需改 C# 即可覆盖外观。状态通过这些类切换:

  • sus-hud-deployment-ready
  • sus-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
Enabledfalse 时禁用按钮
ApplyData(label, enabled?)批量更新
OnReady启用状态下的点击

备注

  • 应放置在部署阶段的 HUD 外框中(通常与单位栏 / 小地图并列),而不是作为独立屏幕。
  • 空标题会回退到默认值 Deployment ready