diff options
author | syeyoung <cyoung06@naver.com> | 2023-01-18 17:08:17 +0900 |
---|---|---|
committer | syeyoung <cyoung06@naver.com> | 2023-01-18 17:09:19 +0900 |
commit | eac86380ed0db7be002e55d850ca7fea4b698c4d (patch) | |
tree | 7db6fca1e8bbe90361b9b114730ba4a5148e218c /mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleButton.gui | |
parent | 470585150a1f2a506215e17bc9b9871bfdd80aa6 (diff) | |
download | Skyblock-Dungeons-Guide-eac86380ed0db7be002e55d850ca7fea4b698c4d.tar.gz Skyblock-Dungeons-Guide-eac86380ed0db7be002e55d850ca7fea4b698c4d.tar.bz2 Skyblock-Dungeons-Guide-eac86380ed0db7be002e55d850ca7fea4b698c4d.zip |
- upgrade mechanic browser to use guiv2
- also add #134
Signed-off-by: syeyoung <cyoung06@naver.com>
Diffstat (limited to 'mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleButton.gui')
-rw-r--r-- | mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleButton.gui | 26 |
1 files changed, 17 insertions, 9 deletions
diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleButton.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleButton.gui index ac96297c..72c689b1 100644 --- a/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleButton.gui +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleButton.gui @@ -15,26 +15,34 @@ ~ 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"> +<wrapper disabled="false" crossAlign="CENTER" textAlign="CENTER" hPadding="0"> <AbstractButton bind:click="click" bind:disabled="disabled"> <bgcolor bind:backgroundColor="backgroundColor"> - <col mainAlign="CENTER"> - <Text bind:text="text" bind:color="textColor" align="CENTER"/> + <col mainAlign="CENTER" bind:crossAlign="crossAlign"> + <padding bind:left="hPadding" bind:right="hPadding"> + <Text bind:text="text" bind:color="textColor" bind:align="textAlign"/> + </padding> </col> </bgcolor> <bgcolor slot="hovered" bind:backgroundColor="hoveredBackgroundColor"> - <col mainAlign="CENTER"> - <Text bind:text="text" bind:color="hoveredTextColor" align="CENTER"/> + <col mainAlign="CENTER" bind:crossAlign="crossAlign"> + <padding bind:left="hPadding" bind:right="hPadding"> + <Text bind:text="text" bind:color="hoveredTextColor" bind:align="textAlign"/> + </padding> </col> </bgcolor> <bgcolor slot="disabled" bind:backgroundColor="disabledBackgroundColor"> - <col mainAlign="CENTER"> - <Text bind:text="text" bind:color="disabledTextColor" align="CENTER"/> + <col mainAlign="CENTER" bind:crossAlign="crossAlign"> + <padding bind:left="hPadding" bind:right="hPadding"> + <Text bind:text="text" bind:color="disabledTextColor" bind:align="textAlign"/> + </padding> </col> </bgcolor> <bgcolor slot="pressed" bind:backgroundColor="pressedBackgroundColor"> - <col mainAlign="CENTER"> - <Text bind:text="text" bind:color="pressedTextColor" align="CENTER"/> + <col mainAlign="CENTER" bind:crossAlign="crossAlign"> + <padding bind:left="hPadding" bind:right="hPadding"> + <Text bind:text="text" bind:color="pressedTextColor" bind:align="textAlign"/> + </padding> </col> </bgcolor> </AbstractButton> |