I've been fiddling with a HUD crosshair I like all day but I just can't center it. I come close but it's like it's always off by approximately 1 or 2 px on both the x- and y-axis as you can see here:
http://i.imgur.com/KNvGqOP.jpg
I have played around with wide, tall, xpos and ypos but to no avail.
In hudlayout it looks like this:
"OmpCrosshairPlus"
{
"controlName" "CExLabel"
"fieldName" "OmpCrosshairPlus"
"font" "SymbolSharpOutline16"
"fgcolor" "0 255 0 255"
"labelText" "+"
"xpos" "c-100"
"ypos" "c-102"
"wide" "201"
"tall" "201"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
}
It's no problem centering it if I change the fontsize to 18 or 20 but that makes the crosshair too "fat".
How can I center it if I want the fontsize to be 16 or is it impossible to do so?
I've been fiddling with a HUD crosshair I like all day but I just can't center it. I come close but it's like it's always off by approximately 1 or 2 px on both the x- and y-axis as you can see here: [img]http://i.imgur.com/KNvGqOP.jpg[/img]
I have played around with wide, tall, xpos and ypos but to no avail.
In hudlayout it looks like this:
"OmpCrosshairPlus"
{
"controlName" "CExLabel"
"fieldName" "OmpCrosshairPlus"
"font" "SymbolSharpOutline16"
"fgcolor" "0 255 0 255"
"labelText" "+"
"xpos" "c-100"
"ypos" "c-102"
"wide" "201"
"tall" "201"
"visible" "1"
"enabled" "1"
"textAlignment" "center"
}
It's no problem centering it if I change the fontsize to 18 or 20 but that makes the crosshair too "fat".
How can I center it if I want the fontsize to be 16 or is it impossible to do so?
It's pretty much impossible. Iirc the hud elements were designed on 640x480 and then scaled up to other resolutions. This way even if you only change 1 pixel your crosshair will move by a bit more due to scaling(if you use a 16:9 res for ex.)
It's pretty much impossible. Iirc the hud elements were designed on 640x480 and then scaled up to other resolutions. This way even if you only change 1 pixel your crosshair will move by a bit more due to scaling(if you use a 16:9 res for ex.)
That's as good as it gets.
That's as good as it gets.
I figured as much...
Thanks for the help though.
I figured as much...
Thanks for the help though.
thats not true actually...
use different xpos ypos based on l and r
definitive pixel locations and varying widths will eventually get u a perfect result.
trust me
thats not true actually...
use different xpos ypos based on l and r
definitive pixel locations and varying widths will eventually get u a perfect result.
trust me
flamethats not true actually...
use different xpos ypos based on l and r
definitive pixel locations and varying widths will eventually get u a perfect result.
trust me
Care to elaborate? l and r = left and right?
[quote=flame]thats not true actually...
use different xpos ypos based on l and r
definitive pixel locations and varying widths will eventually get u a perfect result.
trust me[/quote]
Care to elaborate? l and r = left and right?
Technically you can adjust the wide and tall values. Decreasing the wide value by 1 = crosshair moves slightly left. Increase by 1 = crosshair moves slightly to the right. Same for the tall values, where decreasing moves it up and increasing moves it down.
Technically you can adjust the wide and tall values. Decreasing the wide value by 1 = crosshair moves slightly left. Increase by 1 = crosshair moves slightly to the right. Same for the tall values, where decreasing moves it up and increasing moves it down.
As stated in the post I tried that already resulting in the crosshair being slightly too much to the left/right etc.
As stated in the post I tried that already resulting in the crosshair being slightly too much to the left/right etc.