Home   Help Search Login Register  

Author Topic: Creating a HUD (like in Quake etc)  (Read 1443 times)

0 Members and 1 Guest are viewing this topic.

Demoniac

  • Guest
Creating a HUD (like in Quake etc)
« on: 24 Oct 2002, 18:09:23 »
I am busy with a multiplayer HTF (hold the flag - take the flag and run around for as long as possible) mission, and I'd like to show some statistics (health, score etc) in some kind of HUD-bar. Does anybody have an idea how to do this?

Gameer_77

  • Guest
Re:Creating a HUD (like in Quake etc)
« Reply #1 on: 24 Oct 2002, 18:26:09 »
Sure, it can be done through Dialogs.

Check out the post on the same forum.  :)

 8)PEACE

Offline uiox

  • Contributing Member
  • **
Re:Creating a HUD (like in Quake etc)
« Reply #2 on: 25 Oct 2002, 19:28:58 »
Dialog has a problem action is stop and mouse too..

Use hint and \n for carriage return...
and format of course...

Something like :
_StrHealth = format  ["%1",getdamage player1]
_StrScore = format [".....

_Infos = "Health  = " + StrHealth +"\n"
_Infos = _Infos + "Score = " + StrScore

Hint _Infos

Gameer_77

  • Guest
Re:Creating a HUD (like in Quake etc)
« Reply #3 on: 25 Oct 2002, 22:06:09 »
Actually, if he was to use rsctitles then he would retain control. Don't know what the limitations are though.

 8)PEACE

vektorboson

  • Guest
Re:Creating a HUD (like in Quake etc)
« Reply #4 on: 26 Oct 2002, 01:18:29 »
Actually, if he was to use rsctitles then he would retain control. Don't know what the limitations are though.

 8)PEACE

RscTitles does not allow to use ctrlSetText. This is only  available to dialogs!

The only possibility that I see, without testing, is a custom resource.bin where you add some custom controls to the OFP dialogs and use ctrlSetText on them.

Gameer_77

  • Guest
Re:Creating a HUD (like in Quake etc)
« Reply #5 on: 26 Oct 2002, 20:41:24 »
Dagnabit!  >:(

I really do need to experiment with dialogs more, stupid me  ::)

 8)PEACE