# 外部菜单

## **创建新菜单**

1. 打开配置文件 `plugins/DeluxeMenus/config.yml`.&#x20;
2. 注册一个新菜单，就是在 `gui_menus:` 添加新内容:

> ```yaml
>   <MenuName>:
>     file: <FileName>.yml
> ```
>
> > * `<MenuName>` 是菜单名字 (必填，且是唯一标识符) .
> > * `<FileName>` 菜单文件名，最好使用菜单名，以防搞混 (必填，且是唯一标识符).

所以会是这样:

```yaml
gui_menus:
  <MenuName>:
    file: <FileName>.yml
```

1. 重载插件 (`/dm reload`).&#x20;
2. 菜单文件由插件生成，并且会在 `gui_menus` 文件夹 (`plugins/DeluxeMenus/gui_menus`).&#x20;
3. 完成啦！打开菜单文件开始配置吧.

## **将菜单从配置文件移动至自己的文件夹内**

1. 打开配置文件 `plugins/DeluxeMenus/config.yml`.&#x20;
2. 转到配置中的菜单部分，并且添加以下文本:

> ```yaml
>     file: <FileName>.yml
> ```
>
> > * `<FileName>` 是菜单的文件名，最好使用菜单名字 (必须是唯一的).

所以会是这样:

```yaml
  YourMenuName:
    file: <FileName>.yml
    menu_title: "Your Title"
    size: #
    # etc
```

1. 重载插件 (`/dm reload`).&#x20;
2. 新菜单文件由插件生成在 `gui_menus` 文件夹 (`plugins/DeluxeMenus/gui_menus`). 去前往打开. &#x20;
3. 在配置文件里剪切你的菜单行 (`file:` 步骤二添加的选项的之后的第一行) .&#x20;
4. 转到菜单外部文件，然后将内容替换为刚刚剪切的菜单航.&#x20;
5. 在每一行之前删除4个空格。(快捷键小技巧:`CTRL + A`选择所有文本，然后按两次`CTRL + [`来轻松的实现。请注意：并非所有的文本编辑器都支持这一操作)
6. 重载DeluxeMenus插件 (`/dm reload`).&#x20;
7. 完成啦，新文件应该看起来像这样:

```yaml
menu_title: "Your Title"
size: #
# etc
```


---

# 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://deluxemenu.wiki.complexstudio.net/untitled.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.
