UI troubles


(Jan) #1

I’m having troubles getting ET to run the action { script } of a itemDef. When I move my mouse over it and click, nothing happens. But when I press enter over the item it works.

Whats going on?

itemDef code:


//////////////////////////////////////////////////////
// OPTIONS
//////////////////////////////////////////////////////

itemDef
{
	name		optionswindow
	style		WINDOW_STYLE_FILLED
	rect		464 295 160	80
	background	"ui/assets/icon_options"
	backcolor	.57 .46 .36 1
	visible		MENU_TRUE
	decoration
}

itemDef
{
	name		options_glow
	group		main_glow_group
	style		WINDOW_STYLE_FILLED
	rect		464 295 160 80
	background	"ui/assets/icon_options_glow"
	backcolor	.88 .75 .63 1
	visible		MENU_FALSE
	decoration
}

itemDef
{
	name		options_button
	group		main_button_group
	style		WINDOW_STYLE_EMPTY
	rect		514 321 70 24
	type		ITEM_TYPE_BUTTON
	visible		MENU_TRUE
	//tooltip		"Options"

	mouseEnter
	{
		//play "sound/misc/menus/hilite1.wav" ; 
	        show options_glow;
	}
	mouseExit
	{
		hide options_glow;
	}
	action {
		play "sound/menu/select.wav";
		hide options_glow;
		//clearfocus;
		close main;
		open options;
	}
}


(Jan) #2

I think I’ve fixed it by adding ‘popup’ to the menuDef.