Commit Graph

65 Commits

Author SHA1 Message Date
4805e81dbe
Add Jabel to compile for java 8 but using newer features, fix the ClickBox colors and update gradle 2021-05-15 12:50:42 +02:00
ce9f1c83dd
Fix FontUtil.kt 2021-05-15 02:21:06 +02:00
81f4923185
Remove a TODO comment and remove the usage of ApiStatus.Internal in ButtonImpl.kt 2021-05-15 01:57:21 +02:00
b6b001cad0
Add BLACK and GOLD colors to Colors.kt 2021-05-15 01:37:47 +02:00
a8c4bf4709
Remove the now useless ButtonInfo.color value 2021-05-15 00:49:37 +02:00
f43f5569b2
Directly define the color in ButtonImpl.kt 2021-05-15 00:39:55 +02:00
c11e0a8187
Use the category colors in buttons 2021-05-15 00:21:48 +02:00
9530100ca3
Edit the second argument of the Category enum class 2021-05-15 00:11:35 +02:00
9a133f31fe
Add a color argument to the Category enum 2021-05-15 00:08:34 +02:00
a023f93b87
Remove a reference to ButtonInfo 2021-05-14 23:42:46 +02:00
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
a65f536304
Improve a few conditions in ClickBox.kt 2021-05-12 23:43:47 +02:00
a417ebe86f
Add a comment to ClickButton.kt, and another one to ClickBox.kt 2021-05-11 17:11:07 +02:00
d8231aadfb
Shorten the execAction method 2021-05-11 17:07:31 +02:00
f4a16a10d2
Add receivers to buttons actions 2021-05-06 21:07:35 +02:00
290f521c82
Revert "Edit a condition of the scroll function in ClickBox.kt"
This reverts commit 0d2e67133c57bcf5c7cc4d9dfdd4e9208bb109f6.
2021-05-06 18:35:44 +02:00
b2d957f2c9
Edit a condition of the scroll function in ClickBox.kt 2021-05-06 12:58:11 +02:00
7a4989eec8
Move the clickboxHeightOffset const to a companion object 2021-05-04 21:15:55 +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
88f097be01
Add a comment about the buttons limit 2021-05-04 18:45:41 +02:00
06c4dea9be
Use the isNotEmpty method in ClickBox.kt 2021-05-04 18:39:55 +02:00
e7a3fb592e
Fix scrolling when using only a few buttons 2021-05-04 18:27:51 +02:00
2beaf74843
Complete the scroll function 2021-05-04 18:18:48 +02:00
8e444c9596
Set the base height of the progressbar to 8 2021-05-04 14:57:46 +02:00
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