1. Are you planning to upload your awesome spell or system to Hive? Please review the rules here.
    Dismiss Notice
  2. Music Contest #10 - Results are finally published! Drop by to check some retro songs and congratulate the winners!
    Dismiss Notice
  3. Join Terraining Contest #19 and witness the aftermath!
    Dismiss Notice
  4. The 3rd Melee Mapping Contest is ON! Join in on a ride of a 4v4 melee experience!
    Dismiss Notice

Inventory & Equipment UI System v1.4.3

Submitted by TriggerHappy
This bundle is marked as approved. It works and satisfies the submission rules.
This is an extended Inventory and Equipment system. It allows any unit to have an unlimited (or limited) amount of items in their inventory.

An inventory window will pop up where you can manage or equip your items. The window is overlay onto the current camera, so it doesn't take you away from gameplay.

There are many things to configure in the Inventory trigger.

Full documentation coming soon™

Changelog

changelog

v1.4.3
  • Updated texttag positions to fit on patches 1.29.1+.
  • The selector glow is no longer shown when the inventory is closed.
  • The selector glow now longer shows in the middle of the screen on items with no equipment slot.
v1.4.2
  • Unofficial quick fix version for broken Blizzard patch.
v1.4.1
  • The selection glow no longer shows for the equipment window if it's not open.
  • Fixed a bug where a line of the tooltip might get overwritten.
  • Updated some items to have colored names.
  • Improved tooltip formatting.
v1.4.0
  • Updated the UserInterface library to 1.0.6. This fixes a desync (should be desync-free now).
  • Redesigned the interface layout to be more practical and compact.
  • You may now Right-Click to equip an item.
  • When selecting an item it will highlight and so will the corresponding equipment slot.
  • When socketing an item you can confirm it through a dialog (to prevent accidental socketing).
  • Added a Drop button which allows you to drop items from your inventory.
v1.3.4
  • Added different terrain heights and water levels to the demo.
  • Set dummy units movement type to float.
v1.3.3
  • Updated the UserInterface library to 1.0.5. This allows the the UI to be displayed over water.
  • Improved the default tooltip design.
  • Updated PlayerUtils to 1.2.8.
v1.3.2
  • Fixed a potential TimerUtils leak.
  • Reduced the default tooltip line length to support lower resolutions.
  • Adjusted default player name position on the hero window.
  • Updated PlayerUtils to v1.2.7.
v1.3.1
  • Tooltip position is now dynamic. It will popup over the item you clicked (see screenshot).
  • Equipment window is now bigger by default.
  • Many more configuration options added to the equipment window.
  • Removed timer timeout increment in favor of a static value (UI_REFRESH_RATE).
  • Renamed and organized custom imports.
  • The character model dummy is now destroyed when the equipment window is destroyed.
  • Updated UserInterface to v1.0.4.
  • Updated PlayerUtils to v1.2.6.
v1.3.0
  • Rewrote DGUI library and renamed it to "UserInterface". Many improvements were made here which will be announced in a separate thread.
  • Bonus abilities now preload properly, removing the initial lag when equipping an item.
v1.2.1
  • Number of sockets is now displayed in the tooltip.
  • Started rewrite of DGUI library.
  • Fixed a bug that could cause the removed gem bonus amount to be wrong when unequipping.
  • Fixed a bug where the timer timeout could end up below the minimum.
v1.2.0
  • Implemented socketing system.
  • New item type "gem" which can be socketed into gear items for bonus stats.
  • Unit no longer has to have vision of the inventory dummy units to be able to see it (dummies have sight now).
  • Fixed a potential desync in multiplayer.
v1.1.0
  • Added the option for items to have randomized stat values.
  • Implemented a parsing system which allows you to initialize items through a string.
  • Fixed a bug where items that added abilities when acquired (not equipped), wouldn't be removed.
  • Fixed a new bug (from v1.0.5) that wouldn't hide icons when switching pages.
v1.0.5
  • Added function "HERO_WINDOW_NAME" where you can configure what name is displayed in the equipment window.
  • onEquip/onUnequip are initialized to null to prevent a thread crash when they aren't used.
  • Moved equip/unequip event execution to their respective methods (opposed to on click functions).
  • Moved UnitDex check from DGUI library to the inventory & equipment structs.
v1.0.4
  • Fixed an issue where items could disappear and the camera wouldn't follow the unit when switching bag pages.
v1.0.3
  • Dummy units are created per-player instead of per-instance (drastically reduce dummy count).
  • X/Y variables are no longer constant (dynamically move window location).
  • Can now specify scale for models in the preview window.
  • Organized code and modules. Tooltip is now a separate module.
Previews
Contents

Inventory & Equipment System v1.4.1 (Map)

Inventory & Equipment System v1.4.3 (Map)

Reviews
KILLCIDE
Extremely powerful system, and a great example of what your User Interface library can do. As I mentioned in that thread, the logic behind it is beyond me, but I do see the amazing potential and usefulness of having this system in the database. With...
  1. MasterHaosis

    MasterHaosis

    Joined:
    Sep 18, 2007
    Messages:
    1,099
    Resources:
    30
    Models:
    15
    Icons:
    13
    Maps:
    2
    Resources:
    30
    Keep working on such things, I am impressed. Good work + rep
     
  2. Eat_Bacon_Daily

    Eat_Bacon_Daily

    Joined:
    Jan 4, 2014
    Messages:
    434
    Resources:
    1
    Maps:
    1
    Resources:
    1
    THIS LOOKS AWESOME
     
  3. Nillere

    Nillere

    Joined:
    Aug 9, 2009
    Messages:
    219
    Resources:
    0
    Resources:
    0
    Holy crap. I've been waiting for something like this to come along for the past many years, and ever since I've started studying software development, I've wanted to create something like this.
    Well done mate, it's really bloody cool!
     
  4. Nestharus

    Nestharus

    Joined:
    Jul 10, 2007
    Messages:
    6,149
    Resources:
    8
    Spells:
    3
    Tutorials:
    4
    JASS:
    1
    Resources:
    8
    Make the UI thing standalone D:
     
  5. CHA_Owner

    CHA_Owner

    Joined:
    Feb 11, 2008
    Messages:
    799
    Resources:
    2
    Spells:
    2
    Resources:
    2
    Tested this and i am impressed myself when character screen is open it actually follows with you which is a game changer only real downsides were;

    1. bad lag when switching items from inventory to character and when first opening pages
    2. you can select 1 item multiple times really quickly and lags down game until you receive a fatal error

    Other than those points the system seems to be functioning correctly and the layout its pretty neat.
     
  6. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,511
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    I don't experience that at all, and neither has anyone I tested with.

    Try changing these values and let me know.

    Code (vJASS):

    // if true a timer will be ran to check selections
    // rather than the selection event. this is faster but
    // more cpu intensive. it also requires a hardcoded
    // delay otherwise buttons will be spammed.
    static constant boolean USE_LEFT_CLICK_TIMER = true
    static constant real LEFT_CLICK_TIMER_RATE   = 0.01
     
     
    Last edited: Feb 6, 2017
  7. CHA_Owner

    CHA_Owner

    Joined:
    Feb 11, 2008
    Messages:
    799
    Resources:
    2
    Spells:
    2
    Resources:
    2
    Discussed and it was my fault for not changing refresh rate once the rate was changed all lag was stopped and system works perfectly fine!
     
  8. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,511
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Updated, v1.0.3.
    • Dummy units are created per-player instead of per-instance (drastically reduce dummy count).
    • X/Y variables are no longer constant (dynamically move window location).
    • Can now specify scale for models in the preview window.
    • Organized code and modules. Tooltip is now a separate module.
     
  9. btdonald

    btdonald

    Joined:
    Dec 3, 2011
    Messages:
    349
    Resources:
    8
    Maps:
    1
    Spells:
    7
    Resources:
    8
    It makes me remember the old version resource in wc3c.net :D
     
  10. Emm-A-

    Emm-A-

    Joined:
    Jul 1, 2008
    Messages:
    1,313
    Resources:
    0
    Resources:
    0
    This looks awesome!
    One question about the Paladin screen shot: Shouldn't it be 18 dmg plus instead of 16 dmg? 8 str + 10 dmg .... ?
     
  11. DaneTheBeast

    DaneTheBeast

    Joined:
    Dec 11, 2014
    Messages:
    546
    Resources:
    1
    Maps:
    1
    Resources:
    1
    I don't even know how such a thing is possible so it's safe to say I'm more than impressed at this thing
     
  12. purparisien

    purparisien

    Joined:
    Jul 17, 2011
    Messages:
    392
    Resources:
    12
    Models:
    2
    Maps:
    10
    Resources:
    12
    This is amazing ! Really great job !
     
  13. Tleno

    Tleno

    Joined:
    Jul 6, 2008
    Messages:
    4,790
    Resources:
    2
    StarCraft II Resources:
    2
    Resources:
    2
    This is fantastic, never expected to see anything like this in Warcraft 3!
     
  14. Trokkin

    Trokkin

    Joined:
    Jan 23, 2015
    Messages:
    74
    Resources:
    1
    Tutorials:
    1
    Resources:
    1
    It is said, it's awesome.
    However I noticed a plenty of bugs here: when I'm switching pages in my inventory, camera unlocks from the character and then inv can dissapear from screen with cam movement; switching pages works only half of the times, and rolling up through the 10 pages made my inventory completely empty. Buttons lag sometimes, missing my click on something close to what I was going to click on.
    Also any object on the ground behind the inventory interrupts interaction with the inventory, which is kinda annoying because I get my hero deselected.
    Needs perfection strongly, until that it's cool to see but not to use.
     
  15. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,511
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    The camera / bag disappearing may be a new issue with 1.0.3 (lots was changed).

    The rest can be fixed by changing the configuration. Disable the timer if you want no delay on switching bag pages.

    I know there's no documentation yet, but read the configuration people.
     
    Last edited: Feb 7, 2017
  16. Syndra

    Syndra

    Joined:
    Mar 19, 2016
    Messages:
    50
    Resources:
    0
    Resources:
    0
    This is the best system I have ever seen! AWESOME WORK!!!
     
  17. TriggerHappy

    TriggerHappy

    Code Moderator

    Joined:
    Jun 23, 2007
    Messages:
    3,511
    Resources:
    22
    Spells:
    11
    Tutorials:
    2
    JASS:
    9
    Resources:
    22
    Updated, v1.0.4.
    • Fixed an issue where items could disappear and the camera wouldn't follow the unit when switching bag pages.
     
  18. dhguardianes

    dhguardianes

    Joined:
    Jun 19, 2011
    Messages:
    78
    Resources:
    13
    Models:
    10
    Skins:
    1
    Maps:
    2
    Resources:
    13
    i believe this is revolution for RPG :rolleyes:
     
  19. MouMou

    MouMou

    Joined:
    Apr 26, 2016
    Messages:
    415
    Resources:
    0
    Resources:
    0
    Whoever came up with this idea is a pure genius I must say5/5