aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/assets
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
parent0cc77949c907d38497f8cdf6fd8198fe5f0a9440 (diff)
downloadFirmament-4e9b0ded27df8b6ce7f5b2fa1b4b1ddbc1cbd452.tar.gz
Firmament-4e9b0ded27df8b6ce7f5b2fa1b4b1ddbc1cbd452.tar.bz2
Firmament-4e9b0ded27df8b6ce7f5b2fa1b4b1ddbc1cbd452.zip
Add config categories
Diffstat (limited to 'src/main/resources/assets')
-rw-r--r--src/main/resources/assets/firmament/gui/config/category.xml42
-rw-r--r--src/main/resources/assets/firmament/gui/config/main.xml6
-rw-r--r--src/main/resources/assets/firmament/lang/en_us.json13
3 files changed, 56 insertions, 5 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>
diff --git a/src/main/resources/assets/firmament/lang/en_us.json b/src/main/resources/assets/firmament/lang/en_us.json
index f7a128d..8e8478b 100644
--- a/src/main/resources/assets/firmament/lang/en_us.json
+++ b/src/main/resources/assets/firmament/lang/en_us.json
@@ -73,15 +73,24 @@
"firmament.config.repo.username.hint": "NotEnoughUpdates",
"firmament.config.repo.reponame": "Repo Name",
"firmament.config.repo.reponame.hint": "NotEnoughUpdates-REPO",
- "firmament.config.repo.enable-yacl": "Use YACL Config",
+ "firmament.config.configconfig.enable-yacl": "Use YACL Config",
"firmament.config.repo.branch": "Repo Branch",
- "firmament.config.repo.branch.hint": "dangerous",
+ "firmament.config.configconfig": "Firmaments Config",
+ "firmament.config.repo.branch.hint": "dangerous",
"firmament.config.repo.reset": "Reset",
"firmament.config.repo.disable-item-groups": "Disable Item Groups",
"firmament.config.repo.reload": "Reload Item List",
"firmament.config.repo.redownload": "Redownload Item List",
"firmament.config.pets": "Pets",
"firmament.config.pets.highlight-pet": "Highlight active pet",
+ "firmament.config.category.misc": "Miscellaneous",
+ "firmament.config.category.mining": "Mining",
+ "firmament.config.category.events": "Events",
+ "firmament.config.category.chat": "Chat",
+ "firmament.config.category.inventory": "Inventory",
+ "firmament.config.category.integrations": "Integrations & Textures",
+ "firmament.config.category.meta": "Meta & Firmament",
+ "firmament.config.category.dev": "Developer & Debug",
"firmament.ursa.debugrequest.start": "Ursa request launched",
"firmament.ursa.debugrequest.result": "Ursa request succeeded: %s",
"firmament.sbinfo.nolocraw": "No locraw data available",