Commit Graph

284 Commits

Author SHA1 Message Date
Username404 99a48a6562
Specify the refmap manually in the common mixins json file 2021-06-28 11:32:45 +02:00
Username404 d70dae6da1
Add a shouldSave property to the ButtonInfo annotation class 2021-06-27 23:11:03 +02:00
Username404 35775b98f2
Add a Zoom button 2021-06-27 19:17:52 +02:00
Username404 05dcbee261
Use isDragging instead of a private variable in ClickGui.kt 2021-06-27 13:24:13 +02:00
Username404 a5b1c45a86
Access the MACROS box directly in Configuration.kt 2021-06-26 17:33:24 +02:00
Username404 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
Username404 98c8da32b5
Make components abstract in SnowyScreen.kt 2021-06-25 22:55:56 +02:00
Username404 250e72cab0
Make the setter of hidden public in Element.kt 2021-06-25 16:50:30 +02:00
Username404 1ac22a7e97
Add a addBox() method to the Category enum class and complete the constructor that uses a ClickBox 2021-06-25 16:38:01 +02:00
Username404 dbc7f6b8bf
Store the Category enum class in the companion object of ButtonInfo 2021-06-24 22:29:16 +02:00
Username404 2d679bf0e3
Remove an extra * character in ButtonInfo.kt 2021-06-24 22:25:41 +02:00
Username404 4143ef0e14
Replace the @ButtonInfo.Ignored annotation with a property of ButtonInfo 2021-06-24 22:23:23 +02:00
Username404 dd2c01b461
Don't make a local variable when adding a Macro in ConfigScreen.kt 2021-06-24 22:19:15 +02:00
Username404-59 2a87787b21
Add a asTextColor() method to the Colors.kt enum class 2021-06-24 14:14:27 +02:00
Username404-59 34de53beee
Shorten SnowyConfigScreen in ConfigScreen.kt 2021-06-24 13:59:26 +02:00
Username404 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
Username404 1d22337e5d
Make all mixins abstract 2021-06-23 18:57:16 +02:00
Username404 674d630db0
Fix the ClickBoxes not being positioned correctly when one of them is hidden 2021-06-19 21:46:59 +02:00
Username404 1aa4c374d1
Use java.time instead of kotlinx-datetime 2021-06-19 20:29:36 +02:00
Username404 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
Username404 fd4a380acb
Rename the Element.withinBounds method to isWithinBounds and simplify it 2021-06-19 18:28:24 +02:00
Username404 9a2a78a3a3
Reformat Configuration.kt 2021-06-19 14:53:34 +02:00
Username404 1bd054c7c5
Disable a few rules + edit the configurations in Formatting.yml, and add a parameter name to a lambda argument in ConfigScreen.kt 2021-06-19 12:59:14 +02:00
Username404 b34cb151ab
Use diktat directly instead of the spotless gradle plugin and improve a few files 2021-06-19 12:28:30 +02:00
Username404 59370fab4c
Add zeros to minutes and hours too in Clock.kt 2021-06-18 22:52:45 +02:00
Username404 7fa9c07b54
Add the spotless gradle plugin to use the diktat formatter 2021-06-09 22:06:37 +02:00
Username404 b03fd16898
Rename ButtonAnnotations.kt to ButtonInfo.kt and move the Ignored annotation to ButtonInfo 2021-06-09 07:24:02 +02:00
Username404 b4d64b0d96
Make the poseStack argument in ConfigScreen.kt not null 2021-06-08 19:54:17 +02:00
Username404-59 7355635daa
Remove a few useless parentheses in ButtonImpl.kt 2021-06-08 13:21:23 +02:00
Username404 3b6cd7a385
Shorten the EventSnowy.Companion.useKey() method 2021-06-07 22:00:28 +02:00
Username404 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
Username404-59 1b4037be02
Improve the ClickGui.boxContext() method 2021-06-07 00:18:22 +02:00
Username404 c992b24b16
Use undispatched coroutines and remove the IO dispatcher usage to fix the previous commit 2021-06-05 23:09:10 +02:00
Username404 546a4d118e
Use the IO coroutines dispatcher in Configuration.kt 2021-06-05 22:54:13 +02:00
Username404 7023d1a8f6
Improve the ModifiableValues property of Configuration.kt and make Configuration.obtained a non-lazy property again 2021-06-05 18:51:03 +02:00
Username404 3c37ffcb81
Use a receiver for the list in AddKeyMaps.kt 2021-06-05 16:25:38 +02:00
Username404 8c476be0b8
Rename ClickGui.clickboxes to clickBoxes 2021-06-05 15:55:15 +02:00
Username404 5a17cc3b60
Don't save default colors to the configuration file 2021-06-05 14:01:52 +02:00
Username404 d2bd1c4742
Simplify Configuration.ModifiableValues 2021-06-05 11:41:24 +02:00
Username404 0b3f3907d2
Reorder some functions in Configuration.kt 2021-06-05 10:51:34 +02:00
Username404 fa7ecb9d5d
Improve Configuration.kt by adding operator functions 2021-06-04 23:09:14 +02:00
Username404 79a75f7681
List hidden boxes too in the colors section of the config screen 2021-06-04 21:55:54 +02:00
Username404-59 f1fd7aa703
Improve the colors configuration, the category enum and make ColoredElement.color a value 2021-06-04 15:59:09 +02:00
Username404 483dbc581f
Add colors to the configuration screen and change the version to 0.1.1 2021-06-03 22:21:25 +02:00
Username404-59 301aa0cc89
Add orange and purple colors to Colors.kt 2021-06-03 16:54:00 +02:00
Username404 87106d4e7a
Save some space in Configuration.kt 2021-06-02 15:18:18 +02:00
Username404 24df3a12cc
Add a local function to ConfigScreen.kt, and set the tye of ClickBox.buttons explicitly 2021-06-02 11:59:03 +02:00
Username404 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
Username404-59 d8bbab0ff7
Use kotlinx-serialization-json instead of gson and move the macros to the main configuration file 2021-06-01 13:21:02 +02:00
Username404 c74456c000
Change the location of snowygui configuration files 2021-06-01 11:40:43 +02:00
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