Results 1 to 2 of 2

Thread: Hud element

  1. #1
    Private
    Join Date
    Feb 2018
    Posts
    28
    Thanks
    12
    Thanked 17 Times in 16 Posts

    Hud element

    I have a problem with XP Bar, at a resolution 1920 * 1080 images(hud_xpticker480) is not over the entire screen

    Click image for larger version. 

Name:	Untitled.jpg 
Views:	21 
Size:	6.7 KB 
ID:	1593

    Code:
    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 
    		} 
    
    	}

  2. The Following User Says Thank You to buLLeT_ For This Useful Post:

    kung foo man (31st March 2019)

  3. #2
    Assadministrator IzNoGoD's Avatar
    Join Date
    Aug 2012
    Posts
    1,718
    Thanks
    17
    Thanked 1,068 Times in 674 Posts
    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.
    "Does not work" is an error report for a bug between keyboard and chair.

    All hail Artie Effem

  4. The Following 2 Users Say Thank You to IzNoGoD For This Useful Post:

    buLLeT_ (31st March 2019),kung foo man (31st March 2019)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •