Skip to content

Commit 8b99b40

Browse files
committed
fixing some syntax issues
1 parent c54cd8d commit 8b99b40

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

triumph-gui/4_x_x/1-started/creating-gui.md

+6-6
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ Kotlin examples require the `dev.triumphteam:triumph-gui-<platform>kotlin:<versi
1313

1414
# Starting
1515

16-
To create a [GUI](/gui), we call the builder for the desired (Container Type)[/container-type]. This will return a GUI
16+
To create a [GUI](/gui), we call the builder for the desired [Container Type](/container-type). This will return a GUI
1717
builder.
1818
The builder allows you to setup all the components as well as personalize how the GUI should function. Like for example
19-
setting custom (renderer)[/renderer]s.
19+
setting custom [renderer](/renderer)s.
2020

2121
Let's create a GUI with a `1` row and an item the middle that sends the `player` a message when clicking.
2222

2323
-+-
24-
+Java+
24+
+Java+
2525

2626
```java
2727
final var gui = Gui.of(1)
@@ -41,7 +41,7 @@ gui.open(player);
4141
```
4242

4343
+++
44-
+Kotlin+
44+
+Kotlin+
4545
```kotlin
4646
val gui = buildGui {
4747
// If not set, defaults to chest - 1 row
@@ -67,5 +67,5 @@ gui.open(player)
6767
```
6868
+++
6969
-+-
70-
Now that the GUI is created, we can dive into something more complex by utilizing (States)[/states].
71-
We can continue onto the next example (here)[/using-states].
70+
Now that the GUI is created, we can dive into something more complex by utilizing [States](/states).
71+
We can continue onto the next example [here](/using-states).

triumph-gui/4_x_x/1-started/updating-title.md

+10-10
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ For that we need to create a state that is not in the same place as the opening
2222
command class.
2323

2424
For this state it's nice to make it so it can only be updated if the clicks are higher than the stored value. Thankfully
25-
we can use a (StateMutationPolicy)[/mutation-policy] for that, so let's create a new one!
25+
we can use a [StateMutationPolicy](/mutation-policy) for that, so let's create a new one!
2626

2727
-+-
28-
+Java+
28+
+Java+
2929

3030
```java
3131
public final class HighScoreMutationPolicy implements StateMutationPolicy<Integer> {
@@ -40,7 +40,7 @@ public final class HighScoreMutationPolicy implements StateMutationPolicy<Intege
4040
```
4141

4242
+++
43-
+Kotlin+
43+
+Kotlin+
4444

4545
```kotlin
4646
class HighScoreMutationPolicy : StateMutationPolicy<Int?> {
@@ -54,33 +54,33 @@ class HighScoreMutationPolicy : StateMutationPolicy<Int?> {
5454
```
5555

5656
+++
57-
-+-
57+
-+-
5858

5959
_The mutation policy in this example is not really needed; this is just an example of how it can be used._
6060

6161
Now let's create a state with the new policy.
6262

6363
-+-
64-
+Java+
64+
+Java+
6565

6666
```java
6767
private final MutableState<Integer> highScoreState = MutableState.of(0, new HighScoreMutationPolicy());
6868
```
6969

7070
+++
71-
+Kotlin+
71+
+Kotlin+
7272

7373
```kotlin
7474
private val highScoreState = mutableStateOf(0, HighScoreMutationPolicy())
7575
```
7676

7777
+++
78-
-+-
78+
-+-
7979

8080
Then we can change the GUI to support it.
8181

8282
-+-
83-
+Java+
83+
+Java+
8484

8585
```java
8686
final var gui = Gui.of(1)
@@ -127,7 +127,7 @@ gui.open(player);
127127
```
128128

129129
+++
130-
+Kotlin+
130+
+Kotlin+
131131

132132
```kotlin
133133
val gui = buildGui {
@@ -183,7 +183,7 @@ gui.open(player)
183183
```
184184

185185
+++
186-
-+-
186+
-+-
187187

188188
When the GUI is opened for the first time the title will update with the clicks, once you close and re-open it, it'll
189189
only update once you reach a new high score.

triumph-gui/4_x_x/1-started/using-states.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@ Kotlin examples require the `dev.triumphteam:triumph-gui-<platform>kotlin:<versi
1313

1414
# Adding state
1515

16-
A quick explanation of a (State)[/states] is that it's an object that can be "tied" to a (Component)[/components] which when
16+
A quick explanation of a [State](/states) is that it's an object that can be "tied" to a [Component](/components) which when
1717
modifier cause the component to re-render.
1818

1919
Let's take the previous example and add some a state to it. We can create a state that'll keep track of how many times
2020
a `player` has clicked on the item.
2121

2222
-+-
23-
+Java+
23+
+Java+
2424

2525
```java
2626
final var gui = Gui.of(1)
@@ -52,7 +52,7 @@ gui.open(player);
5252
```
5353

5454
+++
55-
+Kotlin+
55+
+Kotlin+
5656
```kotlin
5757
val gui = buildGui {
5858
// If not set, defaults to chest - 1 row
@@ -90,4 +90,4 @@ gui.open(player)
9090
+++
9191
-+-
9292
Congratulations you have built the most simple cookie clicker game!
93-
But we can improve it even more, let's add title updating into the mix, read more in (here)[/updating-title].
93+
But we can improve it even more, let's add title updating into the mix, read more in [here](/updating-title).

0 commit comments

Comments
 (0)