From 2d6a9d9f7eb3d2cc787d4b3172eba80cf8ed4738 Mon Sep 17 00:00:00 2001 From: SilverSokolova <80606782+SilverSokolova@users.noreply.github.com> Date: Wed, 17 Jul 2024 03:24:22 -0500 Subject: [PATCH 1/4] Delete assets/opensb/cursors/pointer.cursor.patch --- assets/opensb/cursors/pointer.cursor.patch | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 assets/opensb/cursors/pointer.cursor.patch diff --git a/assets/opensb/cursors/pointer.cursor.patch b/assets/opensb/cursors/pointer.cursor.patch deleted file mode 100644 index 7ca7bef..0000000 --- a/assets/opensb/cursors/pointer.cursor.patch +++ /dev/null @@ -1,3 +0,0 @@ -{ - "scale" : 1 -} \ No newline at end of file From 686dd786ef063a03b94a718d4d9ae64ea5d46f32 Mon Sep 17 00:00:00 2001 From: SilverSokolova <80606782+SilverSokolova@users.noreply.github.com> Date: Wed, 17 Jul 2024 03:25:17 -0500 Subject: [PATCH 2/4] Delete assets/opensb/cursors/link.cursor.patch --- assets/opensb/cursors/link.cursor.patch | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 assets/opensb/cursors/link.cursor.patch diff --git a/assets/opensb/cursors/link.cursor.patch b/assets/opensb/cursors/link.cursor.patch deleted file mode 100644 index 7ca7bef..0000000 --- a/assets/opensb/cursors/link.cursor.patch +++ /dev/null @@ -1,3 +0,0 @@ -{ - "scale" : 1 -} \ No newline at end of file From 044d6a38d4e335728926478b63a73aeddf0684a4 Mon Sep 17 00:00:00 2001 From: SilverSokolova <80606782+SilverSokolova@users.noreply.github.com> Date: Wed, 17 Jul 2024 03:25:23 -0500 Subject: [PATCH 3/4] Delete assets/opensb/cursors/inspect.cursor.patch --- assets/opensb/cursors/inspect.cursor.patch | 3 --- 1 file changed, 3 deletions(-) delete mode 100644 assets/opensb/cursors/inspect.cursor.patch diff --git a/assets/opensb/cursors/inspect.cursor.patch b/assets/opensb/cursors/inspect.cursor.patch deleted file mode 100644 index 7ca7bef..0000000 --- a/assets/opensb/cursors/inspect.cursor.patch +++ /dev/null @@ -1,3 +0,0 @@ -{ - "scale" : 1 -} \ No newline at end of file From 74ea816f8ad328860fdedc39391c45741db30846 Mon Sep 17 00:00:00 2001 From: SilverSokolova <80606782+SilverSokolova@users.noreply.github.com> Date: Wed, 17 Jul 2024 03:26:32 -0500 Subject: [PATCH 4/4] postload: upscale all HD cursors --- assets/opensb/scripts/opensb/assets/postload.lua | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/assets/opensb/scripts/opensb/assets/postload.lua b/assets/opensb/scripts/opensb/assets/postload.lua index d84dd75..baf3081 100644 --- a/assets/opensb/scripts/opensb/assets/postload.lua +++ b/assets/opensb/scripts/opensb/assets/postload.lua @@ -1,4 +1,5 @@ -- Revert cursor frames if a mod replaced cursors.png with a SD version again +-- Otherwise, scale down our HD cursors if assets.image("/cursors/cursors.png"):size()[1] == 64 then local path = "/cursors/opensb/revert.cursor.patch" assets.add(path, '{"scale":null}') @@ -8,6 +9,14 @@ if assets.image("/cursors/cursors.png"):size()[1] == 64 then path = "/cursors/opensb/revert.frames.patch" assets.add(path, '{"frameGrid":{"size":[16,16]}}') assets.patch("/cursors/cursors.frames", path) +else + local cursors = assets.json("/cursors/cursors.frames:frameGrid.names") + local path = "/cursors/%s.cursor.patch" + for i = 1, #cursors do + for j = 1, #cursors[i] do + assets.add(string.format(path, cursors[i][j]), '{"scale":1}') + end + end end -- Add object patches @@ -15,4 +24,4 @@ local objects = assets.byExtension("object") local path = "/objects/opensb/object.patch.lua" for i = 1, #objects do assets.patch(objects[i], path) -end \ No newline at end of file +end