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/screenA/default.json | 70 ++++++++++++++++++++++ .../assets/skyblocker/tabhud/screenA/garden.json | 70 ++++++++++++++++++++++ .../assets/skyblocker/tabhud/screenA/rift.json | 48 +++++++++++++++ .../assets/skyblocker/tabhud/screenA/unknown.json | 17 ++++++ .../assets/skyblocker/tabhud/screenB/default.json | 17 ++++++ .../assets/skyblocker/tabhud/screenB/dungeon.json | 53 ++++++++++++++++ .../assets/skyblocker/tabhud/screenB/garden.json | 29 +++++++++ .../skyblocker/tabhud/screenB/guest_island.json | 29 +++++++++ .../skyblocker/tabhud/screenB/home_island.json | 29 +++++++++ .../assets/skyblocker/tabhud/screenB/unknown.json | 17 ++++++ .../skyblocker/tabhud/standard/crimson_isle.json | 44 ++++++++++++++ .../tabhud/standard/crystal_hollows.json | 44 ++++++++++++++ .../assets/skyblocker/tabhud/standard/default.json | 17 ++++++ .../assets/skyblocker/tabhud/standard/dungeon.json | 52 ++++++++++++++++ .../skyblocker/tabhud/standard/dungeon_hub.json | 25 ++++++++ .../skyblocker/tabhud/standard/dwarven_mines.json | 44 ++++++++++++++ .../skyblocker/tabhud/standard/farming_island.json | 25 ++++++++ .../assets/skyblocker/tabhud/standard/garden.json | 25 ++++++++ .../skyblocker/tabhud/standard/guest_island.json | 17 ++++++ .../skyblocker/tabhud/standard/home_island.json | 29 +++++++++ .../assets/skyblocker/tabhud/standard/hub.json | 29 +++++++++ .../assets/skyblocker/tabhud/standard/park.json | 17 ++++++ .../assets/skyblocker/tabhud/standard/rift.json | 39 ++++++++++++ .../assets/skyblocker/tabhud/standard/unknown.json | 17 ++++++ .../resourcepacks/default_top/pack.mcmeta | 6 ++ 25 files changed, 809 insertions(+) create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/default.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/garden.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/rift.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/unknown.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/default.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/dungeon.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/garden.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/guest_island.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/home_island.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/unknown.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/crimson_isle.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/crystal_hollows.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/default.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dungeon.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dungeon_hub.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dwarven_mines.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/farming_island.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/garden.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/guest_island.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/home_island.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/hub.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/park.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/rift.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/unknown.json create mode 100644 src/main/resources/resourcepacks/default_top/pack.mcmeta (limited to 'src/main/resources/resourcepacks') diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/default.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/default.json new file mode 100644 index 00000000..2002591f --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/default.json @@ -0,0 +1,70 @@ +{ + "widgets":[ + { + "name": "SkillsWidget", + "alias": "sw" + }, + { + "name": "EventWidget", + "alias": "evw", + "inGarden": false + }, + { + "name": "UpgradeWidget", + "alias": "uw" + }, + { + "name": "ProfileWidget", + "alias": "pw" + }, + { + "name": "EffectWidget", + "alias": "efw" + }, + { + "name": "ElectionWidget", + "alias": "elw" + }, + { + "name": "CookieWidget", + "alias": "cw" + } + ], + "layout": [ + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["sw", "evw", "uw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["pw", "efw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["elw", "cw"] + }, + { + "op": "align", + "reference": "horizontalCenter", + "apply_to": ["sw", "evw", "uw"] + }, + { + "op": "collideAgainst", + "direction": "left", + "widgets": ["pw", "efw"], + "colliders": ["sw", "evw", "uw"] + }, + { + "op": "collideAgainst", + "direction": "right", + "widgets": ["elw", "cw"], + "colliders": ["sw", "evw", "uw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/garden.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/garden.json new file mode 100644 index 00000000..39ee5b98 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/garden.json @@ -0,0 +1,70 @@ +{ + "widgets":[ + { + "name": "GardenSkillsWidget", + "alias": "gsw" + }, + { + "name": "EventWidget", + "alias": "evw", + "inGarden": true + }, + { + "name": "UpgradeWidget", + "alias": "uw" + }, + { + "name": "ProfileWidget", + "alias": "pw" + }, + { + "name": "EffectWidget", + "alias": "efw" + }, + { + "name": "JacobsContestWidget", + "alias": "jcw" + }, + { + "name": "CookieWidget", + "alias": "cw" + } + ], + "layout": [ + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["gsw", "evw", "uw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["pw", "efw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["jcw", "cw"] + }, + { + "op": "align", + "reference": "horizontalCenter", + "apply_to": ["gsw", "evw", "uw"] + }, + { + "op": "collideAgainst", + "direction": "left", + "widgets": ["pw", "efw"], + "colliders": ["gsw", "evw", "uw"] + }, + { + "op": "collideAgainst", + "direction": "right", + "widgets": ["jcw", "cw"], + "colliders": ["gsw", "evw", "uw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/rift.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/rift.json new file mode 100644 index 00000000..d18efca8 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/rift.json @@ -0,0 +1,48 @@ +{ + "widgets":[ + { + "name": "RiftProfileWidget", + "alias": "profile" + }, + { + "name": "RiftStatsWidget", + "alias": "stats" + }, + { + "name": "ShenWidget", + "alias": "shen" + }, + { + "name": "CookieWidget", + "alias": "cookie" + }, + { + "name": "AdvertisementWidget", + "alias": "ad" + } + ], + "layout": [ + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["stats", "ad"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["profile", "shen", "cookie"] + }, + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["stats", "ad"] + }, + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["profile", "shen", "cookie"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/unknown.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/unknown.json new file mode 100644 index 00000000..1b204adf --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/unknown.json @@ -0,0 +1,17 @@ +{ + "widgets": [ + { + "name": "EmptyWidget", + "alias": "ew" + } + ], + "layout": [ + { + "op": "place", + "where": "centerTop", + "apply_to": [ + "ew" + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/default.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/default.json new file mode 100644 index 00000000..e857ee6f --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/default.json @@ -0,0 +1,17 @@ +{ + "widgets": [ + { + "name": "PlayerListWidget", + "alias": "plw" + } + ], + "layout": [ + { + "op": "place", + "where": "centerTop", + "apply_to": [ + "plw" + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/dungeon.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/dungeon.json new file mode 100644 index 00000000..8bb6181b --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/dungeon.json @@ -0,0 +1,53 @@ +{ + "widgets":[ + { + "name": "DungeonPlayerWidget", + "alias": "dpw1", + "player": 1 + }, + { + "name": "DungeonPlayerWidget", + "alias": "dpw2", + "player": 2 + }, + { + "name": "DungeonPlayerWidget", + "alias": "dpw3", + "player": 3 + }, + { + "name": "DungeonPlayerWidget", + "alias": "dpw4", + "player": 4 + }, + { + "name": "DungeonPlayerWidget", + "alias": "dpw5", + "player": 5 + } + ], + "layout": [ + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["dpw1", "dpw2", "dpw3"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["dpw4", "dpw5"] + }, + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["dpw1", "dpw2", "dpw3"] + }, + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["dpw4", "dpw5"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/garden.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/garden.json new file mode 100644 index 00000000..64fe8de4 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/garden.json @@ -0,0 +1,29 @@ +{ + "widgets":[ + { + "name": "IslandGuestsWidget", + "alias": "igw" + }, + { + "name": "IslandSelfWidget", + "alias": "isw" + } + ], + "layout": [ + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["igw"] + }, + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["isw"] + }, + { + "op": "align", + "reference": "top", + "apply_to": ["igw", "isw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/guest_island.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/guest_island.json new file mode 100644 index 00000000..98d9bd9e --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/guest_island.json @@ -0,0 +1,29 @@ +{ + "widgets":[ + { + "name": "IslandGuestsWidget", + "alias": "igw" + }, + { + "name": "IslandOwnersWidget", + "alias": "iow" + } + ], + "layout": [ + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["igw"] + }, + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["iow"] + }, + { + "op": "align", + "reference": "top", + "apply_to": ["igw", "iow"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/home_island.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/home_island.json new file mode 100644 index 00000000..64fe8de4 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/home_island.json @@ -0,0 +1,29 @@ +{ + "widgets":[ + { + "name": "IslandGuestsWidget", + "alias": "igw" + }, + { + "name": "IslandSelfWidget", + "alias": "isw" + } + ], + "layout": [ + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["igw"] + }, + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["isw"] + }, + { + "op": "align", + "reference": "top", + "apply_to": ["igw", "isw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/unknown.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/unknown.json new file mode 100644 index 00000000..1b204adf --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/unknown.json @@ -0,0 +1,17 @@ +{ + "widgets": [ + { + "name": "EmptyWidget", + "alias": "ew" + } + ], + "layout": [ + { + "op": "place", + "where": "centerTop", + "apply_to": [ + "ew" + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/crimson_isle.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/crimson_isle.json new file mode 100644 index 00000000..07e00d5f --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/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": "top", + "apply_to": ["sw", "rw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "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/resourcepacks/default_top/assets/skyblocker/tabhud/standard/crystal_hollows.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/crystal_hollows.json new file mode 100644 index 00000000..45d3c188 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/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": "top", + "apply_to": ["sw", "cw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "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/resourcepacks/default_top/assets/skyblocker/tabhud/standard/default.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/default.json new file mode 100644 index 00000000..c56e2bc2 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/default.json @@ -0,0 +1,17 @@ +{ + "widgets": [ + { + "name": "ServerWidget", + "alias": "sw" + } + ], + "layout": [ + { + "op": "place", + "where": "centerTop", + "apply_to": [ + "sw" + ] + } + ] +} \ 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 new file mode 100644 index 00000000..c2c9ce60 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/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": "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"] + }, + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["dsrw", "dpuw", "dscw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dungeon_hub.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dungeon_hub.json new file mode 100644 index 00000000..68c0d9bb --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/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": "top", + "apply_to": ["sw", "ew"] + }, + { + "op": "align", + "reference": "horizontalCenter", + "apply_to": ["sw", "ew"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dwarven_mines.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/dwarven_mines.json new file mode 100644 index 00000000..45d3c188 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/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": "top", + "apply_to": ["sw", "cw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "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/resourcepacks/default_top/assets/skyblocker/tabhud/standard/farming_island.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/farming_island.json new file mode 100644 index 00000000..5d2cc2f8 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/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": "top", + "apply_to": ["sw", "tw"] + }, + { + "op": "align", + "reference": "horizontalCenter", + "apply_to": ["sw", "tw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/garden.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/garden.json new file mode 100644 index 00000000..c3b082c4 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/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": "top", + "apply_to": ["gsw", "cw"] + }, + { + "op": "align", + "reference": "horizontalCenter", + "apply_to": ["gsw", "cw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/guest_island.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/guest_island.json new file mode 100644 index 00000000..9c8cff77 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/guest_island.json @@ -0,0 +1,17 @@ +{ + "widgets": [ + { + "name": "GuestServerWidget", + "alias": "gsw" + } + ], + "layout": [ + { + "op": "place", + "where": "centerTop", + "apply_to": [ + "gsw" + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/home_island.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/home_island.json new file mode 100644 index 00000000..e775d216 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/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": "top", + "apply_to": ["isw", "mw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/hub.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/hub.json new file mode 100644 index 00000000..37d77e98 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/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": "top", + "apply_to": ["sw", "fsw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/park.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/park.json new file mode 100644 index 00000000..c8151af9 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/park.json @@ -0,0 +1,17 @@ +{ + "widgets": [ + { + "name": "ParkServerWidget", + "alias": "psw" + } + ], + "layout": [ + { + "op": "place", + "where": "centerTop", + "apply_to": [ + "psw" + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/rift.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/rift.json new file mode 100644 index 00000000..87414cbb --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/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": "top", + "apply_to": ["si", "gtk"] + }, + { + "op": "align", + "reference": "top", + "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/resourcepacks/default_top/assets/skyblocker/tabhud/standard/unknown.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/unknown.json new file mode 100644 index 00000000..1b204adf --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/unknown.json @@ -0,0 +1,17 @@ +{ + "widgets": [ + { + "name": "EmptyWidget", + "alias": "ew" + } + ], + "layout": [ + { + "op": "place", + "where": "centerTop", + "apply_to": [ + "ew" + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/pack.mcmeta b/src/main/resources/resourcepacks/default_top/pack.mcmeta new file mode 100644 index 00000000..bfbd1df3 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/pack.mcmeta @@ -0,0 +1,6 @@ +{ + "pack": { + "pack_format": 15, + "description": "Tutorial Resource Pack" + } +} \ No newline at end of file -- cgit From a3e6f2854e8c254be303ace9a01f4c195adf3e16 Mon Sep 17 00:00:00 2001 From: msg-programs Date: Sat, 29 Jul 2023 19:15:35 +0200 Subject: Change resource dirs to not contain uppercase letters. --- .../assets/skyblocker/tabhud/screenA/default.json | 70 ---------------------- .../assets/skyblocker/tabhud/screenA/garden.json | 70 ---------------------- .../assets/skyblocker/tabhud/screenA/rift.json | 48 --------------- .../assets/skyblocker/tabhud/screenA/unknown.json | 17 ------ .../assets/skyblocker/tabhud/screenB/default.json | 17 ------ .../assets/skyblocker/tabhud/screenB/dungeon.json | 53 ---------------- .../assets/skyblocker/tabhud/screenB/garden.json | 29 --------- .../skyblocker/tabhud/screenB/guest_island.json | 29 --------- .../skyblocker/tabhud/screenB/home_island.json | 29 --------- .../assets/skyblocker/tabhud/screenB/unknown.json | 17 ------ .../assets/skyblocker/tabhud/screen_a/default.json | 70 ++++++++++++++++++++++ .../assets/skyblocker/tabhud/screen_a/garden.json | 70 ++++++++++++++++++++++ .../assets/skyblocker/tabhud/screen_a/rift.json | 48 +++++++++++++++ .../assets/skyblocker/tabhud/screen_a/unknown.json | 17 ++++++ .../assets/skyblocker/tabhud/screen_b/default.json | 17 ++++++ .../assets/skyblocker/tabhud/screen_b/dungeon.json | 53 ++++++++++++++++ .../assets/skyblocker/tabhud/screen_b/garden.json | 29 +++++++++ .../skyblocker/tabhud/screen_b/guest_island.json | 29 +++++++++ .../skyblocker/tabhud/screen_b/home_island.json | 29 +++++++++ .../assets/skyblocker/tabhud/screen_b/unknown.json | 17 ++++++ 20 files changed, 379 insertions(+), 379 deletions(-) delete mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/default.json delete mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/garden.json delete mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/rift.json delete mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/unknown.json delete mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/default.json delete mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/dungeon.json delete mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/garden.json delete mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/guest_island.json delete mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/home_island.json delete mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/unknown.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/default.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/garden.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/rift.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/unknown.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/default.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/dungeon.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/garden.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/guest_island.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/home_island.json create mode 100644 src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/unknown.json (limited to 'src/main/resources/resourcepacks') diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/default.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/default.json deleted file mode 100644 index 2002591f..00000000 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/default.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "widgets":[ - { - "name": "SkillsWidget", - "alias": "sw" - }, - { - "name": "EventWidget", - "alias": "evw", - "inGarden": false - }, - { - "name": "UpgradeWidget", - "alias": "uw" - }, - { - "name": "ProfileWidget", - "alias": "pw" - }, - { - "name": "EffectWidget", - "alias": "efw" - }, - { - "name": "ElectionWidget", - "alias": "elw" - }, - { - "name": "CookieWidget", - "alias": "cw" - } - ], - "layout": [ - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["sw", "evw", "uw"] - }, - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["pw", "efw"] - }, - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["elw", "cw"] - }, - { - "op": "align", - "reference": "horizontalCenter", - "apply_to": ["sw", "evw", "uw"] - }, - { - "op": "collideAgainst", - "direction": "left", - "widgets": ["pw", "efw"], - "colliders": ["sw", "evw", "uw"] - }, - { - "op": "collideAgainst", - "direction": "right", - "widgets": ["elw", "cw"], - "colliders": ["sw", "evw", "uw"] - } - ] -} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/garden.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/garden.json deleted file mode 100644 index 39ee5b98..00000000 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/garden.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "widgets":[ - { - "name": "GardenSkillsWidget", - "alias": "gsw" - }, - { - "name": "EventWidget", - "alias": "evw", - "inGarden": true - }, - { - "name": "UpgradeWidget", - "alias": "uw" - }, - { - "name": "ProfileWidget", - "alias": "pw" - }, - { - "name": "EffectWidget", - "alias": "efw" - }, - { - "name": "JacobsContestWidget", - "alias": "jcw" - }, - { - "name": "CookieWidget", - "alias": "cw" - } - ], - "layout": [ - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["gsw", "evw", "uw"] - }, - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["pw", "efw"] - }, - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["jcw", "cw"] - }, - { - "op": "align", - "reference": "horizontalCenter", - "apply_to": ["gsw", "evw", "uw"] - }, - { - "op": "collideAgainst", - "direction": "left", - "widgets": ["pw", "efw"], - "colliders": ["gsw", "evw", "uw"] - }, - { - "op": "collideAgainst", - "direction": "right", - "widgets": ["jcw", "cw"], - "colliders": ["gsw", "evw", "uw"] - } - ] -} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/rift.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/rift.json deleted file mode 100644 index d18efca8..00000000 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/rift.json +++ /dev/null @@ -1,48 +0,0 @@ -{ - "widgets":[ - { - "name": "RiftProfileWidget", - "alias": "profile" - }, - { - "name": "RiftStatsWidget", - "alias": "stats" - }, - { - "name": "ShenWidget", - "alias": "shen" - }, - { - "name": "CookieWidget", - "alias": "cookie" - }, - { - "name": "AdvertisementWidget", - "alias": "ad" - } - ], - "layout": [ - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["stats", "ad"] - }, - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["profile", "shen", "cookie"] - }, - { - "op": "align", - "reference": "leftOfCenter", - "apply_to": ["stats", "ad"] - }, - { - "op": "align", - "reference": "rightOfCenter", - "apply_to": ["profile", "shen", "cookie"] - } - ] -} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/unknown.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/unknown.json deleted file mode 100644 index 1b204adf..00000000 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenA/unknown.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "widgets": [ - { - "name": "EmptyWidget", - "alias": "ew" - } - ], - "layout": [ - { - "op": "place", - "where": "centerTop", - "apply_to": [ - "ew" - ] - } - ] -} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/default.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/default.json deleted file mode 100644 index e857ee6f..00000000 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/default.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "widgets": [ - { - "name": "PlayerListWidget", - "alias": "plw" - } - ], - "layout": [ - { - "op": "place", - "where": "centerTop", - "apply_to": [ - "plw" - ] - } - ] -} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/dungeon.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/dungeon.json deleted file mode 100644 index 8bb6181b..00000000 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/dungeon.json +++ /dev/null @@ -1,53 +0,0 @@ -{ - "widgets":[ - { - "name": "DungeonPlayerWidget", - "alias": "dpw1", - "player": 1 - }, - { - "name": "DungeonPlayerWidget", - "alias": "dpw2", - "player": 2 - }, - { - "name": "DungeonPlayerWidget", - "alias": "dpw3", - "player": 3 - }, - { - "name": "DungeonPlayerWidget", - "alias": "dpw4", - "player": 4 - }, - { - "name": "DungeonPlayerWidget", - "alias": "dpw5", - "player": 5 - } - ], - "layout": [ - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["dpw1", "dpw2", "dpw3"] - }, - { - "op": "stack", - "direction": "vertical", - "align": "top", - "apply_to": ["dpw4", "dpw5"] - }, - { - "op": "align", - "reference": "leftOfCenter", - "apply_to": ["dpw1", "dpw2", "dpw3"] - }, - { - "op": "align", - "reference": "rightOfCenter", - "apply_to": ["dpw4", "dpw5"] - } - ] -} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/garden.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/garden.json deleted file mode 100644 index 64fe8de4..00000000 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/garden.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "widgets":[ - { - "name": "IslandGuestsWidget", - "alias": "igw" - }, - { - "name": "IslandSelfWidget", - "alias": "isw" - } - ], - "layout": [ - { - "op": "align", - "reference": "rightOfCenter", - "apply_to": ["igw"] - }, - { - "op": "align", - "reference": "leftOfCenter", - "apply_to": ["isw"] - }, - { - "op": "align", - "reference": "top", - "apply_to": ["igw", "isw"] - } - ] -} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/guest_island.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/guest_island.json deleted file mode 100644 index 98d9bd9e..00000000 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/guest_island.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "widgets":[ - { - "name": "IslandGuestsWidget", - "alias": "igw" - }, - { - "name": "IslandOwnersWidget", - "alias": "iow" - } - ], - "layout": [ - { - "op": "align", - "reference": "leftOfCenter", - "apply_to": ["igw"] - }, - { - "op": "align", - "reference": "rightOfCenter", - "apply_to": ["iow"] - }, - { - "op": "align", - "reference": "top", - "apply_to": ["igw", "iow"] - } - ] -} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/home_island.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/home_island.json deleted file mode 100644 index 64fe8de4..00000000 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/home_island.json +++ /dev/null @@ -1,29 +0,0 @@ -{ - "widgets":[ - { - "name": "IslandGuestsWidget", - "alias": "igw" - }, - { - "name": "IslandSelfWidget", - "alias": "isw" - } - ], - "layout": [ - { - "op": "align", - "reference": "rightOfCenter", - "apply_to": ["igw"] - }, - { - "op": "align", - "reference": "leftOfCenter", - "apply_to": ["isw"] - }, - { - "op": "align", - "reference": "top", - "apply_to": ["igw", "isw"] - } - ] -} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/unknown.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/unknown.json deleted file mode 100644 index 1b204adf..00000000 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screenB/unknown.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "widgets": [ - { - "name": "EmptyWidget", - "alias": "ew" - } - ], - "layout": [ - { - "op": "place", - "where": "centerTop", - "apply_to": [ - "ew" - ] - } - ] -} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/default.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/default.json new file mode 100644 index 00000000..2002591f --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/default.json @@ -0,0 +1,70 @@ +{ + "widgets":[ + { + "name": "SkillsWidget", + "alias": "sw" + }, + { + "name": "EventWidget", + "alias": "evw", + "inGarden": false + }, + { + "name": "UpgradeWidget", + "alias": "uw" + }, + { + "name": "ProfileWidget", + "alias": "pw" + }, + { + "name": "EffectWidget", + "alias": "efw" + }, + { + "name": "ElectionWidget", + "alias": "elw" + }, + { + "name": "CookieWidget", + "alias": "cw" + } + ], + "layout": [ + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["sw", "evw", "uw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["pw", "efw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["elw", "cw"] + }, + { + "op": "align", + "reference": "horizontalCenter", + "apply_to": ["sw", "evw", "uw"] + }, + { + "op": "collideAgainst", + "direction": "left", + "widgets": ["pw", "efw"], + "colliders": ["sw", "evw", "uw"] + }, + { + "op": "collideAgainst", + "direction": "right", + "widgets": ["elw", "cw"], + "colliders": ["sw", "evw", "uw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/garden.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/garden.json new file mode 100644 index 00000000..39ee5b98 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/garden.json @@ -0,0 +1,70 @@ +{ + "widgets":[ + { + "name": "GardenSkillsWidget", + "alias": "gsw" + }, + { + "name": "EventWidget", + "alias": "evw", + "inGarden": true + }, + { + "name": "UpgradeWidget", + "alias": "uw" + }, + { + "name": "ProfileWidget", + "alias": "pw" + }, + { + "name": "EffectWidget", + "alias": "efw" + }, + { + "name": "JacobsContestWidget", + "alias": "jcw" + }, + { + "name": "CookieWidget", + "alias": "cw" + } + ], + "layout": [ + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["gsw", "evw", "uw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["pw", "efw"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["jcw", "cw"] + }, + { + "op": "align", + "reference": "horizontalCenter", + "apply_to": ["gsw", "evw", "uw"] + }, + { + "op": "collideAgainst", + "direction": "left", + "widgets": ["pw", "efw"], + "colliders": ["gsw", "evw", "uw"] + }, + { + "op": "collideAgainst", + "direction": "right", + "widgets": ["jcw", "cw"], + "colliders": ["gsw", "evw", "uw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/rift.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/rift.json new file mode 100644 index 00000000..d18efca8 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/rift.json @@ -0,0 +1,48 @@ +{ + "widgets":[ + { + "name": "RiftProfileWidget", + "alias": "profile" + }, + { + "name": "RiftStatsWidget", + "alias": "stats" + }, + { + "name": "ShenWidget", + "alias": "shen" + }, + { + "name": "CookieWidget", + "alias": "cookie" + }, + { + "name": "AdvertisementWidget", + "alias": "ad" + } + ], + "layout": [ + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["stats", "ad"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["profile", "shen", "cookie"] + }, + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["stats", "ad"] + }, + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["profile", "shen", "cookie"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/unknown.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/unknown.json new file mode 100644 index 00000000..1b204adf --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/unknown.json @@ -0,0 +1,17 @@ +{ + "widgets": [ + { + "name": "EmptyWidget", + "alias": "ew" + } + ], + "layout": [ + { + "op": "place", + "where": "centerTop", + "apply_to": [ + "ew" + ] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/default.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/default.json new file mode 100644 index 00000000..e857ee6f --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/default.json @@ -0,0 +1,17 @@ +{ + "widgets": [ + { + "name": "PlayerListWidget", + "alias": "plw" + } + ], + "layout": [ + { + "op": "place", + "where": "centerTop", + "apply_to": [ + "plw" + ] + } + ] +} \ No newline at end of file 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 new file mode 100644 index 00000000..8bb6181b --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/dungeon.json @@ -0,0 +1,53 @@ +{ + "widgets":[ + { + "name": "DungeonPlayerWidget", + "alias": "dpw1", + "player": 1 + }, + { + "name": "DungeonPlayerWidget", + "alias": "dpw2", + "player": 2 + }, + { + "name": "DungeonPlayerWidget", + "alias": "dpw3", + "player": 3 + }, + { + "name": "DungeonPlayerWidget", + "alias": "dpw4", + "player": 4 + }, + { + "name": "DungeonPlayerWidget", + "alias": "dpw5", + "player": 5 + } + ], + "layout": [ + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["dpw1", "dpw2", "dpw3"] + }, + { + "op": "stack", + "direction": "vertical", + "align": "top", + "apply_to": ["dpw4", "dpw5"] + }, + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["dpw1", "dpw2", "dpw3"] + }, + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["dpw4", "dpw5"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/garden.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/garden.json new file mode 100644 index 00000000..64fe8de4 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/garden.json @@ -0,0 +1,29 @@ +{ + "widgets":[ + { + "name": "IslandGuestsWidget", + "alias": "igw" + }, + { + "name": "IslandSelfWidget", + "alias": "isw" + } + ], + "layout": [ + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["igw"] + }, + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["isw"] + }, + { + "op": "align", + "reference": "top", + "apply_to": ["igw", "isw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/guest_island.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/guest_island.json new file mode 100644 index 00000000..98d9bd9e --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/guest_island.json @@ -0,0 +1,29 @@ +{ + "widgets":[ + { + "name": "IslandGuestsWidget", + "alias": "igw" + }, + { + "name": "IslandOwnersWidget", + "alias": "iow" + } + ], + "layout": [ + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["igw"] + }, + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["iow"] + }, + { + "op": "align", + "reference": "top", + "apply_to": ["igw", "iow"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/home_island.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/home_island.json new file mode 100644 index 00000000..64fe8de4 --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/home_island.json @@ -0,0 +1,29 @@ +{ + "widgets":[ + { + "name": "IslandGuestsWidget", + "alias": "igw" + }, + { + "name": "IslandSelfWidget", + "alias": "isw" + } + ], + "layout": [ + { + "op": "align", + "reference": "rightOfCenter", + "apply_to": ["igw"] + }, + { + "op": "align", + "reference": "leftOfCenter", + "apply_to": ["isw"] + }, + { + "op": "align", + "reference": "top", + "apply_to": ["igw", "isw"] + } + ] +} \ No newline at end of file diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/unknown.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/unknown.json new file mode 100644 index 00000000..1b204adf --- /dev/null +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/unknown.json @@ -0,0 +1,17 @@ +{ + "widgets": [ + { + "name": "EmptyWidget", + "alias": "ew" + } + ], + "layout": [ + { + "op": "place", + "where": "centerTop", + "apply_to": [ + "ew" + ] + } + ] +} \ No newline at end of file -- cgit From f8c6e9454cc1354714bf46f7763ff7faf7669ddf Mon Sep 17 00:00:00 2001 From: msg-programs Date: Sun, 6 Aug 2023 15:20:53 +0200 Subject: Add error handling, rename EmptyWidget to ErrorWidget and allow custom string. --- .../default_top/assets/skyblocker/tabhud/screen_a/unknown.json | 2 +- .../default_top/assets/skyblocker/tabhud/screen_b/unknown.json | 2 +- .../default_top/assets/skyblocker/tabhud/standard/unknown.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main/resources/resourcepacks') diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/unknown.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/unknown.json index 1b204adf..280a46a8 100644 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/unknown.json +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/unknown.json @@ -1,7 +1,7 @@ { "widgets": [ { - "name": "EmptyWidget", + "name": "ErrorWidget", "alias": "ew" } ], diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/unknown.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/unknown.json index 1b204adf..280a46a8 100644 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/unknown.json +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/unknown.json @@ -1,7 +1,7 @@ { "widgets": [ { - "name": "EmptyWidget", + "name": "ErrorWidget", "alias": "ew" } ], diff --git a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/unknown.json b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/unknown.json index 1b204adf..280a46a8 100644 --- a/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/unknown.json +++ b/src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/unknown.json @@ -1,7 +1,7 @@ { "widgets": [ { - "name": "EmptyWidget", + "name": "ErrorWidget", "alias": "ew" } ], -- cgit From 484f2d98c8819e9b0fc26f87405d119f20768caa Mon Sep 17 00:00:00 2001 From: msg-programs Date: Sun, 6 Aug 2023 19:49:20 +0200 Subject: Add resource pack description and icon. Latter looks a bit off thanks to whatever Minecraft uses to scale the icon... --- src/main/resources/resourcepacks/default_top/pack.mcmeta | 2 +- src/main/resources/resourcepacks/default_top/pack.png | Bin 0 -> 845 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 src/main/resources/resourcepacks/default_top/pack.png (limited to 'src/main/resources/resourcepacks') diff --git a/src/main/resources/resourcepacks/default_top/pack.mcmeta b/src/main/resources/resourcepacks/default_top/pack.mcmeta index bfbd1df3..51ce98bf 100644 --- a/src/main/resources/resourcepacks/default_top/pack.mcmeta +++ b/src/main/resources/resourcepacks/default_top/pack.mcmeta @@ -1,6 +1,6 @@ { "pack": { "pack_format": 15, - "description": "Tutorial Resource Pack" + "description": "Alternative layout for Skyblocker's fancy Tab-HUD " } } \ No newl