aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/resources/assets/dungeonsguide/gui/elements
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-02-03 11:57:43 +0900
committersyeyoung <cyoung06@naver.com>2023-02-03 11:57:43 +0900
commit9fdf5d426d2a6267dbd218cec49abdeebd00e153 (patch)
treec5da5ee167ece02d0989b6abbc3dbe5fcbf686d3 /mod/src/main/resources/assets/dungeonsguide/gui/elements
parent1c4eace48270b2c5ce1a7a8a9eb05fb32d900399 (diff)
downloadSkyblock-Dungeons-Guide-9fdf5d426d2a6267dbd218cec49abdeebd00e153.tar.gz
Skyblock-Dungeons-Guide-9fdf5d426d2a6267dbd218cec49abdeebd00e153.tar.bz2
Skyblock-Dungeons-Guide-9fdf5d426d2a6267dbd218cec49abdeebd00e153.zip
- time for FeatureParameter fix
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/resources/assets/dungeonsguide/gui/elements')
-rw-r--r--mod/src/main/resources/assets/dungeonsguide/gui/elements/iconButton.gui51
-rw-r--r--mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleToggleButton.gui32
2 files changed, 71 insertions, 12 deletions
diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/iconButton.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/iconButton.gui
new file mode 100644
index 00000000..adc678be
--- /dev/null
+++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/iconButton.gui
@@ -0,0 +1,51 @@
+<!--
+ ~ Dungeons Guide - The most intelligent Hypixel Skyblock Dungeons Mod
+ ~ Copyright (C) 2023 cyoung06 (syeyoung)
+ ~
+ ~ This program is free software: you can redistribute it and/or modify
+ ~ it under the terms of the GNU Affero General Public License as published
+ ~ by the Free Software Foundation, either version 3 of the License, or
+ ~ (at your option) any later version.
+ ~
+ ~ This program is distributed in the hope that it will be useful,
+ ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ ~ GNU Affero General Public License for more details.
+ ~
+ ~ You should have received a copy of the GNU Affero General Public License
+ ~ along with this program. If not, see <https://www.gnu.org/licenses/>.
+ -->
+<wrapper disabled="false"
+ overlayColor="#00000000" hoveredOverlayColor="#22FFFFFF" disabledOverlayColor="#44000000" pressedOverlayColor="#44FFFFFF"
+ width="128" height="128">
+ <AbstractButton bind:click="click" bind:disabled="disabled">
+ <stack>
+ <Stencil>
+ <bgcolor bind:backgroundColor="overlayColor"/>
+ <ResourceImage slot="stencil" bind:location="location" bind:width="width" bind:height="height" bind:textureWidth="width" bind:textureHeight="height"/>
+ </Stencil>
+ <ResourceImage bind:location="location" bind:width="width" bind:height="height" bind:textureWidth="width" bind:textureHeight="height"/>
+ </stack>
+ <stack slot="hovered">
+ <Stencil>
+ <bgcolor bind:backgroundColor="hoveredOverlayColor"/>
+ <ResourceImage slot="stencil" bind:location="location" bind:width="width" bind:height="height" bind:textureWidth="width" bind:textureHeight="height"/>
+ </Stencil>
+ <ResourceImage bind:location="location" bind:width="width" bind:height="height" bind:textureWidth="width" bind:textureHeight="height"/>
+ </stack>
+ <stack slot="disabled">
+ <Stencil>
+ <bgcolor bind:backgroundColor="disabledOverlayColor"/>
+ <ResourceImage slot="stencil" bind:location="location" bind:width="width" bind:height="height" bind:textureWidth="width" bind:textureHeight="height"/>
+ </Stencil>
+ <ResourceImage bind:location="location" bind:width="width" bind:height="height" bind:textureWidth="width" bind:textureHeight="height"/>
+ </stack>
+ <stack slot="pressed">
+ <Stencil>
+ <bgcolor bind:backgroundColor="pressedOverlayColor"/>
+ <ResourceImage slot="stencil" bind:location="location" bind:width="width" bind:height="height" bind:textureWidth="width" bind:textureHeight="height"/>
+ </Stencil>
+ <ResourceImage bind:location="location" bind:width="width" bind:height="height" bind:textureWidth="width" bind:textureHeight="height"/>
+ </stack>
+ </AbstractButton>
+</wrapper> \ No newline at end of file
diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleToggleButton.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleToggleButton.gui
index dba52108..e4df5cf6 100644
--- a/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleToggleButton.gui
+++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleToggleButton.gui
@@ -27,16 +27,20 @@
<Text text="on" align="LEFT" color="#FFFFFFFF"/>
</align>
</flexible>
- <aspectRatio width="1" height="1" fit="TIGHT">
- <CircularRect backgroundColor="#FF00FF00" />
- </aspectRatio>
+ <padding left="1" right="1" top="1" bottom="1">
+ <aspectRatio width="1" height="1" fit="TIGHT">
+ <CircularRect backgroundColor="#FF00FF00" />
+ </aspectRatio>
+ </padding>
</row>
</CircularRect>
<CircularRect slot="off" backgroundColor="#FF333333">
<row>
- <aspectRatio width="1" height="1" fit="TIGHT">
- <CircularRect backgroundColor="#FFFF0000" />
- </aspectRatio>
+ <padding left="1" right="1" top="1" bottom="1">
+ <aspectRatio width="1" height="1" fit="TIGHT">
+ <CircularRect backgroundColor="#FFFF0000" />
+ </aspectRatio>
+ </padding>
<flexible>
<align vAlign="CENTER" hAlign="END">
<Text text="off" align="RIGHT" color="#FFFFFFFF"/>
@@ -53,16 +57,20 @@
<Text text="on" align="LEFT" color="#FFFFFFFF"/>
</align>
</flexible>
- <aspectRatio width="1" height="1" fit="TIGHT">
- <CircularRect backgroundColor="#FF00FF00" />
- </aspectRatio>
+ <padding left="1" right="1" top="1" bottom="1">
+ <aspectRatio width="1" height="1" fit="TIGHT">
+ <CircularRect backgroundColor="#FF00FF00" />
+ </aspectRatio>
+ </padding>
</row>
</CircularRect>
<CircularRect slot="hoverOff" backgroundColor="#FF555555">
<row>
- <aspectRatio width="1" height="1" fit="TIGHT">
- <CircularRect backgroundColor="#FFFF0000" />
- </aspectRatio>
+ <padding left="1" right="1" top="1" bottom="1">
+ <aspectRatio width="1" height="1" fit="TIGHT">
+ <CircularRect backgroundColor="#FFFF0000" />
+ </aspectRatio>
+ </padding>
<flexible>
<align vAlign="CENTER" hAlign="END">
<Text text="off" align="RIGHT" color="#FFFFFFFF"/>