Commit Graph

58 Commits

Author SHA1 Message Date
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
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
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
f4203bcd16
Set insertInFront to false in ConfigScreen.kt 2021-05-31 22:31:34 +02:00
439a6f73e4
Fix the toomuchcharacters error in ConfigScreen.kt 2021-05-31 22:08:02 +02:00
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
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
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
8c768fadef
Fix the text displayed when cloth config is not present 2021-05-29 22:44:10 +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
282cd06160
Improve ConfigScreen.kt 2021-05-05 11:41:10 +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
78e1081aba
Make SnowyScreen.components not-null 2021-04-28 20:38:59 +02:00
c2b87fddbc
Add kotlinx-coroutines + kotlinx-datetime, and save Configuration.obtained when it is constructed 2021-04-28 11:33:41 +02:00
73624dbf2d
Use the extract method from config4k in Configuration.kt 2021-04-23 16:29:00 +02:00
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
1c3981a81a
Fix the result variable not being initialized, again. 2021-04-23 15:42:31 +02:00
13898d9de0
Write to the config file only at exit 2021-04-23 15:38:55 +02:00
994a377a26
Save the Snowy configuration at exit 2021-04-23 15:29:48 +02:00
0c107be94b
Fix the result value of Configuration.obtained not being initialized 2021-04-23 11:57:36 +02:00
4b80235049
Make the result variable non-null in Configuration.kt 2021-04-22 16:48:54 +02:00
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
dac1294ee3
Add a configuration made using the config4k library 2021-04-16 22:44:03 +02:00
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
03f2963486
Add GUI utils. 2021-04-10 14:41:42 +02:00
7416bd0ee9
Add an Events system, a mixin for ends of ticks, and ConfigScreen.kt. 2021-04-09 20:48:01 +02:00