aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources/assets/skyblocker/tabhud/standard
diff options
context:
space:
mode:
authormsg-programs <msgdoesstuff@gmail.com>2023-07-27 22:14:54 +0200
committermsg-programs <msgdoesstuff@gmail.com>2023-07-27 22:15:42 +0200
commit393ec5f59d16296248fe1994d02ced699a725fcb (patch)
tree65647782e6ca80cc36838058500c5aa77812fa50 /src/main/resources/assets/skyblocker/tabhud/standard
parentc2f5155391482368425b61517848f4a11080dcf7 (diff)
downloadSkyblocker-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')
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/crimson_isle.json44
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/crystal_hollows.json44
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/default.json17
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/dungeon.json52
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/dungeon_hub.json25
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/dwarven_mines.json44
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/farming_island.json25
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/garden.json25
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/guest_island.json17
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/home_island.json29
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/hub.json29
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/park.json17
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/rift.json39
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/unknown.json17
14 files changed, 424 insertions, 0 deletions
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/crimson_isle.json b/src/main/resources/assets/skyblocker/tabhud/standard/crimson_isle.json
new file mode 100644
index 00000000..7584c423
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/crimson_isle.json
@@ -0,0 +1,44 @@
+{
+ "widgets":[
+ {
+ "name": "ServerWidget",
+ "alias": "sw"
+ },
+ {
+ "name": "ReputationWidget",
+ "alias": "rw"
+ },
+ {
+ "name": "QuestWidget",
+ "alias": "qw"
+ },
+ {
+ "name": "VolcanoWidget",
+ "alias": "vw"
+ }
+ ],
+ "layout": [
+ {
+ "op": "stack",
+ "direction": "vertical",
+ "align": "center",
+ "apply_to": ["sw", "rw"]
+ },
+ {
+ "op": "stack",
+ "direction": "vertical",
+ "align": "center",
+ "apply_to": ["qw", "vw"]
+ },
+ {
+ "op": "align",
+ "reference": "leftOfCenter",
+ "apply_to": ["sw", "rw"]
+ },
+ {
+ "op": "align",
+ "reference": "rightOfCenter",
+ "apply_to": ["qw", "vw"]
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/crystal_hollows.json b/src/main/resources/assets/skyblocker/tabhud/standard/crystal_hollows.json
new file mode 100644
index 00000000..7a9db97d
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/crystal_hollows.json
@@ -0,0 +1,44 @@
+{
+ "widgets":[
+ {
+ "name": "ServerWidget",
+ "alias": "sw"
+ },
+ {
+ "name": "PowderWidget",
+ "alias": "pw"
+ },
+ {
+ "name": "CommsWidget",
+ "alias": "cw"
+ },
+ {
+ "name": "ForgeWidget",
+ "alias": "fw"
+ }
+ ],
+ "layout": [
+ {
+ "op": "stack",
+ "direction": "vertical",
+ "align": "center",
+ "apply_to": ["sw", "cw"]
+ },
+ {
+ "op": "stack",
+ "direction": "vertical",
+ "align": "center",
+ "apply_to": ["fw", "pw"]
+ },
+ {
+ "op": "align",
+ "reference": "leftOfCenter",
+ "apply_to": ["sw", "cw"]
+ },
+ {
+ "op": "align",
+ "reference": "rightOfCenter",
+ "apply_to": ["pw", "fw"]
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/default.json b/src/main/resources/assets/skyblocker/tabhud/standard/default.json
new file mode 100644
index 00000000..99ca3323
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/default.json
@@ -0,0 +1,17 @@
+{
+ "widgets": [
+ {
+ "name": "ServerWidget",
+ "alias": "sw"
+ }
+ ],
+ "layout": [
+ {
+ "op": "place",
+ "where": "center",
+ "apply_to": [
+ "sw"
+ ]
+ }
+ ]
+} \ No newline at end of file
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
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/dungeon_hub.json b/src/main/resources/assets/skyblocker/tabhud/standard/dungeon_hub.json
new file mode 100644
index 00000000..09b39296
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/dungeon_hub.json
@@ -0,0 +1,25 @@
+{
+ "widgets":[
+ {
+ "name": "ServerWidget",
+ "alias": "sw"
+ },
+ {
+ "name": "EssenceWidget",
+ "alias": "ew"
+ }
+ ],
+ "layout": [
+ {
+ "op": "stack",
+ "direction": "vertical",
+ "align": "center",
+ "apply_to": ["sw", "ew"]
+ },
+ {
+ "op": "align",
+ "reference": "horizontalCenter",
+ "apply_to": ["sw", "ew"]
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/dwarven_mines.json b/src/main/resources/assets/skyblocker/tabhud/standard/dwarven_mines.json
new file mode 100644
index 00000000..7a9db97d
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/dwarven_mines.json
@@ -0,0 +1,44 @@
+{
+ "widgets":[
+ {
+ "name": "ServerWidget",
+ "alias": "sw"
+ },
+ {
+ "name": "PowderWidget",
+ "alias": "pw"
+ },
+ {
+ "name": "CommsWidget",
+ "alias": "cw"
+ },
+ {
+ "name": "ForgeWidget",
+ "alias": "fw"
+ }
+ ],
+ "layout": [
+ {
+ "op": "stack",
+ "direction": "vertical",
+ "align": "center",
+ "apply_to": ["sw", "cw"]
+ },
+ {
+ "op": "stack",
+ "direction": "vertical",
+ "align": "center",
+ "apply_to": ["fw", "pw"]
+ },
+ {
+ "op": "align",
+ "reference": "leftOfCenter",
+ "apply_to": ["sw", "cw"]
+ },
+ {
+ "op": "align",
+ "reference": "rightOfCenter",
+ "apply_to": ["pw", "fw"]
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/farming_island.json b/src/main/resources/assets/skyblocker/tabhud/standard/farming_island.json
new file mode 100644
index 00000000..16e0c0c0
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/farming_island.json
@@ -0,0 +1,25 @@
+{
+ "widgets":[
+ {
+ "name": "ServerWidget",
+ "alias": "sw"
+ },
+ {
+ "name": "TrapperWidget",
+ "alias": "tw"
+ }
+ ],
+ "layout": [
+ {
+ "op": "stack",
+ "direction": "vertical",
+ "align": "center",
+ "apply_to": ["sw", "tw"]
+ },
+ {
+ "op": "align",
+ "reference": "horizontalCenter",
+ "apply_to": ["sw", "tw"]
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/garden.json b/src/main/resources/assets/skyblocker/tabhud/standard/garden.json
new file mode 100644
index 00000000..69d854eb
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/garden.json
@@ -0,0 +1,25 @@
+{
+ "widgets":[
+ {
+ "name": "GardenServerWidget",
+ "alias": "gsw"
+ },
+ {
+ "name": "ComposterWidget",
+ "alias": "cw"
+ }
+ ],
+ "layout": [
+ {
+ "op": "stack",
+ "direction": "vertical",
+ "align": "center",
+ "apply_to": ["gsw", "cw"]
+ },
+ {
+ "op": "align",
+ "reference": "horizontalCenter",
+ "apply_to": ["gsw", "cw"]
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/guest_island.json b/src/main/resources/assets/skyblocker/tabhud/standard/guest_island.json
new file mode 100644
index 00000000..cc1be77f
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/guest_island.json
@@ -0,0 +1,17 @@
+{
+ "widgets": [
+ {
+ "name": "GuestServerWidget",
+ "alias": "gsw"
+ }
+ ],
+ "layout": [
+ {
+ "op": "place",
+ "where": "center",
+ "apply_to": [
+ "gsw"
+ ]
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/home_island.json b/src/main/resources/assets/skyblocker/tabhud/standard/home_island.json
new file mode 100644
index 00000000..6fe3c32d
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/home_island.json
@@ -0,0 +1,29 @@
+{
+ "widgets":[
+ {
+ "name": "IslandServerWidget",
+ "alias": "isw"
+ },
+ {
+ "name": "MinionWidget",
+ "alias": "mw"
+ }
+ ],
+ "layout": [
+ {
+ "op": "align",
+ "reference": "leftOfCenter",
+ "apply_to": ["isw"]
+ },
+ {
+ "op": "align",
+ "reference": "rightOfCenter",
+ "apply_to": ["mw"]
+ },
+ {
+ "op": "align",
+ "reference": "verticalCenter",
+ "apply_to": ["isw", "mw"]
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/hub.json b/src/main/resources/assets/skyblocker/tabhud/standard/hub.json
new file mode 100644
index 00000000..cbe5aab4
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/hub.json
@@ -0,0 +1,29 @@
+{
+ "widgets":[
+ {
+ "name": "ServerWidget",
+ "alias": "sw"
+ },
+ {
+ "name": "FireSaleWidget",
+ "alias": "fsw"
+ }
+ ],
+ "layout": [
+ {
+ "op": "align",
+ "reference": "leftOfCenter",
+ "apply_to": ["sw"]
+ },
+ {
+ "op": "align",
+ "reference": "rightOfCenter",
+ "apply_to": ["fsw"]
+ },
+ {
+ "op": "align",
+ "reference": "verticalCenter",
+ "apply_to": ["sw", "fsw"]
+ }
+ ]
+} \ No newline at end of file
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/park.json b/src/main/resources/assets/skyblocker/tabhud/standard/park.json
new file mode 100644
index 00000000..2c8a96cc
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/park.json
@@ -0,0 +1,17 @@
+{
+ "widgets": [
+ {
+ "name": "ParkServerWidget",
+ "alias": "psw"
+ }
+ ],
+ "layout": [
+ {
+ "op": "place",
+ "where": "center",
+ "apply_to": [
+ "psw"
+ ]
+ }
+ ]
+} \ No newline at end of file
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
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/unknown.json b/src/main/resources/assets/skyblocker/tabhud/standard/unknown.json
new file mode 100644
index 00000000..0252940a
--- /dev/null
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/unknown.json
@@ -0,0 +1,17 @@
+{
+ "widgets": [
+ {
+ "name": "EmptyWidget",
+ "alias": "ew"
+ }
+ ],
+ "layout": [
+ {
+ "op": "place",
+ "where": "center",
+ "apply_to": [
+ "ew"
+ ]
+ }
+ ]
+} \ No newline at end of file