Commit Graph

60 Commits

Author SHA1 Message Date
bc14627b97
Fix my stupid configuration system
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-04-16 20:46:24 +02:00
bb90bad1d1
Fix the mod on neoforge 1.21.5 by notably using the mod loader configuration directories
Signed-off-by: Username404-59 <w.iron.zombie@gmail.com>
2025-04-16 20:46:17 +02:00
3d5b6133e5
Incomplete port to 22w16b
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2024-02-25 14:55:55 +01:00
904c0ac831
Only save buttons which can be toggled
Signed-off-by: Username404 <w.iron.zombie@gmail.com>
2022-03-26 11:37:07 +01:00
0e4772873a
Make exceptions anonymous where they're not used 2021-12-26 22:59:46 +01:00
74df5b8639
Move a big part of the getValue method body to a new function called convertValue, to avoid code duplication 2021-10-27 18:18:07 +02:00
596eb27fff
Update the kotlin compiler and add an OptIn annotation to Configuration.kt 2021-07-26 11:39:19 +02:00
27bbaef032
Fix the keystrokes positions completely, and add a setting to the cloth config screen to move them 2021-07-18 17:14:49 +02:00
d70dae6da1
Add a shouldSave property to the ButtonInfo annotation class 2021-06-27 23:11:03 +02:00
35775b98f2
Add a Zoom button 2021-06-27 19:17:52 +02:00
a5b1c45a86
Access the MACROS box directly in Configuration.kt 2021-06-26 17:33:24 +02:00
9a2a78a3a3
Reformat Configuration.kt 2021-06-19 14:53:34 +02:00
b34cb151ab
Use diktat directly instead of the spotless gradle plugin and improve a few files 2021-06-19 12:28:30 +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
546a4d118e
Use the IO coroutines dispatcher in Configuration.kt 2021-06-05 22:54:13 +02:00
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
8c476be0b8
Rename ClickGui.clickboxes to clickBoxes 2021-06-05 15:55:15 +02:00
5a17cc3b60
Don't save default colors to the configuration file 2021-06-05 14:01:52 +02:00
d2bd1c4742
Simplify Configuration.ModifiableValues 2021-06-05 11:41:24 +02:00
0b3f3907d2
Reorder some functions in Configuration.kt 2021-06-05 10:51:34 +02:00
fa7ecb9d5d
Improve Configuration.kt by adding operator functions 2021-06-04 23:09:14 +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
87106d4e7a
Save some space in Configuration.kt 2021-06-02 15:18:18 +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
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
c74456c000
Change the location of snowygui configuration files 2021-06-01 11:40:43 +02:00
e6f09a0bc2
Add configuration of macros to the cloth config screen 2021-05-31 15:33:13 +02:00
c69fd56838
Add a cloth config screen 2021-05-29 22:11:05 +02:00
686959a9aa
Fix formatting in Configuration.kt 2021-05-28 17:35:11 +02:00
d33622b850
Make Configuration.obtained a lazy property 2021-05-22 16:25:52 +02:00
8293a7c086
Rename ButtonInfo.kt to ButtonAnnotations.kt and set Snowy.displayInitMessage to false by default. 2021-05-21 12:07:14 +02:00
4dfd850f33
Don't obfuscate fields in Macro.kt 2021-05-20 17:47:32 +02:00
3008165c22
Copy macros directly in Configuration.kt 2021-05-20 15:24:06 +02:00
22009a53f1
Use gson instead of kotlinx-serialization 2021-05-20 13:23:34 +02:00
772e665904
Use .apply on the Configuration.enabledFeatures mutable map 2021-05-19 20:28:10 +02:00
69625d3aef
Make ButtonImpl.title open and non-null 2021-05-19 11:46:00 +02:00
de98500a3a
Begin adding a macro system 2021-05-18 22:14:35 +02:00
592bb31eee
Re-add the buttons configuration saving feature 2021-05-15 18:58:39 +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
94384561c3
Fix Configuration.kt and the GammaBoost feature 2021-05-06 21:13:07 +02:00
3c647aa44b
Disable cheats by default 2021-05-05 19:11:34 +02:00
548bf472ba
Save the enabledFeatures map 2021-05-03 20:50:23 +02:00
0427c2bce0
Remove the need for a map in the default config 2021-05-03 20:29:54 +02:00
ea2c5c458b
Remove a line in Configuration.kt :) 2021-05-03 13:24:38 +02:00
9719276292
Fix kotlinx packages 2021-05-03 12:28:12 +02:00
9f8484561e
Revert "Remove enabledFeatures from the default configuration; it is useless"
This reverts commit 92a3bae74a59cf59c6a9fabbaa42e925cded899a.
2021-05-03 10:51:39 +02:00
9da9c46c88
Remove enabledFeatures from the default configuration; it is useless
(cherry picked from commit c1cb690fe2404889b54373c4399d22b381abfc57)
2021-05-03 08:29:07 +02:00
6471756b95
Get toggled buttons from Configuration.kt (WIP) 2021-05-02 21:48:05 +02:00
7cc0f17fc4
Use the default configuration as a fallback in Configuration.kt 2021-04-29 20:46:52 +02:00