About Store Forum Documentation Contact



Post Reply 
Custom draw rect for list
Author Message
Pherael Offline
Member

Post: #1
Custom draw rect for list
When I draw list as rects, it would be nice to have possibilty to customize what is draw as single rect.

For example, I have GUI where you selecting heroes from list. Now I have icons with their heads, but I want to add text with names and level below.

I know I can overwrite draw function for list, but as I understend, this will overwrite drawing everything with selecting rects, positions of elements, etc, etc.

Or maybe Esenthel, you could shere the code from the inside of function draw() for list.
09-08-2013 12:17 PM
Find all posts by this user Quote this message in a reply
Pherael Offline
Member

Post: #2
RE: Custom draw rect for list
I have magic items, and I would like somethink like aura or glow in backround in inventory.

Currently this is not possibile, without creaitng own GUI for list.

So, is possible to add custom image background (with transparency) when creaitng icons or add custom draw "rect" for list like in request above.
09-28-2013 06:59 PM
Find all posts by this user Quote this message in a reply
Esenthel Offline
Administrator

Post: #3
RE: Custom draw rect for list
Hi!

You'll have such functionality in next release.
use the new padding parameter, and new functions, and do:
Code:
virtual void draw(..)
{
  super.draw(gpc);
  if(visible..)
  {
    draw on top of visible elements
  }
}
10-30-2013 10:30 PM
Find all posts by this user Quote this message in a reply
Pherael Offline
Member

Post: #4
RE: Custom draw rect for list
Great! I was considering to write my own GUI for Inventory, but now I can use List! Thank you again Esenthel!
10-31-2013 05:46 PM
Find all posts by this user Quote this message in a reply
Post Reply