Upvote Upvoted 0 Downvote Downvoted
X POS DOESNT change location of image
posted in Customization
1
#1
0 Frags +

I was editing pv hud today and when i tryt o change the bleed image's location, when i change the y pos value the images moves to the selected place but hwen I change the x pos even the most drastic vvalues it always remains in the same location. help now yes

thank

I was editing pv hud today and when i tryt o change the bleed image's location, when i change the y pos value the images moves to the selected place but hwen I change the x pos even the most drastic vvalues it always remains in the same location. help now yes

thank
2
#2
0 Frags +

also how do i remove the clipping when i increase the x or y pos values

also how do i remove the clipping when i increase the x or y pos values
3
#3
2 Frags +

http://www.teamfortress.tv/19073/hud-editing-short-questions-quick-answers/

http://www.teamfortress.tv/19073/hud-editing-short-questions-quick-answers/
4
#4
0 Frags +

some shit its locked and it cant be moved i think
its dumb
but try that thread maybe some ppl got that figured out

some shit its locked and it cant be moved i think
its dumb
but try that thread maybe some ppl got that figured out
5
#5
4 Frags +

You can move them, thanks to anchors + pin_to_sibling. It's not extremely well known, but a fair few huds have made use of it (wiethud and magnumhud I know both do).

Step 1: create an anchor inside hudplayerhealth.res. I believe this code will work:

	"HealthIconAnchor"
	{
		"ControlName"	"EditablePanel"
		"fieldName" 	"HealthIconAnchor"
		"xpos" 		"100"
		"ypos"		"100"
		"wide"		"0"
		"tall" 		"0"
		"visible"	"1"
		"enabled" 	"1"
	}

Step 2: make everything you want to forcefully move pin to that:

	"PlayerStatusBleedImage"
	{
		"ControlName"	"ImagePanel"
		"fieldName"		"PlayerStatusBleedImage"

		// all the regular stuff inside here

		"pin_to_sibling" 	"HealthIconAnchor"
		"pin_corner_to_sibling" "1"
		"pin_to_sibling_corner" "1"
	}
	// repeat for other status icons

Now you can reposition everything by just moving the anchor. This can be used for a few other things that are normally hard to move, but it's also decent for just making things more organized and easier to modify.

You can move them, thanks to anchors + pin_to_sibling. It's not extremely well known, but a fair few huds have made use of it (wiethud and magnumhud I know both do).

Step 1: create an anchor inside hudplayerhealth.res. I believe this code will work:
[code] "HealthIconAnchor"
{
"ControlName" "EditablePanel"
"fieldName" "HealthIconAnchor"
"xpos" "100"
"ypos" "100"
"wide" "0"
"tall" "0"
"visible" "1"
"enabled" "1"
}[/code]
Step 2: make everything you want to forcefully move pin to that:
[code] "PlayerStatusBleedImage"
{
"ControlName" "ImagePanel"
"fieldName" "PlayerStatusBleedImage"

// all the regular stuff inside here

"pin_to_sibling" "HealthIconAnchor"
"pin_corner_to_sibling" "1"
"pin_to_sibling_corner" "1"
}
// repeat for other status icons[/code]
Now you can reposition everything by just moving the anchor. This can be used for a few other things that are normally hard to move, but it's also decent for just making things more organized and easier to modify.
Please sign in through STEAM to post a comment.