rem: if (selection[groupPaneLoop-1].traits.id.icon_cell && selection[groupPaneLoop-1].traits.id.icon_cell != "") setPortrait("session_group_pane_portrait_" + groupPaneLoop, selection[groupPaneLoop-1].traits.id.icon, selection[groupPaneLoop-1].traits.id.icon_cell); else setPortrait("session_group_pane_portrait_" + groupPaneLoop, selection[groupPaneLoop-1].traits.id.icon); 
add: setPortrait("session_group_pane_portrait_" + groupPaneLoop, selection[groupPaneLoop-1].traits.id.icon, selection[groupPaneLoop-1].traits.id.civ_code, selection[groupPaneLoop-1].traits.id.icon_cell); 
context: function UpdateGroupPane(){	// Reveal Group Pane.	getGUIObjectByName("session_group_pane").hidden = false;/*	// Set size of Group Pane background.	if (selection.length <= 13)	{		switch (GUIType)		{			case "top":				setSize("session_group_pane_bg", "50%-215 0% 50%+285 0%+86");			break;			case "bottom":				setSize("session_group_pane_bg", "50%-215 100%-86 50%+285 100%");			break;		}	}	else	if (selection.length > 13 && selection.length <= 26)	{		switch (GUIType)		{			case "top":				setSize("session_group_pane_bg", "50%-215 0% 50%+285 0%+127");			break;			case "bottom":				setSize("session_group_pane_bg", "50%-215 100%-127 50%+285 100%");			break;		}	}	else	if (selection.length > 26 && selection.length <= 39)	{		switch (GUIType)		{			case "top":				setSize("session_group_pane_bg", "50%-215 0% 50%+285 0%+168");			break;			case "bottom":				setSize("session_group_pane_bg", "50%-215 100%-168 50%+285 100%");			break;		}	}	else	{		switch (GUIType)		{			case "top":				setSize("session_group_pane_bg", "50%-215 0% 50%+285 0%+209");			break;			case "bottom":				setSize("session_group_pane_bg", "50%-215 100%-209 50%+285 100%");			break;		}	}*/	// Display appropriate portraits.							for (groupPaneLoop = 1; groupPaneLoop <= crd_grppane_prt_last; groupPaneLoop++)	{		groupPanePortrait = getGUIObjectByName("session_group_pane_portrait_" + groupPaneLoop);		groupPaneBar = getGUIObjectByName("session_group_pane_portrait_" + groupPaneLoop + "_bar");		// If it's a valid entity,		if (groupPaneLoop <= selection.length){			// Reveal and set to display this entity's portrait in the group pane.			groupPanePortrait.hidden = false;			groupPaneBar.hidden = false;			// Set progress bar for hitpoints.			if (selection[groupPaneLoop-1].traits.health.curr && selection[groupPaneLoop-1].traits.health.max)				groupPaneBar.caption = ((Math.round(selection[groupPaneLoop-1].traits.health.curr) * 100 ) / Math.round(selection[groupPaneLoop-1].traits.health.max));			// Set portrait.			if (selection[groupPaneLoop-1].traits.id.icon_cell && selection[groupPaneLoop-1].traits.id.icon_cell != "")				setPortrait("session_group_pane_portrait_" + groupPaneLoop, selection[groupPaneLoop-1].traits.id.icon, selection[groupPaneLoop-1].traits.id.icon_cell);			else				setPortrait("session_group_pane_portrait_" + groupPaneLoop, selection[groupPaneLoop-1].traits.id.icon);		}		// If it's empty, hide its group portrait.		else		{			groupPanePortrait.hidden = true;			groupPaneBar.hidden = true;		}	}}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/a2e02c4cc3365f4cee1672848946c07b187ee8b2/functions_session_group_pane.js/buggy/binaries/data/mods/official/gui/test/functions_session_group_pane.js