From 393ec5f59d16296248fe1994d02ced699a725fcb Mon Sep 17 00:00:00 2001 From: msg-programs Date: Thu, 27 Jul 2023 22:14:54 +0200 Subject: Load layout from resoure packs, see details. Use resource pack logic to load the layouts. Finally delete the old screen defs, replace with builtin layout JSON files. Include a top-aligned layout as a builtin resource pack. Implement more possibilites for the layout to support said pack. --- .../assets/skyblocker/tabhud/standard/rift.json | 39 ++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 src/main/resources/assets/skyblocker/tabhud/standard/rift.json (limited to 'src/main/resources/assets/skyblocker/tabhud/standard/rift.json') diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/rift.json b/src/main/resources/assets/skyblocker/tabhud/standard/rift.json new file mode 100644 index 00000000..2f5a48b2 --- /dev/null +++ b/src/main/resources/assets/skyblocker/tabhud/standard/rift.json @@ -0,0 +1,39 @@ +{ + "widgets":[ + { + "name": "RiftProgressWidget", + "alias": "rft" + }, + { + "name": "GoodToKnowWidget", + "alias": "gtk" + }, + { + "name": "RiftServerInfoWidget", + "alias": "si" + } + ], + "layout": [ + { + "op": "stack", + "direction": "vertical", + "align": "center", + "apply_to": ["si", "gtk"] + }, + { + "op": "align", + "reference": "verticalCenter", + "apply_to": ["rft"] + }, + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["si", "gtk"] + }, + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["rft"] + } + ] +} \ No newline at end of file -- cgit