跳转到内容

SusBattleCell

SusBattleCell

战斗网格单元格 — reachable/path/threat/target/deploy/hazard 高亮状态、terrain 类型、战利品标记、path step/turn 编号。

SusGame · HUD(商业)

在 Playground 中打开

SusGame · HUD

属性

名称类型默认值
ReachableProp<bool>falsev-model
PathProp<bool>falsev-model
ThreatProp<bool>falsev-model
TargetProp<bool>falsev-model
DeployProp<bool>falsev-model
HazardProp<bool>falsev-model
SelectedProp<bool>falsev-model
HasLootProp<bool>falsev-model
TerrainProp<string>"ground"v-model
PathStepProp<int>0v-model
PathTurnProp<string>""v-model

插槽

没有插槽。

事件

没有公开事件。

样式钩子

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

  • sus-battle-cell
  • sus-battle-cell__edge
  • sus-battle-cell__edge--e
  • sus-battle-cell__edge--full
  • sus-battle-cell__edge--half
  • sus-battle-cell__edge--n
  • sus-battle-cell__edge--s
  • sus-battle-cell__edge--w
  • sus-battle-cell__fill
  • sus-battle-cell__loot
  • sus-battle-cell__step
  • sus-battle-cell__terrain
  • sus-battle-cell--deploy
  • sus-battle-cell--hazard
  • sus-battle-cell--loot
  • sus-battle-cell--path
  • sus-battle-cell--reachable
  • sus-battle-cell--selected
  • sus-battle-cell--target
  • sus-battle-cell--terrain-ground
  • sus-battle-cell--terrain-high
  • sus-battle-cell--terrain-rubble
  • sus-battle-cell--terrain-water
  • sus-battle-cell--threat

Usage

xml
<sus:SusBattleCell />