Update 2023.04.10 New ItemProperty system


Updated resources:

  • SFI_SYSTEM
  • SFI_ITEMS_DATABASE
  • SFI_ITEMS
  • oInvControl
  • SFI_Licence
  • And Example resourses

I updated the system for creating item parameters.

I moved all enums from SFI_ITEMS to SFI_ITEMS_DATABASE because all changes to item parameters will now happen there. Default values are now specified in SFI_ITEMS. And in SFI_ITEMS_DATABASE all enums and item parameters are set. So, before upgrading, copy your parameters to any convenient place, import the new scripts, then return your item parameters and change them to the new format. Changing your current parameters to the new ones is not difficult. Below in the screenshot you can see the difference between the old method and the new one.

All places in the project where you used the "GetItemProp" function will have to change a little. You can use the project search function Ctrl + Shift + F ignoring the resources of the inventory itself. A screenshot for example below:


The parameters are now added to struct SFI_ItemProperty. You don't need to use the silly enum ITEM_PROPS anymore, just add parameters to this struct. I commented out the line for the example.


I also changed the folder structure of all my projects. They are now in a common folder called "Limekys". 


I also updated the Documentation

Files

Super Flexible Inventory 2 2023.04.10.yymps 687 kB
Apr 10, 2023

Get Lime.Inventory.2

Buy Now$4.99 USD or more

Leave a comment

Log in with itch.io to leave a comment.