rem: setPortrait("snStatusPaneCommand" + listCol + "_1", "sheet_action", "", listIcon); guiUnHide("snStatusPaneCommand" + listCol + "_1"); 
add: setPortrait("snStatusPaneCommand" + listCounter + "_1", "IconSheetCommand", "Button", listIcon); guiUnHide("snStatusPaneCommand" + listCounter + "_1"); 
context: function UpdateCommand(listIcon, listCol){	// Similar to UpdateList, but without the list.	// Updates a particular command button with a particular action.	if ( selection[0].actions && (            (listIcon == action_attack && selection[0].actions.attack)         || (listIcon == action_patrol && selection[0].actions.patrol)         || (listIcon == action_repair && selection[0].actions.repair)         || (listIcon == action_gather_food && selection[0].actions.gather				&& selection[0].actions.gather.resource && selection[0].actions.gather.resource.food)         || (listIcon == action_gather_wood && selection[0].actions.gather				&& selection[0].actions.gather.resource && selection[0].actions.gather.resource.wood)         || (listIcon == action_gather_stone && selection[0].actions.gather				&& selection[0].actions.gather.resource && selection[0].actions.gather.resource.stone)         || (listIcon == action_gather_ore && selection[0].actions.gather				&& selection[0].actions.gather.resource && selection[0].actions.gather.resource.ore)           )		)	{			// Set appearance of tab.		setPortrait("snStatusPaneCommand" + listCol + "_1", "sheet_action", "", listIcon);		guiUnHide("snStatusPaneCommand" + listCol + "_1");		// Hide its list.		guiHide("snStatusPaneCommand" + "Group" + listCol);		// Store content info in tab button for future reference.		snStatusPaneCommand[listCol][1].type = "command";		snStatusPaneCommand[listCol][1].last = 0;		snStatusPaneCommand[listCol][1].name = listIcon;		return (listCol-1);	}	else		return (listCol);}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/b73622196e03cfe48613fb7047cf6c61ceaf24b0/functions_page_session_status_commands.js/buggy/binaries/data/mods/official/gui/test/functions_page_session_status_commands.js