Page 1 of 1
[Request] Level Display Widget...
Posted: 16 Oct 2007, 18:43
by Forboding Angel
/me looks at bighead
I need a widget for my mod that can read an FBI tag (arbitrary tag, not a tag that actually has a purpose outside of this widget), and display the contents above the units healthbar.
For example:
Level=4;
I want the number 4 to be displayed somewhere around the healthbar.
Could someone do this, pretty please? I need it somewhat badly.
Posted: 16 Oct 2007, 23:00
by Nemo
Does it have to be a FBI tag? It would probably be easier to do this with a script/lua link or pure LUA (ie, if unitname=X, draw a 4 overtop of all of them). Or just script if you wanted (although then you'd have to model a '4' onto the unit).
Posted: 16 Oct 2007, 23:19
by imbaczek
it's going to be supereasy in the next version, the whole tdf parser was rewritten in Lua.
Posted: 16 Oct 2007, 23:26
by Forboding Angel
Sadly, yes, it would need to be a FBI setting.
In a majority of my upgrades it only the weapon (more specifically, the crystal prism through which the weapon is fired).
Posted: 17 Oct 2007, 02:35
by trepan
I added something to 0.75b1 that should already make this easier,
the FBI customParams section. Add "key=value;" to that section,
and read them from lua using: UnitDefs[12].customParams.key
Note that both key and value are strings, there is no automatic
number conversion for values that look like numbers,
Posted: 17 Oct 2007, 07:54
by BigHead
/me needs to prepare for his java business process management presentation (work) and human resource management midterm test (university) while going to both work and school.
However with trepans new information on customParams and by borrowing some code from build eta widget (displaying text above a unit

) this shouldn't take much time to complete. I can't promise you anything for next 6 days. Still there are others who might be able to help.
Posted: 17 Oct 2007, 14:58
by Forboding Angel
hey dude, I'll take whatever I can get, whenever I can get it
