LucasArts style status bar

Started by Erica McLane, Mon 26/05/2003 13:43:21

Previous topic - Next topic

Lt. Smash

this is oldstyle code. And I assume you are using one of the latest 3.xx AGS versions. So your code needs to be translated.
Quote
if (mouse.Mode == eModeWalkto) lblName.Text = "Go to @OVERHOTSPOT@";   //here you must access the label through its name property, set in the gui editor.
  if (mouse.Mode == 1) lblDifferentLabel.Text = "Look at @OVERHOTSPOT@";
  if (mouse.Mode == 2) lblDifferentLabel.Text = "Interact with @OVERHOTSPOT@";
  if (mouse.Mode == 3) lblDifferentLabel.Text = "Talk to @OVERHOTSPOT@";
  if (mouse.Mode == 4) {
    lblDifferentLabel.Text = String.Format("Use %s with @OVERHOTSPOT@", player.ActiveInventory.Name);
  }

Tigga

#41
heythanks Lt.Smash

but i still got problems...

the "lblName.Text" i change to LabelText1.Text and the error output jumps to line 61

1. i have to create a lable for each mouse mode?
    i thought i only need one lable where the message "walk to..." or "talkt to..." just switch, or change
    why i have to creat more labels?

...

i replaced all lbl.differentlabel.text withe my LabelText1.text

now it works...mmm why there stand Differentlabel. did i something wrong, and get problems later?
thanks

btw, how can i change the font-size in code for the game?

Lt. Smash

yeah true, doesn't make sense to use two labels but in the code you gave me there were 2 labels in use.

I think its not possible to change font size via code. You have to import a different font. Or import a ttf and set its font size at import.

SMF spam blocked by CleanTalk