From c47a43e044e860b8fffd03e84f87dc9cd8213cd7 Mon Sep 17 00:00:00 2001 From: fgnm Date: Mon, 5 Feb 2024 10:03:31 +0100 Subject: [PATCH] Add tooltips for layer information in items tree --- CHANGES | 5 +++++ h2d-libgdx-bvb-extension | 2 +- hyperlap2d-common-api | 2 +- .../rednblack/editor/view/ui/box/UIItemsTreeBox.java | 2 +- .../rednblack/editor/view/ui/box/UIItemsTreeNode.java | 8 +++++++- 5 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGES b/CHANGES index b307d61c..68cb4eee 100644 --- a/CHANGES +++ b/CHANGES @@ -1,12 +1,17 @@ [0.1.4] - Update libGDX to 1.12.1 - Update VisUI to 1.5.3 +- Experimental support to fail safe exceptions +- Add tooltip for layer name in the items tree +- Bug fixing and stability improvements **Runtime** - Hotfix GWT compilation - [BREAK CHANGE] Add entity parameter `ButtonListener` - Improved buttons system: Allow to disable buttons, do not fire `click` when touch up is outside the entity bounds - Fix shared layers instances with different library items instances +- Move to Legacy version of Talos VFX (Pool particles and stability improvements) +- Support for BVB runtime [0.1.3] - Update libGDX to 1.12.0 diff --git a/h2d-libgdx-bvb-extension b/h2d-libgdx-bvb-extension index 23d284ed..7c25f613 160000 --- a/h2d-libgdx-bvb-extension +++ b/h2d-libgdx-bvb-extension @@ -1 +1 @@ -Subproject commit 23d284ed22292365f618e43307004f01ba194614 +Subproject commit 7c25f6135ef47b3b2fe0209b01b68be06dc84dcf diff --git a/hyperlap2d-common-api b/hyperlap2d-common-api index b93fef75..372c39ca 160000 --- a/hyperlap2d-common-api +++ b/hyperlap2d-common-api @@ -1 +1 @@ -Subproject commit b93fef75493c295495a770c701851ac901fb464a +Subproject commit 372c39ca6d3b6fac93ecf20b79172e215900a6da diff --git a/src/main/java/games/rednblack/editor/view/ui/box/UIItemsTreeBox.java b/src/main/java/games/rednblack/editor/view/ui/box/UIItemsTreeBox.java index f027e13b..be4a8979 100644 --- a/src/main/java/games/rednblack/editor/view/ui/box/UIItemsTreeBox.java +++ b/src/main/java/games/rednblack/editor/view/ui/box/UIItemsTreeBox.java @@ -192,8 +192,8 @@ public class UIItemsTreeBox extends UICollapsibleBox { name = EntityUtils.itemTypeNameMap.get(EntityFactory.UNKNOWN_TYPE); } - node.setName(name); ZIndexComponent zIndexComponent = zIndexComponentMapper.get(item); + node.setName(name, zIndexComponent.layerName); node.setNodeValue(mainItemComponent.uniqueId, zIndexComponent.getGlobalZIndex()); if (mainItemComponent.entityType != EntityFactory.COMPOSITE_TYPE) diff --git a/src/main/java/games/rednblack/editor/view/ui/box/UIItemsTreeNode.java b/src/main/java/games/rednblack/editor/view/ui/box/UIItemsTreeNode.java index 42ed055d..f925a3ce 100644 --- a/src/main/java/games/rednblack/editor/view/ui/box/UIItemsTreeNode.java +++ b/src/main/java/games/rednblack/editor/view/ui/box/UIItemsTreeNode.java @@ -6,10 +6,13 @@ import com.badlogic.gdx.scenes.scene2d.ui.Tree; import com.badlogic.gdx.utils.Pool; import com.kotcrab.vis.ui.widget.VisLabel; import com.kotcrab.vis.ui.widget.VisTable; +import games.rednblack.h2d.common.view.ui.StandardWidgetsFactory; +import games.rednblack.h2d.common.view.ui.widget.H2DTextTooltip; public class UIItemsTreeNode extends Tree.Node implements Pool.Poolable { VisLabel label; Cell lblCell; + H2DTextTooltip tooltip; public UIItemsTreeNode() { super(new VisTable()); @@ -19,6 +22,8 @@ public class UIItemsTreeNode extends Tree.Node