Unwanted Underscore in Text Label (SOLVED)

Started by Reaper, Tue 17/10/2006 18:25:14

Previous topic - Next topic

Reaper

I made a Textlabel in a GUI that follows the Cursor.
gLblhotspot is the name of the GUI.
lblHotspot ist the name of the textlabel.

Code: ags

function repeatedly_execute() {
  gLblhotspot.SetPosition(mouse.x, mouse.y);
  lblHotspot.Text = Game.GetLocationName(mouse.x, mouse.y);
}


This works, but at the end of the text, an underscore is always displayed.

e.g: tree_ (when cursor is over a tree)

I use imported fonts, but the problem also occurs with the standard fonts. In other text (textwindow, dialogs) the underscore does not appear.

monkey0506

Are you sure you're using a Label and not a TextBox?

Reaper

*Kick me I'm stupid*

Problem solved

monkey0506

It's okay. Everybody makes mistakes sometimes. 8)

Glad I helped get it sorted out.

SMF spam blocked by CleanTalk