HeroEngine Forums
Welcome, Guest. Please login or Register for HeroCloud Account.

Author Topic: How to set up Icon System  (Read 1543 times)

Amarak

  • General Accounts
  • *
  • Posts: 281
    • View Profile
How to set up Icon System
« 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. :)
Logged

Thazager

  • General Accounts
  • *
  • Posts: 1144
  • Never stop learning
    • View Profile
    • Heroes and Villains MMORPG
Re: How to set up Icon System
« Reply #1 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.
Logged

Jrome90

  • General Accounts
  • *
  • Posts: 330
    • View Profile
Re: How to set up Icon System
« Reply #2 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


Logged

Amarak

  • General Accounts
  • *
  • Posts: 281
    • View Profile
Re: How to set up Icon System
« Reply #3 on: Apr 30, 15, 09:42:14 AM »

Thanks, that gives me a place to start! :)
Logged