gui text box problem

Started by left, Sun 10/04/2005 16:44:01

Previous topic - Next topic

left

hi,

i have yet another problem, this time with my gui. I am trying to make a scrollable inventory which displays the name of the item the player has selected. The code bellow works but the name of the selected item does not appear until you have cosed and reopened the gui. Is there a better way of coding this, or maybe using someother text box or display function?

if (player.activeinv >=1) {       
Ã,  Ã,  Ã,  string buffer;Ã,        
GetInvName (game.inv_activated, buffer);
SetLabelText(0,5,buffer);
}
else {} //else do nothing

thanks

Ashen

Where have you put that code?
If your inventory GUI isn't popup-modal, it should work if it you put it in rep_ex. Alternatively, setting the label text to @OVERHOTSPOT@ should also work.
I know what you're thinking ... Don't think that.

SMF spam blocked by CleanTalk