Talk:Variablebackground (GUI item property)

From modwiki

Jump to: navigation, search

I cannot find a reference to the existance of this property. Can anyone verify that it is real? --Slinky 23:07, 6 March 2006 (W. Europe Standard Time)

Well, at some point in time the variable existed. Doom 3's hud.gui and mphud.gui make use of it, as such:
windowDef ObjectItem {
	rect		535 ,384 ,64, 64 
	background	"gui::itemicon"
//	background	"guis/assets/hud/items/redkey"
	variablebackground 1
	matcolor	1, 0.9, 1, 0
	visible		1
}
But now that you ask, it might have been dropped. I hadn't tested the variable prior to posting it on the wiki. They probably made it so in a way that the engine automatically updated everything without the need for the explicit use of the variable, since there are some guis that don't need it:
windowDef LGCLevelshot {
	rect		422, 50, 105, 79
	background	"gui::loadgame_shot"
	matcolor 	1, 1, 1, 1
	bordersize 	1  
	bordercolor 	0.4, 0.6, 0.6, 1 
	noevents	1
}
But I don't know much about the cursor error, sorry. The background with a var IS used on several guis on Doom 3, though, including 'normal' interactive GUIs (like the main menu). --Zeh 01:55, 7 March 2006 (W. Europe Standard Time)
Personal tools
Main
id Tech 5