Q about labels

Started by Redwall, Mon 22/12/2003 22:44:14

Previous topic - Next topic

Redwall

In repeatedlyexecute() I have:

string location;
GetLocationName(mouse.x,mouse.y,location);
SetLabelText(0,0,location);

Now, I would think that would make Label Object 0 of GUI 0 display the location the mouse cursor is currently at. However, it doesn't seem to display anything. I've tried it with objects and hotspots. I think I must be missing something really obvious. Any help please?
aka Nur-ab-sal

"Fixed is not unbroken."

Wolfgang Abenteuer

It should work.  I just tested something like that and it worked for me.  Maybe instead of declaring the string in the repeatedly_execute part of the script you should declare it at the beginning of the script instead?  Also make sure that your label font colour isn't the same as the GUI background colour.  Otherwise, it should work just the way you have it.

~Wolfgang

Redwall

I have it working now. It seems that the reason it wasn't displaying was that I had set the GUI with the label to mouse.x and mouse.y, which for some reason made it not appear.
aka Nur-ab-sal

"Fixed is not unbroken."

SMF spam blocked by CleanTalk