Commit Graph

84 Commits

Author SHA1 Message Date
hypercross a7095c37fc Refactor inventory drag to use dragDropEventEffect
Replace manual pointer event handling with the framework's
dragDropEventEffect utility. Update DragController to manage
DisposableBag for cleanup and pass containers instead of
pointers to drag callbacks. Add framework path alias to
tsconfig and fix loop variable shadowing in LostItemManager.
2026-04-19 00:12:56 +08:00
hypercross 88d0c5bf55 Refactor: centralize config and split inventory
Move magic numbers and style constants to src/config.ts.
Decompose InventoryWidget into DragController, ItemRenderer,
and LostItemManager for better separation of concerns. Add
createButton utility and remove unused CombatUnitWidget.
Update scenes to import from centralized config.
2026-04-19 00:01:25 +08:00
hypercross d993d55576 Refactor dnd utility and add drag lifecycle events
Attach pointerup and pointermove listeners to scene.input
for reliable tracking. Emit dragstart, dragmove, and
dragend events alongside drag. Rename relativeX/Y to
deltaX/Y in DragDropEvent and integrate DisposableBag.
2026-04-18 23:33:13 +08:00
hypercross 23575dd516 feat: dnd 2026-04-17 21:55:14 +08:00
hypercross 0ecef16a4a fix: inventory interaction 2026-04-17 19:45:34 +08:00
hypercross 28a2623bd1 feat: adding widgets to the game 2026-04-17 18:08:51 +08:00
hypercross f7a6154c68 refactor: update to new version 2026-04-17 17:29:13 +08:00
hypercross 706de4e33a fix: inventory preview not actually there 2026-04-14 15:48:47 +08:00
hypercross 5342f1c09d feat: inventory preview? 2026-04-14 15:22:22 +08:00
hypercross 3ca2a16e29 refactor: global state for scenes 2026-04-14 14:21:51 +08:00
hypercross 7fb9edcbf0 feat: add game process scene 2026-04-14 13:51:11 +08:00
hypercross 65684e6cf5 refactor: udpate to new design 2026-04-14 13:04:34 +08:00
hypercross c9acb7f228 refactor: scene control 2026-04-14 11:10:14 +08:00
hypercross c639218b53 refactor: viewr 2026-04-13 14:57:00 +08:00
hypercross e91e8d2ab7 feat: sts-like-viewer 2026-04-13 12:38:41 +08:00
hyper 02d2f45da2 refactor: fix onitama sizing 2026-04-12 19:24:47 +08:00
hyper e5b53c6332 refactor: fix onitama api usage 2026-04-12 19:09:41 +08:00
hyper ecfa89e383 fix: boop supply 2026-04-12 18:55:35 +08:00
hyper 8bd790db67 refactor: boop sizing 2026-04-12 18:54:18 +08:00
hyper 93587541ce refactor: boop to use new api 2026-04-12 18:47:04 +08:00
hyper cc80cbad06 fix: fading 2026-04-12 18:18:45 +08:00
hyper 6584578316 fix: overlay init 2026-04-12 18:11:23 +08:00
hyper f6f18b4789 fix: wait for fade scene init 2026-04-12 18:02:10 +08:00
hyper 70334fa9e3 refactor: wait to launch scene 2026-04-12 18:00:08 +08:00
hyper fbf3f5e636 refactor:refactor: improve ttt 2026-04-12 17:54:46 +08:00
hyper 9ab7ae3e60 refactor: improved scene manager 2026-04-12 17:52:44 +08:00
hyper fe57583a8f refactor: api 2026-04-12 17:34:25 +08:00
hyper 713a14c128 refactor: simplify scene routing 2026-04-12 17:21:49 +08:00
hyper 50531446c2 feat: scene manager and transitions 2026-04-12 16:52:53 +08:00
hyper f8a19653ba refactor: details 2026-04-12 16:31:10 +08:00
hyper 59fa0e6122 refactor: ReactiveScene 2026-04-12 16:26:52 +08:00
hyper 21a7afa276 chore: fix vite config 2026-04-12 15:02:23 +08:00
hypercross 71ccb8732e refactor: some manual changes 2026-04-08 14:21:33 +08:00
hypercross 92e1a5bec1 feat: rotation and more 2026-04-08 11:49:25 +08:00
hypercross 3e064f437b feat: add more tweens 2026-04-08 11:33:59 +08:00
hypercross 00fd395873 fix: more issues with ui 2026-04-08 11:06:34 +08:00
hypercross 2beff5c75c fix: fix ui bugs 2026-04-08 08:57:59 +08:00
hypercross d4819f7cc3 feat: more onitama goodness 2026-04-07 17:46:37 +08:00
hypercross 8bbf20f457 feat: onitama 2026-04-07 16:33:41 +08:00
hypercross deb8c91239 refactor: use boardgame-core's sample exports 2026-04-07 16:16:04 +08:00
hypercross cedb69e55e refactor: more regicide stuff 2026-04-06 17:17:04 +08:00
hypercross a0412ddd88 refactor: fix regicide, presumably? 2026-04-06 16:45:52 +08:00
hypercross 20f722818d refactor: prompt def udpate 2026-04-06 16:20:52 +08:00
hypercross bf20e53c6b feat: regicide card game 2026-04-06 14:21:44 +08:00
hypercross a53f162c03 refactor: update api 2026-04-06 13:59:00 +08:00
hypercross fa104d10f2 refactor: update api 2026-04-06 11:31:51 +08:00
hypercross acb2fc82ba feat: animate after booped 2026-04-05 09:45:01 +08:00
hypercross 2f0fb2bca8 feat: error reporting 2026-04-05 00:31:34 +08:00
hypercross c678974489 feat: add error display & upgrade pick 2026-04-05 00:24:06 +08:00
hypercross df1c0cbb81 feat: add game start overlay 2026-04-05 00:12:05 +08:00