Commit Graph

30 Commits

Author SHA1 Message Date
12e2e4a1d8
Fix scrolling
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-02-02 22:57:20 +01:00
bf317e38f0
Finish porting to 1.21
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-02-02 15:58:22 +01:00
d44f871335
ClickGui.kt: Fix moving clickboxes
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2024-07-18 17:50:21 +02:00
cc97418155
Allow the cursor to not be within bounds when dragging boxes
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2023-06-24 22:23:57 +02:00
03ecdd9e2c
Fix the buttons being clickable when hidden in ClickGui.kt 2021-06-30 17:15:55 +02:00
05dcbee261
Use isDragging instead of a private variable in ClickGui.kt 2021-06-27 13:24:13 +02:00
d315737321
Make Element.isWithinBounds() public, make SnowyScreen.components a MutableCollection & use GLFW.GLFW_MOUSE_BUTTON_LEFT in ClickGui.kt 2021-06-26 17:08:24 +02:00
8e0848a497
Use the xor operator in ButtonImpl.kt, and use "&&" instead of the "and" method in ClickGui.kt 2021-06-19 18:43:11 +02:00
fd4a380acb
Rename the Element.withinBounds method to isWithinBounds and simplify it 2021-06-19 18:28:24 +02:00
1b4037be02
Improve the ClickGui.boxContext() method 2021-06-07 00:18:22 +02:00
8c476be0b8
Rename ClickGui.clickboxes to clickBoxes 2021-06-05 15:55:15 +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
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
f8fbf1eb09
Add receivers to ClickGui.kt too 2021-05-06 21:11: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
6471756b95
Get toggled buttons from Configuration.kt (WIP) 2021-05-02 21:48:05 +02:00
c74b2d5195
Make ClickGui.addComps an internal function 2021-05-02 15:00:14 +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
5c2d09abc1
Edit a TODO comment 2021-05-02 11:08:57 +02:00
1551d70e88
Add components in another file called addComponents.kt 2021-05-01 21:32:24 +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
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
9dd9b852de
Remove bad logging 2021-04-28 20:39:59 +02:00
996572884e
Improve movement of GUI elements in ClickGui.kt 2021-04-28 20:22:54 +02:00
d113c13ecc
Make ClickGui.kt an object 2021-04-28 15:08:22 +02:00
7f916d82bb
Add (buggy) movement of components in the ClickGui class. 2021-04-12 15:06:35 +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
3636c74851
Rename Box to ClickBox, make a ColoredElement class, draw strings and add more translations 2021-04-10 19:17:46 +02:00
03f2963486
Add GUI utils. 2021-04-10 14:41:42 +02:00