diff options
author | syeyoung <42869671+cyoung06@users.noreply.github.com> | 2023-01-13 13:11:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-01-13 13:11:13 +0900 |
commit | 87df9a914624b295e3e93db621ed2a8256eaf846 (patch) | |
tree | 538414a186e12b7ad1846462e8406c761a156a69 /mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleButton.gui | |
parent | d3f5b4df809fd03919952285a1906652097f00e6 (diff) | |
download | Skyblock-Dungeons-Guide-87df9a914624b295e3e93db621ed2a8256eaf846.tar.gz Skyblock-Dungeons-Guide-87df9a914624b295e3e93db621ed2a8256eaf846.tar.bz2 Skyblock-Dungeons-Guide-87df9a914624b295e3e93db621ed2a8256eaf846.zip |
Dg4.0 guisystem (#269)
* - XML Like configuration for GUI
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Stylesheets were never a good idea
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Ref's are always bindable
Signed-off-by: syeyoung <cyoung06@naver.com>
* - cool components
Column
Background (color_
Row
SizedBox
Stack
Padding
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Update copyright header v2
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Bunch of stuff
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Few more elements
Signed-off-by: syeyoung <cyoung06@naver.com>
* - View!!
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Better click handlign
- Popups
Signed-off-by: syeyoung <cyoung06@naver.com>
* - ComponentCreator for DX
- test view (for testin
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Column and Row shrink to crossAxisSize if its max is infinity
- Gui test.
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Load attributes after super constructor
- Fix Stackoverflow in RootDom.setCursor
- Test Gui Command
- Test Gui to testview.gui
- XML Parser settings to ignore comments
- Controller check if element is actually an element, not a textnode.
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Component Parent propagation
- better placeholder
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Line needs texture2d
Signed-off-by: syeyoung <cyoung06@naver.com>
* - igitignore update
Signed-off-by: syeyoung <cyoung06@naver.com>
* - gradle build file update
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Flexible
- Background uses singlehcildpassinglayouter
- Helper methods in ConstraintBox
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Line and Border
- add updating code
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Textfield
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Column and Row with flex elements when given maximum mainAxis now throws an error
- Column and Row when given maximum mainAxis now shrinks to children
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Better architecture
- I'll document it later on separate repo
Signed-off-by: syeyoung <cyoung06@naver.com>
* LGTM.
- Might change rendering architecture.
Separate child rendering and itself rendering
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Fix some typo's and issues
Signed-off-by: syeyoung <cyoung06@naver.com>
* - make it work
Signed-off-by: syeyoung <cyoung06@naver.com>
* - smth
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Button
Signed-off-by: syeyoung <cyoung06@naver.com>
* - colored button
- passthroughs
Signed-off-by: syeyoung <cyoung06@naver.com>
* - fix issue in text
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Delegating widgets and scrollbar
Signed-off-by: syeyoung <cyoung06@naver.com>
* - scrollbar
Signed-off-by: syeyoung <cyoung06@naver.com>
* - list
Signed-off-by: syeyoung <cyoung06@naver.com>
* - popup
- align
- stack now only propagates events to first child (lol)
Signed-off-by: syeyoung <cyoung06@naver.com>
* - Event propagation changes
- some presets
Signed-off-by: syeyoung <cyoung06@naver.com>
* - moving stuff
Signed-off-by: syeyoung <cyoung06@naver.com>
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 | 41 |
1 files changed, 41 insertions, 0 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 new file mode 100644 index 00000000..ac96297c --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleButton.gui @@ -0,0 +1,41 @@ +<!-- + ~ 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"> + <AbstractButton bind:click="click" bind:disabled="disabled"> + <bgcolor bind:backgroundColor="backgroundColor"> + <col mainAlign="CENTER"> + <Text bind:text="text" bind:color="textColor" align="CENTER"/> + </col> + </bgcolor> + <bgcolor slot="hovered" bind:backgroundColor="hoveredBackgroundColor"> + <col mainAlign="CENTER"> + <Text bind:text="text" bind:color="hoveredTextColor" align="CENTER"/> + </col> + </bgcolor> + <bgcolor slot="disabled" bind:backgroundColor="disabledBackgroundColor"> + <col mainAlign="CENTER"> + <Text bind:text="text" bind:color="disabledTextColor" align="CENTER"/> + </col> + </bgcolor> + <bgcolor slot="pressed" bind:backgroundColor="pressedBackgroundColor"> + <col mainAlign="CENTER"> + <Text bind:text="text" bind:color="pressedTextColor" align="CENTER"/> + </col> + </bgcolor> + </AbstractButton> +</wrapper>
\ No newline at end of file |