rem: GUIObjectToggle ("snStatusPaneCommand" + "Group" + tab); 
add: guiToggle ("snStatusPaneCommand" + "Group" + tab); console.write ("Toggled " + "snStatusPaneCommand" + "Group" + tab); 
context: function pressCommandButton(GUIObject, tab, list){	switch (list)	{		case 1:			GUIObject.caption = "";			if (snStatusPaneCommand[tab][list].type == "list")			{				// Click the tab button to toggle visibility of its list (if it's of a list type).				GUIObjectToggle ("snStatusPaneCommand" + "Group" + tab);			}			else			{				// Perform appropriate actions for different command buttons.				switch (snStatusPaneCommand[tab][list].name)				{					case action_patrol:						setCursor("action-patrol");						selectLocation(							function (x, y) {								issueCommand (selection, NMT_Patrol, x, y);							}						);					break;					case action_attack:						setCursor("action-attack");						selectEntity(							function (target) {								issueCommand (selection, NMT_AttackMelee, target);							}						);					break;				}			}		break;		default:			// Left-clicked list button.			console.write("Clicked [" + tab + "," + list + "]: list of type " + snStatusPaneCommand[tab][list].type + "; " + snStatusPaneCommand[tab][list].name);			switch (snStatusPaneCommand[tab][list].name)			{				case action_tab_buildciv:				case action_tab_buildmil:					// Create building placement cursor.					startPlacing(selection[0].traits.id.civ_code + "_" + snStatusPaneCommand[tab][list].name);				break;				default:					// Attempt to add the entry to the queue.					attempt_add_to_build_queue( selection[0], selection[0].traits.id.civ_code + "_" + snStatusPaneCommand[tab][list].name, tab, list);				break;			}		break;	}}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/580cbdef5256984392214ed10a0aa9260f682d48/functions_page_session_status_commands.js/clean/binaries/data/mods/official/gui/test/functions_page_session_status_commands.js