This repository was archived by the owner on Mar 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +21
-21
lines changed
src/main/kotlin/me/zeroeightsix/kami/gui/widgets Expand file tree Collapse file tree 2 files changed +21
-21
lines changed Original file line number Diff line number Diff line change 1
1
package me.zeroeightsix.kami.gui.widgets
2
2
3
+ import glm_.vec4.Vec4
4
+
3
5
object Coordinates : TextPinnableWidget(
4
6
" Coordinates" , text = mutableListOf(
5
7
CompiledText (
6
8
mutableListOf(
7
- CompiledText .LiteralPart ("x"),
8
- CompiledText .VariablePart (varMap["x"]!!(), extraspace = false)
9
- )
10
- ),
11
- CompiledText (
12
- mutableListOf(
13
- CompiledText .LiteralPart ("y"),
14
- CompiledText .VariablePart (varMap["y"]!!(), extraspace = false)
15
- )
16
- ),
17
- CompiledText (
18
- mutableListOf(
19
- CompiledText .LiteralPart ("z"),
20
- CompiledText .VariablePart (varMap["z"]!!(), extraspace = false)
9
+ CompiledText .VariablePart (varMap["facing_axis"]!!()),
10
+ CompiledText .VariablePart (varMap["x"]!!()).also {
11
+ it.colour = Vec4 (1f, 1f, 1f, 0.64f)
12
+ },
13
+ CompiledText .VariablePart (varMap["y"]!!()).also {
14
+ it.colour = Vec4 (1f, 1f, 1f, 0.64f)
15
+ },
16
+ CompiledText .VariablePart (varMap["z"]!!()).also {
17
+ it.colour = Vec4 (1f, 1f, 1f, 0.64f)
18
+ }
21
19
)
22
20
)
23
21
), position = Position .BOTTOM_LEFT
Original file line number Diff line number Diff line change 1
1
package me.zeroeightsix.kami.gui.widgets
2
2
3
+ import glm_.vec4.Vec4
4
+
3
5
object Information : TextPinnableWidget(
4
6
" Information" ,
5
7
mutableListOf(
@@ -11,14 +13,14 @@ object Information : TextPinnableWidget(
11
13
),
12
14
CompiledText (
13
15
mutableListOf(
14
- CompiledText .LiteralPart ("Welcome "),
15
- CompiledText .VariablePart (varMap["username"]!!(), extraspace = false)
16
- )
17
- ),
18
- CompiledText (
19
- mutableListOf(
16
+ CompiledText .VariablePart (varMap["fps"]!!()),
17
+ CompiledText .LiteralPart ("fps").also {
18
+ it.colour = Vec4 (1f, 1f, 1f, 0.64f)
19
+ },
20
20
CompiledText .VariablePart (varMap["tps"]!!()),
21
- CompiledText .LiteralPart ("tps", extraspace = false)
21
+ CompiledText .LiteralPart ("tps", extraspace = false).also {
22
+ it.colour = Vec4 (1f, 1f, 1f, 0.64f)
23
+ }
22
24
)
23
25
)
24
26
), position = Position .TOP_LEFT
You can’t perform that action at this time.
0 commit comments