aboutsummaryrefslogtreecommitdiff
path: root/mod/src/main/resources/assets
diff options
context:
space:
mode:
authorsyeyoung <cyoung06@naver.com>2023-01-22 00:30:16 +0900
committersyeyoung <cyoung06@naver.com>2023-01-22 00:30:16 +0900
commit394c52045bcb53a93c08cfab6d60a42bfd777d59 (patch)
tree120a2f198cadcecca5471958ed6d8a2da67e6b11 /mod/src/main/resources/assets
parent6790c6dd1909522eadb6c8917369b357b7fb4119 (diff)
downloadSkyblock-Dungeons-Guide-394c52045bcb53a93c08cfab6d60a42bfd777d59.tar.gz
Skyblock-Dungeons-Guide-394c52045bcb53a93c08cfab6d60a42bfd777d59.tar.bz2
Skyblock-Dungeons-Guide-394c52045bcb53a93c08cfab6d60a42bfd777d59.zip
- Profile viewer now uses guiv2
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/resources/assets')
-rw-r--r--mod/src/main/resources/assets/dungeonsguide/gui/features/mechanicBrowser/tooltip.gui2
-rw-r--r--mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/data.gui72
-rw-r--r--mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/player.gui42
-rw-r--r--mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/pv.gui68
4 files changed, 183 insertions, 1 deletions
diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/features/mechanicBrowser/tooltip.gui b/mod/src/main/resources/assets/dungeonsguide/gui/features/mechanicBrowser/tooltip.gui
index d948c9cf..79a5ea2a 100644
--- a/mod/src/main/resources/assets/dungeonsguide/gui/features/mechanicBrowser/tooltip.gui
+++ b/mod/src/main/resources/assets/dungeonsguide/gui/features/mechanicBrowser/tooltip.gui
@@ -17,7 +17,7 @@
-->
<UnconstrainedBox>
- <size width="120">
+ <size width="86">
<scaler bind:scale="scale">
<border>
<line slot="left" dir="VERTICAL" thickness="1.0" color="#FF444444"/>
diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/data.gui b/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/data.gui
new file mode 100644
index 00000000..6b8df44c
--- /dev/null
+++ b/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/data.gui
@@ -0,0 +1,72 @@
+<!--
+ ~ 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/>.
+ -->
+
+<row>
+ <size width="90">
+ <col>
+ <flexible>
+ <!--Player model-->
+ <slot bind:child="playerModel"/>
+ </flexible>
+
+ <size height="11">
+ <row>
+ <flexible>
+ <ColorButton on:click="switchProfile" hPadding="1"
+ backgroundColor="#FF30AFD3" textColor="#FFFFFFFF"
+ hoveredBackgroundColor="#FFFFFFFF" hoveredTextColor="#FF30AFd3"
+ disabledBackgroundColor="0" disabledTextColor="0"
+ pressedBackgroundColor="#FFFFFFFF" pressedTextColor="#FF30AFd3"
+ text="§bSwitch Profile"
+ />
+ </flexible>
+ <size width="11">
+ <ColorButton on:click="openInventory" hPadding="1"
+ backgroundColor="#FF555555" textColor="#FFFFFFFF"
+ hoveredBackgroundColor="#FF636363" hoveredTextColor="#FFFFFFFF"
+ disabledBackgroundColor="0" disabledTextColor="0"
+ pressedBackgroundColor="#FF707070" pressedTextColor="#FFFFFFFF"
+ text="§eI" bind:ref="invButtonRef"
+ />
+ </size>
+ </row>
+ </size>
+ <size height="27">
+ <ColorButton on:click="invite" hPadding="1"
+ backgroundColor="#FF7289DA" textColor="#FFFFFFFF"
+ hoveredBackgroundColor="#FF859DF0" hoveredTextColor="#FFFFFFFF"
+ disabledBackgroundColor="0" disabledTextColor="0"
+ pressedBackgroundColor="#FF859DF0" pressedTextColor="#FFFFFFFF"
+ text="Invite"
+ />
+ </size>
+ <size height="27">
+ <ColorButton on:click="kick" hPadding="1"
+ backgroundColor="#FFFF3333" textColor="#FFFFFFFF"
+ hoveredBackgroundColor="#FFFF7777" hoveredTextColor="#FFFFFFFF"
+ disabledBackgroundColor="0" disabledTextColor="0"
+ pressedBackgroundColor="#FFFF7777" pressedTextColor="#FFFFFFFF"
+ text="Kick"
+ />
+ </size>
+ </col>
+ </size>
+ <flexible>
+ <col bind:_="datarenderers"/>
+ </flexible>
+</row> \ No newline at end of file
diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/player.gui b/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/player.gui
new file mode 100644
index 00000000..256d48d1
--- /dev/null
+++ b/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/player.gui
@@ -0,0 +1,42 @@
+<!--
+ ~ 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/>.
+ -->
+<size>
+ <SelectiveContainer bind:visible="visible">
+ <slot bind:child="playerRender" slot="player"/>
+ <slot slot="noPlayer">
+ <col mainAlign="CENTER" crossAlign="CENTER">
+ <Text text="An error occured while fetching skin" color="#FFFFFFFF"/>
+ <Text text="Or player does not exist" color="#FFFFFFFF"/>
+ <size width="50" height="27">
+ <ColorButton on:click="refresh" hPadding="1"
+ backgroundColor="#FF7289DA" textColor="#FFFFFFFF"
+ hoveredBackgroundColor="#FF859DF0" hoveredTextColor="#FFFFFFFF"
+ disabledBackgroundColor="0" disabledTextColor="0"
+ pressedBackgroundColor="#FF859DF0" pressedTextColor="#FFFFFFFF"
+ text="Refresh"
+ />
+ </size>
+ </col>
+ </slot>
+ <slot slot="fetching">
+ <align hAlign="CENTER" vAlign="CENTER">
+ <Text text="Fetching..." color="#FFFFFFFF"/>
+ </align>
+ </slot>
+ </SelectiveContainer>
+</size> \ No newline at end of file
diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/pv.gui b/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/pv.gui
new file mode 100644
index 00000000..53050180
--- /dev/null
+++ b/mod/src/main/resources/assets/dungeonsguide/gui/features/profileViewer/pv.gui
@@ -0,0 +1,68 @@
+<!--
+ ~ 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/>.
+ -->
+
+<scaler bind:scale="scale">
+ <border>
+ <line slot="left" dir="VERTICAL" thickness="1.0" color="#FF23272A"/>
+ <line slot="top" dir="HORIZONTAL" thickness="1.0" color="#FF23272A"/>
+ <line slot="bottom" dir="HORIZONTAL" thickness="1.0" color="#FF23272A"/>
+ <line slot="right" dir="VERTICAL" thickness="1.0" color="#FF23272A"/>
+ <bgcolor slot="content" backgroundColor="#FF2C2F33">
+ <clip>
+ <SelectiveContainer bind:visible="visible">
+ <slot bind:child="actualPV" slot="pv"/>
+ <slot slot="apiKeyInvalid">
+ <col mainAlign="CENTER" crossAlign="CENTER">
+ <Text text="API key is invalid or missing" color="#FFFFFFFF"/>
+ <size width="50" height="27">
+ <ColorButton on:click="refresh" hPadding="1"
+ backgroundColor="#FF7289DA" textColor="#FFFFFFFF"
+ hoveredBackgroundColor="#FF859DF0" hoveredTextColor="#FFFFFFFF"
+ disabledBackgroundColor="0" disabledTextColor="0"
+ pressedBackgroundColor="#FF859DF0" pressedTextColor="#FFFFFFFF"
+ text="Refresh"
+ />
+ </size>
+ </col>
+ </slot>
+ <slot slot="noPlayer">
+ <col mainAlign="CENTER" crossAlign="CENTER">
+ <Text text="An error occured while fetching profile" color="#FFFFFFFF"/>
+ <Text text="Or maybe player does not exist?" color="#FFFFFFFF"/>
+ <size width="50" height="27">
+ <ColorButton on:click="refresh" hPadding="1"
+ backgroundColor="#FF7289DA" textColor="#FFFFFFFF"
+ hoveredBackgroundColor="#FF859DF0" hoveredTextColor="#FFFFFFFF"
+ disabledBackgroundColor="0" disabledTextColor="0"
+ pressedBackgroundColor="#FF859DF0" pressedTextColor="#FFFFFFFF"
+ text="Refresh"
+ />
+ </size>
+ </col>
+ </slot>
+ <slot slot="fetching">
+ <align hAlign="CENTER" vAlign="CENTER">
+ <Text text="Fetching..." color="#FFFFFFFF"/>
+ </align>
+ </slot>
+ </SelectiveContainer>
+
+ </clip>
+ </bgcolor>
+ </border>
+</scaler> \ No newline at end of file