Commit Graph

284 Commits

Author SHA1 Message Date
Username404 f4203bcd16
Set insertInFront to false in ConfigScreen.kt 2021-05-31 22:31:34 +02:00
Username404 439a6f73e4
Fix the toomuchcharacters error in ConfigScreen.kt 2021-05-31 22:08:02 +02:00
Username404 fd408c4b62
Use less characters for the macros tooltip, and show the macros clickbox when the configuration isn't empty 2021-05-31 18:49:52 +02:00
Username404 4144d3bd5a
Improve the configuration screen 2021-05-31 18:30:09 +02:00
Username404 8d9016153e
Make builds faster by shrinking only the fabric and forge modules 2021-05-31 15:55:22 +02:00
Username404 e6f09a0bc2
Add configuration of macros to the cloth config screen 2021-05-31 15:33:13 +02:00
Username404 8b195db319
Make the "behavior" sub-category the first element of the first element of the general category in the cloth configuration screen 2021-05-29 23:08:02 +02:00
Username404 8c768fadef
Fix the text displayed when cloth config is not present 2021-05-29 22:44:10 +02:00
Username404 c69fd56838
Add a cloth config screen 2021-05-29 22:11:05 +02:00
Username404 7fd3e3f641
Use java reflection instead of kotlin-reflect in ButtonImpl.kt and reintroduce the alphabetical ordering of buttons 2021-05-29 18:09:15 +02:00
Username404 f4979bfa94
Position clickboxes correctly when riskyCheats is false 2021-05-29 13:57:09 +02:00
Username404 14b3d63b57
Add a riskyCheats boolean 2021-05-29 13:01:39 +02:00
Username404 e533e92198
Use more null checks in ButtonImpl.kt 2021-05-28 17:44:30 +02:00
Username404 686959a9aa
Fix formatting in Configuration.kt 2021-05-28 17:35:11 +02:00
Username404 aea49cfe06
Set details in DiscordRPC.kt 2021-05-28 07:25:39 +02:00
Username404 b958490580
Remove the alphabetical ordering because it caused issues with kotlin-reflect 2021-05-27 21:54:34 +02:00
Username404 6848b26797
Cast classes to ButtonImpl properly in Snowy.kt, FabricInit.kt and ForgeInit.kt 2021-05-27 21:29:11 +02:00
Username404 b1852f743e
Sort buttons alphabetically 2021-05-27 20:57:18 +02:00
Username404 6552adbf70
Add a DiscordRPC.kt feature 2021-05-27 20:00:35 +02:00
Username404 6f5817389d
Update kotlin & kotlinx-datetime and make the constructor parameters of Macro.kt variables instead of values 2021-05-27 18:45:26 +02:00
Username404 1c091b82ea
Limit the progressBar height when there are only a few buttons 2021-05-23 13:48:35 +02:00
Username404 a973d8c001
Only show ClickBoxes when they have buttons 2021-05-23 11:10:43 +02:00
Username404 d33622b850
Make Configuration.obtained a lazy property 2021-05-22 16:25:52 +02:00
Username404 8293a7c086
Rename ButtonInfo.kt to ButtonAnnotations.kt and set Snowy.displayInitMessage to false by default. 2021-05-21 12:07:14 +02:00
Username404-59 54799044d6
Fix a typo in ButtonInfo.kt 2021-05-20 23:50:18 +02:00
Username404 4dfd850f33
Don't obfuscate fields in Macro.kt 2021-05-20 17:47:32 +02:00
Username404 3008165c22
Copy macros directly in Configuration.kt 2021-05-20 15:24:06 +02:00
Username404 c7729af67f
Add a @Ignore annotation, make Macro.command a jvm field and add a isValidForButtonCollection function to Snowy.kt 2021-05-20 14:24:39 +02:00
Username404 22009a53f1
Use gson instead of kotlinx-serialization 2021-05-20 13:23:34 +02:00
Username404 772e665904
Use .apply on the Configuration.enabledFeatures mutable map 2021-05-19 20:28:10 +02:00
Username404 8a49f24249
Fix the behaviour of Type.CLICK 2021-05-19 12:46:11 +02:00
Username404 69625d3aef
Make ButtonImpl.title open and non-null 2021-05-19 11:46:00 +02:00
Username404-59 4166418a52
Add a snowy.clickbox.macros entry to fr_fr.json lang file 2021-05-19 00:04:13 +02:00
Username404-59 7475553370
Add a snowy.clickbox.macros entry to en_us.json lang file 2021-05-19 00:03:11 +02:00
Username404 de98500a3a
Begin adding a macro system 2021-05-18 22:14:35 +02:00
Username404 8f16eae53b
Search annotations in a specific package, add a MACROS category and a GREEN color 2021-05-18 18:25:12 +02:00
Username404 39c6d8ebb1
Use the getDeclaredField() method instead of objectInstance in ButtonImpl.kt 2021-05-17 14:56:52 +02:00
Username404 82de485b17
Don't obfuscate static fields in fr.username404.gui.feature to fix reflection on objects 2021-05-17 14:44:44 +02:00
Username404 84032f60eb
Make ButtonImpl.kt a sealed class 2021-05-17 13:36:29 +02:00
Username404-59 f9fd9222ef
Fix the ButtonImpl.initialize() method producing null, use reflections8 only on fabric and shadow kotlinx.serialization on forge 2021-05-16 14:44:26 +02:00
Username404-59 c39670c764
Finally fix reflection on forge by using forge's scan data 2021-05-16 12:46:23 +02:00
Username404-59 8c6219627b
Add () to ButtonImpl 2021-05-15 22:50:42 +02:00
Username404-59 cb20a6e744
Use reflections8 instead of reflections 2021-05-15 22:48:51 +02:00
Username404-59 592bb31eee
Re-add the buttons configuration saving feature 2021-05-15 18:58:39 +02:00
Username404-59 3d08c24c17
Initialize every button in Snowy.kt 2021-05-15 17:15:24 +02:00
Username404-59 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
Username404 ce9f1c83dd
Fix FontUtil.kt 2021-05-15 02:21:06 +02:00
Username404 81f4923185
Remove a TODO comment and remove the usage of ApiStatus.Internal in ButtonImpl.kt 2021-05-15 01:57:21 +02:00
Username404 b6b001cad0
Add BLACK and GOLD colors to Colors.kt 2021-05-15 01:37:47 +02:00
Username404 a8c4bf4709
Remove the now useless ButtonInfo.color value 2021-05-15 00:49:37 +02:00
Username404 f43f5569b2
Directly define the color in ButtonImpl.kt 2021-05-15 00:39:55 +02:00
Username404-59 c11e0a8187
Use the category colors in buttons 2021-05-15 00:21:48 +02:00
Username404-59 9530100ca3
Edit the second argument of the Category enum class 2021-05-15 00:11:35 +02:00
Username404-59 9a133f31fe
Add a color argument to the Category enum 2021-05-15 00:08:34 +02:00
Username404-59 a023f93b87
Remove a reference to ButtonInfo 2021-05-14 23:42:46 +02:00
Username404-59 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
Username404-59 4305204898
Move risky cheats back to one box only 2021-05-14 14:23:44 +02:00
Username404-59 d342c020b8
Use the var keyword in KeyMappings.java 2021-05-14 12:31:01 +02:00
Username404-59 a65f536304
Improve a few conditions in ClickBox.kt 2021-05-12 23:43:47 +02:00
Username404-59 6b64bb3095
Set javaVer to 11 since forge doesn't support java 14 mixins 2021-05-12 17:48:13 +02:00
Username404-59 44f5b41c29
Target Java 14 2021-05-12 17:24:00 +02:00
Username404-59 a417ebe86f
Add a comment to ClickButton.kt, and another one to ClickBox.kt 2021-05-11 17:11:07 +02:00
Username404-59 d8231aadfb
Shorten the execAction method 2021-05-11 17:07:31 +02:00
Username404-59 98e3729ea7
Fix the previous commit 2021-05-08 20:10:40 +02:00
Username404-59 e074f54785
Check that the gamma value isn't equal to or greater than 1400.0 2021-05-08 20:00:14 +02:00
Username404-59 bde7884f53
Set Storage.oldGamma to 0.0 2021-05-08 19:59:10 +02:00
Username404-59 3171b471b0
Fix a condition in the GammaBoost button's action 2021-05-08 19:47:50 +02:00
Username404-59 731e992689
Don't add a 0 to the clock when seconds are equal to 10 or higher 2021-05-07 12:13:53 +02:00
Username404-59 82af939f7e
Fix the NoHurtCamera feature 2021-05-07 10:17:48 +02:00
Username404-59 d1a9147c42
Assign clock to a button state in addComponents.kt 2021-05-07 10:13:56 +02:00
Username404-59 94384561c3
Fix Configuration.kt and the GammaBoost feature 2021-05-06 21:13:07 +02:00
Username404-59 f8fbf1eb09
Add receivers to ClickGui.kt too 2021-05-06 21:11:41 +02:00
Username404-59 f4a16a10d2
Add receivers to buttons actions 2021-05-06 21:07:35 +02:00
Username404-59 290f521c82
Revert "Edit a condition of the scroll function in ClickBox.kt"
This reverts commit 0d2e67133c57bcf5c7cc4d9dfdd4e9208bb109f6.
2021-05-06 18:35:44 +02:00
Username404-59 b2d957f2c9
Edit a condition of the scroll function in ClickBox.kt 2021-05-06 12:58:11 +02:00
Username404-59 6539e25854
Add a clock 2021-05-05 21:52:51 +02:00
Username404-59 3c647aa44b
Disable cheats by default 2021-05-05 19:11:34 +02:00
Username404-59 282cd06160
Improve ConfigScreen.kt 2021-05-05 11:41:10 +02:00
Username404-59 3d65eb2c90
Add NoGravity 2021-05-05 11:18:54 +02:00
Username404-59 7a4989eec8
Move the clickboxHeightOffset const to a companion object 2021-05-04 21:15:55 +02:00
Username404-59 ca70cc7fb1
Remove the "Rendering" clickbox and replace it with a "Risky" one; add a nohurtcam feature 2021-05-04 21:08:59 +02:00
Username404-59 88f097be01
Add a comment about the buttons limit 2021-05-04 18:45:41 +02:00
Username404-59 06c4dea9be
Use the isNotEmpty method in ClickBox.kt 2021-05-04 18:39:55 +02:00
Username404-59 e7a3fb592e
Fix scrolling when using only a few buttons 2021-05-04 18:27:51 +02:00
Username404-59 2beaf74843
Complete the scroll function 2021-05-04 18:18:48 +02:00
Username404-59 8e444c9596
Set the base height of the progressbar to 8 2021-05-04 14:57:46 +02:00
Username404-59 7b1aa0f876
Initialize ClickGui.kt in the titlescreen by adding a mixin 2021-05-04 14:39:49 +02:00
Username404-59 548bf472ba
Save the enabledFeatures map 2021-05-03 20:50:23 +02:00
Username404-59 0427c2bce0
Remove the need for a map in the default config 2021-05-03 20:29:54 +02:00
Username404-59 ea2c5c458b
Remove a line in Configuration.kt :) 2021-05-03 13:24:38 +02:00
Username404-59 9719276292
Fix kotlinx packages 2021-05-03 12:28:12 +02:00
Username404-59 9f8484561e
Revert "Remove enabledFeatures from the default configuration; it is useless"
This reverts commit 92a3bae74a59cf59c6a9fabbaa42e925cded899a.
2021-05-03 10:51:39 +02:00
Username404-59 9da9c46c88
Remove enabledFeatures from the default configuration; it is useless
(cherry picked from commit c1cb690fe2404889b54373c4399d22b381abfc57)
2021-05-03 08:29:07 +02:00
Username404-59 6471756b95
Get toggled buttons from Configuration.kt (WIP) 2021-05-02 21:48:05 +02:00
Username404-59 c74b2d5195
Make ClickGui.addComps an internal function 2021-05-02 15:00:14 +02:00
Username404-59 a7e7e6e60e
Rename scrollBar to buttonsProgressBar 2021-05-02 14:52:48 +02:00
Username404-59 5d5ea4b5ea
Add a buttonsContext method to ClickGui.kt, and a WIP scroll function to ClickBox.kt 2021-05-02 12:46:02 +02:00
Username404-59 5c2d09abc1
Edit a TODO comment 2021-05-02 11:08:57 +02:00
Username404-59 1551d70e88
Add components in another file called addComponents.kt 2021-05-01 21:32:24 +02:00
Username404-59 9dc097d32f
Make ClickBox.buttons a map 2021-05-01 20:18:46 +02:00
Username404-59 8a65839816
Always execute actions of toggleable buttons 2021-05-01 19:38:21 +02:00
Username404-59 ee163fe312
Fix the logic of toggleable buttons 2021-05-01 19:31:15 +02:00
Username404-59 b3201bfa3c
Add FontUtil.kt 2021-05-01 19:21:45 +02:00
Username404-59 833cac5ccd
Make a ClickBox.buttons a Set instance 2021-05-01 18:12:50 +02:00
Username404-59 b3c7fb1325
Implement the behaviour of Type.TOGGLE in ClickButton.kt 2021-05-01 17:38:57 +02:00
Username404-59 f85ed7e605
Use black text for buttons 2021-05-01 16:55:28 +02:00
Username404-59 0f0c4de85b
Add titles to buttons 2021-05-01 16:35:23 +02:00
Username404-59 09536ddbb1
Add WIP buttons and scrollbars to clickboxes 2021-05-01 15:56:08 +02:00
Username404-59 c23ad38d54
Take doubles as arguments in fromRenderable 2021-04-30 19:53:35 +02:00
Username404-59 60bf5377cd
Move a few methods 2021-04-30 19:48:53 +02:00
Username404-59 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
Username404-59 c54ac5b1f8
Make the color and opacity properties of the ColoredElement class private 2021-04-30 14:58:36 +02:00
Username404-59 7ddbf934f7
Element.kt: Keep the original x and y coordinates in memory 2021-04-30 14:51:22 +02:00
Username404-59 aa4d7e3743
Protect the setter of Element.hidden 2021-04-29 21:06:38 +02:00
Username404-59 7cc0f17fc4
Use the default configuration as a fallback in Configuration.kt 2021-04-29 20:46:52 +02:00
Username404-59 ab0b6e66c8
Log the stacktraces of errors when rendering elements in debug mode 2021-04-29 12:33:09 +02:00
Username404-59 1b656ee8b1
Make the mixin classes abstract 2021-04-28 21:34:17 +02:00
Username404-59 9dd9b852de
Remove bad logging 2021-04-28 20:39:59 +02:00
Username404-59 78e1081aba
Make SnowyScreen.components not-null 2021-04-28 20:38:59 +02:00
Username404-59 996572884e
Improve movement of GUI elements in ClickGui.kt 2021-04-28 20:22:54 +02:00
Username404-59 d113c13ecc
Make ClickGui.kt an object 2021-04-28 15:08:22 +02:00
Username404-59 c2b87fddbc
Add kotlinx-coroutines + kotlinx-datetime, and save Configuration.obtained when it is constructed 2021-04-28 11:33:41 +02:00
Username404-59 b828b41354
Make AddKeyMaps.mkMap() an internal function with jvm overloads. 2021-04-27 17:04:47 +02:00
Username404-59 203ea34ee7
Add a method to the SnowyScreen companion object 2021-04-23 23:21:50 +02:00
Username404-59 73624dbf2d
Use the extract method from config4k in Configuration.kt 2021-04-23 16:29:00 +02:00
Username404-59 5f96c53845
Assign the result variable to a parsed file in the try-catch statement of Configuration.kt 2021-04-23 15:51:35 +02:00
Username404-59 1c3981a81a
Fix the result variable not being initialized, again. 2021-04-23 15:42:31 +02:00
Username404-59 13898d9de0
Write to the config file only at exit 2021-04-23 15:38:55 +02:00
Username404-59 994a377a26
Save the Snowy configuration at exit 2021-04-23 15:29:48 +02:00
Username404-59 0c107be94b
Fix the result value of Configuration.obtained not being initialized 2021-04-23 11:57:36 +02:00
Username404-59 b2abce966a
Add a tabulation character to loggin in the Element.display() method 2021-04-22 20:52:54 +02:00
Username404-59 b0e9747fcf
Improve error catching in Element.kt 2021-04-22 20:32:17 +02:00
Username404-59 4b80235049
Make the result variable non-null in Configuration.kt 2021-04-22 16:48:54 +02:00
Username404-59 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
Username404-59 517a653d67
Annotate the Snowy logger with @JvmField 2021-04-21 19:25:37 +02:00
Username404-59 dac1294ee3
Add a configuration made using the config4k library 2021-04-16 22:44:03 +02:00
Username404-59 7c0fe6119a
Remove architectury's injectables. 2021-04-16 13:10:39 +02:00
Username404-59 70b0772517
Revert "Replace VertexConsumer.colorEnd() with a new ColoredElement.setColor() method."
This reverts commit a9825ac5ccdbdd5c17d7937e87d15c288fa562e3.
2021-04-15 22:08:25 +02:00
Username404-59 09168d1c23
Replace VertexConsumer.colorEnd() with a new ColoredElement.setColor() method. 2021-04-15 14:00:02 +02:00
Username404-59 cf75e7be39
Use proguard to shrink the produced .jar files, and completely remove the exec package + the bundled font. 2021-04-14 13:56:34 +02:00
Username404-59 4a470ee779
Use readBytes instead of readAllBytes in info.kt 2021-04-13 12:49:03 +02:00
Username404-59 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
Username404-59 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
Username404-59 ad3fb8be7a
Add a try and catch in the render function of ClickBox.kt. 2021-04-12 23:44:15 +02:00
Username404-59 7f916d82bb
Add (buggy) movement of components in the ClickGui class. 2021-04-12 15:06:35 +02:00
Username404-59 c06535047c
Don't multiply the full height in ClickBox.kt 2021-04-11 20:12:32 +02:00
Username404-59 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
Username404-59 f3d291e180
Test if the poseStack argument in the render method of ClickBox.kt is null. 2021-04-11 09:39:38 +02:00
Username404-59 1ce635dbcf
Add a new ClickBox and don't add 10 to the x and y coordinates. 2021-04-10 21:22:19 +02:00
Username404-59 0bbf7a00ff
Woops, use a value of 1.5 instead. 2021-04-10 19:36:55 +02:00