x
ETF2L is looking for new Staff to recruit! Are you interested in supporting the league? Then click here for more details on what we can offer and how to apply! 

Forum

Colored HUd xhair

Created 5th September 2010 @ 14:56

Add A Reply Pages: 1

shank

vs

is it possible to color the HUD xhair??

kim

idd.

Yes. Use
“fillcolor” “R G B A” for ImagePanels
or
“fgcolor” “R G B A” for CTFLabels

shank

vs

plz explain :p i just use what povohat posted in his bag of secrets and want to make it green :D

kim

idd.

If you want it to be green this should work:

xHair
{
"controlName" "CTFLabel"
"fieldName" "xHair"
"visible" "1"
"enabled" "1"
"zpos" "1"

"xpos" "c-6"
"ypos" "c-6"
"wide" "12"
"tall" "12"

"font" "xHair"
"fgcolor" "0 255 0 255"
"labelText" "+"
"textAlignment" "center"
}

As you can see all I did was add fgcolor which determines the colour for CTFLabels.

Morphine

(Cat Enthusiast)
一一═デ︻

Here’s an colour chart with codes http://www.tayloredmktg.com/rgb/

The last 255 is transparency so leave it as is.

Here’s mine http://imgur.com/h6l3f.jpg

shank

vs

Thanks to both of you ;)

shank

vs

I was just playing with the xhair and i noticed
“labelText” “+”
so does that mean i can change the + to o or something else and i will have a o shaped xhair?

Rake

Lutunen
[hePPa]

Technically yes, but since it’s just a regular font o wont be perfectly round which is kinda bad. Also you would need to change wide, tall, ypos and xpos because the centered + is not in the same place as a centered o. But yeah, it does theoretically work. You can try to find a font with a perfectly round o and use that instead or something.

freshmeatt

‹Con›

Yes, you can experiment with it.

Piggeh

Poo
Poo

i haz question…
the povohat secret thingy works fine for me
i just cant get the crosshair bigger :S
how to do plz? :D

kim

idd.

Quoted from Piggeh

i haz question…
the povohat secret thingy works fine for me
i just cant get the crosshair bigger :S
how to do plz? :D

Go into ClientScheme.res and look for the xHair font which should look like this:

"xHair"
{
"1"
{
"name" "Courier"
"tall" "20"
"weight" "0"
"range" "0x0000 0x017F"
"outline" "1"
}
}

What you want to do is increase the tall value of the font and save it. If it cuts off ingame increase the wide/tall values of the xHair element in hudlayout.res

zipfel

PF

http://ozfortress.com/showthread.php?t=39640

pykow

I want to create this crosshair, but its a little bit hard to script this:

http://i52.tinypic.com/famnh4.png

can someone help me with this ;)
Thanks


Last edited by pykow,

kim

idd.

Quoted from pykow

I want to create this crosshair, but its a little bit hard to script this:

http://i52.tinypic.com/famnh4.png

can someone help me with this ;)
Thanks

Try using some of these:

"name"
{
"ControlName" "ImagePanel"
"fieldName" "TargetBGshade"
"xpos" "-1"
"ypos" "13"
"zpos" "-10"
"wide" "640"
"tall" "11"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
"fillcolor" "0 0 0 75"
"PaintBackgroundType" "0"
}

Mess around with the wide and tall values, basically what this’ll do is put a field that is filled with the fillcolor (set in RGBA) on your HUD. Just do multiple of these and you should be able to get the crosshair you want.

Add A Reply Pages: 1