Commit Graph

54 Commits

Author SHA1 Message Date
d60d506c6c
Fix indentation errors in ClickBox.kt
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-05-25 17:55:29 +02:00
c58eee6631
Fix font rendering
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-05-25 17:53:15 +02:00
2772d52217
Port to 1.20
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2024-02-25 15:45:09 +01:00
119b75811f
Update to minecraft 1.17 2024-02-25 15:41:17 +01:00
4df3066134
Remove a useless init block in ClickBox.kt
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2024-02-25 15:02:54 +01:00
76b28db14b
Remove redundant kotlinx.coroutines usage in ClickBox.kt
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2024-02-25 15:02:54 +01:00
3d5b6133e5
Incomplete port to 22w16b
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2024-02-25 14:55:55 +01:00
961e67644b
Update to minecraft 1.17 2023-06-24 23:12:44 +02:00
dd2234be71
Replace duplicated code using the RenderingUtil.kt methods 2021-07-17 23:37:10 +02:00
e5f0cd0ab2
Add RenderUtil.kt, fix a logic issue in the setter of ButtonImpl.toggled, add keystrokes and set the version number to 0.3.0 2021-07-17 22:58:21 +02:00
cd4d25951c
Create a LinkedHashSet directly in ClickBox.kt and make a TreeSet instance instead of using sortedSetOf() 2021-06-23 20:25:39 +02:00
fd4a380acb
Rename the Element.withinBounds method to isWithinBounds and simplify it 2021-06-19 18:28:24 +02:00
bd9b4eab67
Improve the Category enum class, use kotlinx-coroutines-jdk8 & add a compiler flag, and make ClickBox.name not null by introducing Snowy.MissingComponent 2021-06-07 21:42:00 +02:00
c992b24b16
Use undispatched coroutines and remove the IO dispatcher usage to fix the previous commit 2021-06-05 23:09:10 +02:00
fa7ecb9d5d
Improve Configuration.kt by adding operator functions 2021-06-04 23:09:14 +02:00
f1fd7aa703
Improve the colors configuration, the category enum and make ColoredElement.color a value 2021-06-04 15:59:09 +02:00
483dbc581f
Add colors to the configuration screen and change the version to 0.1.1 2021-06-03 22:21:25 +02:00
24df3a12cc
Add a local function to ConfigScreen.kt, and set the tye of ClickBox.buttons explicitly 2021-06-02 11:59:03 +02:00
38e0ac2e71
Add a configuration entry to toggle the alphabetical sorting of buttons and handle errors in the DiscordRPC feature 2021-06-01 15:52:31 +02:00
4144d3bd5a
Improve the configuration screen 2021-05-31 18:30:09 +02:00
e6f09a0bc2
Add configuration of macros to the cloth config screen 2021-05-31 15:33:13 +02:00
f4979bfa94
Position clickboxes correctly when riskyCheats is false 2021-05-29 13:57:09 +02:00
1c091b82ea
Limit the progressBar height when there are only a few buttons 2021-05-23 13:48:35 +02:00
a973d8c001
Only show ClickBoxes when they have buttons 2021-05-23 11:10:43 +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
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