rem: refreshResource (resourceName); 
add: refreshResources(); 
context: function addResource (resourceName, resourceQty){	// Creates a resource type.	// Ensure resource name is title-case.	resourceName = toTitleCase (resourceName);	// Create uppercase name.	resourceNameU = resourceName.toUpperCase();	if (!localPlayer.resource)	{		// Define the base resource group if it does not exist.		localPlayer.resource = new Array();	}		// Store resource's name and starting value.	localPlayer.resource.valueOf()[resourceNameU] = resourceQty;			// Dynamically adjust width of resource counter based on caption length.	refreshResource (resourceName);				console.write( "Added " + resourceName + " (" + resourceQty + ")" );}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/9d8b6cd779c6255c8eb3500bc2fc26ed3b61a4a6/functions_sim_player.js/buggy/binaries/data/mods/official/gui/test/functions_sim_player.js