Home   Help Search Login Register  

Author Topic: Putting Info On-Screen?  (Read 489 times)

0 Members and 1 Guest are viewing this topic.

Zazoo

  • Guest
Putting Info On-Screen?
« on: 11 Mar 2004, 05:05:05 »
I have a script that spits out some data about the enemy forces and their positions. I need to put this data on the screen for the player to see. I know that there are commands for displaying  text (Hint, TitleText, etc) and at present I'm using the, but none of these are suitable.

Using a text resource class would be perfect because I get all the control I want (color, positioning, etc), but as far as I can tell the text property can't be changed during the mission (which is useless because I need to have variable info output to the screen).

With a dialog containing a text resource I can change the text using the ctrlSetText command, but when I use a dialog the in-game action is frozen until the player cancels the dialog (again, useless since the info is updated each second). And if I pop-up the text resource without using a dialog (i.e. via "titleRsc") the ctlSetText command doesn't work... ARGGG!

This seems like it would be easy, but I've looked everywhere and still can't find the answer.

I just need someone to point me in the right direction (or tell me that it CAN'T be done so I can wasting my time  ;D)
Thanks again,
~Mike


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Putting Info On-Screen?
« Reply #1 on: 11 Mar 2004, 10:05:36 »
You need the command format.

Check the online command reference for examples.
Plenty of reviewed ArmA missions for you to play

Zazoo

  • Guest
Re:Putting Info On-Screen?
« Reply #2 on: 12 Mar 2004, 11:09:16 »
Sorry, I should have been clearer with my question.
I know how the format command works. Getting the data into string format isn't my problem, getting it to show up on screen (without using hint, titleText or any of the other standard methods) is what I'm having trouble with.

I want to be able to pop the text up on the top right hand side of the screen every few seconds.
building a rscText class allow me to do this, but the problem with this method is that I have to define the text when I create the class and I can't figure out how to change the text that's in that class during the game.

Thanks,  :)
~Mike


Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:Putting Info On-Screen?
« Reply #3 on: 12 Mar 2004, 11:12:04 »
Ah, yes I see.    

No idea, I'm afraid.
Plenty of reviewed ArmA missions for you to play