class 'PromoScreen' (BaseScreen)

function PromoScreen:__init(game_scene, name, path)
	BaseScreen.__init(self, game_scene, name, path)

	self.windows = 
	{
		Window_1 = { preview = 'Window_1_2', light = 'Window_1_light',},
		Window_2 = { preview = 'Window_2_2', light = 'Window_2_light',},
		Window_3 = { preview = 'Window_3_2', light = 'Window_3_light',},
		Window_4 = { preview = 'Window_4_2', light = 'Window_4_light',},
		Window_5 = { preview = 'Window_5_2', light = 'Window_5_light',},
		Window_6 = { preview = 'Window_6_2', light = 'Window_6_light',},
		Window_7 = { preview = 'Window_7_2', light = 'Window_7_light',},
		Window_8 = { preview = 'Window_8_2', light = 'Window_8_light',},
	}

	self:getEntityNamed('Window_1'):setRespondable(false)

	self.current_window = 'Window_1_2'
	for window_name, window_info in pairs(self.windows) do
		self:getEntityNamed(window_name).onPress:add(function()
														if window_info.preview ~= self.current_window then
															self:entityFadeHide(self.current_window)
															self:entityFadeShow(window_info.preview)

															self:getEntityNamed(window_name):setRespondable(false)
															self:getEntityNamed(string.sub(self.current_window,1,8)):setRespondable(true)
															self.current_window = window_info.preview

															playCommonSound('PhoneBttnClick')
														end
													end)
	end
	self:getEntityNamed('Continue_Button').onPress:add( function()				
															self:getEntityNamed('Continue_Button'):setRespondable(false)
															PopUpScreensMgr:pop()
															Application:getPlatform():exit()																
														end)
end

--------------------------------------------------------------------------------
--                      GENERATED CONTENT. DO NOT EDIT.                       --
--------------------------------------------------------------------------------

function PromoScreen:CreateLoaderTable()
	local objects =
	{
		{ name = 'BG',  entityType = 'SpriteEntity',  x = 512,  y = 384,  order = 10,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/PromoScreen/BG.png',  width = 1366,  height = 768,  },
		{ name = 'Window_2',  entityType = 'SpriteEntity',  x = 84,  y = 308,  order = 13,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_2.png',  width = 208,  height = 154,  },
		{ name = 'Continue_Button',  entityType = 'ButtonEntity',  x = 468,  y = 581,  order = 30,  angle = 3,  editingLocked = false,  treeItemIsExpanded = false,  text = '',  activeRectX = 160,  activeRectY = 50,  },
		{ name = 'Window_1_2',  entityType = 'SpriteEntity',  x = 512,  y = 270,  order = 1,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_1_2.jpg',  width = 594,  height = 372,  },
		{ name = 'Window_2_2',  entityType = 'SpriteEntity',  x = 512,  y = 270,  order = 2,  isVisible = false,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_2_2.jpg',  width = 589,  height = 374,  },
		{ name = 'Window_3_2',  entityType = 'SpriteEntity',  x = 512,  y = 270,  order = 3,  isVisible = false,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_3_2.jpg',  width = 590,  height = 374,  },
		{ name = 'Window_4_2',  entityType = 'SpriteEntity',  x = 512,  y = 270,  order = 4,  isVisible = false,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_4_2.jpg',  width = 594,  height = 372,  },
		{ name = 'Window_5_2',  entityType = 'SpriteEntity',  x = 512,  y = 270,  order = 5,  isVisible = false,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_5_2.jpg',  width = 584,  height = 372,  },
		{ name = 'Window_6_2',  entityType = 'SpriteEntity',  x = 512,  y = 270,  order = 6,  isVisible = false,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_6_2.jpg',  width = 594,  height = 376,  },
		{ name = 'Window_7_2',  entityType = 'SpriteEntity',  x = 512,  y = 270,  order = 7,  isVisible = false,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_7_2.jpg',  width = 594,  height = 376,  },
		{ name = 'Window_8_2',  entityType = 'SpriteEntity',  x = 512,  y = 270,  order = 8,  isVisible = false,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_8_2.jpg',  width = 594,  height = 376,  },
		{ name = 'Window_7',  entityType = 'SpriteEntity',  x = 914,  y = 495,  order = 14,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_7.png',  width = 210,  height = 156,  },
		{ name = 'Window_8',  entityType = 'SpriteEntity',  x = 953,  y = 634,  order = 13,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_8.png',  width = 202,  height = 144,  },
		{ name = 'Window_1',  entityType = 'SpriteEntity',  x = 105,  y = 152,  order = 12,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_1.png',  width = 212,  height = 158,  },
		{ name = 'Window_3',  entityType = 'SpriteEntity',  x = 123,  y = 445,  order = 14,  editingLocked = false,  treeItemIsExpanded = true,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_3.png',  width = 220,  height = 170,  },
		{ name = 'Window_4',  entityType = 'SpriteEntity',  x = 108,  y = 598,  order = 13,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_4.png',  width = 206,  height = 150,  },
		{ name = 'Window_5',  entityType = 'SpriteEntity',  x = 949,  y = 191,  order = 12,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_5.png',  width = 202,  height = 144,  },
		{ name = 'Window_6',  entityType = 'SpriteEntity',  x = 930,  y = 347,  order = 13,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/PromoScreen/Window_6.png',  width = 218,  height = 168,  },
		{ name = 'Layer_survey_title',  entityType = 'SpriteEntity',  x = 512,  y = 20,  order = 20,  editingLocked = false,  treeItemIsExpanded = false,  texturePath = 'Data/Textures/Screens/PromoScreen/Layer_survey_title.png',  width = 462,  height = 48,  },
	}
	return objects
end
