Commit Graph

214 Commits

Author SHA1 Message Date
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 1a4ba27e36
Change the architectury maven 2021-04-29 14:45:35 +02:00
Username404-59 601f1d4fd4
Set the minimum version of forgified-fabric-loom to 0.7.0.95. 2021-04-29 14:39:56 +02:00
Username404-59 91508cd1c4
Add maven-local to the repositories and use a maven-style version range for forgified-fabric-loom 2021-04-29 14:00:39 +02:00
Username404-59 cad369b2d3
Change the forge repo 2021-04-29 13:45:31 +02:00
Username404-59 28dc945c1f
Set a minimum version of forge instead of a fixed one 2021-04-29 12:52:58 +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 61ccb4ae62
Keep forge-specific classes in the proguard gradle task 2021-04-28 21:59:57 +02:00
Username404-59 1b656ee8b1
Make the mixin classes abstract 2021-04-28 21:34:17 +02:00
Username404-59 d72ea9ba19
Use a @Suppress annotation in ForgeInit.kt. 2021-04-28 20:44:28 +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 7fb904246e
Fix the fabric-api-base dependency 2021-04-28 13:45:34 +02:00
Username404-59 f352f16e46
Exclude the fabric-api-base artifact from modmenu 2021-04-28 12:35:03 +02:00
Username404-59 eb95454313
Depend on fabric-rendering-v1 (+ fabric-api-base) and handle hud rendering on fabric too 2021-04-28 12:30:59 +02:00
Username404-59 bd0ac48e11
Add HudHandler.kt 2021-04-28 12:03:54 +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 282f873da4
Edit the version range of the architectury plugin 2021-04-27 22:20:00 +02:00
Username404-59 8ed7b55054
Shrink the packages a bit more 2021-04-27 20:40:12 +02:00
Username404-59 c19b2ce735
Flatten package hierarchy in the gradle proguard task and set the subprojects groups 2021-04-27 18:59:30 +02:00
Username404-59 b486342ce0
Call mergeinterfacesaggressively in the proguard task 2021-04-27 18:39:11 +02:00
Username404-59 b828b41354
Make AddKeyMaps.mkMap() an internal function with jvm overloads. 2021-04-27 17:04:47 +02:00
Username404-59 f19de179b9
Remove tests from the check task dependencies 2021-04-27 16:41:23 +02:00
Username404-59 3d1f95b275
Use isJava9Compatible as a property in the root-level build.gradle.kts file 2021-04-27 10:15:11 +02:00
Username404 3a56cd3be2
Revert "Exclude a few things from the java.base.jmod dependency"
This reverts commit e84c497fc8b4919867c413730b9342c3d0d37490.
2021-04-27 03:04:06 +02:00
Username404-59 5365db200a
Exclude a few things from the java.base.jmod dependency 2021-04-27 02:49:54 +02:00
Username404-59 23633a3eeb
Support Java 9 and higher in the proguard task 2021-04-27 02:34:31 +02:00
Username404-59 b6c0988a24
Let the proguard task run on java 9+ 2021-04-27 02:25:08 +02:00
Username404-59 6f43f2de94
Remove jce.jar from the proguard task 2021-04-27 02:06:23 +02:00
Username404-59 3165dcb2a3
Update kotlin 2021-04-27 01:17:46 +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