Search Unity

[WIP][Asset] Sharp Inventory (Now with multislot)

Discussion in 'Works In Progress - Archive' started by rubensollie, Jul 15, 2014.

  1. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Sharp Inventory

    Current snapshot 12/08/14



    NEW WYSIWYG EDITOR:



    Sharp Inventory is an new style Inventory with items that can be any size you want. It is also very customizable.

    Current features:
    - Items in all kind of sizes
    - Auto resizing GUI to Screen Size
    - Slots don't have to be rectangular
    - Item objects don't require scripts
    - GUI is easily customizable
    - Multiple inventories possible
    - Blacklisting / Whitelisting Item Types in each inventory.
    - Maximum number of Item Types in each inventory
    - Stacking items
    - Bags
    - Editor Scripts
    - SendMessages

    Work In Progress:
    - Using items

    Comment if you would like to add an feature :)
     
    Last edited: Aug 19, 2014
  2. MichaelHF15

    MichaelHF15

    Joined:
    Mar 25, 2014
    Posts:
    50
    Looks pretty nice ;)
     
  3. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Thanks!, do you have any suggestions for me for things to add?

    Also I would like to know which price you guys think is right for this asset. I'm currently thinking about like 5 dollars or something, but i am not sure yet.
     
  4. MichaelHF15

    MichaelHF15

    Joined:
    Mar 25, 2014
    Posts:
    50
    I have a few ideas, want to add me on skype? I will even help you develop *free.*
     
  5. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Just submitted to the asset store, will be available for 5 dollars soon.
     
  6. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    I just made it possible to drag items from different inventory's:

     
    John-G likes this.
  7. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Sorry that the update took such a long time. I just wanted to let you guys know that I've implemented saving and loading in the inventory system. Also I am currently writing the documentation which will be visible here: http://sharpbyte.nl/documentation/sharpinventory/

    Greetings
     
  8. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
  9. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Does anyone has suggestions of what to add to the inventory?
     
  10. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,122
    Support for large items that take up more than 1 slot, and if possible rotation of item to organise items in inventory.
     
  11. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Yeah, I have thought about larger items, it's a thing I will try to add in the future. The hardest thing in that is to check if all the slots it need are free. I need to think some more about that.
     
  12. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Multislot is coming soon...
     
    John-G likes this.
  13. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Yeah!



    It is working for the most part already. Just got to fix some things :)
     
  14. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,122
    Looking great.
     
  15. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Yeah it's working better than i suspected. I have added rotating as well, just one bug with it yet...
     
  16. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Sorry for not updating the last two weeks, I am currently on an vacation in South France. I just wanted to let you know, that the multislot inventory is working great now. I will try to make another update soon...
     
  17. MrIntel

    MrIntel

    Joined:
    Jul 4, 2014
    Posts:
    43
    This is a great inventory i recommend making it so we can chose between walking by the item or pressing a key to pick it up.
     
  18. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36

    A quick snapshot
     
    John-G likes this.
  19. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,122
    Taking shape :)
     
  20. MrIntel

    MrIntel

    Joined:
    Jul 4, 2014
    Posts:
    43
    Looking nice any ETA when it will be released.
     
  21. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Not yet, I will need some time to polish it up, You can expect an release in the next two weeks though.
     
  22. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    New example:



    It is now possible to blacklist or whitelist item types in each inventory.
     
    John-G likes this.
  23. TrickHat

    TrickHat

    Joined:
    Jul 4, 2013
    Posts:
    2
    Good work :)

    I did a quick sketch of some suggestions, for a character inventory sheet for a RogueLike style survival game.

    See attached sketch below.

    Moving the mouse pointer over an occupied wearable container highlights it and switches the side inventory list to view that containers content (in the picture, the shoulder bag is currently active).

    When weapons are carried in containers, they take up a number of multislots depending on their size, like how you got working now in your system.

    However for compactness of the character sheet, weapons in hand, and secondary backup weapons hung from the shoulder/carried at the side, would only take up that respective slot in the primary or secondary weapon slot, just below the characters portrait (since they are not in pockets or bags), and their ammo would stack.

    Between these two primary and secondary weapon slots would be a button to quick swap the two weapons with a single click.

    If a wearable container is removed and placed on the ground, the items it is holding stay with it.

    If a wearable container is removed and placed into another wearable container, for example a coat is taken off and placed into a backpack, then the items that were in the coat should get dropped/emptied on the ground.

     
    Last edited: Aug 13, 2014
    rubensollie and John-G like this.
  24. Edwin F

    Edwin F

    Joined:
    Aug 5, 2014
    Posts:
    21
    Does this system have bags?
     
  25. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Not at the moment, but i'm working on it.

    I think this is do-able, I will update you with the progress :)
     
  26. GeneBox

    GeneBox

    Joined:
    Nov 15, 2012
    Posts:
    480
    Looking good!
     
    rubensollie likes this.
  27. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Thanks!

    First post is updated now,

    If you would like an new feature to be added, just comment! :p
     
    GeneBox likes this.
  28. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,122
    Cool, if you could also add the ability to move an item eg from a coat inventory by dragging it over to another inventory eg a backpack. So that when you hover the held item over the new inventory (Backpack container icon) it opens up to the right , so now you can drop the item your holding into that now opened inventory.
     
  29. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Hmm, could you draw a sketch for that?
    I do not understand it completely.

    Thanks
     
  30. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,122
    Basically drag and drop from one container into another.
     
  31. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Ahh okay, I think this is probably easily done. I just need to create an OnHover function.
     
  32. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36


    Bags are now included. To make an bag you just need to create an child on the item object with an Inventory script attached. When you hover over the "bag" it opens the inventory. I've also added that bags inside bags cannot contain items.
     
    John-G likes this.
  33. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    New webplayer demo:
    http://sharpbyte.nl/demo/sharpinventory/

    Press numbers 1 - 7 to add items

    Now contains bags and some animations.
    Pickup an bag, open the inventory and hover over the bag to open it.
     
    John-G likes this.
  34. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Update:

    - Added an new WYSIWYG inventory editor



    - Added an option to disable slots, so you can create custom type of inventories, instead of just rectangles



    - New Item Database Editor




    Automatically sets the amount of columns based on your screen size
     
    Last edited: Aug 18, 2014
    John-G likes this.
  35. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    What do you think:



    And the editor:



    Text alignment still has to be fixed though and I need to create an option to resize the items to 1x1 automatically.

    //Edit//

    Text alignment solved:

     
    Last edited: Aug 18, 2014
    John-G likes this.
  36. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,122
    Looking great, could you add an option to have either background graphic or as currently implemented text for slots. :)

    Also maybe a selector to have the text as either foreground or background.
    That is for example your image above shows the case blocking the shoulder bag text (default in background), if foreground is selected the text for shoulder bag is above the image.
     
  37. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Of course, I will add it now :)
     
  38. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    It has been implemented, any other things?
     
    John-G likes this.
  39. TrickHat

    TrickHat

    Joined:
    Jul 4, 2013
    Posts:
    2
    Nice:)

    Needs an arrow icon pointing from the currently opened container to the right where the inventory is displayed, to make it clear which container is currently selected and being displayed.

    A button between the weapon slots to quick swap the items between the Primary and secondary categories.
     
  40. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    I will try to find a convenient way to do this.

    For now, I have been working on the WYSIWYG editor :)
    It is done now with the result:

     
    John-G likes this.
  41. John-G

    John-G

    Joined:
    Mar 21, 2013
    Posts:
    1,122
    An option for a bottom bar quick select inventory, for quick selection of items linked to key press 0-9 would be nice also.
     
  42. rubensollie

    rubensollie

    Joined:
    May 14, 2013
    Posts:
    36
    Added an new extension for this purpose.
    - Sharp_QuickSelect added
     
    John-G likes this.
  43. gabrieltarzia

    gabrieltarzia

    Joined:
    Aug 13, 2017
    Posts:
    3
    plz i really need help to do this inventory system