Commit Graph
153 Commits
Author SHA1 Message Date
faumaray 3ea497d38a Ship a self-contained Windows GUI with game shortcuts and application icons
CI / check (push) Successful in 1m30s
CI / windows (push) Failing after 4m27s
2026-11-27 23:34:01 +03:00
faumaray 4118c3943f Release 0.3.6 with a game chooser and native installers
CI / check (push) Failing after 7s
Native release / linux (push) Successful in 1m33s
Native release / windows (push) Failing after 9s
Native release / publish (push) Skipped
2026-11-27 21:48:45 +03:00
meehl a57e0afda0 Use positive indices for API C-functions
This fixes the issue where error messages display the wrong index number
for the bad argument.
2026-11-20 10:04:40 +01:00
meehl 91ddf5696a Make alignment argument in draw_string API function optional 2026-11-20 09:54:28 +01:00
meehl 4316366f87 Apply texture deltas even when skipping frames
Since the renderer rework, texture updates and frees were dropped
whenever a frame was skipped. Apply deltas before acquiring the surface
texture and free textures on skipped or lost surfaces.
2026-11-13 16:34:37 +01:00
meehl 01697e32bd Move text layout positioning into DrawCommandRecorder 2026-11-10 22:55:18 +01:00
Dodomew 3e065a8838 Snap text to pixel grid after applying viewport offset
Text inside viewports was blurry with fractional scale factors because it was aligned to the pixel grid before the viewport offset was applied.
2026-11-10 22:33:55 +01:00
meehl 9a341cfb39 Support passing userdata/tables to luacurl write/header callbacks 2026-10-23 16:16:00 +02:00
Archer Chang 4db36c1382 Render tab characters as 4 spaces (#62)
`parley` doesn't support tab characters, so tabs in PoB text (e.g. the
Notes tab) were drawn as missing-glyph boxes and broke alignment.
Replace each tab with 4 spaces before layout to match SimpleGraphic.

Fixes #53
2026-10-22 12:31:24 +02:00
meehl 9b925feb90 Refactor surface format selection 2026-10-22 11:12:24 +02:00
meehl 4b997447b5 Strip #@ script headers before loading Lua
LuaJIT now only treats a leading `#!` line as a shebang and interprets other
lines beginning with `#` as line number directives.

https://github.com/LuaJIT/LuaJIT/commit/c41d727dbffa5ec4f346dd9be0f4c64740f124aa
2026-10-21 17:45:11 +02:00
meehl 4affef3e62 Move fonts to assets directory 2026-10-21 14:53:08 +02:00
meehl 6cca05f2f5 Upgrade parley to v0.12 2026-10-21 11:11:02 +02:00
meehl 0886ad693a Register luazip module
This removes the runtime dependency on the external `lzip` C library.
2026-10-21 10:39:02 +02:00
meehl a4f7353ce6 Implement missing luasocket method 2026-10-17 17:05:13 +02:00
meehl f3c065debd Add feature for registering bundled Lua modules
Enabled by default.
2026-10-17 16:04:54 +02:00
meehl 9b98c65060 Register luacurl module
This removes the runtime dependency on the external `Lua-cURLv3` C library.
2026-10-17 15:04:50 +02:00
meehl b70d612a1d Remove unneeded return statement 2026-10-16 08:30:52 +02:00
meehl 36d2697754 Register luasocket module
This removes the runtime dependency on the external `luasocket` C library.
2026-10-15 23:31:23 +02:00
meehl 8ddcbf89f7 Fix re-entrant context borrow during subscript calls
Move `SubscriptManager` to its own app data slot and dispatch subscript
calls only after releasing the context and manager borrow.
2026-10-15 18:58:11 +02:00
meehl c6d5241b98 Expose luautf8 module through runtime
This removes the runtime dependency on the external `luautf8` C library.
2026-10-14 11:34:23 +02:00
vaisest ae9c59d132 Fix Windows canonical paths (#59) 2026-09-18 10:33:28 +02:00
meehl 41d9c9dbd7 Remove blend mode and mask index from API 2026-09-09 09:21:53 +02:00
meehl e72a271006 Add support for gzip compression 2026-09-08 08:36:23 +02:00
meehl 51476da1d9 Make clippy happy 2026-09-02 18:46:37 +02:00
meehl 20a1db073d Lint 2026-09-02 16:37:59 +02:00
meehl aa1bfb768e Add helpers for appending to Lua's package.path 2026-09-02 11:16:21 +02:00
meehl 29e2958dd3 Replace unwrap 2026-09-02 11:15:42 +02:00
meehl 5cbabed095 Simplify return value 2026-09-01 22:05:37 +02:00
meehl 5ba4100589 Small cleanup 2026-09-01 19:18:58 +02:00
meehl fc4d913930 Remove misleading comment 2026-09-01 17:47:37 +02:00
meehl dc9300bca2 Ensure compatibility of partial update with existing texture.
+ some improvements around querying texture loading status.
2026-09-01 14:47:00 +02:00
meehl e90396ff28 Add support for partial GPU texture updates
Mainly used for font atlas changes. Each glyph allocation now only
triggers a partial texture update instead of creating a full new
texture.
2026-09-01 10:17:34 +02:00
meehl e3288b96ac Implement get_draw_layer API function 2026-08-29 23:36:50 +02:00
meehl 749dd69589 Fix double regex matching and iteration in get_index_at_cur 2026-08-29 23:09:08 +02:00
meehl 1a6631c4ad Refactor PoBStringSegmentIterator 2026-08-29 21:46:51 +02:00
meehl 078269653e Restructure api functions 2026-08-29 19:08:49 +02:00
meehl fe96786aca Update comments about PoB alignment argument 2026-08-29 16:35:11 +02:00
meehl 4b344d15ae Refactor mouse and keyboard input handling 2026-08-29 16:12:45 +02:00
meehl c297eeaca6 Improve ergonomics of calling Lua callbacks 2026-08-29 11:28:30 +02:00
meehl 77e1d615e0 Lint 2026-08-28 20:12:42 +02:00
meehl 6f0d678790 Add better docs for subscripts 2026-08-28 20:11:25 +02:00
meehl 38f81cab3e Restructure Subscript::handle_calls 2026-08-28 19:37:18 +02:00
meehl a6c158424f Simply conversion to/from NativeMultiValue 2026-08-28 19:04:13 +02:00
meehl 8556ebf772 Lint 2026-08-28 18:19:16 +02:00
meehl 6f0eef7cf8 Get rid of unwraps 2026-08-27 18:02:24 +02:00
meehl 8cfc82d668 Construct wgpu::VertexBufferLayout directly from Vertex 2026-08-27 17:48:17 +02:00
meehl 9d45b78d64 Use channel to handle async image load results in texture manager 2026-08-27 16:56:03 +02:00
meehl 692e530867 Add profiling scope for call to OnInit 2026-08-27 16:34:40 +02:00
meehl 4e67aa72c0 Acquire context reference after argument validation in image_handle_load
luaL_error can perform a long jump and never return. `drop` might not
get called on the AppDataRef, leaving it permanently borrowed.
2026-08-27 15:31:03 +02:00