Commit graph

20 commits

Author SHA1 Message Date
Zed A. Shaw
a86912705c Refactored the mouse handling to use the new guecss Modifiers system and improved Clickable. 2025-08-14 14:10:28 -04:00
Zed A. Shaw
056b0b307b Implemented a little screenshot tool. 2025-07-08 00:55:24 -04:00
Zed A. Shaw
b6d1ae2700 Move the management of the 'fake loose items container' into the loot_ui.cpp rather than get rid of it. Closes #34. 2025-07-01 14:26:39 -04:00
Zed A. Shaw
812407c3df Now the loot UI can work with any container and only uses an ECS id to work, not have its own contents. 2025-06-21 10:51:45 -04:00
Zed A. Shaw
a0eff927b6 Big BIG refactor to make inventory use a model that's placed into the world, following a more sane MVC style. 2025-06-20 13:17:12 -04:00
Zed A. Shaw
119b3ed11d Can now drag an item out of inventory and drop on the ground, then pick it back up, and put it in a loot container, and then back again. Still buggy but working for now. 2025-06-19 00:45:22 -04:00
Zed A. Shaw
68e50342e5 Can now drag an item out of inventory and drop it. 2025-06-18 11:26:38 -04:00
Zed A. Shaw
82ee8f68f7 Created a separate FSM for the DND functionality that compiles but need to wire it in to work. 2025-06-13 00:57:45 -04:00
Zed A. Shaw
4a48910273 There's a UISystem now for to compliment the entities and components in GUECS. I now use that to do the drag/drop transfers instead of raw code right in the FSM. 2025-06-10 13:13:40 -04:00
Zed A. Shaw
842aac3127 Worked out an initial stab at a GrabSource for drag-n-drop or just simple grabbing things in the UI. 2025-06-07 15:29:18 -04:00
Zed A. Shaw
94385b195d Mostly worked out how to do looting but now need how to take out of inventory and put into loot. 2025-06-07 00:11:29 -04:00
Zed A. Shaw
c509162be1 The event router is working well and I can do drag-n-drop but I'll have to rethink where to use it. 2025-06-05 23:31:38 -04:00
Zed A. Shaw
5aa54d875f Initial first steps in pulling the SFML event processing out of the gui::fsm so that I can handle more complex things like drag and drop. 2025-06-05 01:23:52 -04:00
Zed A. Shaw
0674908e49 Implemented an initial cut at the event router. Its job is to take the random events from SFML and translate them into nice clean orderly events to the Gui::FSM. 2025-06-04 12:19:24 -04:00
Zed A. Shaw
5c47a0151c Basic loot UI mostly working. Each time you open there's a torch and you can place it visually on any slot on your character. 2025-06-03 13:43:16 -04:00
Zed A. Shaw
b8d2d1870d Clean up the debug UI so that it's not using the jank debug component I didn't use anyway. 2025-06-01 11:10:25 -04:00
Zed A. Shaw
0eb245d113 Working on a better character view. 2025-05-16 01:22:12 -04:00
Zed A. Shaw
d6e64dd06b The log is now moved to the map, but changing StatusUI caused a weird compiler error so need to remove logs from that separate. 2025-05-16 00:43:45 -04:00
Zed A. Shaw
a2246d2b71 Move the map_view and mini_map into gui as well. 2025-05-16 00:07:24 -04:00
Zed A. Shaw
bed5ce22d2 Move gui_fsm to fsm but this causes some problems. 2025-05-15 23:54:59 -04:00
Renamed from gui/gui_fsm.hpp (Browse further)