From 87df9a914624b295e3e93db621ed2a8256eaf846 Mon Sep 17 00:00:00 2001 From: syeyoung <42869671+cyoung06@users.noreply.github.com> Date: Fri, 13 Jan 2023 13:11:13 +0900 Subject: Dg4.0 guisystem (#269) * - XML Like configuration for GUI Signed-off-by: syeyoung * - Stylesheets were never a good idea Signed-off-by: syeyoung * - Ref's are always bindable Signed-off-by: syeyoung * - cool components Column Background (color_ Row SizedBox Stack Padding Signed-off-by: syeyoung * - Update copyright header v2 Signed-off-by: syeyoung * - Bunch of stuff Signed-off-by: syeyoung * - Few more elements Signed-off-by: syeyoung * - View!! Signed-off-by: syeyoung * - Better click handlign - Popups Signed-off-by: syeyoung * - ComponentCreator for DX - test view (for testin Signed-off-by: syeyoung * - Column and Row shrink to crossAxisSize if its max is infinity - Gui test. Signed-off-by: syeyoung * - 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 * - Component Parent propagation - better placeholder Signed-off-by: syeyoung * - Line needs texture2d Signed-off-by: syeyoung * - igitignore update Signed-off-by: syeyoung * - gradle build file update Signed-off-by: syeyoung * - Flexible - Background uses singlehcildpassinglayouter - Helper methods in ConstraintBox Signed-off-by: syeyoung * - Line and Border - add updating code Signed-off-by: syeyoung * - Textfield Signed-off-by: syeyoung * - 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 * - Better architecture - I'll document it later on separate repo Signed-off-by: syeyoung * LGTM. - Might change rendering architecture. Separate child rendering and itself rendering Signed-off-by: syeyoung * - Fix some typo's and issues Signed-off-by: syeyoung * - make it work Signed-off-by: syeyoung * - smth Signed-off-by: syeyoung * - Button Signed-off-by: syeyoung * - colored button - passthroughs Signed-off-by: syeyoung * - fix issue in text Signed-off-by: syeyoung * - Delegating widgets and scrollbar Signed-off-by: syeyoung * - scrollbar Signed-off-by: syeyoung * - list Signed-off-by: syeyoung * - popup - align - stack now only propagates events to first child (lol) Signed-off-by: syeyoung * - Event propagation changes - some presets Signed-off-by: syeyoung * - moving stuff Signed-off-by: syeyoung Signed-off-by: syeyoung --- .../assets/dungeonsguide/gui/elements/button.gui | 6 ++ .../assets/dungeonsguide/gui/elements/popupmgr.gui | 3 + .../gui/elements/ratioResourceImage.gui | 26 +++++++ .../dungeonsguide/gui/elements/scrollBar.gui | 28 ++++++++ .../dungeonsguide/gui/elements/scrollablePanel.gui | 46 ++++++++++++ .../dungeonsguide/gui/elements/simpleButton.gui | 41 +++++++++++ .../gui/elements/simpleHorizontalScrollBar.gui | 38 ++++++++++ .../gui/elements/simpleVerticalScrollBar.gui | 38 ++++++++++ .../assets/dungeonsguide/gui/elements/slowlist.gui | 23 ++++++ .../assets/dungeonsguide/gui/testpopup.gui | 36 ++++++++++ .../assets/dungeonsguide/gui/testview.gui | 83 ++++++++++++++++++++++ 11 files changed, 368 insertions(+) create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/elements/button.gui create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/elements/popupmgr.gui create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/elements/ratioResourceImage.gui create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/elements/scrollBar.gui create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/elements/scrollablePanel.gui create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleButton.gui create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleHorizontalScrollBar.gui create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleVerticalScrollBar.gui create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/elements/slowlist.gui create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/testpopup.gui create mode 100644 mod/src/main/resources/assets/dungeonsguide/gui/testview.gui (limited to 'mod/src/main/resources/assets/dungeonsguide') diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/button.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/button.gui new file mode 100644 index 00000000..33173468 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/button.gui @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/popupmgr.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/popupmgr.gui new file mode 100644 index 00000000..899d87ce --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/popupmgr.gui @@ -0,0 +1,3 @@ + + + \ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/ratioResourceImage.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/ratioResourceImage.gui new file mode 100644 index 00000000..bbdd1d4f --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/ratioResourceImage.gui @@ -0,0 +1,26 @@ + + + + + + + \ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/scrollBar.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/scrollBar.gui new file mode 100644 index 00000000..10dc4f15 --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/scrollBar.gui @@ -0,0 +1,28 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/scrollablePanel.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/scrollablePanel.gui new file mode 100644 index 00000000..9047865c --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/scrollablePanel.gui @@ -0,0 +1,46 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 @@ + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleHorizontalScrollBar.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleHorizontalScrollBar.gui new file mode 100644 index 00000000..010cfa6e --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleHorizontalScrollBar.gui @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleVerticalScrollBar.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleVerticalScrollBar.gui new file mode 100644 index 00000000..9242a05c --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/simpleVerticalScrollBar.gui @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/elements/slowlist.gui b/mod/src/main/resources/assets/dungeonsguide/gui/elements/slowlist.gui new file mode 100644 index 00000000..9f40ecaf --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/elements/slowlist.gui @@ -0,0 +1,23 @@ + + + + + + + \ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/testpopup.gui b/mod/src/main/resources/assets/dungeonsguide/gui/testpopup.gui new file mode 100644 index 00000000..867c913f --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/testpopup.gui @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + \ No newline at end of file diff --git a/mod/src/main/resources/assets/dungeonsguide/gui/testview.gui b/mod/src/main/resources/assets/dungeonsguide/gui/testview.gui new file mode 100644 index 00000000..e361909d --- /dev/null +++ b/mod/src/main/resources/assets/dungeonsguide/gui/testview.gui @@ -0,0 +1,83 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file -- cgit