changing the HUD.

Dodo

Tank
Joined
Aug 30, 2004
Messages
2,140
Reaction score
0
hi,
im having trouble putting the ammo count to the right side of the screen. even when i set the "xpos" and the "ypos" to "0" it stays in the same place. And setting the how tall and wide the ammo bar is doesnt change it. aslo i cant make the background transparent, PaintBackgroundType?..
thanks

problem.jpg


-dodo
 
im changing the .txt file in the resource folder.

-dodo
 
Hmm. You could force it in the code. In the object that defines it, add something like "this->setxpos()" or something. I can't remember the exact command, but you can override the resource files.

-Angry Lawyer
 
hmm, so youre saying it isnt possible setting the ammo to the left side of the screen with the .txt in the resource folder ?

-dodo
 
I'm assuming you've buggered something up. Changing the txt (I'm sure it was a .res, actually) should do it.

-Angry Lawyer
 
hmmm, ill try this...

HudAmmo
{
"fieldName" "HudAmmo"
"xpos" "0"
"ypos" "400"
"wide" "136"
"tall" "36"
"visible" "1"
"enabled" "1"

"PaintBackgroundType" "2"

"text_xpos" "8"
"text_ypos" "20"
"digit_xpos" "44"
"digit_ypos" "2"
"digit2_xpos" "98"
"digit2_ypos" "16"

-dodo

edit: nope, nothing happend

ill try it with this

HudAmmo
{
"fieldName" "HudAmmo"
"xpos" "16"
"ypos" "400"
"wide" "136"
"tall" "36"
"visible" "1"
"enabled" "1"

"PaintBackgroundType" "2"

"text_xpos" "8"
"text_ypos" "20"
"digit_xpos" "44"
"digit_ypos" "2"
"digit2_xpos" "98"
"digit2_ypos" "16"
 
me too. you should just need to change the .res file if your all your doing it is moving it?
 
i know, i know. but it doesnt move !! its soo f***ing annoying.

-dodo

edit:
Dodo said:
edit: nope, nothing happend

ill try it with this

HudAmmo
{
"fieldName" "HudAmmo"
"xpos" "16"
"ypos" "400"
"wide" "136"
"tall" "36"
"visible" "1"
"enabled" "1"

"PaintBackgroundType" "2"

"text_xpos" "8"
"text_ypos" "20"
"digit_xpos" "44"
"digit_ypos" "2"
"digit2_xpos" "98"
"digit2_ypos" "16"
didnt work. it still sits there on the right side of the screen.
 
its a single player mod, does that make a diffrence ?

-dodo
 
Just browse through the code, see where the .res values are loaded, and if they're not changed afterwards. Wouldn't be the first time they hardcoded stuff ;)
 
Back
Top