35 Commits

Author SHA1 Message Date
6412f34dce Implemented Merchant Selling Screen 2023-12-26 01:54:14 -06:00
25dd39b60a Setup Sell Layout for merchant screen. 2023-12-25 21:25:22 -06:00
a26d86d0b0 Separate GetTextSize and GetWrappedTextSize functions for clarity. Fix sizing comparisons for wrapping text. Fixed issue with menu destinations not properly being assigned on certain buttons. 2023-12-21 10:26:18 -06:00
eae8239501 Traveling Merchant Purchase Window and systems implemented. 2023-12-19 18:46:59 -06:00
71fe49162d Added Merchant/Buy/Sell Menu windows. Added sorted item callbacks for traveling merchant inventory modifications. 2023-12-19 17:10:04 -06:00
cb09825455 Added money display to inventory GUI. Corrected inventory amounts displaying incorrectly in inventory menus (references to other items fixed). Added MenuIconButton appearance flags to disable outlines/backgrounds 2023-12-18 00:34:10 -06:00
f3bfa81198 Created additional item icons for Item Database. Added Traveling Merchant config lists 2023-12-17 17:46:49 -06:00
57377823c5 Fixed menu label updates for row item displays. Added a row scrollable inventory window component. Made InventoryScrollableWindowComponent more modular with a couple overrideable functions. 2023-12-17 00:44:22 -06:00
7a46f79f2b Fix Perspective correction on ViewPort PGEX. Implement windowing system and remove sprite reliance from all menu components. 2023-12-14 04:18:05 -06:00
e4c777f60a Fixed item quantities being gone from decal versions of MenuItemItemButton components. 2023-12-12 05:41:44 -06:00
5abc789bcd Added hover button functionality to MenuItemButton component and to InventorySrollableWindowComponent item buttons created via that component. Implemented inventory screen. 2023-12-12 05:20:51 -06:00
e4f63a3550 Change implementation of scrollable inventory component displays, make tabs on inventory window functional. 2023-12-10 23:02:16 -06:00
469bea4c5e Inventory display window tabs are implemented, inventory component is displayed. Ranger Backstep cancels casts. Casts are forced to be channeled for 0.2 seconds before walking can cancel them, 2023-12-10 20:14:32 -06:00
e744112206 GUI template/macro usage refactor. 2023-12-10 19:14:37 -06:00
f427928ca6 Implemented Loadout selection item buttons, corrected inventory window missing category variables, corrected loadout item selection logic, updated inventory window layout. 2023-11-14 23:20:13 -06:00
2bf45dacef It's 2023 btw 2023-11-14 18:12:54 -06:00
dd531d1fd7 Apply OLC-3 License to all source files. 2023-11-14 18:11:32 -06:00
1bf30f4392 Added ability to select a loadout item from the inventory menu screen. 2023-11-13 21:26:34 -06:00
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
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
2e248e30b4 Converted boolean flags for component creation in windows to using enum bitwise attributes. 2023-11-06 01:00:17 -06:00
fe8cbb022a Fixed inventory window display bugs using old parent position code for rendering. 2023-11-04 23:02:00 -05:00
b702fa2fe5 Add main menu window interface outlines. Fixed menu labels not being centered properly. 2023-10-20 22:49:12 -05:00
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
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
04d6f42526 Handled dynamic adding and removing of inventory items and syncing with menu systems. 2023-10-17 05:35:19 -05:00
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
1c4ec84d75 Implement dummy items and scrollablewindowcomponent setup 2023-10-12 18:35:45 -05:00
e3d0283fcb Prepare framework with Draw and DrawDecal split. 2023-10-11 19:50:12 -05:00
dd2ff24d85 Converted menu storage to pointers. 2023-10-11 16:20:07 -05:00
461265a8a4 Added label, text, and quantity descriptions for all items on the inventory menu. 2023-10-07 19:06:56 -05:00
5903692dbb Fix null checks. Inventory display window setup. Ready for draggable interface. 2023-10-07 16:26:03 -05:00
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
819f5845b1 Swap item slot function implemented. 2023-10-07 13:49:32 -05:00
fe6737117d Inventory Add,Remove,Use Management functions implemented. 2023-10-07 13:33:27 -05:00