Commit Graph

199 Commits

Author SHA1 Message Date
Username404-59 88f097be01
Add a comment about the buttons limit 2021-05-04 18:45:41 +02:00
Username404-59 06c4dea9be
Use the isNotEmpty method in ClickBox.kt 2021-05-04 18:39:55 +02:00
Username404-59 e7a3fb592e
Fix scrolling when using only a few buttons 2021-05-04 18:27:51 +02:00
Username404-59 2beaf74843
Complete the scroll function 2021-05-04 18:18:48 +02:00
Username404-59 8e444c9596
Set the base height of the progressbar to 8 2021-05-04 14:57:46 +02:00
Username404-59 7b1aa0f876
Initialize ClickGui.kt in the titlescreen by adding a mixin 2021-05-04 14:39:49 +02:00
Username404-59 f72acaaf9a
Only add the kotlin package as library jar for the proguard gradle task 2021-05-04 14:39:40 +02:00
Username404-59 548bf472ba
Save the enabledFeatures map 2021-05-03 20:50:23 +02:00
Username404-59 0427c2bce0
Remove the need for a map in the default config 2021-05-03 20:29:54 +02:00
Username404-59 5c3f606d26
Revert "Support snapshots in the mcBase variable"
This reverts commit 9e0a8fd9683a3e6b48c2d3c8de596a992a38d17f.
2021-05-03 15:24:25 +02:00
Username404-59 31d96c4dbb
Support snapshots in the mcBase variable 2021-05-03 15:20:20 +02:00
Username404-59 0bae4655f9
Add a comment to the build.gradle.kts file 2021-05-03 14:37:12 +02:00
Username404-59 aaa2366164
Downgrade kotlinx-datetime 2021-05-03 14:34:49 +02:00
Username404-59 8a03391c38
Add a kotlin_stdlib_version property to gradle.properties 2021-05-03 14:03:50 +02:00
Username404-59 ea2c5c458b
Remove a line in Configuration.kt :) 2021-05-03 13:24:38 +02:00
Username404-59 c8a55f8774
Make FabricInit a class again 2021-05-03 13:12:06 +02:00
Username404-59 c9624c9762
Use all available optimizations 2021-05-03 12:47:40 +02:00
Username404-59 bb363b7fbc
Add a README.md fil 2021-05-03 12:38:29 +02:00
Username404-59 9719276292
Fix kotlinx packages 2021-05-03 12:28:12 +02:00
Username404-59 6ceebb93ff
Use implementation instead of modImplementation for the kotlinforforge dependency 2021-05-03 10:53:45 +02:00
Username404-59 9f8484561e
Revert "Remove enabledFeatures from the default configuration; it is useless"
This reverts commit 92a3bae74a59cf59c6a9fabbaa42e925cded899a.
2021-05-03 10:51:39 +02:00
Username404-59 481ebb1b60
Setup fabric-language-kotlin and kotlinforforge 2021-05-03 10:40:27 +02:00
Username404-59 9da9c46c88
Remove enabledFeatures from the default configuration; it is useless
(cherry picked from commit c1cb690fe2404889b54373c4399d22b381abfc57)
2021-05-03 08:29:07 +02:00
Username404-59 6471756b95
Get toggled buttons from Configuration.kt (WIP) 2021-05-02 21:48:05 +02:00
Username404-59 6381b0f6ca
Enable all optimizations except object simplifications 2021-05-02 15:59:49 +02:00
Username404-59 53487c9a4d
Update proguard to 7.1.0-beta3 (and higher) and add mavenCentral to the repositories 2021-05-02 15:45:07 +02:00
Username404-59 c74b2d5195
Make ClickGui.addComps an internal function 2021-05-02 15:00:14 +02:00
Username404-59 a7e7e6e60e
Rename scrollBar to buttonsProgressBar 2021-05-02 14:52:48 +02:00
Username404-59 5d5ea4b5ea
Add a buttonsContext method to ClickGui.kt, and a WIP scroll function to ClickBox.kt 2021-05-02 12:46:02 +02:00
Username404-59 5c2d09abc1
Edit a TODO comment 2021-05-02 11:08:57 +02:00
Username404-59 1551d70e88
Add components in another file called addComponents.kt 2021-05-01 21:32:24 +02:00
Username404-59 9dc097d32f
Make ClickBox.buttons a map 2021-05-01 20:18:46 +02:00
Username404-59 8a65839816
Always execute actions of toggleable buttons 2021-05-01 19:38:21 +02:00
Username404-59 ee163fe312
Fix the logic of toggleable buttons 2021-05-01 19:31:15 +02:00
Username404-59 b3201bfa3c
Add FontUtil.kt 2021-05-01 19:21:45 +02:00
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