rem: getGUIObjectByName("SN_RESOURCE_COUNTER_FOOD").caption = localPlayer.resource.food; getGUIObjectByName("SN_RESOURCE_COUNTER_WOOD").caption = localPlayer.resource.wood; getGUIObjectByName("SN_RESOURCE_COUNTER_STONE").caption = localPlayer.resource.stone; getGUIObjectByName("SN_RESOURCE_COUNTER_ORE").caption = localPlayer.resource.ore; getGUIObjectByName("SN_RESOURCE_COUNTER_POPULATION").caption = localPlayer.resource.pop.curr  + "/" + localPlayer.resource.pop.housing; 
add:   for (resourceSeek = 0; resourceSeek < localPlayer.resource.last; resourceSeek++) { switch (localPlayer.resource[resourceSeek].name.toString()) { case "POPULATION":  getGUIObjectByName("SN_RESOURCE_COUNTER_POPULATION").caption = localPlayer.resource[resourceSeek].qty + "/" + localPlayer.resource[resourceSeek].qty; break; case "HOUSING":  break; default:  getGUIObjectByName("SN_RESOURCE_COUNTER_" + localPlayer.resource[resourceSeek].name).caption = localPlayer.resource[resourceSeek].qty.toString(); break; } } 
context: function UpdateResourcePool(){	getGUIObjectByName("SN_RESOURCE_COUNTER_FOOD").caption = localPlayer.resource.food;	getGUIObjectByName("SN_RESOURCE_COUNTER_WOOD").caption = localPlayer.resource.wood;	getGUIObjectByName("SN_RESOURCE_COUNTER_STONE").caption = localPlayer.resource.stone;	getGUIObjectByName("SN_RESOURCE_COUNTER_ORE").caption = localPlayer.resource.ore;	getGUIObjectByName("SN_RESOURCE_COUNTER_POPULATION").caption = localPlayer.resource.pop.curr  + "/" + localPlayer.resource.pop.housing;}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/9d2dde62aeac2cf2ee28c69545cb52ec2d585e13/functions_session_resource_pool.js/clean/binaries/data/mods/official/gui/test/functions_session_resource_pool.js