aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/assets/firmament/gui
diff options
context:
space:
mode:
authorLinnea Gräf <nea@nea.moe>2024-10-13 21:46:46 +0200
committerLinnea Gräf <nea@nea.moe>2024-10-13 21:46:46 +0200
commit4e9b0ded27df8b6ce7f5b2fa1b4b1ddbc1cbd452 (patch)
treea489fdd97e6c4dde1bd77bf216ed9c2ec2657db3 /src/main/resources/assets/firmament/gui
parent0cc77949c907d38497f8cdf6fd8198fe5f0a9440 (diff)
downloadFirmament-4e9b0ded27df8b6ce7f5b2fa1b4b1ddbc1cbd452.tar.gz
Firmament-4e9b0ded27df8b6ce7f5b2fa1b4b1ddbc1cbd452.tar.bz2
Firmament-4e9b0ded27df8b6ce7f5b2fa1b4b1ddbc1cbd452.zip
Add config categories
Diffstat (limited to 'src/main/resources/assets/firmament/gui')
-rw-r--r--src/main/resources/assets/firmament/gui/config/category.xml42
-rw-r--r--src/main/resources/assets/firmament/gui/config/main.xml6
2 files changed, 45 insertions, 3 deletions
diff --git a/src/main/resources/assets/firmament/gui/config/category.xml b/src/main/resources/assets/firmament/gui/config/category.xml
new file mode 100644
index 0000000..e34b018
--- /dev/null
+++ b/src/main/resources/assets/firmament/gui/config/category.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<Root xmlns="http://notenoughupdates.org/moulconfig"
+ xmlns:firm="http://firmament.nea.moe/moulconfig">
+ <Center>
+ <Panel background="VANILLA" insets="10">
+ <Column>
+ <Row>
+ <Align vertical="CENTER">
+ <firm:Button onClick="@close">
+ <Text text="Back"/>
+ </firm:Button>
+ </Align>
+ <Align vertical="CENTER">
+ <Row>
+ <Text text=" "/>
+ <Text text="@name"/>
+ </Row>
+ </Align>
+ </Row>
+ <Spacer height="5"/>
+ <ScrollPanel width="400" height="300">
+ <Array data="@configs">
+ <firm:Fixed width="380" height="30">
+ <Panel background="VANILLA">
+ <Center>
+ <Row>
+ <Center>
+ <Text text="@name"/>
+ </Center>
+ <firm:Button onClick="@openEditor">
+ <Text text="Edit"/>
+ </firm:Button>
+ </Row>
+ </Center>
+ </Panel>
+ </firm:Fixed>
+ </Array>
+ </ScrollPanel>
+ </Column>
+ </Panel>
+ </Center>
+</Root>
diff --git a/src/main/resources/assets/firmament/gui/config/main.xml b/src/main/resources/assets/firmament/gui/config/main.xml
index 84b0115..8953ada 100644
--- a/src/main/resources/assets/firmament/gui/config/main.xml
+++ b/src/main/resources/assets/firmament/gui/config/main.xml
@@ -6,7 +6,7 @@
<Column>
<Text text="Firmament Config"/>
<ScrollPanel width="400" height="300">
- <Array data="@configs">
+ <Array data="@categories">
<firm:Fixed width="380" height="30">
<Panel background="VANILLA">
<Center>
@@ -14,8 +14,8 @@
<Center>
<Text text="@name"/>
</Center>
- <firm:Button onClick="@openEditor">
- <Text text="Edit"/>
+ <firm:Button onClick="@open">
+ <Text text="Open"/>
</firm:Button>
</Row>
</Center>