From d68c61410c00148a4e78d65949ca40ec1e31876e Mon Sep 17 00:00:00 2001 From: msg-programs Date: Sun, 13 Aug 2023 21:54:53 +0200 Subject: Rework some dungeon screens from the rp, fix collideWith op to make them work correctly --- .../assets/skyblocker/tabhud/screen_b/dungeon.json | 17 +++---- .../assets/skyblocker/tabhud/standard/dungeon.json | 52 +++++++++++++--------- 2 files changed, 41 insertions(+), 28 deletions(-) (limited to 'src/main/resources/resourcepacks') diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/dungeon.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/dungeon.json index 8bb6181b..78fb6a25 100644 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/dungeon.json +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/dungeon.json @@ -29,25 +29,26 @@ "layout": [ { "op": "stack", - "direction": "vertical", - "align": "top", + "direction": "horizontal", + "align": "center", "apply_to": ["dpw1", "dpw2", "dpw3"] }, { "op": "stack", - "direction": "vertical", - "align": "top", + "direction": "horizontal", + "align": "center", "apply_to": ["dpw4", "dpw5"] }, { "op": "align", - "reference": "leftOfCenter", + "reference": "top", "apply_to": ["dpw1", "dpw2", "dpw3"] }, { - "op": "align", - "reference": "rightOfCenter", - "apply_to": ["dpw4", "dpw5"] + "op": "collideAgainst", + "direction": "bot", + "widgets": ["dpw4", "dpw5"], + "colliders": ["dpw1", "dpw2", "dpw3"] } ] } \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dungeon.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dungeon.json index c2c9ce60..ac34f22a 100644 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dungeon.json +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dungeon.json @@ -2,51 +2,63 @@ "widgets":[ { "name": "DungeonDownedWidget", - "alias": "ddow" + "alias": "downed" }, { "name": "DungeonDeathWidget", - "alias": "ddew" + "alias": "death" }, { "name": "DungeonSecretWidget", - "alias": "dscw" + "alias": "secret" }, { "name": "DungeonServerWidget", - "alias": "dsrw" + "alias": "server" }, { "name": "DungeonPuzzleWidget", - "alias": "dpuw" + "alias": "puzzle" }, { "name": "DungeonBuffWidget", - "alias": "dbw" + "alias": "buffs" } ], "layout": [ - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["ddow", "ddew", "dbw"] - }, - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["dsrw", "dpuw", "dscw"] - }, { "op": "align", "reference": "leftOfCenter", - "apply_to": ["ddow", "ddew", "dbw"] + "apply_to": ["death", "buffs"] }, { "op": "align", "reference": "rightOfCenter", - "apply_to": ["dsrw", "dpuw", "dscw"] + "apply_to": ["server", "puzzle"] + }, + { + "op": "collideAgainst", + "direction": "left", + "widgets": ["downed"], + "colliders": ["death"] + }, + { + "op": "collideAgainst", + "direction": "right", + "widgets": ["secret"], + "colliders": ["server"] + }, + { + "op": "collideAgainst", + "direction": "bot", + "widgets": ["buffs"], + "colliders": ["death", "downed"] + }, + { + "op": "collideAgainst", + "direction": "bot", + "widgets": ["puzzle"], + "colliders": ["secret", "server"] } ] } \ No newline at end of file -- cgit