[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79MDJ32A6PVWNPGSS4NDWQ1":3,"skill-same:01M79MDJ32A6PVWNPGSS4NDWQ1":55},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":29,"commitSha":30,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":31,"repositoryHomepageUrl":6,"ownerHtmlUrl":32,"ownerBlogUrl":6,"ownerDescription":33,"updatedAt":34,"install":35,"resources":48},"01M79MDJ32A6PVWNPGSS4NDWQ1","godot-ui-control",null,"Build Godot 4.x user interfaces with Control nodes: anchors and offsets for responsive layout, Container nodes (VBox\u002FHBox\u002FGrid\u002FMargin) for automatic arrangement, Theme resources for consistent styling, and keyboard\u002Fgamepad focus navigation. Use when laying out a HUD, menu, or UI in a Godot project, working with Control\u002FContainer nodes, anchors, themes, or focus in a .tscn.","mistervaibhav\u002Fskills","mistervaibhav","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F41189028?v=4","01M79KACH05EG9FMM6DQVHAVK9","Vaibhav Singh","01M79KACJB3431Y8CFJQ02MTTM",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-ui-control\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: godot-ui-control\ndescription: >\n  Build Godot 4.x user interfaces with Control nodes: anchors and offsets for\n  responsive layout, Container nodes (VBox\u002FHBox\u002FGrid\u002FMargin) for automatic\n  arrangement, Theme resources for consistent styling, and keyboard\u002Fgamepad focus\n  navigation. Use when laying out a HUD, menu, or UI in a Godot project, working\n  with Control\u002FContainer nodes, anchors, themes, or focus in a .tscn.\nlicense: Apache-2.0\ncompatibility: Godot 4.3+\nmetadata:\n  engine: godot\n  category: godot\n  difficulty: intermediate\n---\n\n# Godot UI \u002F Control nodes (4.x)\n\nLay out responsive UI with `Control` anchors and `Container` nodes, style it with a\n`Theme`, and make it navigable by keyboard and gamepad. Targets **Godot 4.3+**.\n\n## When to use\n\n- Use when building HUDs, menus, inventories, dialog boxes, or settings screens with\n  `Control`-derived nodes; arranging UI that adapts to window size; theming; or wiring\n  focus navigation for controller\u002Fkeyboard.\n\n**When *not* to use:** in-world 2D nodes (`Node2D`\u002Fsprites) → `godot-nodes-scenes`;\nanimating UI transitions → `godot-animation` (Tween); genre UIs like card hands →\n`card-game`\u002F`visual-novel`. For full input rebinding → `input-systems`.\n\n## Core workflow\n\n1. **Use `Control` nodes for UI**, not `Node2D`. Controls have a rect (position + size),\n   anchors, and participate in focus\u002Ftheming.\n2. **Anchor for responsiveness.** Anchors are fractions (0–1) of the parent rect that the\n   Control's edges stick to. Use the editor's **Layout** presets (Top-Left, Full Rect,\n   Center, etc.) instead of hand-placing pixels.\n3. **Let Containers position children.** Put children in a `VBoxContainer`,\n   `HBoxContainer`, `GridContainer`, `MarginContainer`, etc. — the container sets their\n   position\u002Fsize; you control flow with `size_flags`. Don't set child anchors inside a\n   container (it overrides them).\n4. **Style with a `Theme`.** Assign a `Theme` resource on a top Control; children inherit\n   it. Override per-node with theme overrides only when necessary.\n5. **Wire focus** so gamepad\u002Fkeyboard can move between buttons; set a default focused\n   control and define neighbors or rely on auto-neighbor.\n6. **Connect signals** (`pressed`, `toggled`, `text_submitted`, `value_changed`).\n\n## Patterns\n\n### 1. Responsive layout with anchors (code form)\n\n```gdscript\nextends Control\n\nfunc _ready() -> void:\n    # Stretch this panel to fill its parent (equivalent to the \"Full Rect\" preset).\n    anchors_preset = Control.PRESET_FULL_RECT\n    # Or set anchors manually: all four edges at the parent's far corners.\n    # anchor_left = 0; anchor_top = 0; anchor_right = 1; anchor_bottom = 1\n```\n\n### 2. A menu built from containers + button signals\n\n```gdscript\nextends VBoxContainer    # children stack vertically, auto-sized\n\nfunc _ready() -> void:\n    for child in get_children():\n        if child is Button:\n            child.pressed.connect(_on_button_pressed.bind(child.name))\n    # Give the first button focus so a gamepad can navigate immediately.\n    if get_child_count() > 0:\n        (get_child(0) as Control).grab_focus()\n\nfunc _on_button_pressed(which: StringName) -> void:\n    match which:\n        \"PlayButton\":  get_tree().change_scene_to_file(\"res:\u002F\u002Fgame.tscn\")\n        \"QuitButton\":  get_tree().quit()\n```\n\n### 3. Size flags: make one child expand to fill leftover space\n\n```gdscript\n# In a HBoxContainer: a label on the left, a spacer that eats remaining width.\nfunc _ready() -> void:\n    $Label.size_flags_horizontal = Control.SIZE_SHRINK_BEGIN\n    $Spacer.size_flags_horizontal = Control.SIZE_EXPAND_FILL   # grows to fill\n```\n\n### 4. Theme override for one node (without a full Theme resource)\n\n```gdscript\nfunc _ready() -> void:\n    # Per-node overrides: use add_theme_* (type-specific setters).\n    $Title.add_theme_font_size_override(\"font_size\", 32)\n    $Title.add_theme_color_override(\"font_color\", Color.GOLD)\n    $Panel.add_theme_stylebox_override(\"panel\", preload(\"res:\u002F\u002Fui\u002Fpanel.stylebox.tres\"))\n```\n\n## Pitfalls\n\n- **Mixing manual position with Containers.** A child of a `Container` cannot set its own\n  position\u002Fanchors — the container owns layout. To free-place, take the node out of the\n  container or use a plain `Control`\u002F`PanelContainer` wrapper.\n- **Anchors vs offsets.** Anchors are fractions of the parent; offsets are pixel deltas\n  from the anchored point. Set anchors via presets, then nudge with offsets. Setting only\n  position while anchors are at 0 makes UI not scale with the window.\n- **`Node2D` for UI.** Buttons\u002Flabels parented under a `Node2D` won't theme or take focus\n  correctly. Keep UI under a `CanvasLayer`\u002F`Control` subtree.\n- **Focus lost on gamepad.** If nothing is focused, directional input does nothing. Call\n  `grab_focus()` on an initial control and ensure `focus_mode` is not `FOCUS_NONE`.\n- **Theme vs theme override.** A `Theme` resource styles a whole subtree; `add_theme_*`\n  overrides one node. Overusing per-node overrides defeats centralized theming.\n- **`rect_*` properties are renamed.** Godot 3's `rect_size`\u002F`rect_position`\u002F`rect_min_size`\n  are now `size`\u002F`position`\u002F`custom_minimum_size` in 4.x.\n- **`mouse_filter`** on a full-rect Control can swallow clicks meant for nodes beneath it;\n  set `MOUSE_FILTER_IGNORE` on purely decorative panels.\n\n## References\n\n- For the anchor\u002Foffset math, every Container type, building\u002Fextending Theme and StyleBox\n  resources, focus neighbor wiring, and `CanvasLayer` for HUDs, read\n  `references\u002Flayout-and-theming.md`.\n\n## Related skills\n\n- `game-ui-ux` — cross-engine UI\u002FUX: responsive scaling, safe areas, focus navigation, screen flow.\n- `godot-animation` — Tween-based UI transitions and juicing.\n- `godot-signals-groups` — connecting UI events to game logic.\n- `input-systems` — rebindable input and multi-device focus.\n- `card-game` \u002F `visual-novel` — UI-heavy genre templates.\n","# Godot UI \u002F Control nodes (4.x)\n\nLay out responsive UI with `Control` anchors and `Container` nodes, style it with a\n`Theme`, and make it navigable by keyboard and gamepad. Targets **Godot 4.3+**.\n\n## When to use\n\n- Use when building HUDs, menus, inventories, dialog boxes, or settings screens with\n  `Control`-derived nodes; arranging UI that adapts to window size; theming; or wiring\n  focus navigation for controller\u002Fkeyboard.\n\n**When *not* to use:** in-world 2D nodes (`Node2D`\u002Fsprites) → `godot-nodes-scenes`;\nanimating UI transitions → `godot-animation` (Tween); genre UIs like card hands →\n`card-game`\u002F`visual-novel`. For full input rebinding → `input-systems`.\n\n## Core workflow\n\n1. **Use `Control` nodes for UI**, not `Node2D`. Controls have a rect (position + size),\n   anchors, and participate in focus\u002Ftheming.\n2. **Anchor for responsiveness.** Anchors are fractions (0–1) of the parent rect that the\n   Control's edges stick to. Use the editor's **Layout** presets (Top-Left, Full Rect,\n   Center, etc.) instead of hand-placing pixels.\n3. **Let Containers position children.** Put children in a `VBoxContainer`,\n   `HBoxContainer`, `GridContainer`, `MarginContainer`, etc. — the container sets their\n   position\u002Fsize; you control flow with `size_flags`. Don't set child anchors inside a\n   container (it overrides them).\n4. **Style with a `Theme`.** Assign a `Theme` resource on a top Control; children inherit\n   it. Override per-node with theme overrides only when necessary.\n5. **Wire focus** so gamepad\u002Fkeyboard can move between buttons; set a default focused\n   control and define neighbors or rely on auto-neighbor.\n6. **Connect signals** (`pressed`, `toggled`, `text_submitted`, `value_changed`).\n\n## Patterns\n\n### 1. Responsive layout with anchors (code form)\n\n```gdscript\nextends Control\n\nfunc _ready() -> void:\n    # Stretch this panel to fill its parent (equivalent to the \"Full Rect\" preset).\n    anchors_preset = Control.PRESET_FULL_RECT\n    # Or set anchors manually: all four edges at the parent's far corners.\n    # anchor_left = 0; anchor_top = 0; anchor_right = 1; anchor_bottom = 1\n```\n\n### 2. A menu built from containers + button signals\n\n```gdscript\nextends VBoxContainer    # children stack vertically, auto-sized\n\nfunc _ready() -> void:\n    for child in get_children():\n        if child is Button:\n            child.pressed.connect(_on_button_pressed.bind(child.name))\n    # Give the first button focus so a gamepad can navigate immediately.\n    if get_child_count() > 0:\n        (get_child(0) as Control).grab_focus()\n\nfunc _on_button_pressed(which: StringName) -> void:\n    match which:\n        \"PlayButton\":  get_tree().change_scene_to_file(\"res:\u002F\u002Fgame.tscn\")\n        \"QuitButton\":  get_tree().quit()\n```\n\n### 3. Size flags: make one child expand to fill leftover space\n\n```gdscript\n# In a HBoxContainer: a label on the left, a spacer that eats remaining width.\nfunc _ready() -> void:\n    $Label.size_flags_horizontal = Control.SIZE_SHRINK_BEGIN\n    $Spacer.size_flags_horizontal = Control.SIZE_EXPAND_FILL   # grows to fill\n```\n\n### 4. Theme override for one node (without a full Theme resource)\n\n```gdscript\nfunc _ready() -> void:\n    # Per-node overrides: use add_theme_* (type-specific setters).\n    $Title.add_theme_font_size_override(\"font_size\", 32)\n    $Title.add_theme_color_override(\"font_color\", Color.GOLD)\n    $Panel.add_theme_stylebox_override(\"panel\", preload(\"res:\u002F\u002Fui\u002Fpanel.stylebox.tres\"))\n```\n\n## Pitfalls\n\n- **Mixing manual position with Containers.** A child of a `Container` cannot set its own\n  position\u002Fanchors — the container owns layout. To free-place, take the node out of the\n  container or use a plain `Control`\u002F`PanelContainer` wrapper.\n- **Anchors vs offsets.** Anchors are fractions of the parent; offsets are pixel deltas\n  from the anchored point. Set anchors via presets, then nudge with offsets. Setting only\n  position while anchors are at 0 makes UI not scale with the window.\n- **`Node2D` for UI.** Buttons\u002Flabels parented under a `Node2D` won't theme or take focus\n  correctly. Keep UI under a `CanvasLayer`\u002F`Control` subtree.\n- **Focus lost on gamepad.** If nothing is focused, directional input does nothing. Call\n  `grab_focus()` on an initial control and ensure `focus_mode` is not `FOCUS_NONE`.\n- **Theme vs theme override.** A `Theme` resource styles a whole subtree; `add_theme_*`\n  overrides one node. Overusing per-node overrides defeats centralized theming.\n- **`rect_*` properties are renamed.** Godot 3's `rect_size`\u002F`rect_position`\u002F`rect_min_size`\n  are now `size`\u002F`position`\u002F`custom_minimum_size` in 4.x.\n- **`mouse_filter`** on a full-rect Control can swallow clicks meant for nodes beneath it;\n  set `MOUSE_FILTER_IGNORE` on purely decorative panels.\n\n## References\n\n- For the anchor\u002Foffset math, every Container type, building\u002Fextending Theme and StyleBox\n  resources, focus neighbor wiring, and `CanvasLayer` for HUDs, read\n  `references\u002Flayout-and-theming.md`.\n\n## Related skills\n\n- `game-ui-ux` — cross-engine UI\u002FUX: responsive scaling, safe areas, focus navigation, screen flow.\n- `godot-animation` — Tween-based UI transitions and juicing.\n- `godot-signals-groups` — connecting UI events to game logic.\n- `input-systems` — rebindable input and multi-device focus.\n- `card-game` \u002F `visual-novel` — UI-heavy genre templates.\n",{"name":5,"license":15,"metadata":24,"description":27,"compatibility":28},{"engine":25,"category":25,"difficulty":26},"godot","intermediate","Build Godot 4.x user interfaces with Control nodes: anchors and offsets for responsive layout, Container nodes (VBox\u002FHBox\u002FGrid\u002FMargin) for automatic arrangement, Theme resources for consistent styling, and keyboard\u002Fgamepad focus navigation. Use when laying out a HUD, menu, or UI in a Godot project, working with Control\u002FContainer nodes, anchors, themes, or focus in a .tscn.\n","Godot 4.3+","main","6d4e3296d58b2720c5b1026197cd069b1dde4789","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills","https:\u002F\u002Fgithub.com\u002Fmistervaibhav","Software Engineer","2026-07-24 17:16:42",{"source":8,"skillName":5,"commands":36,"prompt":46,"zipAvailable":47},[37,40,43],{"tool":38,"command":39},"npx","npx skills add mistervaibhav\u002Fskills --skill godot-ui-control",{"tool":41,"command":42},"bunx","bunx skills add mistervaibhav\u002Fskills --skill godot-ui-control",{"tool":44,"command":45},"pnpm","pnpm dlx skills add mistervaibhav\u002Fskills --skill godot-ui-control","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-ui-control\u002FSKILL.md",true,[49],{"path":50,"resourceType":51,"resourceTypeDesc":52,"sizeBytes":53,"sourceHtmlUrl":54},"references\u002Flayout-and-theming.md","REFERENCE","参考文档",4108,"https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fgodot-ui-control\u002Freferences\u002Flayout-and-theming.md",[56,64,72,80,87,94],{"skillNo":57,"name":58,"nameZh":6,"description":59,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":60,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M79NZDV5781GA6SJMN1QPXB4","webapp-testing","Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FLICENSE.txt","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fwebapp-testing\u002FSKILL.md",[],[],{"skillNo":65,"name":66,"nameZh":6,"description":67,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M79NZ8SEVWT4WYD49BV980YW","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", or \"type hierarchy\". Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","MIT","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":73,"name":74,"nameZh":6,"description":75,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":76,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79NYVQS5NYHH36NXF2AHP8B","web-haptics","Add haptic feedback to web apps using the web-haptics library. Use when building mobile-facing UIs that need tactile feedback on buttons, toggles, forms, pickers, and other interactive elements.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fweb-haptics\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79NY8AMC62DDRSH21WKXJVE","visual-novel","Build a visual novel: a branching script, character and background display, a text box with choices, save\u002Fload, backlog, and skip\u002Fauto. Use for a VN, dating sim, or branching story game.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fvisual-novel\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":68,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79NWFM5R9QC9Y2AT40EHF44","ux-heuristics","Evaluate and improve interface usability using heuristic analysis. Use when the user mentions \"usability audit\", \"UX review\", \"users are confused\", \"heuristic evaluation\", \"form usability\", or \"navigation problems\". Covers Nielsen's 10 heuristics, severity ratings, and information architecture. For visual design fixes, see refactoring-ui. For conversion-focused audits, see cro-methodology.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Fux-heuristics\u002FSKILL.md",[],[],{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":19},"01M79NVSG7AB3MSFT8Y6EEHG1B","unreal-packaging","Package and ship an Unreal Engine 5 project: the Platforms menu Package Project flow, build configurations (Development vs Shipping), cooking content, packaging settings and the Game Default Map, and command-line builds with RunUAT BuildCookRun. Use when packaging a build, making a shipping build, cooking content, configuring packaging settings, or when the user mentions package Unreal, cook content, shipping build, or BuildCookRun.","https:\u002F\u002Fgithub.com\u002Fmistervaibhav\u002Fskills\u002Fblob\u002Fmain\u002Funreal-packaging\u002FSKILL.md",[],[]]