Upvote Upvoted 3 Downvote Downvoted
how to make custom boxes in hud?
posted in Q/A Help
1
#1
1 Frags +

so i'm currently editing the stock hud to fit my needs... one of them is to get the "boxes" of the stock hud to be actual boxes. i don't know how to create custom boxes in huds, how would i do that?

so i'm currently editing the stock hud to fit my needs... one of them is to get the "boxes" of the stock hud to be actual boxes. i don't know how to create custom boxes in huds, how would i do that?
2
#2
2 Frags +

Custom colour box

"Box"
	{
		"ControlName"	"ImagePanel"
		"fieldName"		"Box"
		"xpos"			"c0"
		"ypos"			"c0"
		"zpos"			"0"
		"wide"			"100"
		"tall"			"100"
		"fillcolor"		"32 32 32 240"
		"autoResize"	"0"
		"pinCorner"		"0"
		"visible"		"1"
		"enabled"		"1"
	}

Team colored box

"TeamBox"
	{
		"ControlName"	"CTFImagePanel"
		"fieldName"		"TeamBox"
		"xpos"			"c0"
		"ypos"			"c0"
		"zpos"			"0"
		"wide"			"100"
		"tall"			"100"
		"visible"		"1"
		"enabled"		"1"
		"image"			"../hud/color_panel_brown"
		"scaleImage"		"1"
		"teambg_1"		"../hud/color_panel_brown"
		"teambg_2"		"../hud/color_panel_red"
		"teambg_2_lodef"	"../hud/color_panel_red"
		"teambg_3"		"../hud/color_panel_blu"
		"teambg_3_lodef"	"../hud/color_panel_blu"
		"scaleImage"		"1"			
		"src_corner_height"		"15"
		"src_corner_width"		"15"			
		"draw_corner_width"		"0"
		"draw_corner_height" 	"0"	
	}

Copy and paste, play with x/ypos, etc

Custom colour box
[code]"Box"
{
"ControlName" "ImagePanel"
"fieldName" "Box"
"xpos" "c0"
"ypos" "c0"
"zpos" "0"
"wide" "100"
"tall" "100"
"fillcolor" "32 32 32 240"
"autoResize" "0"
"pinCorner" "0"
"visible" "1"
"enabled" "1"
}[/code]

Team colored box
[code]"TeamBox"
{
"ControlName" "CTFImagePanel"
"fieldName" "TeamBox"
"xpos" "c0"
"ypos" "c0"
"zpos" "0"
"wide" "100"
"tall" "100"
"visible" "1"
"enabled" "1"
"image" "../hud/color_panel_brown"
"scaleImage" "1"
"teambg_1" "../hud/color_panel_brown"
"teambg_2" "../hud/color_panel_red"
"teambg_2_lodef" "../hud/color_panel_red"
"teambg_3" "../hud/color_panel_blu"
"teambg_3_lodef" "../hud/color_panel_blu"
"scaleImage" "1"
"src_corner_height" "15"
"src_corner_width" "15"
"draw_corner_width" "0"
"draw_corner_height" "0"
}[/code]

Copy and paste, play with x/ypos, etc
3
#3
0 Frags +

alright, so how does it work? are the xpos and ypos the 2 corners?

alright, so how does it work? are the xpos and ypos the 2 corners?
4
#4
0 Frags +

It's the same as any other HUD element, xpos and ypos are used to set its position (the origin of the box is the top left corner), wide and tall to change the width and height. fgcolor sets the color. Just play around with it for a bit and you'll figure it out.

It's the same as any other HUD element, xpos and ypos are used to set its position (the origin of the box is the top left corner), wide and tall to change the width and height. fgcolor sets the color. Just play around with it for a bit and you'll figure it out.
5
#5
0 Frags +

alright, thanks

alright, thanks
6
#6
0 Frags +

http://i.imgur.com/nX0cjSM.jpg

so i'm just stuck, i gave up on finding how to edit the target id boxes...i put in yahud's targetid's to see what changed, but nothing i could find..could anyone help me with it? thanks

nvm found it lol

edit: where can i find the "box" surrounding the ubercharge?

[img]http://i.imgur.com/nX0cjSM.jpg[/img]

so i'm just stuck, i gave up on finding how to edit the target id boxes...i put in yahud's targetid's to see what changed, but nothing i could find..could anyone help me with it? thanks

nvm found it lol

edit: where can i find the "box" surrounding the ubercharge?
Please sign in through STEAM to post a comment.