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: docs/pages/addon/activities/activity.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ Only if you want to display something truly custom, knowing OpenGL could be bene
3
3
4
4
In the following pages, we will explain how to create custom activities, create and use widgets in your Activities, and theme them with LSS. It can be a bit much to take in at first, but it's worth it.
5
5
6
-
Examples are shown on every page; you will find a link to the section with the example on every page within the first paragraphs. Click <ahref="#bare-activity-example">here</a> to see the first example.
6
+
Examples are shown on every page; you will find a link to the section with the example on every page within the first paragraphs. Click [here](#bare-activity-result) to see the first example.
7
7
8
8
???+ warning "Important Note"
9
9
@@ -50,4 +50,4 @@ Looking back at what we just wrote, this is what the code and result would look
Copy file name to clipboardExpand all lines: docs/pages/addon/activities/lss.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ We have implemented LSS as a system to design and theme responsive GUIs (Screens
4
4
## LSS in a Nutshell
5
5
6
6
The main thing you need to know about LSS is that while you add LSS StyleSheets to your Activity, you can't manipulate Activities directly, only the Widgets inside of that Activity.
7
-
A list of all Widgets delivered with the API can be found <ahref="#FINAL-LINK-HERE">here</a>.
7
+
A list of all Widgets delivered with the API can be found [here](widgets.md#all-widgets).
8
8
9
9
CSS and LSS have very similar syntax, but here are some of their differences:
10
10
@@ -15,7 +15,7 @@ CSS and LSS have very similar syntax, but here are some of their differences:
15
15
16
16
## Creating Activities with LSS
17
17
18
-
Looking back at <ahref="#FINAL-LINK-HERE">the last page</a>, we created an Activity with a ComponentWidget but without LSS.
18
+
Looking back at [the last page](custom-widgets.md), we created an Activity with a ComponentWidget but without LSS.
19
19
We'll again use the last page's result to make it work with LSS.
20
20
21
21
We start by deleting the `postStyleSheetLoad` method, which we used before to set the position of our Widget.
@@ -75,7 +75,7 @@ Like before, this is what the code we described above would look like:
Copy file name to clipboardExpand all lines: docs/pages/addon/activities/widgets.md
+7-7Lines changed: 7 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@ Widgets are a valuable and easy way to customize your Activities and are the bac
2
2
3
3
## Use Widgets in Activities
4
4
5
-
This part will show you how to use and integrate Widgets into your Activity. Looking back at our bare Activity example, we rendered the text `"I am a bare rendered example text"`, so we'll be using a ComponentWidget just this time with the text `"I am an example text rendered with a ComponentWidget"`. We're building onto the code from the previous example so if you haven't already gone through it, we recommend taking a look at it <ahref="/pages/addon/activities/activity/">here</a>.
5
+
This part will show you how to use and integrate Widgets into your Activity. Looking back at our bare Activity example, we rendered the text `"I am a bare rendered example text"`, so we'll be using a ComponentWidget just this time with the text `"I am an example text rendered with a ComponentWidget"`. We're building onto the code from the previous example so if you haven't already gone through it, we recommend taking a look at it [here](activity.md).
6
6
7
7
???+ warning "Important Note"
8
8
@@ -56,13 +56,13 @@ Like with the bare Activity, this is what the code we described above would look
Copy file name to clipboardExpand all lines: docs/pages/addon/features/commands.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,9 @@
2
2
3
3
With LabyMod 4, you can easily create custom client-side commands. This page will show you how.
4
4
5
+
???+ info "Command suggestions"
6
+
Command suggestions are not yet supported. This means that commands will not appear as valid suggestions in the chat. However, you can still enter and execute them normally. Support for command suggestions may be added in the future.
7
+
5
8
### The Super Method
6
9
The first parameter in the super constructor call is the prefix, see it as the name of your command. Every parameter after is an alias and thus optional.
7
10
@@ -11,7 +14,7 @@ The execute method contains the code that is executed if the player is using you
11
14
Before you're able to use and test your command in-game, you'll need to register the command by calling `this.registerCommand(new ExampleCommand());` in your main class. You don't need to do anything else, after registering the command and restarting LabyMod you can submit "/notify" or "/alias" in the ingame-chat and your command will be executed.
12
15
13
16
### Subcommands
14
-
You can also add subcommands to your command. To do so, you'll need to create a new class that inherits from `SubCommand` and add it to your command by calling `this.withSubCommand(new ExampleSubCommand());` in your command's constructor. You can set the sub command's name and aliases the same way you set the command's name with the <ahref="#the-super-method">super</a> constructor call.
17
+
You can also add subcommands to your command. To do so, you'll need to create a new class that inherits from `SubCommand` and add it to your command by calling `this.withSubCommand(new ExampleSubCommand());` in your command's constructor. You can set the sub command's name and aliases the same way you set the command's name with the [super](#the-super-method) constructor call.
0 commit comments