diff options
Diffstat (limited to 'mod/src/main/resources/assets/dungeonsguide')
21 files changed, 582 insertions, 7 deletions
diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/normalconfig.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/normalconfig.gui index 6381664f..305faa81 100644 --- a/mod/src/main/resources/assets/dungeonsguide/gui/config/normalconfig.gui +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/normalconfig.gui @@ -16,6 +16,7 @@ ~ along with this program. If not, see <https://www.gnu.org/licenses/>. --> +<PopupManager> <align vAlign="CENTER" hAlign="CENTER"> <ConstrainedBox maxWidth="700" maxHeight="500"> <bgcolor backgroundColor="0xFF111111"> @@ -86,4 +87,5 @@ </col> </bgcolor> </ConstrainedBox> -</align>
\ No newline at end of file +</align> +</PopupManager>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/boolean.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/boolean.gui new file mode 100644 index 00000000..4fc0c1c0 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/boolean.gui @@ -0,0 +1,22 @@ + +<!-- + ~ 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 width="40" height="14"> + <SimpleToggleButton bind:enabled="enabled"/> +</size>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/color.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/color.gui new file mode 100644 index 00000000..d5db4950 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/color.gui @@ -0,0 +1,25 @@ + +<!-- + ~ 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 width="100" height="25"> + <RoundButton on:click="setColor" hPadding="1" + text="" + bind:backgroundColor="color" bind:hoveredBackgroundColor="hover" bind:pressedBackgroundColor="click" + /> +</size>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/colorSet.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/colorSet.gui new file mode 100644 index 00000000..89129d84 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/colorSet.gui @@ -0,0 +1,85 @@ +<!-- + ~ 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 width="137" height="102"> + <stack> + <padding left="7" top="7" right="7" bottom="7"> + <col> + <flexible> + <row> + <aspectRatio width="1" height="1"> + <slot bind:child="colorWheel"/> + </aspectRatio> + <size width="5"/> + <size width="15"> + <slot bind:child="valueBar"/> + </size> + <size width="5"/> + <size width="15"> + <slot bind:child="alphaBar"/> + </size> + <size width="5"/> + <size width="15"> + <slot bind:child="chromaBar"/> + </size> + </row> + </flexible> + <size height="5"/> + <size height="20"> + <TextField bind:value="color"/> + </size> + </col> + </padding> + <InvertStencil> + <RoundRect radius="10" backgroundColor="#FFFFFFFF"> + <padding left="1" top="1" bottom="1" right="1"> + <RoundRect radius="10" backgroundColor="#FF111111"> + + </RoundRect> + </padding> + </RoundRect> + <padding left="7" top="7" right="7" bottom="7" slot="stencil"> + <col> + <flexible> + <row> + <aspectRatio width="1" height="1"> + <size width="0" height="0"/> + </aspectRatio> + <size width="5"/> + <size width="15"> + <size width="0" height="0"/> + </size> + <size width="5"/> + <size width="15"> + <RoundRect radius="10" backgroundColor="#FFFFFFFF"/> + </size> + <size width="5"/> + <size width="15"> + <size width="0" height="0"/> + </size> + </row> + </flexible> + <size height="5"/> + <size height="20"> + <size width="0" height="0"/> + </size> + </col> + </padding> + </InvertStencil> + </stack> +</size>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/keybind.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/keybind.gui new file mode 100644 index 00000000..134d105e --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/keybind.gui @@ -0,0 +1,23 @@ +<!-- + ~ 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 width="100" height="25"> + <RoundButton on:click="setKey" hPadding="1" + bind:text="key" + /> +</size>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/number.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/number.gui new file mode 100644 index 00000000..57c21e3b --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/number.gui @@ -0,0 +1,46 @@ +<!-- + ~ 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 height="19"> + <Stencil> + <row> + <aspectRatio width="1" height="1"> + <ColorButton on:click="dec" hPadding="1" + backgroundColor="#FF1C376E" textColor="#FFFFFFFF" + hoveredBackgroundColor="#FF1C5692" hoveredTextColor="#FFFFFFFF" + disabledBackgroundColor="0" disabledTextColor="0" + pressedBackgroundColor="#FF1D5F9C" pressedTextColor="#FFFFFFFF" + text="<" + /> + </aspectRatio> + <flexible> + <TextField bind:value="value"/> + </flexible> + <aspectRatio width="1" height="1"> + <ColorButton on:click="inc" hPadding="1" + backgroundColor="#FF1C376E" textColor="#FFFFFFFF" + hoveredBackgroundColor="#FF1C5692" hoveredTextColor="#FFFFFFFF" + disabledBackgroundColor="0" disabledTextColor="0" + pressedBackgroundColor="#FF1D5F9C" pressedTextColor="#FFFFFFFF" + text=">" + /> + </aspectRatio> + </row> + <CircularRect slot="stencil"/> + </Stencil> +</size>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/string.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/string.gui new file mode 100644 index 00000000..fea9fe77 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/string.gui @@ -0,0 +1,22 @@ + +<!-- + ~ 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 height="19"> + <TextField bind:value="value"/> +</size>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/stringChoice.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/stringChoice.gui new file mode 100644 index 00000000..27822ea9 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameter/stringChoice.gui @@ -0,0 +1,50 @@ +<!-- + ~ 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 height="19"> + <Stencil> + <row> + <aspectRatio width="1" height="1"> + <ColorButton on:click="dec" hPadding="1" + backgroundColor="#FF1C376E" textColor="#FFFFFFFF" + hoveredBackgroundColor="#FF1C5692" hoveredTextColor="#FFFFFFFF" + disabledBackgroundColor="0" disabledTextColor="0" + pressedBackgroundColor="#FF1D5F9C" pressedTextColor="#FFFFFFFF" + text="<" + /> + </aspectRatio> + <flexible> + <bgcolor backgroundColor="#FF000000"> + <align hAlign="CENTER" vAlign="CENTER"> + <Text bind:text="value" color="#FFFFFFFF"/> + </align> + </bgcolor> + </flexible> + <aspectRatio width="1" height="1"> + <ColorButton on:click="inc" hPadding="1" + backgroundColor="#FF1C376E" textColor="#FFFFFFFF" + hoveredBackgroundColor="#FF1C5692" hoveredTextColor="#FFFFFFFF" + disabledBackgroundColor="0" disabledTextColor="0" + pressedBackgroundColor="#FF1D5F9C" pressedTextColor="#FFFFFFFF" + text=">" + /> + </aspectRatio> + </row> + <CircularRect slot="stencil"/> + </Stencil> +</size>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/parameteritem.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameteritem.gui new file mode 100644 index 00000000..cc8115f2 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/parameteritem.gui @@ -0,0 +1,60 @@ +<!-- + ~ 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/>. + --> + +<padding left="5" right="5" top="5"> + <col> + <line color="#FFFFFFFF"/> + <size width="0" height="5"/> + <IntrinsicHeight> + <row> + <SelectiveContainer bind:visible="iconVisibility"> + <aspectRatio width="1" height="1" slot="show"> + <Stencil> + <ResourceImage bind:location="icon" width="128" height="128" textureWidth="128" textureHeight="128"/> + <RoundRect radius="10" slot="stencil"/> + </Stencil> + </aspectRatio> + <size width="0" height="0" slot="hide"/> + </SelectiveContainer> + <flexible> + <col mainAlign="START" crossAlign="START"> + <padding left="5" right="5" top="5" bottom="5"> + <row crossAlign="END"> + <flexible> + <Text bind:text="name" color="#FFFFFFFF" size="12"/> + </flexible> + </row> + </padding> + <col crossAlign="START"> + <padding left="5" bottom="5" right="5" top="3"> + <Text bind:text="description" color="#FFAAAAAA"/> + </padding> + </col> + </col> + </flexible> + <size width="150"> + <padding left="10" right="10" top="10" bottom="10"> + <align vAlign="CENTER" hAlign="CENTER"> + <slot bind:child="edit"/> + </align> + </padding> + </size> + </row> + </IntrinsicHeight> + </col> +</padding>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/popup/quickEdit.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/popup/quickEdit.gui new file mode 100644 index 00000000..105a4680 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/popup/quickEdit.gui @@ -0,0 +1,23 @@ +<!-- + ~ 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 height="20"> + <padding top="5"> + <RoundButton text="Configure" on:click="configure"/> + </padding> +</size>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/popup/quickEnable.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/popup/quickEnable.gui new file mode 100644 index 00000000..bdc3120d --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/popup/quickEnable.gui @@ -0,0 +1,34 @@ +<!-- + ~ 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 height="20"> + <padding top="6"> + <row> + <flexible> + <align vAlign="CENTER" hAlign="START"> + <Text text="Enable" color="#FFFFFFFF"/> + </align> + </flexible> + <size width="45" height="14"> + <padding left="5"> + <SimpleToggleButton bind:enabled="enabled"/> + </padding> + </size> + </row> + </padding> +</size>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/config/popupmenu.gui b/mod/src/main/resources/assets/dungeonsguide/gui/config/popupmenu.gui index ecfe8c5d..ec192ef4 100644 --- a/mod/src/main/resources/assets/dungeonsguide/gui/config/popupmenu.gui +++ b/mod/src/main/resources/assets/dungeonsguide/gui/config/popupmenu.gui @@ -16,7 +16,7 @@ ~ along with this program. If not, see <https://www.gnu.org/licenses/>. --> <UnconstrainedBox> - <ConstrainedBox maxWidth="200"> + <ConstrainedBox maxWidth="150"> <RoundRect radius="5" backgroundColor="#FF121212"> <padding top="5" bottom="5" left="5" right="5"> <col mainAlign="START" crossAlign="STRETCH" bind:_="items"/> diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/locationedPopup.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/locationedPopup.gui index 9d56c62c..56732908 100644 --- a/mod/src/main/resources/assets/dungeonsguide/gui/elements/locationedPopup.gui +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/locationedPopup.gui @@ -15,6 +15,10 @@ ~ 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/>. --> - <absXY bind:x="x" bind:y="y"> - <slot bind:child="child" bind:ref="ref"/> - </absXY>
\ No newline at end of file +<absXY bind:x="x" bind:y="y"> + <UnconstrainedBox> + <measure bind:size="size"> + <slot bind:child="child" bind:ref="ref"/> + </measure> + </UnconstrainedBox> +</absXY>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/features/fairysoul/roomconfiguration.gui b/mod/src/main/resources/assets/dungeonsguide/gui/features/fairysoul/roomconfiguration.gui new file mode 100644 index 00000000..c9bbbc54 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/features/fairysoul/roomconfiguration.gui @@ -0,0 +1,49 @@ +<!-- + ~ 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/>. + --> + +<padding left="5" right="5" top="5"> + <col> + <line color="#FFFFFFFF"/> + <size width="0" height="5"/> + <row crossAlign="END"> + <flexible> + <Text text="Enable for these rooms" color="#FFFFFFFF" size="12"/> + </flexible> + <size width="60" height="12"> + <padding left="5"> + <RoundButton on:click="eall" hPadding="1" + text="Enable All" + /> + </padding> + </size> + <size width="60" height="12"> + <padding left="5"> + <RoundButton on:click="dall" hPadding="1" + text="Disable All" + /> + </padding> + </size> + </row> + <size width="0" height="5"/> + <RoundRect radius="5" backgroundColor="#FF333333"> + <padding left="5" top="5" right="5" bottom="5"> + <WrapGrid minimumWidth="160" gap="5" bind:_="rooms"/> + </padding> + </RoundRect> + </col> +</padding>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/features/fairysoul/roomswitch.gui b/mod/src/main/resources/assets/dungeonsguide/gui/features/fairysoul/roomswitch.gui new file mode 100644 index 00000000..64352709 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/features/fairysoul/roomswitch.gui @@ -0,0 +1,34 @@ +<!-- + ~ 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 height="20"> + <padding left="5" right="5"> + <row crossAlign="CENTER"> + <flexible> + <align vAlign="CENTER" hAlign="START"> + <Text bind:text="name" color="#FFFFFFFF"/> + </align> + </flexible> + <size width="45" height="14"> + <padding left="5"> + <SimpleToggleButton bind:enabled="enabled"/> + </padding> + </size> + </row> + </padding> +</size>
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/shaders/chromacircle.frag b/mod/src/main/resources/assets/dungeonsguide/shaders/chromacircle.frag new file mode 100644 index 00000000..25354550 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/shaders/chromacircle.frag @@ -0,0 +1,27 @@ +#version 120 + +#define TWO_PI 6.28318530718 + +uniform float radius; +uniform vec2 centerPos; +uniform float smoothness; +uniform float value; + + +vec3 hsv2rgb(vec3 c) { + vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); + vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www); + return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y); +} + +void main() { + vec2 stuff = gl_FragCoord.xy - centerPos; + float sdf = length(stuff)-radius; + float saturation = 1.0+(sdf / radius); + float clampd = 1.0 - smoothstep(-smoothness, smoothness, sdf); + float angle = atan(-stuff.x, -stuff.y) / TWO_PI + 0.5; + + vec3 col = hsv2rgb(vec3(angle, saturation, value)); + + gl_FragColor = vec4(col,clampd); +}
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/shaders/chromaroundrect.frag b/mod/src/main/resources/assets/dungeonsguide/shaders/chromaroundrect.frag new file mode 100644 index 00000000..7ddf2db8 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/shaders/chromaroundrect.frag @@ -0,0 +1,23 @@ +#version 120 +uniform float radius; +uniform vec2 halfSize; +uniform vec2 centerPos; +uniform float smoothness; +varying vec4 color; + +vec3 hsv2rgb(vec3 c) +{ + vec4 K = vec4(1.0, 2.0 / 3.0, 1.0 / 3.0, 3.0); + vec3 p = abs(fract(c.xxx + K.xyz) * 6.0 - K.www); + return c.z * mix(K.xxx, clamp(p - K.xxx, 0.0, 1.0), c.y); +} + +float roundedBoxSDF(vec2 CenterPosition, vec2 Size, float Radius) { + return length(max(abs(CenterPosition)-Size+Radius,0.0))-Radius; +} + +void main() { + float distance = roundedBoxSDF(gl_FragCoord.xy - centerPos, halfSize, radius); + float smoothedAlpha = smoothstep(-smoothness,0.0, -distance); + gl_FragColor = vec4(hsv2rgb(color.rgb), color.a) * vec4(1.0, 1.0, 1.0, smoothedAlpha); +}
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/shaders/chromaroundrect.vert b/mod/src/main/resources/assets/dungeonsguide/shaders/chromaroundrect.vert new file mode 100644 index 00000000..377182c5 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/shaders/chromaroundrect.vert @@ -0,0 +1,19 @@ +#version 120 + +varying vec4 color; + +vec3 rgb2hsv(vec3 c) +{ + vec4 K = vec4(0.0, -1.0 / 3.0, 2.0 / 3.0, -1.0); + vec4 p = mix(vec4(c.bg, K.wz), vec4(c.gb, K.xy), step(c.b, c.g)); + vec4 q = mix(vec4(p.xyw, c.r), vec4(c.r, p.yzx), step(p.x, c.r)); + + float d = q.x - min(q.w, q.y); + float e = 1.0e-10; + return vec3(abs(q.z + (q.w - q.y) / (6.0 * d + e)), d / (q.x + e), q.x); +} + +void main() { + gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; + color = vec4(rgb2hsv(gl_Color.rgb), gl_Color.a); +}
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/shaders/donut.frag b/mod/src/main/resources/assets/dungeonsguide/shaders/donut.frag new file mode 100644 index 00000000..cca6bc39 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/shaders/donut.frag @@ -0,0 +1,17 @@ +#version 120 + + +uniform float radius; +uniform float thickness; +uniform vec2 centerPos; +uniform float smoothness; + + + +void main() { + vec2 stuff = gl_FragCoord.xy - centerPos; + float sdf = abs(length(stuff)-radius); + float clampd = 1.0 - smoothstep(thickness, thickness+smoothness, sdf); + + gl_FragColor = gl_Color * vec4(1.0, 1.0, 1.0, clampd); +}
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/shaders/roundrect.frag b/mod/src/main/resources/assets/dungeonsguide/shaders/roundrect.frag index 93a6c7c0..95649cf4 100644 --- a/mod/src/main/resources/assets/dungeonsguide/shaders/roundrect.frag +++ b/mod/src/main/resources/assets/dungeonsguide/shaders/roundrect.frag @@ -1,8 +1,10 @@ -#version 110 +#version 120 uniform float radius; uniform vec2 halfSize; uniform vec2 centerPos; uniform float smoothness; +varying vec4 color; + float roundedBoxSDF(vec2 CenterPosition, vec2 Size, float Radius) { return length(max(abs(CenterPosition)-Size+Radius,0.0))-Radius; @@ -11,5 +13,5 @@ float roundedBoxSDF(vec2 CenterPosition, vec2 Size, float Radius) { void main() { float distance = roundedBoxSDF(gl_FragCoord.xy - centerPos, halfSize, radius); float smoothedAlpha = smoothstep(-smoothness,0.0, -distance); - gl_FragColor = gl_Color * vec4(1.0, 1.0, 1.0, smoothedAlpha); + gl_FragColor = color * vec4(1.0, 1.0, 1.0, smoothedAlpha); }
\ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/shaders/roundrect.vert b/mod/src/main/resources/assets/dungeonsguide/shaders/roundrect.vert new file mode 100644 index 00000000..7a2ec153 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/shaders/roundrect.vert @@ -0,0 +1,8 @@ +#version 120 + +varying vec4 color; + +void main() { + gl_Position = gl_ModelViewProjectionMatrix * gl_Vertex; + color = gl_Color; +}
\ No newline at end of file |