rem: console.write ("No buttons"); 
context: function refreshCommandButtons(){	// Reset button counter.	tabCounter = 1;	if ( selectionChanged && selection[0].actions && shouldUpdateStat ("actions") )	{		// Update production lists (both types of Construction, Train). (Tab button, persistent buttons, click them to do things.)		listRoot = selection[0].actions.create.list;		for (listTab in listRoot)		{			if (listTab != "research")	// Do research later.				updateTab (listTab, "production", "", listRoot[listTab], "");		}				// Update Barter. (Tab button, persistent buttons, click them to do things.)//		updateTab ("barter", "production", "", selection[0].actions.barter.list);				// Update pick lists (formation, stance, trade). (Tab button holds current selection, click a button to select a new option and close the tab.)//		updateTab ("formation", "pick", "", selection[0].traits.formation.type, selection[0].traits.formation.curr);//		updateTab ("stance", "pick", "", selection[0].traits.ai.stance.list, selection[0].traits.ai.stance.curr);//		updateTab ("trade", "pick", "", selection[0].actions.trade.list, selection[0].actions.trade.curr);//		updateTab ("gate", "pick", "", selection[0].actions.gate.list, selection[0].actions.gate.curr);				// Update research. (Tab button, persistent buttons, click them to do things.)		updateTab ("research", "production", "", selection[0].actions.create.list.research, "");				// End of production and pick lists. Store end position.		listCounter = tabCounter;				// Commands begin from this point.		tabCounter = snStatusPaneCommand.split;		// Update commands. (Click "tab" button to do something; no list.)				updateTab ("patrol", "command", "", selection[0].actions.patrol, "");		updateTab ("townbell", "command", "", selection[0].actions.townbell, "");						updateTab ("rally", "command", "", selection[0].actions.create.rally, "");				updateTab ("explore", "command", "", selection[0].actions.explore, "");				updateTab ("retreat", "command", "", selection[0].actions.retreat, "");					updateTab ("stop", "command", "", selection[0].actions.stop, "");				updateTab ("kill", "command", "", "", "");						// End of commands. Store end position.		commandCounter = tabCounter;	}	else	{		console.write ("No buttons");		// Ensure tabs should be cleanable.		listCounter		= 1;		commandCounter 	= snStatusPaneCommand.split-1;	}	if ( selectionChanged )	{		// Clear remaining buttons between the lists and commands.		for (commandClearLoop = listCounter; commandClearLoop <= snStatusPaneCommand.split-1; commandClearLoop++)		{			guiHide ("snStatusPaneCommand" + commandClearLoop + "_1");			// If this slot could possibly contain a list, hide that too.			guiHide ("snStatusPaneCommand" + "Group" + commandClearLoop);		}		for (commandClearLoop = commandCounter; commandClearLoop <= snStatusPaneCommand.tab.max; commandClearLoop++)		{			guiHide ("snStatusPaneCommand" + commandClearLoop + "_1");			// If this slot could possibly contain a list, hide that too.			guiHide ("snStatusPaneCommand" + "Group" + commandClearLoop);		}			}	}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/848ead1d3e68b18fa7d2da9a12597af9209b66ea/functions_page_session_status_commands.js/buggy/binaries/data/mods/official/gui/test/functions_page_session_status_commands.js