dialog-xml
БесплатноБез исполняемых скриптовНе проверенExplains how XML dialogs are used, covering file layout, coordinate rules, widget attributes, command bindings, and GUI color/font theming.
от container32161 установка в других каталогахОб этом скилле
XML Dialog
FlightGear draws its menubar and dialog boxes with PUI (or Canvas plus a compatibility layer in 2024.2 and later), reading PropertyList XML from $FG_ROOT/gui/. A dialog becomes reachable when a menubar item fires dialog-show with the dialog's <name>. Everything below is the practical subset you need to create, wire up, and restyle those files.
Minimal dialog skeleton
<PropertyList>
<name>hello</name>
<width>150</width>
<height>100</height>
<modal>false</modal>
<draggable>true</draggable>
<resizable>true</resizable>
<text>
<x>10</x>
<y>50</y>
<label>Hello, world</label>
</text>
<button>
<x>40</x>
<y>10</y>
<legend>Close</legend>
<binding>
<command>dialog-close</command>
</binding>
</button>
</PropertyList>
The root element is always PropertyList; the dialog's name lives in a child element, not an attribute.
Coordinates
PUI treats the screen as a fixed 1024×768 canvas regardless of actual resolution. Values are pseudo-pixels.
- Origin is the bottom-left corner of the screen, parent dialog, or enclosing group.
xgrows left → right;ygrows bottom → top.- Omitted
x/ycenter the object. - Omitted
width/heightinherit the parent container's size. (The upstream doc says "width" for the height default — that is a typo; read it as height.)
Attributes shared by most objects
| Attribute | Meaning |
|---|---|
x, y |
Bottom-left position in pseudo-pixels |
width, height |
Object size in pseudo-pixels |
border |
Border thickness; default 2 |
color |
Subgroup: red, green, blue, alpha |
font |
Subgroup: name (no .txf), size, slant — size/slant apply to texture fonts only |
legend |
Text drawn on the widget itself (e.g. button face) |
label |
Text drawn near the widget |
property |
Property-tree path bound to the widget's value |
binding |
One or more command bindings fired on activation |
keynum |
Raw key code that triggers the widget (e.g. 97 for a) |
key |
Character or symbolic key name ("a", "Shift-A", "Tab", "F1", "PageDn"); escape <, >, & as <, >, & |
default |
true makes this the object activated by Return |
visible |
false hides the widget and its children with no reserved space |
Widget catalog
dialog
Top-level container. Required <name>. Extra keys: modal (default false), draggable (default true), resizable (default false), and a nasal block with open/close scripts. Nasal runs in a dialog namespace; settimer() and setlistener() set in open must be torn down in close if they should not outlive the dialog.
group / frame
group is an invisible layout container — children position themselves relative to it. frame is the same but draws a border and adjustable background. Use them to move blocks of widgets together.
input
Editable single-line text field. Bind with property; the value is read and written through that node.
text
Read-only label. Add format (printf-style) plus property to display a live value, e.g. <format>%-0.4f m</format>. A <label> is still useful as a width placeholder when the property is empty.
checkbox
Two-state control; binds a boolean property.
button
Push button. one-shot (default true) controls whether it pops back up. Attach one or more bindings; dialog-apply and dialog-close are the usual pair. Mark <default>true</default> for Return activation.
combo
Drop-down of fixed choices. Each option is a <value> element; bind the selection to property.
list
Scrollable list box with a right-side slider. Same <value> children as combo; updates property to the selected entry. On dialog-update it re-scans the value nodes.
airport-list
Auto-populated list of every airport FlightGear knows. property acts as a search term on dialog-update; the selected ICAO goes back into property on dialog-apply.
property-list
Navigable view of the global property tree. Fires bindings on selection and returns the selected path in property on apply. It only shows values — it does not set them. Held-modifier shortcuts: Ctrl+. toggles verbose mode, Ctrl+.. jumps to root, Ctrl+click on a bool toggles it, Shift+. dumps that tree level to the terminal. Printed flags mean r/w read/write protected, R/W traced, A/U archive/user-archive, P preserved on reset, T tied, Ln listener count.
select
Box with arrow buttons cycling through fixed <value> entries, bound to property.
slider
Horizontal by default; set vertical to true for a column. min (0.0) and max (1.0) set the range; step and pagestep enable discrete movement; fraction sizes the handle (0..1).
dial
Circular direction picker. min/max (0.0/1.0) and wrap (default true) shape the behavior; typical use is a 0–360 heading bound to a property.
textbox
Multi
Установить dialog-xml в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл dialog-xml?
Explains how XML dialogs are used, covering file layout, coordinate rules, widget attributes, command bindings, and GUI color/font theming.
Как установить скилл dialog-xml?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл dialog-xml запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
frontend-design
Guidance for distinctive, intentional visual design when building new UI or reshaping an existing one. Helps with aesthetic direction, typography, and making…
от Anthropicwebapp-testing
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing…
от Anthropicbrand-guidelines
Applies Anthropic's official brand colors and typography to any sort of artifact that may benefit from having Anthropic's look-and-feel. Use it when brand…
от Anthropicweb-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use…
от Anthropic