aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2025-10-14 23:20:00 +0200
committerLinnea Gräf <nea@nea.moe>2025-10-14 23:20:00 +0200
commitd8f449c708c3fec138c0c4c1463d2f3de3f8f221 (patch)
tree37812704591582ec1b02bb704c0812399ab1f0d5 /src/main/resources
parentfc74db9ce60afd2c18919531f132ef2f4e56fa80 (diff)
downloadFirmament-d8f449c708c3fec138c0c4c1463d2f3de3f8f221.tar.gz
Firmament-d8f449c708c3fec138c0c4c1463d2f3de3f8f221.tar.bz2
Firmament-d8f449c708c3fec138c0c4c1463d2f3de3f8f221.zip
feat: add support for big buttons
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/assets/firmament/gui/button_editor_fragment.xml47
-rw-r--r--src/main/resources/assets/firmament/textures/gui/sprites/inventory_button_background.png.mcmeta10
2 files changed, 36 insertions, 21 deletions
diff --git a/src/main/resources/assets/firmament/gui/button_editor_fragment.xml b/src/main/resources/assets/firmament/gui/button_editor_fragment.xml
index 6444236..6656634 100644
--- a/src/main/resources/assets/firmament/gui/button_editor_fragment.xml
+++ b/src/main/resources/assets/firmament/gui/button_editor_fragment.xml
@@ -1,24 +1,29 @@
<?xml version="1.0" encoding="UTF-8" ?>
<Root xmlns="http://notenoughupdates.org/moulconfig">
- <Panel background="VANILLA" insets="10">
- <Column>
- <Row>
- <ItemStack value="@getItemIcon"/>
- <Text text="Icon"/>
- </Row>
- <Hover lines="Put your display item in here.;Can be any SkyBlock item id.;;Alternatively you can paste in a /give command">
- <TextField value="@icon" width="180"/>
- </Hover>
- <Text text="Command"/>
- <Hover lines="Put the command in here.;The text box should not start with a /">
- <Row>
- <Text text="/"/>
- <TextField value="@command" width="180"/>
- </Row>
- </Hover>
- <Button onClick="@delete">
- <Text text="Delete"/>
- </Button>
- </Column>
- </Panel>
+ <Panel background="VANILLA" insets="10">
+ <Column>
+ <Row>
+ <ItemStack value="@getItemIcon"/>
+ <Text text="Icon"/>
+ </Row>
+ <Hover
+ lines="Put your display item in here.;Can be any SkyBlock item id.;;Alternatively you can paste in a /give command">
+ <TextField value="@icon" width="180"/>
+ </Hover>
+ <Row>
+ <Switch value="@isGigantic"/>
+ <Text text="Big Button"/>
+ </Row>
+ <Text text="Command"/>
+ <Hover lines="Put the command in here.;The text box should not start with a /">
+ <Row>
+ <Text text="/"/>
+ <TextField value="@command" width="180"/>
+ </Row>
+ </Hover>
+ <Button onClick="@delete">
+ <Text text="Delete"/>
+ </Button>
+ </Column>
+ </Panel>
</Root>
diff --git a/src/main/resources/assets/firmament/textures/gui/sprites/inventory_button_background.png.mcmeta b/src/main/resources/assets/firmament/textures/gui/sprites/inventory_button_background.png.mcmeta
new file mode 100644
index 0000000..55fb892
--- /dev/null
+++ b/src/main/resources/assets/firmament/textures/gui/sprites/inventory_button_background.png.mcmeta
@@ -0,0 +1,10 @@
+{
+ "gui": {
+ "scaling": {
+ "type": "nine_slice",
+ "width": 18,
+ "height": 18,
+ "border": 4
+ }
+ }
+}