rem: ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last, atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].width, atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].height ); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last, atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].x, atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN*1.5 ); 
add: ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX = addArrayElement(Crd, Crd.last); Crd[Crd.last-1].rleft	= left_screen;	Crd[Crd.last-1].rtop	= top_screen; Crd[Crd.last-1].rright	= left_screen;	Crd[Crd.last-1].rbottom	= top_screen; Crd[Crd.last-1].width	= Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].width; Crd[Crd.last-1].height	= Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].height; Crd[Crd.last-1].x	= Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].x; Crd[Crd.last-1].y	= Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].y+Crd[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN*1.5; 
context: function initAtlasSectionTerrainEditor(){	// ============================================= TERRAIN EDITOR SECTION MENU ===============================================	// ============================================= TERRAIN EDITOR: EDIT ELEVATION ===============================================	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_BUTTON_SPAN = 10;	// Modify button.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		50,		15	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].x+ATLAS_LEFT_PANE_SECTION.LMARGIN,		atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].height+ATLAS_LEFT_PANE_SECTION.TMARGIN	);	// Smooth button.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SMOOTH_BUTTON		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].width+ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_BUTTON_SPAN,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].y	);	// Sample button.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SMOOTH_BUTTON].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SMOOTH_BUTTON].width+ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_BUTTON_SPAN,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].y	);	// Intensity slider bar.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_SLIDER_BAR		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		138,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SMOOTH_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SMOOTH_BUTTON].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SMOOTH_BUTTON].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SMOOTH_BUTTON].height+ATLAS_LEFT_PANE_SECTION.TMARGIN	);	// Intensity slider marker.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_SLIDER_MARKER	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		8,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_SLIDER_BAR].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_SLIDER_BAR].x+40,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_SLIDER_BAR].y+(atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_SLIDER_BAR].height/3)	);	// Intensity label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		50,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_SLIDER_BAR].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_SLIDER_BAR].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_SLIDER_BAR].y	);	// Roughen button.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INTENSITY_LABEL].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_MODIFY_BUTTON].height+ATLAS_LEFT_PANE_SECTION.TMARGIN	);	// Roughen style combo box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_STYLE_COMBO_BOX		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		75,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_STYLE_COMBO_BOX].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].y+4	);	// Roughen style label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_STYLE_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		40,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_STYLE_COMBO_BOX].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_STYLE_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].y	);	// Power input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		40,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].y+4+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].height+ATLAS_LEFT_PANE_SECTION.TMARGIN	);	// Up button for power input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX_UP	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		(atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].height/2)+3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].y-3	);	// Down button for power input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX_DN	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX_UP].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX_DN].height	);	// Power label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		40,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].y	);	// Scale label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		40,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].y	);	// Scale input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		40,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_LABEL].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].y	);	// Up button for scale input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX_UP	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		(atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX].height/2)+3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX].y-3	);	// Down button for scale input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX_DN	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX_UP].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX_DN].height	);	// Increment button.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INCREMENT_BUTTON		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SCALE_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN	);	// Amount input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		40,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_SAMPLE_BUTTON].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INCREMENT_BUTTON].y	);	// Up button for amount input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX_UP	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		(atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX].height/2)+3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_POWER_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INCREMENT_BUTTON].y-3	);	// Down button for amount input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX_DN	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX_UP].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX_DN].height	);	// Amount label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		45,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_ROUGHEN_BUTTON].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_AMOUNT_INPUT_BOX].y	);	// Horizontal rule at end of Edit Elevation.	ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_HR		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_BKG].width-ATLAS_LEFT_PANE_SECTION.LMARGIN-ATLAS_LEFT_PANE_SECTION.RMARGIN,		2	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_BKG].x+ATLAS_LEFT_PANE_SECTION.LMARGIN,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INCREMENT_BUTTON].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_INCREMENT_BUTTON].height+ATLAS_LEFT_PANE_SECTION.BMARGIN	);	// ============================================= TERRAIN EDITOR: CLIFF ===============================================	// List of cliff portraits.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		75,		162	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_HR].x+3,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_HR].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_HR].x+3	);	// "Cliff" heading.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_HEADING_2].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].x-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].width,		22	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_HR].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_HR].height	);	// Horizontal rule under heading.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING_HR	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING].width-ATLAS_LEFT_PANE_SECTION.LMARGIN-ATLAS_LEFT_PANE_SECTION.RMARGIN,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_HR].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING].x+ATLAS_LEFT_PANE_SECTION.LMARGIN,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING].height	);	// Place button.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_PLACE	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		84,		15	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING_HR].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING_HR].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING_HR].height+(ATLAS_LEFT_PANE_SECTION.TMARGIN/2)	);	// Height label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		48,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_PLACE].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING].x+2,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_PLACE].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_PLACE].height+ATLAS_LEFT_PANE_SECTION.TMARGIN*1.5	);	// Height input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		40,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].y	);	// Up button for height input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX_UP	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		(atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].height/2)+3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].y-3	);	// Down button for height input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX_DN	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX_UP].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX_DN].height	);	// Angle label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].height+ATLAS_LEFT_PANE_SECTION.TMARGIN*1.5	);	// Angle input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN*1.5	);	// Up button for angle input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX_UP	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		(atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX].height/2)+3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX].y-3	);	// Down button for Angle input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX_DN	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX_UP].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX_DN].height	);	// Smooth label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_LABEL].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_LABEL].height+ATLAS_LEFT_PANE_SECTION.TMARGIN*1.5	);	// Smooth input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_ANGLE_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN*1.5	);	// Up button for Smooth input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX_UP	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		(atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX].height/2)+3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX].y-3	);	// Down button for Smooth input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX_DN	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX_UP].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_SMOOTH_INPUT_BOX_DN].height	);	// Custom button.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_PLACE].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_PLACE].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_PLACE].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM].height	);	// Horizontal rule at end of Paint Cliff.	ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HR		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_HR].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_HR].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_ELEVATION_HR].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].height+ATLAS_LEFT_PANE_SECTION.BMARGIN	);	// ============================================= TERRAIN EDITOR: WATER ===============================================	// List of water portraits.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_LIST		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_LIST].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HR].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HR].x+3	);	// "Water" heading.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_HEADING		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HR].y	);	// Horizontal rule under heading.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_HEADING_HR	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING_HR].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING_HR].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEADING_HR].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_HEADING].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_HEADING].height	);	// Place button.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_BUTTON_PLACE	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_PLACE].width-15,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_PLACE].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_PLACE].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_HEADING_HR].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_HEADING_HR].height+(ATLAS_LEFT_PANE_SECTION.TMARGIN/2)	);	// Beautify Water button.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_BUTTON_BEAUTIFY	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		15,		15	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_BUTTON_PLACE].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_BUTTON_PLACE].width+1,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_BUTTON_PLACE].y	);	// Depth label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_LABEL].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_BUTTON_PLACE].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_BUTTON_PLACE].height+ATLAS_LEFT_PANE_SECTION.TMARGIN*1.5	);	// Depth input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,				atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HEIGHT_INPUT_BOX].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].y	);	// Up button for depth input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX_UP	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		(atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].height/2)+3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].y-3	);	// Down button for depth input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX_DN	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX_UP].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX_DN].height	);	// Colour label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].height+ATLAS_LEFT_PANE_SECTION.TMARGIN*1.5	);	// Colour input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_R_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].height/3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN	);	// Colour input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_G_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].height/3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_R_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_R_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN	);	// Colour input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_B_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].height/3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_G_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_G_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN	);	// Colour tint box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_TINT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_LABEL].width/3,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_LABEL].height/2	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_LABEL].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_LABEL].width/5,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_LABEL].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_LABEL].height+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_LABEL].height/3	);	// Smooth input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_INPUT_BOX].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_B_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_COLOUR_B_INPUT_BOX].height+ATLAS_LEFT_PANE_SECTION.TMARGIN*1.5	);	// Up button for Smooth input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX_UP	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		(atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX].height/2)+3	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX].y-3	);	// Down button for Smooth input box.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX_DN	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		ATLAS_COUNTER_BOX.width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX_UP].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX].x+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX].width-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX_UP].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX_DN].height	);	// Smooth label.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_LABEL		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_DEPTH_LABEL].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_SMOOTH_INPUT_BOX].y-2	);	// Custom button.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_BUTTON_CUSTOM	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_LIST].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_LIST].height-atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_BUTTON_CUSTOM].height	);	// Horizontal rule at end of Paint Water.	ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_HR		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HR].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HR].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_HR].x,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_LIST].y+atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_WATER_LIST].height+ATLAS_LEFT_PANE_SECTION.BMARGIN	);	// ============================================= TERRAIN EDITOR: BRUSH SETTINGS ==============================================	// Terrain Preview.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		125,		125	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		ATLAS_LEFT_PANE_SECTION.LMARGIN,		ATLAS_LEFT_PANE_SECTION.LMARGIN	);	// Terrain Preview label.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW_LABEL	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW].width,		15	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW].x,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW].y+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW].height	);	// Brush border.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_RB_CORNER].x-atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW].width,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW].x+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW].width+(atlasCoord[ATLAS_RB_CORNER].width/4),		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PREVIEW].y	);	// Brush border label.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER_LABEL	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].width,		15	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].x,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].y+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].height	);	// Brush size slider bar.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_SIZE_SLIDER_BAR		= addSizeArrayWH(atlasCoord, atlasCoord_Last,		15,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].height+11	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].x+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].width-atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_SIZE_SLIDER_BAR].width-5,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].y-22	);	// Brush size slider marker.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_SIZE_SLIDER_MARKER	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_SIZE_SLIDER_BAR].width,		8	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_SIZE_SLIDER_BAR].x-3,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_SIZE_SLIDER_BAR].y+70	);	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_SPAN = 5;	// Brush button.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		15,		15	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].x+10,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].y+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].height-15-10	);	// Brush button.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_2	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].width,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].x,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].y-atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].height-ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_SPAN	);	// Brush button.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_3	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].width,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].x,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_2].y-atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_2].height-ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_SPAN	);	// Brush button.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_4	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].width,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].x,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_3].y-atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_3].height-ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_SPAN	);	// Beautify Terrain button.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_BEAUTIFY	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].width,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BUTTON_1].x,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_BRUSH_BORDER].y+10	);	// ============================================= TERRAIN EDITOR: PAINT TERRAIN ===============================================	// Terrain Palette Background.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_BKG	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		603,		122	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_RB_CORNER].x+atlasCoord[ATLAS_RB_CORNER].width,		atlasCoord[ATLAS_BOTTOM_PANE_BKG].y+5	);	// Terrain Palette Tabs.		ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB = new Object();	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.span = 9;	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.max = 9;	for (ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.last = 1; ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.last <= ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.max; ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.last++)	{		ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.last] = atlasCoord_Last;		atlasCoord[atlasCoord_Last] = new Object();		atlasCoord[atlasCoord_Last].width = 63;		atlasCoord[atlasCoord_Last].height = 17;		if (ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.last == 1)			atlasCoord[atlasCoord_Last].x = atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_BKG].x+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_BKG].width-atlasCoord[atlasCoord_Last].width+2;		else			atlasCoord[atlasCoord_Last].x = atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.last]-1].x-atlasCoord[atlasCoord_Last].width+ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.span;		atlasCoord[atlasCoord_Last].y = atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_BKG].y+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_BKG].height;		atlasCoord_Last++;	}	// Custom button.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_BUTTON_CUSTOM	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM].width,		atlasCoord[ATLAS_LEFT_PANE_SECTION_TERRAIN_CLIFF_BUTTON_CUSTOM].height	); atlasCoord_Last 			= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_BKG].x-1,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_BKG].y+atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_BKG].height+3	);	// Right arrow on Terrain Palette.	ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_RT_ARROW	= addSizeArrayWH(atlasCoord, atlasCoord_Last,		6,		12	); atlasCoord_Last 				= addSizeArrayXY(atlasCoord, atlasCoord_Last,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_TAB.last-1]].x-atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_RT_ARROW].width-atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_RT_ARROW].width,		atlasCoord[ATLAS_BOTTOM_PANE_SECTION_TERRAIN_PALETTE_BUTTON_CUSTOM].y-2	);}
meta: 1070	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/1070/79e56cf113523b71f02d6891bece166f364742e7/functions_atlas_terrain_editor.js/clean/binaries/data/mods/official/gui/test/functions_atlas_terrain_editor.js