fgui_create_button
Creates a standard FairyGUI Button component with up/down/over/selected/disabled state images, optional icon and text, and common, check, or radio modes. Saves the package and optionally verifies package.xml.
Instructions
创建标准 FairyGUI Button 组件;状态图顺序为 up/down/over/selectedOver/disabled/selectedDisabled。
save=True 保存包与工程后默认比对 package.xml(分支写入比对 package_branch.xml)条目;组件类资源不支持 external_reload,strength 上限为 disk。
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"package_name": "<package_name>",
"button_name": "<button_name>"
},
"name": "fgui_create_button"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | common | |
| save | No | ||
| width | No | ||
| branch | No | ||
| height | No | ||
| verify | No | ||
| exported | No | ||
| image_urls | No | ||
| auto_rename | No | ||
| button_name | Yes | ||
| create_icon | No | ||
| create_text | No | ||
| folder_path | No | ||
| as_list_item | No | ||
| extension_id | No | ||
| package_name | Yes | ||
| create_folders | No | ||
| create_relations | No | ||
| open_after_create | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||