In order to fix some API inconsistencies, improve the quality of the API, and to make life easier for devs, some API breaks will be coming really soon. This thread will detail them and why they are being made and provide some simple guidance for people who need to update their code.
1.
When your code doesn't compile, simply add another parameter, false, to the aforementioned function calls, and you will have the exact same behavior as before. This will just tell the API you don't want overlapping items, which was the original inconsistent behavior for those functions. The main driver for this change was more ease of use for inventory sorting and management.
<Additional entries will be added when they are ready>
1.
- The default behavior of placing items from the cursor was inconsistent. This has been fixed by making the default behavior allow placing items over other items, but in order to not break existing logic, API breaking changes had to be made.
- StashPanel/InventoryPanel/GuildStashPanel.PlaceFromCursor function signature changed. It now takes a bool, allowOverlap that allows users to specify if placing items over other items is allowed.
- Inventory.CanFitItemAt function signature changed. It now takes a bool, allowOverlap that allows users to specify if placing items over other items is allowed.
When your code doesn't compile, simply add another parameter, false, to the aforementioned function calls, and you will have the exact same behavior as before. This will just tell the API you don't want overlapping items, which was the original inconsistent behavior for those functions. The main driver for this change was more ease of use for inventory sorting and management.
<Additional entries will be added when they are ready>