Commit graph

17 commits

Author SHA1 Message Date
beacc28ace ui: Inventory item rotation
- Fixed rotated item position
2026-03-12 13:08:08 +03:00
9a09b4da96 feat: Implemented Inventory.can_rotate
- Added tests for rotating items in place
2026-03-12 11:45:01 +03:00
55c4e3a1d1 ui: Unfinished item rotating 2026-03-12 10:32:55 +03:00
55cbd39172 ui: Visible item dragging
- Also tinting inventory slot on hover
2026-03-12 10:04:35 +03:00
a462c64786 feat: Implemented basic item drag-and-drop
- Added bundle names
- Added system to update bundle names with entity name
2026-03-11 22:40:17 +03:00
0add3e4c20 feat: unfinished item drag and drop 2026-03-11 17:29:27 +03:00
c46fa75e54 feat!: Item processing
- Added try_insert_item system
- Added rotated field on Item
- Implemented UI item drawing with scale and rotation

BREAKING CHANGE: Item.swap_size renamed to Item.rotate
    Item.clone_swapped renamed to Item.clone_rotated
2026-03-11 14:55:27 +03:00
ab993be476 ui: Beginning of UI-related stuff
- UiRoot component
- WindowSize resource and update_window_size system
- UiInventory and UiInventorySlot components
- UiInventory now shows player inventory slots
2026-03-09 13:59:51 +03:00
5f59e02788 feat: Implemented Inventory.find_free_space
- Added tests for find_free_space
2026-03-07 22:00:00 +03:00
13dd936044 tests: Added more tests
- Added 2 more tests related to item moving
- Refactored inventory tests internals
2026-03-07 19:47:21 +03:00
fee774dddd feat: Implemented Inventory::can_move
- Changed Inventory::can_fit signature
- Added can_move_item test
2026-03-06 17:38:57 +03:00
dab3134f15 feat: Added Inventory and Item components
- Moved input tests into nested module
- Added inventory tests
2026-03-06 16:41:17 +03:00
957717671a feat: Player is now using leafwing-input-manager 2026-03-03 16:49:28 +03:00
44c2c9f58a assets: Added inventory slot sprite 2026-03-03 09:37:45 +03:00
ae7bfd7c27 feat: Added input system
- Added input plugin to manage controls config
- Added tests for casting InputMap to InputAsset and backwards
2026-03-03 09:26:52 +03:00
10afe6fd08 feat: Player, assets and basic movement 2026-02-12 17:09:57 +03:00
975e065fde Initial commit 2026-02-12 10:18:42 +00:00