diff options
author | msg-programs <msgdoesstuff@gmail.com> | 2023-07-27 22:14:54 +0200 |
---|---|---|
committer | msg-programs <msgdoesstuff@gmail.com> | 2023-07-27 22:15:42 +0200 |
commit | 393ec5f59d16296248fe1994d02ced699a725fcb (patch) | |
tree | 65647782e6ca80cc36838058500c5aa77812fa50 /src/main/resources/assets/skyblocker/tabhud/standard/dungeon.json | |
parent | c2f5155391482368425b61517848f4a11080dcf7 (diff) | |
download | Skyblocker-393ec5f59d16296248fe1994d02ced699a725fcb.tar.gz Skyblocker-393ec5f59d16296248fe1994d02ced699a725fcb.tar.bz2 Skyblocker-393ec5f59d16296248fe1994d02ced699a725fcb.zip |
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.
Diffstat (limited to 'src/main/resources/assets/skyblocker/tabhud/standard/dungeon.json')
-rw-r--r-- | src/main/resources/assets/skyblocker/tabhud/standard/dungeon.json | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/dungeon.json b/src/main/resources/assets/skyblocker/tabhud/standard/dungeon.json new file mode 100644 index 00000000..f0fce5c6 --- /dev/null +++ b/src/main/resources/assets/skyblocker/tabhud/standard/dungeon.json @@ -0,0 +1,52 @@ +{ + "widgets":[ + { + "name": "DungeonDownedWidget", + "alias": "ddow" + }, + { + "name": "DungeonDeathWidget", + "alias": "ddew" + }, + { + "name": "DungeonSecretWidget", + "alias": "dscw" + }, + { + "name": "DungeonServerWidget", + "alias": "dsrw" + }, + { + "name": "DungeonPuzzleWidget", + "alias": "dpuw" + }, + { + "name": "DungeonBuffWidget", + "alias": "dbw" + } + ], + "layout": [ + { + "op": "stack", + "direction": "vertical", + "align": "center", + "apply_to": ["ddow", "ddew", "dbw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "center", + "apply_to": ["dsrw", "dpuw", "dscw"] + }, + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["ddow", "ddew", "dbw"] + }, + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["dsrw", "dpuw", "dscw"] + } + ] +}
\ No newline at end of file |