Skip to content

Commit 5f58e5b

Browse files
committed
chore: 更新文档主页
1 parent 1cd8fed commit 5f58e5b

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

ZalithLauncher/src/main/assets/home_page/doc_page_en.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ Creates a clickable button.
8686
- `event`: The event to trigger, optional. The value must be wrapped in double quotes, and event data is wrapped in curly braces.
8787
- `url{...}`: Opens a link in the browser.
8888
- `check_update`: Triggers the launcher to check for updates.
89-
- `launch_game`: Launches the currently selected version.
89+
- `launch_game{server=...}`: Launches the currently selected version.
90+
- Parameter `server`: Specifies the server to quick-join after launch, optional.
9091
- `copy{...}`: Copies the specified content.
91-
- For more events, please refer to the launcher's actual supported list.
92+
- `refresh_page`: Refreshes the current homepage.
93+
- `share_game_log`: Shares the log of the current game version.
9294
- `width`: The width of the button, optional.
9395
- You can use a percentage width, calculated based on the actual width of the homepage and the containing layout component: `50%` (only integer percentages supported).
9496
- You can use DP units to set a more specific width: `200dp` (supports integers and decimals).

ZalithLauncher/src/main/assets/home_page/doc_page_zh.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@ contentPadding=(4, 4, 12, 12)
8686
- `event`: 触发的事件,可选,值需使用双引号包裹,使用花括号包裹事件数据
8787
- `url{...}`: 在浏览器中打开链接
8888
- `check_update`: 触发启动器检查更新
89-
- `launch_game`: 启动当前选中的版本
89+
- `launch_game{server=...}`: 启动当前选中的版本
90+
- 参数 `server`:指定快速启动并加入的服务器,可选
9091
- `copy{...}`: 复制指定内容
91-
- 更多事件请参考启动器的实际支持列表
92+
- `refresh_page`: 刷新当前主页
93+
- `share_game_log`: 分享当前游戏版本的日志
9294
- `width`: 按钮的宽度,可选
9395
- 可使用百分比宽度,会根据主页的实际宽度、所在布局组件的宽度计算:`50%`,仅支持整数百分比
9496
- 可使用 DP 单位来设置更具体的宽度:`200dp`,支持整数、小数

0 commit comments

Comments
 (0)