API:Debugging your GUI

From TheWarWiki

Jump to: navigation, search

WAR API Help

Debugging your GUI

There are many things that can go wrong with understanding where your windows are being drawn. This little script, due to Vonhinten, helps you spot them easily on your screen. Even if they are currently not visible to you.

 local function HighlightWindow( window )
 	if( WindowGetShowing( HelpTips.FOCUS_WINDOW_NAME ) ) then
 		WindowStopAlphaAnimation( HelpTips.FOCUS_WINDOW_NAME )
 		WindowSetShowing( HelpTips.FOCUS_WINDOW_NAME, false )
 	end
 	HelpTips.SetFocusOnWindow( window )
 end
Personal tools