PDA

View Full Version : Hud element



buLLeT_
31st March 2019, 07:39
I have a problem with XP Bar, at a resolution 1920 * 1080 images(hud_xpticker480) is not over the entire screen

1593


menuDef
{
name "xpbar"
fullScreen MENU_FALSE
visible MENU_TRUE
rect 0 -8 640 480 HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN

itemDef
{
style WINDOW_STYLE_SHADER
rect 1 1 64 6 1 3
origin 0 0
background "hud_xpticker480"
forecolor 1 1 1 0.75
visible MENU_TRUE
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 64 1 64 6 1 3
origin 0 0
background "hud_xpticker480"
forecolor 1 1 1 0.75
visible MENU_TRUE
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 128 1 64 6 1 3
origin 0 0
background "hud_xpticker480"
forecolor 1 1 1 0.75
visible MENU_TRUE
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 192 1 64 6 1 3
origin 0 0
background "hud_xpticker480"
forecolor 1 1 1 0.75
visible MENU_TRUE
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 256 1 64 6 1 3
origin 0 0
background "hud_xpticker480"
forecolor 1 1 1 0.75
visible MENU_TRUE
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 320 1 64 6 1 3
origin 0 0
background "hud_xpticker480"
forecolor 1 1 1 0.75
visible MENU_TRUE
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 384 1 64 6 1 3
origin 0 0
background "hud_xpticker480"
forecolor 1 1 1 0.75
visible MENU_TRUE
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 448 1 64 6 1 3
origin 0 0
background "hud_xpticker480"
forecolor 1 1 1 0.75
visible MENU_TRUE
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 512 1 64 6 1 3
origin 0 0
background "hud_xpticker480"
forecolor 1 1 1 0.75
visible MENU_TRUE
decoration
}
itemDef
{
style WINDOW_STYLE_SHADER
rect 576 1 64 6 1 3
origin 0 0
background "hud_xpticker480"
forecolor 1 1 1 0.75
visible MENU_TRUE
decoration
}

}

IzNoGoD
31st March 2019, 09:44
Start your rect at 0 0, and make sure you finish at (640-64) 0, if you use 64 lenght parts.

Dont use the 1 3 at the end of rect, use the HORIZONTAL_ALIGN_FULLSCREEN VERTICAL_ALIGN_FULLSCREEN instead.