Commit Graph
17 Commits
Author SHA1 Message Date
AMay 30a5cdc488 Correct memory leak in consuming items from inventory. Added overworld menu layout. Warrior Up walk animation has head bobbing like all the others now. Fixed alignment of items for ScrollableWindowComponents, fix scrollbar resizing when parent component has offsets. 2023-11-11 17:31:53 -06:00
AMay 67a5288984 Implement error-handling (file names and locations) via std::source_location and added CRT debugging memory leak detection. 2023-11-11 00:54:50 -06:00
AMay 2e248e30b4 Converted boolean flags for component creation in windows to using enum bitwise attributes. 2023-11-06 01:00:17 -06:00
AMay fe8cbb022a Fixed inventory window display bugs using old parent position code for rendering. 2023-11-04 23:02:00 -05:00
AMay b702fa2fe5 Add main menu window interface outlines. Fixed menu labels not being centered properly. 2023-10-20 22:49:12 -05:00
AMay e9952ca1be An inventory scrollable component window should not be the same as an inventory window as they would layout things differently. Separated into proper hierarchy.
Co-authored-by: sigonasr2 <sigonasr2@gmail.com>
2023-10-18 18:07:10 +00:00
AMay 46462a24e7 Refactor inventory window so the scrollable consumable window now subscribes to a listener.
Listener list system removes the arbitrary requirement of components needing to be called "inventory" (very error-prone)
2023-10-18 16:06:08 +00:00
AMay 04d6f42526 Handled dynamic adding and removing of inventory items and syncing with menu systems. 2023-10-17 05:35:19 -05:00
AMay ff3f4ba1c0 Setup framework for scrollbar and buttons in ScrollableWindowComponent. Fixed a bug where disabled buttons would not increment selection check loop. CreateMenu function instead of creating pointer and returning, so windows can add stuff to menus easily. 2023-10-15 12:58:39 -05:00
AMay 1c4ec84d75 Implement dummy items and scrollablewindowcomponent setup 2023-10-12 18:35:45 -05:00
AMay e3d0283fcb Prepare framework with Draw and DrawDecal split. 2023-10-11 19:50:12 -05:00
AMay dd2ff24d85 Converted menu storage to pointers. 2023-10-11 16:20:07 -05:00
AMay 461265a8a4 Added label, text, and quantity descriptions for all items on the inventory menu. 2023-10-07 19:06:56 -05:00
AMay 5903692dbb Fix null checks. Inventory display window setup. Ready for draggable interface. 2023-10-07 16:26:03 -05:00
AMay 99c24b9c37 Setup internal menu components so they know what button was clicked on a menu function. Compacted the on click menu function for menu buttons.
Refactored some item convenience functions.
2023-10-07 15:47:26 -05:00
AMay 819f5845b1 Swap item slot function implemented. 2023-10-07 13:49:32 -05:00
AMay fe6737117d Inventory Add,Remove,Use Management functions implemented. 2023-10-07 13:33:27 -05:00