Commit Graph

41 Commits

Author SHA1 Message Date
6471756b95
Get toggled buttons from Configuration.kt (WIP) 2021-05-02 21:48:05 +02:00
a7e7e6e60e
Rename scrollBar to buttonsProgressBar 2021-05-02 14:52:48 +02:00
5d5ea4b5ea
Add a buttonsContext method to ClickGui.kt, and a WIP scroll function to ClickBox.kt 2021-05-02 12:46:02 +02:00
1551d70e88
Add components in another file called addComponents.kt 2021-05-01 21:32:24 +02:00
9dc097d32f
Make ClickBox.buttons a map 2021-05-01 20:18:46 +02:00
8a65839816
Always execute actions of toggleable buttons 2021-05-01 19:38:21 +02:00
ee163fe312
Fix the logic of toggleable buttons 2021-05-01 19:31:15 +02:00
b3201bfa3c
Add FontUtil.kt 2021-05-01 19:21:45 +02:00
833cac5ccd
Make a ClickBox.buttons a Set instance 2021-05-01 18:12:50 +02:00
b3c7fb1325
Implement the behaviour of Type.TOGGLE in ClickButton.kt 2021-05-01 17:38:57 +02:00
f85ed7e605
Use black text for buttons 2021-05-01 16:55:28 +02:00
0f0c4de85b
Add titles to buttons 2021-05-01 16:35:23 +02:00
09536ddbb1
Add WIP buttons and scrollbars to clickboxes 2021-05-01 15:56:08 +02:00
c23ad38d54
Take doubles as arguments in fromRenderable 2021-04-30 19:53:35 +02:00
60bf5377cd
Move a few methods 2021-04-30 19:48:53 +02:00
b4b137560c
Move ClickBox.kt to a new package (fr.username404.snowygui.gui.elements) and add a method to Element.kt 2021-04-30 19:10:04 +02:00
c54ac5b1f8
Make the color and opacity properties of the ColoredElement class private 2021-04-30 14:58:36 +02:00
7ddbf934f7
Element.kt: Keep the original x and y coordinates in memory 2021-04-30 14:51:22 +02:00
aa4d7e3743
Protect the setter of Element.hidden 2021-04-29 21:06:38 +02:00
ab0b6e66c8
Log the stacktraces of errors when rendering elements in debug mode 2021-04-29 12:33:09 +02:00
78e1081aba
Make SnowyScreen.components not-null 2021-04-28 20:38:59 +02:00
203ea34ee7
Add a method to the SnowyScreen companion object 2021-04-23 23:21:50 +02:00
b2abce966a
Add a tabulation character to loggin in the Element.display() method 2021-04-22 20:52:54 +02:00
b0e9747fcf
Improve error catching in Element.kt 2021-04-22 20:32:17 +02:00
de833629ec
Add a parameter to the colorEnd method in Element.kt and make Configuration.obtained a jvm field 2021-04-22 12:42:42 +02:00
70b0772517
Revert "Replace VertexConsumer.colorEnd() with a new ColoredElement.setColor() method."
This reverts commit a9825ac5ccdbdd5c17d7937e87d15c288fa562e3.
2021-04-15 22:08:25 +02:00
09168d1c23
Replace VertexConsumer.colorEnd() with a new ColoredElement.setColor() method. 2021-04-15 14:00:02 +02:00
6f5ef9dace
Revert "Add a try and catch in the render function of ClickBox.kt."
This reverts commit 56896651a3622194660d57c733ab55be841b56b8.
2021-04-13 10:48:37 +02:00
5df5199098
Add a try and catch in the Element.display() method, and add an element to render a background in the config screen 2021-04-13 10:48:33 +02:00
ad3fb8be7a
Add a try and catch in the render function of ClickBox.kt. 2021-04-12 23:44:15 +02:00
c06535047c
Don't multiply the full height in ClickBox.kt 2021-04-11 20:12:32 +02:00
31bb7be602
Add a colorEnd() method to the companion object of ColoredElement, render more things in the ClickBox class and edit en_us.json 2021-04-11 12:23:53 +02:00
f3d291e180
Test if the poseStack argument in the render method of ClickBox.kt is null. 2021-04-11 09:39:38 +02:00
1ce635dbcf
Add a new ClickBox and don't add 10 to the x and y coordinates. 2021-04-10 21:22:19 +02:00
0bbf7a00ff
Woops, use a value of 1.5 instead. 2021-04-10 19:36:55 +02:00
37376fdc6a
Fix the Y axis of the rendered strings. 2021-04-10 19:35:59 +02:00
3636c74851
Rename Box to ClickBox, make a ColoredElement class, draw strings and add more translations 2021-04-10 19:17:46 +02:00
029382c9b5
Name the companion object of Element and rename BaseColor to TransparentColor. 2021-04-10 15:34:30 +02:00
bf5c276178
Add a companion object to Element.kt and remove the rendering package 2021-04-10 15:17:05 +02:00
c50ce0696f
Remove an useless part of the Util object, and add a poseStack argument to the render function of the Renderable interface. 2021-04-10 15:03:23 +02:00
03f2963486
Add GUI utils. 2021-04-10 14:41:42 +02:00