How can a label display a string or a value returned by a function?

Started by degustibus, Thu 23/12/2004 13:44:51

Previous topic - Next topic

degustibus

I'd want a label on a GUI to display the name of the item selected in the list
How can I do this?
I thought to use game.inv_activated to get the number of the item clicked and then to use GetInvName to get the item name
But how can a label display the item name?

Can I make an inventory with a list of the item names instead of their icon???
I'd also want that the player could choose one of these items by clicking to see the informations about it in a label...

Ishmael

Look into SetLabelText text script command. It lets you set the text of a GUI label, and to format the text to your liking use StrFormat text script command.
I used to make games but then I took an IRC in the knee.

<Calin> Ishmael looks awesome all the time
\( Ö)/ ¬(Ö ) | Ja minähän en keskellä kirkasta päivää lähden minnekään juoksentelemaan ilman housuja.

SMF spam blocked by CleanTalk