
; Show menu


	createDialog "MainDialog"
	
	ctrlSetText [31, "Sidebar"]
	ctrlSetText [51, "img\insignia_" + MYSIDE + ".paa"]
	
	{ctrlShow [_x, false]} forEach [105,112,119,126,133,140,147,154,1000,1001,2000]
	ctrlSetText [104, "img/windtrap.paa"]

	buttonSetAction [32, "[] exec {Sidebar.sqs}"]
	buttonSetAction [106, "[1,{Building}] exec {Build.sqs}"]

	
	
	
	SIDEBAR_IDC = [50, 51, 52, 53, 54, 55, 60, 61, 62, 70, 71, 72, 80, 81, 160, 161, 162]
	
	_i = 100
	#addBuildingButton
	SIDEBAR_IDC = SIDEBAR_IDC + [_i]
	? _i < 155 : _i=_i+1; _j=_j+1; goto "addBuildingButton"
	
	
	
	
	
	
; Set aspect ratio variables	
	
	AR_modifX = 0
	AR_modifY = 0
	call preProcessFile "..\fwatch\data\getAspectRatio.sqf"
		
	BORDERUP    = BORDERUP    - AR_modifY
	BORDERDOWN  = BORDERDOWN  + AR_modifY
	BORDERLEFT  = BORDERLEFT  - AR_modifX
	BORDERRIGHT = BORDERRIGHT + AR_modifX
