aboutsummaryrefslogtreecommitdiff
path: root/src/main/resources
diff options
context:
space:
mode:
authormsg-programs <msgdoesstuff@gmail.com>2023-08-06 15:20:53 +0200
committermsg-programs <msgdoesstuff@gmail.com>2023-08-06 15:20:53 +0200
commitf8c6e9454cc1354714bf46f7763ff7faf7669ddf (patch)
treeaa4e20705a3e9ce8b0edac4aacacab9f757647f8 /src/main/resources
parenta3e6f2854e8c254be303ace9a01f4c195adf3e16 (diff)
downloadSkyblocker-f8c6e9454cc1354714bf46f7763ff7faf7669ddf.tar.gz
Skyblocker-f8c6e9454cc1354714bf46f7763ff7faf7669ddf.tar.bz2
Skyblocker-f8c6e9454cc1354714bf46f7763ff7faf7669ddf.zip
Add error handling, rename EmptyWidget to ErrorWidget and allow custom string.
Diffstat (limited to 'src/main/resources')
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/readme.md2
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/screen_a/unknown.json2
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/screen_b/unknown.json2
-rw-r--r--src/main/resources/assets/skyblocker/tabhud/standard/unknown.json2
-rw-r--r--src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_a/unknown.json2
-rw-r--r--src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/screen_b/unknown.json2
-rw-r--r--src/main/resources/resourcepacks/default_top/assets/skyblocker/tabhud/standard/unknown.json2
7 files changed, 7 insertions, 7 deletions
diff --git a/src/main/resources/assets/skyblocker/tabhud/readme.md b/src/main/resources/assets/skyblocker/tabhud/readme.md
index 1f294cb4..f8394c3e 100644
--- a/src/main/resources/assets/skyblocker/tabhud/readme.md
+++ b/src/main/resources/assets/skyblocker/tabhud/readme.md
@@ -57,7 +57,7 @@ Grouped by themes (roughly)
- EffectWidget: Currently active effects.
- ElectionWidget: The current mayor election.
- EssenceWidget: Your dungeon essences.
-- EmptyWidget: Generic "No data available" display.
+- ErrorWidget: Displays an error message, "No data available" by default. Optional arg `text`: The error to be displayed.
- EventWidget: Current events. Arg `inGarden: true|false`: Is this widget displayed in the garden area?
- FireSaleWidget: Ongoing fire sales.
- MinionWidget: The minions on your island.
diff --git a/src/main/resources/assets/skyblocker/tabhud/screen_a/unknown.json b/src/main/resources/assets/skyblocker/tabhud/screen_a/unknown.json
index 0252940a..b682cc3d 100644
--- a/src/main/resources/assets/skyblocker/tabhud/screen_a/unknown.json
+++ b/src/main/resources/assets/skyblocker/tabhud/screen_a/unknown.json
@@ -1,7 +1,7 @@
{
"widgets": [
{
- "name": "EmptyWidget",
+ "name": "ErrorWidget",
"alias": "ew"
}
],
diff --git a/src/main/resources/assets/skyblocker/tabhud/screen_b/unknown.json b/src/main/resources/assets/skyblocker/tabhud/screen_b/unknown.json
index 0252940a..b682cc3d 100644
--- a/src/main/resources/assets/skyblocker/tabhud/screen_b/unknown.json
+++ b/src/main/resources/assets/skyblocker/tabhud/screen_b/unknown.json
@@ -1,7 +1,7 @@
{
"widgets": [
{
- "name": "EmptyWidget",
+ "name": "ErrorWidget",
"alias": "ew"
}
],
diff --git a/src/main/resources/assets/skyblocker/tabhud/standard/unknown.json b/src/main/resources/assets/skyblocker/tabhud/standard/unknown.json
index 0252940a..b682cc3d 100644
--- a/src/main/resources/assets/skyblocker/tabhud/standard/unknown.json
+++ b/src/main/resources/assets/skyblocker/tabhud/standard/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_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"
}
],