Repository navigation
Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a Create button to the Locker's Cursor tab that builds a cursor pack from your own images.
Dialog. One tile per stock cursor (Pointer 48x58, Ping 48x58, Shop 60x60, Commend 88x88). Picking an image opens
CardCropperin a newcursormode: the image starts whole and flush top-left, it can zoom out past cover (whatever it doesn't cover stays transparent), and a crosshair marks the click point. Slots left empty keep the game's own cursor. "Create and apply" installs and applies the pack. "Export" writes the same files to a zip that imports back as the same pack.Hotspot detection (
src/lib/cursorHotspot.ts). Guesses the click point from the alpha mask: the sharpest convex-hull corner, biased toward top-left like the stock pointers. Reticles (quarter-turn symmetric) and blunt art aim at the middle. Fully opaque art gets the stock 0, 0. A click in the cropper moves it.Writing the pack. The renderer encodes 32-bit BI_RGB BMPs with alpha in the fourth byte, the same layout as the stock files (
src/lib/cursorBmp.ts). Main validates names and signatures as with imports, then writes acursor.resthat starts from the stock copy and overrides only the cursors you replaced, so the commend cursor keeps its 22, 2 hotspot. Entries are keyed by file stem (cursor,cursor_ping), matching the community packs on GameBanana.installGroupsis split so archive imports and created packs shareinstallSets.New IPC:
cursors:create,cursors:export.Checks:
tsc -b, eslint,ui:check, vitest (180 files, 2662 tests), i18n check + manifest,electron-vite buildwith 0 unresolved imports. Not yet checked in-game.