displaying variables as GUI labels

Started by Captain Mostly, Thu 05/06/2003 22:16:37

Previous topic - Next topic

Captain Mostly

how do I display one of my ints (declared in the global script) as a GUI lable?

Proskrito

if, in example, you want to display the value of the variable "myvar" in the label #5 of your GUI called MYGUI:

string buffer;
StrFormat(buffer,"the value is %d",myvar);
SetLabelText(MYGUI,label,buffer);

Captain Mostly

#2
I can't work out how to change the names of GUI's (they're all "GUI 0", "GUI 1" etc)...

in fact, I can't work out how to delete GUI's (although I guess this probably isn't really neccessary as I could just set them to inactive...)

Proskrito


Captain Mostly

THANKS! (oops, shouldn't have edited my last post when I did!)

Captain Mostly

ALSO: I got it all sorted now thanks!!!!!


:)

TerranRich

Try not to double post. ;) I see you've been doing it quite often lately. Thanks.

* terranRICH gets out the whip and chains.

:o
Status: Trying to come up with some ideas...

SMF spam blocked by CleanTalk