rem: console.write( "Added " + resourceName /*+ " (" + resourceQty + ")"*/ ); 
context: function addResourceCounter (index, resourceName){	// Creates a resource counter widget.	// Ensure resource name is lower-case.	resourceName = resourceName.toLowerCase();		// We maintain a sorted array of the resource indexes so that the UI counters can be refreshed in centered order.	// (We don't include Housing in the list, though, as it does not have its own resource counter.)	if (resourceName != "housing")	{		//  If it's an even index,		if (index % 2 == 0)			// Add it to the end of the UI array.			resourceUIArray.push ( index );		else			// Add it to the beginning of the UI array,			resourceUIArray.unshift ( index );	}		console.write( "Added " + resourceName /*+ " (" + resourceQty + ")"*/ );}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/cb07a8b88da0b45aa91a36a9cf709b284ea006ce/functions_sim_player.js/clean/binaries/data/mods/official/gui/test/functions_sim_player.js