Can someone please show me a trigger which always show a specific unit's ability bar in down right side of screen like a tool bar?
U see, what i need is a new icon bar on my screen which contain Research and upgrades of an structure, so player wont need to keep click on it whenever he want to research a new upgrade!
you have to work with triggers and use a dialog with buttons. Since you only do research with it it will work nicely (need no target unit, only instant abilities are possible with dialogs).
took me 15 minutes. if you need research time and cooldown for the upgrades things become a bit more complicated but it is also doable.
i added my buttonPressed trigger with best practices (at least for me) to prevent bugs or abuse.
if you want proper tooltips (red minerals i. e.) you have to update the tooltips of all buttons every time your minerals change. the size of the icon can be changed too, also fonts etc to match exactly the button ones.
Hey everyone,
Can someone please show me a trigger which always show a specific unit's ability bar in down right side of screen like a tool bar? U see, what i need is a new icon bar on my screen which contain Research and upgrades of an structure, so player wont need to keep click on it whenever he want to research a new upgrade!
Thanks in Advance!
@ahrimansiah: Go
you have to work with triggers and use a dialog with buttons. Since you only do research with it it will work nicely (need no target unit, only instant abilities are possible with dialogs).
can u please show me an example?
took me 15 minutes. if you need research time and cooldown for the upgrades things become a bit more complicated but it is also doable. i added my buttonPressed trigger with best practices (at least for me) to prevent bugs or abuse.
if you want proper tooltips (red minerals i. e.) you have to update the tooltips of all buttons every time your minerals change. the size of the icon can be changed too, also fonts etc to match exactly the button ones.
thanks alot pal! ^^