You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: ZalithLauncher/src/main/assets/home_page/doc_page_en.md
+25-2Lines changed: 25 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,27 @@ In addition to standard Markdown, you can also use the following extension compo
15
15
16
16
---
17
17
18
+
### Random Text Block
19
+
Place multiple text segments within a block. When the homepage loads, one of the segments will be randomly displayed.
20
+
21
+
**Syntax**
22
+
...random-start
23
+
This is a piece of text, weight defaults to 1.0
24
+
weight(2.0): This is the second piece of text, weight is set to 2.0
25
+
This is the third piece of text
26
+
...random-end
27
+
28
+
**Parameter description:**
29
+
- Unlike other components, this component uses inline parameters, embedded directly at the beginning of the actual value line.
30
+
-`weight`:
31
+
- Specifies the weight value for this piece of text. Supports integers and decimals. Optional.
32
+
- The homepage will randomly select a piece of text according to the weights.
33
+
34
+
> This component is only supported within standard Markdown.
35
+
> This component will NOT take effect inside standard Markdown containers or other extension components.
36
+
37
+
---
38
+
18
39
### Card Component
19
40
Used to wrap content inside a container with a background and rounded corners.
20
41
@@ -86,9 +107,11 @@ Creates a clickable button.
86
107
-`event`: The event to trigger, optional. The value must be wrapped in double quotes, and event data is wrapped in curly braces.
87
108
-`url{...}`: Opens a link in the browser.
88
109
-`check_update`: Triggers the launcher to check for updates.
89
-
-`launch_game`: Launches the currently selected version.
110
+
-`launch_game{server=...}`: Launches the currently selected version.
111
+
- Parameter `server`: Specifies the server to quick-join after launch, optional.
90
112
-`copy{...}`: Copies the specified content.
91
-
- For more events, please refer to the launcher's actual supported list.
113
+
-`refresh_page`: Refreshes the current homepage.
114
+
-`share_game_log`: Shares the log of the current game version.
92
115
-`width`: The width of the button, optional.
93
116
- 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).
94
117
- You can use DP units to set a more specific width: `200dp` (supports integers and decimals).
0 commit comments