Commit Graph

24 Commits

Author SHA1 Message Date
3ccee1aa6f
Start a major refactor, split the ClickButton.kt class into the ButtonInfo annotation and the ButtonImpl.kt class 2021-05-14 23:20:41 +02:00
ca70cc7fb1
Remove the "Rendering" clickbox and replace it with a "Risky" one; add a nohurtcam feature 2021-05-04 21:08:59 +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
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
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
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
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
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