diff options
author | Juuxel <6596629+Juuxel@users.noreply.github.com> | 2020-09-24 12:02:38 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-24 12:02:38 +0300 |
commit | 016eb1efda675e676e5cde655ba382a77b1552b5 (patch) | |
tree | 453a69a08aabd3b234e7179a7ce6884d95781768 /src/main/resources | |
parent | 283db1edc77209344888210c4b618595874707fe (diff) | |
download | LibGui-016eb1efda675e676e5cde655ba382a77b1552b5.tar.gz LibGui-016eb1efda675e676e5cde655ba382a77b1552b5.tar.bz2 LibGui-016eb1efda675e676e5cde655ba382a77b1552b5.zip |
Tabs, card panels and showing/hiding widgets (#74)3.0.0
* Add beta API for hiding and showing widget peers, add default implementation for slots
* Add WCardPanel
* Tab thingies
* Improve WPanel.toString
* Fix tabs, add dark mode
* Add box fillers
* Tabs again
* Tab go brrr
* Revert modmenu changes
* Fix card panels not initialising hidden widgets properly
* Fix slots not being hidden when they should be
* Things
* Revert "Add box fillers"
This reverts commit 1ea1bfbb
* foo
* revert more modmenu changes
* Add tab titles and switch to a builder model for adding tabs
* Document tab builders
* Make hidden widgets release their focus
* Replace outdated since tags with TAB_VERSION
* Fix compilation of WTabPanel
* TAB_VERSION => 3.0.0
* Add focusing support to tabs
Diffstat (limited to 'src/main/resources')
-rw-r--r-- | src/main/resources/assets/libgui/textures/widget/tab/focus.png | bin | 0 -> 633 bytes | |||
-rw-r--r-- | src/main/resources/assets/libgui/textures/widget/tab/selected_dark.png | bin | 0 -> 629 bytes | |||
-rw-r--r-- | src/main/resources/assets/libgui/textures/widget/tab/selected_light.png | bin | 0 -> 625 bytes | |||
-rw-r--r-- | src/main/resources/assets/libgui/textures/widget/tab/unselected_dark.png | bin | 0 -> 628 bytes | |||
-rw-r--r-- | src/main/resources/assets/libgui/textures/widget/tab/unselected_light.png | bin | 0 -> 625 bytes | |||
-rw-r--r-- | src/main/resources/fabric.mod.json | 3 | ||||
-rw-r--r-- | src/main/resources/mixins.libgui.accessors.json | 14 |
7 files changed, 17 insertions, 0 deletions
diff --git a/src/main/resources/assets/libgui/textures/widget/tab/focus.png b/src/main/resources/assets/libgui/textures/widget/tab/focus.png Binary files differnew file mode 100644 index 0000000..6d25685 --- /dev/null +++ b/src/main/resources/assets/libgui/textures/widget/tab/focus.png diff --git a/src/main/resources/assets/libgui/textures/widget/tab/selected_dark.png b/src/main/resources/assets/libgui/textures/widget/tab/selected_dark.png Binary files differnew file mode 100644 index 0000000..24ba766 --- /dev/null +++ b/src/main/resources/assets/libgui/textures/widget/tab/selected_dark.png diff --git a/src/main/resources/assets/libgui/textures/widget/tab/selected_light.png b/src/main/resources/assets/libgui/textures/widget/tab/selected_light.png Binary files differnew file mode 100644 index 0000000..ce7cbf2 --- /dev/null +++ b/src/main/resources/assets/libgui/textures/widget/tab/selected_light.png diff --git a/src/main/resources/assets/libgui/textures/widget/tab/unselected_dark.png b/src/main/resources/assets/libgui/textures/widget/tab/unselected_dark.png Binary files differnew file mode 100644 index 0000000..ae1d16e --- /dev/null +++ b/src/main/resources/assets/libgui/textures/widget/tab/unselected_dark.png diff --git a/src/main/resources/assets/libgui/textures/widget/tab/unselected_light.png b/src/main/resources/assets/libgui/textures/widget/tab/unselected_light.png Binary files differnew file mode 100644 index 0000000..21ab044 --- /dev/null +++ b/src/main/resources/assets/libgui/textures/widget/tab/unselected_light.png diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index 22d9990..df75753 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -21,6 +21,9 @@ "client": ["io.github.cottonmc.cotton.gui.client.LibGuiClient"], "modmenu": ["io.github.cottonmc.cotton.gui.client.modmenu.ModMenuSupport"] }, + "mixins": [ + "mixins.libgui.accessors.json" + ], "depends": { "fabricloader": ">=0.8.8", "fabric": "*", diff --git a/src/main/resources/mixins.libgui.accessors.json b/src/main/resources/mixins.libgui.accessors.json new file mode 100644 index 0000000..9ec55f2 --- /dev/null +++ b/src/main/resources/mixins.libgui.accessors.json @@ -0,0 +1,14 @@ +{ + "compatibilityLevel": "JAVA_8", + "minVersion": "0.7.11", + "package": "io.github.cottonmc.cotton.gui.impl.access", + "required": true, + + "mixins": [ + "SlotAccessor" + ], + + "injectors": { + "defaultRequire": 1 + } +} |