HeroEngine Forums

HeroEngine Support => GUI Creation => Topic started by: Amarak on Apr 28, 15, 11:59:50 PM

Title: How to set up Icon System
Post by: Amarak on Apr 28, 15, 11:59:50 PM
I've been messing with the Icon System and I'm not sure the proper method of setting up the GUI. For example, do we make an Inventory GUI that is a child of _GUIIconContainer? And if so, do we use _GuiIcon(s) in what would be the Icon space? I'm just looking for the general order of the steps to set this up. :)
Title: Re: How to set up Icon System
Post by: Thazager on Apr 29, 15, 07:05:21 PM
I looked through at one time, but was also not able to understand the depth of detail that is involved in the coding, so basically I wrote my own code that I could easily change when I needed to.
Title: Re: How to set up Icon System
Post by: Jrome90 on Apr 29, 15, 11:21:33 PM
I've been messing with the Icon System and I'm not sure the proper method of setting up the GUI. For example, do we make an Inventory GUI that is a child of _GUIIconContainer?

The slot that holds an icon uses the class "_GUIIconContainer"

At some point the method in "_GUIIconContainer":  _PutIconInContainer() is called to place the icon into the slot.

 
And if so, do we use _GuiIcon(s) in what would be the Icon space? I'm just looking for the general order of the steps to set this up. :)
The _GUIIcon Class would be the parent class of your Item Icon Class

_ItemIconInterface should be added as a parent class to your Item Class


Title: Re: How to set up Icon System
Post by: Amarak on Apr 30, 15, 09:42:14 AM
Thanks, that gives me a place to start! :)