diff options
author | Linnea Gräf <nea@nea.moe> | 2024-06-15 19:54:47 +0200 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-06-15 19:54:47 +0200 |
commit | dff1f9c0e2b728dba902d72816104abccc61f511 (patch) | |
tree | 4b6df287f876851bb6e8b47657d90d0d10917e6f /src/main/resources/assets/firmament/gui | |
parent | df0a0ded977a3613e57b64512ea77ff992387d43 (diff) | |
download | Firmament-dff1f9c0e2b728dba902d72816104abccc61f511.tar.gz Firmament-dff1f9c0e2b728dba902d72816104abccc61f511.tar.bz2 Firmament-dff1f9c0e2b728dba902d72816104abccc61f511.zip |
WIP: Terrible MoulConfig rewrite
Diffstat (limited to 'src/main/resources/assets/firmament/gui')
3 files changed, 38 insertions, 5 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 e28afc0..1cf3df2 100644 --- a/src/main/resources/assets/firmament/gui/button_editor_fragment.xml +++ b/src/main/resources/assets/firmament/gui/button_editor_fragment.xml @@ -6,8 +6,7 @@ SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe> SPDX-License-Identifier: GPL-3.0-or-later --> -<Root xmlns="http://notenoughupdates.org/moulconfig" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xsi:schemaLocation="http://notenoughupdates.org/moulconfig https://raw.githubusercontent.com/NotEnoughUpdates/MoulConfig/master/MoulConfig.xsd"> +<Root xmlns="http://notenoughupdates.org/moulconfig"> <Panel background="VANILLA" insets="10"> <Column> <Row> diff --git a/src/main/resources/assets/firmament/gui/config/main.xml b/src/main/resources/assets/firmament/gui/config/main.xml new file mode 100644 index 0000000..a5fc245 --- /dev/null +++ b/src/main/resources/assets/firmament/gui/config/main.xml @@ -0,0 +1,36 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<!-- +SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe> + +SPDX-License-Identifier: GPL-3.0-or-later +--> + +<Root xmlns="http://notenoughupdates.org/moulconfig" + xmlns:firm="http://firmament.nea.moe/moulconfig"> + <Center> + <Panel background="VANILLA" insets="10"> + <Column> + <Text text="Firmament Config"/> + <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/pristine_profit.xml b/src/main/resources/assets/firmament/gui/pristine_profit.xml index 5f9ea43..1754f69 100644 --- a/src/main/resources/assets/firmament/gui/pristine_profit.xml +++ b/src/main/resources/assets/firmament/gui/pristine_profit.xml @@ -6,9 +6,7 @@ SPDX-FileCopyrightText: 2023 Linnea Gräf <nea@nea.moe> SPDX-License-Identifier: GPL-3.0-or-later --> -<Root xmlns="http://notenoughupdates.org/moulconfig" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - xmlns:firm="http://firmament.nea.moe/moulconfig" - xsi:schemaLocation="http://notenoughupdates.org/moulconfig https://raw.githubusercontent.com/NotEnoughUpdates/MoulConfig/master/MoulConfig.xsd"> +<Root xmlns="http://notenoughupdates.org/moulconfig" xmlns:firm="http://firmament.nea.moe/moulconfig"> <Column> <Row> <firm:Bar progress="@moneyCurrent" total="@moneyMax" fillColor="#bbbb00" emptyColor="#909000"/> |