So im wondering is there a way to add html or variables to the text part of the label interface code like
winset(usr,"stats",'text="Health:[usr.health]"')
or
winset(usr,"stats",'text="Health:100
this is your health"')
just wondering cause i wanted to try to save myself some time with a large amount of descriptions i'll have for sum labels
ID:1521593
Mar 18 2014, 5:48 am
|
|
Mar 18 2014, 5:57 am
|
|
Labels don't support HTML, but you could always use a browser control or output control, both of which support HTML (and the faster output() method of displaying text).
|
What about it? You can output things just like you would anywhere else.
src << output("Hello [src.name], your health is [src.health].","mywindow.myoutput") |
You'd have to write a proc to update the labels as the variables change, or a loop that keeps it updated (not recommended).
|