Commit Graph

35 Commits

Author SHA1 Message Date
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
0135d1b6ed
Make list fully a mutable map instead of just a map. 2021-04-09 14:04:55 +02:00
42b48f7065
Use a Map instead of a list in AddKeyMaps.kt. 2021-04-09 13:53:14 +02:00
76f483e6a9
Use adequate strings in the mkMap function and in the SnowyConfigScreen class. 2021-04-08 21:26:32 +02:00
dde0a4f86a
Fix the mkMap function. 2021-04-08 20:58:03 +02:00
48116b81fd
Add keybinds and use fabric's mixins for the :common gradle project. 2021-04-08 20:01:03 +02:00
f1d769fd96
Move a comment from a class to another 2021-04-08 14:18:10 +02:00
4323cb4834
Woops, forgot to commit the info.kt and ConfigScreen.kt files. 2021-04-08 14:14:24 +02:00
2b785ee9a2
Add a Jenkinsfile and a few other things 2021-04-08 14:13:37 +02:00