# 自定义GUI

当配置一个插件的 config.yml 时，如果你发现了如下内容，则代表它可以自定义GUI。

```yaml
# Custom GUI slots; see here for a how-to: https://plugins.auxilor.io/all-plugins/custom-gui-slots
custom-slots: []
```

## 如何配置自定义GUI

很简单，我们只需要将这个选项改成这个样子即可：

```yaml
custom-slots:
  - row: 6 # 行
    column: 9 # 列
    item: ecoitems:skill_gui_item # 物品语句
    lore: [] # Lore
    left-click: # 左键
      - console:op %player% # 以控制台身份执行，使用 %player% 代表玩家
      - spawn # 如果前面没有 console: 开头，则代表以玩家身份执行
    right-click: [] # 右键
    shift-left-click: [] # Shift 左键
    shift-right-click: [] # Shift 右键
```

## 添加多个自定义按钮

上文是只添加了一个按钮，我们只需要安装这个格式继续填写即可让其添加更多的按钮：

```yaml
custom-slots:
  - <按钮1的配置>
  - <按钮2的配置>
  - <按钮3的配置>
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.superiormc.cn/auxilor-plugins/tong-yong-xin-xi/zi-ding-yi-gui.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
