AGENT SKILL

godot-build-ui

Build Godot Control-based game interfaces with responsive layout, reliable focus, and lifecycle-safe HUD binding.

适用职业设计师
License 许可
MIT
最近更新
2026-11-13
Stars
★ 4
Forks
3

01 前言 Front Matter

name
godot-build-ui
engines
[ "GODOT" ]
description
Build Godot Control-based game interfaces with responsive layout, reliable focus, and lifecycle-safe HUD binding.

02 资源文件 11

03 SKILL.md 正文

Godot Build UI

When to use

Build Godot Control-based game interfaces with responsive layout, reliable focus, and lifecycle-safe HUD binding. Apply this feature only to Godot-owned code and content.

Activation and prerequisites

Run commands/resolve-engine.sh and commands/resolve-skill.sh godot-build-ui before edits or tool launches. Continue only when the effective engine is GODOT and the skill is eligible. Skill selection never selects the engine. Honor validated task override evidence and its permitted isolated output scope.

Read Godot version, GDScript/C# choice, target surfaces, local input ownership, theme/typography, safe areas, localization and accessibility requirements. Identify existing screen stack and signal/state architecture.

Workflow

  1. Compose Control nodes with Containers, anchors, offsets, size flags and minimum sizes deliberately. Container-managed children should not fight manual positioning; theme overrides need clear local versus shared ownership.
  2. Define screens, overlays and modals as a lifecycle with one input owner. Handle show/hide, pause, dismissal and return focus; a hidden screen must not keep processing gameplay-facing actions.
  3. Set keyboard/controller focus neighbors and valid initial/fallback focus. Use grab_focus only at the correct activation point, recover when nodes are removed/disabled and preserve pointer interaction without losing controller navigation.
  4. Separate _gui_input event consumption from global Input polling. Gate gameplay actions explicitly while UI owns input, and prevent accept/cancel from activating both the screen and the world.
  5. Initialize HUD from an authoritative snapshot and connect signals once. Disconnect on teardown, handle respawn/player changes and avoid retaining freed Nodes through callbacks or awaited operations.
  6. Generate prompts from active bindings/device ownership and support text expansion, scale, safe areas and localization. Keep settings such as reduced motion and haptic intensity independent.
  7. Use version-supported accessibility properties and target assistive-technology behavior. Godot web exports can use browser QA, while native Control accessibility requires native evidence.

Verification

  • Test nested modals, accept/cancel leakage, focus restoration, dynamic lists and pointer/controller switching.
  • Exercise aspect ratios, safe areas, long/localized text, text scale and loading/empty/error states.
  • Repeat HUD open/close, scene reload and respawn to catch duplicate signals or stale state; record native interaction and accessibility results.

Output

Control scenes/themes and adapters, screen/focus/input contract, HUD signal lifecycle, layout matrix and target UI evidence. Record environment, scope, expected and observed results, evidence paths, and blocked or not-run checks separately from passes.

Boundaries

Do not infer accessibility support from appearance or web evidence alone. Missing native/device checks stay blocked or not run, and selected language remains unchanged. Independent services and tools retain their architecture contracts.

References

04 同仓库更多 Skills

TimothyMeadows
TimothyMeadows/Hephaera

verify-web3-game-lifecycle

Verify a game's selected Web3 asset, wallet, ownership and trading lifecycle with contract properties, canonical recovery, actual target evidence and separate release readiness.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

verify-onchain-game-assets

Verify exact on-chain game collection ownership and quantities at canonical blocks, reconcile inventory events, and design honest match admission. Use for ERC721/ERC1155 inventory, reorg recovery, reservations, or transfer-during-match rules.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

plan-web3-game-assets

Define an opt-in Ethereum, Base or Immutable game-asset lifecycle, including token identity, supply, rights, custody, game eligibility and chain-specific dependencies.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-wallets

Integrate explicit player-wallet connection, scoped SIWE authentication, authority invalidation and reviewed target-specific handoff without application-held player keys.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

integrate-game-asset-trading

Integrate explicitly selected game asset settlement with exact unsigned intents, scoped approvals, idempotent operations and canonical receipt reconciliation. Use for NFT listing, buying, cancellation, retries or marketplace integration.

★ 4
TimothyMeadows
TimothyMeadows/Hephaera

build-evm-game-contracts

Author and verify host-owned EVM game collections and explicit mint, burn, craft or admin rules with pinned Solidity tooling. Use for contract source and deployment candidates; deployment and player signing require separate authorization.

★ 4