----------------------------------------------------------------------------------------------------

Events = 
{
	ClickEvent = 0,
	HintEvent = 1,
}

Education =
{
	{
		iGroup = 0;
		hintPos = {650, 500},
		eventType = Events.ClickEvent,
		hintName = '_1hintEdu_1',
		startTime = 0.1,
		lock=1,
	},
	
	{
		iGroup = 0;
		hintPos = {750, 267},
		eventType = Events.HintEvent ,
		hintName = '_1hintEdu_2',
		startTime = 0.1,
	},
	
	{
		iGroup = 0;
		hintPos = {438, 700},
		eventType = Events.HintEvent ,
		hintName = '_1hintEdu_3',
		startTime = 0.1
	},
	
	{
		iGroup = 0;
		hintPos = {423-7, 166-5},
		eventType = Events.HintEvent ,
		hintName = '_1hintEdu_4',
		startTime = -1,   --17

	},
	
-----------------------------------------------------------------------------
	{
		iGroup = 1;
		hintPos = {385, 425},
		eventType = Events.ClickEvent,
		hintName = '_1hintEdu_5',
		startTime = 0.1
	},
	{
		iGroup = 1;
		hintPos = {386, 189},
		eventType = Events.ClickEvent,
		hintName = '_1hintEdu_6',
		startTime = -1.0
	},
-----------------------------------------------------------------------------

	{
		iGroup = 0;
		hintPos = {80, 480},
		eventType = Events.ClickEvent,
		hintName = '_1hintEdu_7',
		startTime = -1,
		lock=1,
	},
	
	{
		iGroup = 0;
		hintPos = {707, 27},
		eventType = Events.ClickEvent,
		hintName = '_1hintEdu_8',
		startTime = -1,
		lock=1,
	},
	
	{
		iGroup = 0;
		hintPos = {88, 23},
		eventType = Events.ClickEvent,
		hintName = '_1hintEdu_9',
		startTime = 3,
		lock=1,
	}
}

----------------------------------------------------------------------------------------------------

hintType = {}

hintType.bottomRight	= 0
hintType.bottomLeft		= 1
hintType.topRight		= 2
hintType.topLeft		= 3

emptyObj = nil

function copy(obj, template)
	obj = {}
	for key, value in pairs(template) do
		if(type(value) == 'table') then
			obj[key] = copy(obj[key], template[key])
		else
			obj[key] = value
		end 
	end
	
	return obj
end

hintCorners = 
{
	Image = "Icons.jpg",
	Animation  =
	{        
		FramesList =
		{	
			{553, 398, 602, 453}
		}
	}
};

FirstHint = 
{
	--hint window settings
	isClickable = 1,
	delay=0,
	windowStyle =
	{
		SrcRect          = {0, 313, 152, 465},
		Image            = "Icons.jpg",
		WinSize          = {220, 120},
		AngleScrSize     = {25, 25},
	},
	
	text = 
	{
		name			= "text",
		dataType		= "text",
		Caption 		= "super hint text",
		Font			= "font05.fnt",
		TextArea		= {0, 22, 220, 32},
		Colour			= {0, 0.0941, 0.27843, 1},
		SRatio 			= 0.78,
		HRatio 			= 0.8,
--		HAlign			= "center",
		VAlign			= "top",
		SizeW			= 1,
		SizeH			= 1,
	},
	
	hyperLink = 
	{
		name			= "hyperLink",
		dataType		= "text",
		Caption 		= 'ClickToContinue',
		Font			= "font05.fnt",
		TextArea		= {30, 22, 220, 32},
		Colour			= {0.455, 0.587, 0.587, 1},
		SRatio 			= 0.75,
		HRatio 			= 0.8,
		--HAlign			= "center",
		VAlign			= "center",
		SizeW			= 0.8,
		SizeH			= 0.8,
	},
}

stepx=30
stepy=25

_1hintEdu_1 = {}
_1hintEdu_1.data = copy(emptyObj, FirstHint)
_1hintEdu_1.data.windowStyle.WinSize = {350, 120}
_1hintEdu_1.data.text.TextArea = {stepx, stepy, _1hintEdu_1.data.windowStyle.WinSize[1]-stepx, _1hintEdu_1.data.windowStyle.WinSize[2]-15}
_1hintEdu_1.data.text.Caption = '_1hintEdu_1'

_1hintEdu_2 = {}
_1hintEdu_2.data = copy(emptyObj, FirstHint)
_1hintEdu_2.data.windowStyle.WinSize = {410, 100}
_1hintEdu_2.data.text.TextArea = {stepx, stepy, _1hintEdu_2.data.windowStyle.WinSize[1]-stepx, _1hintEdu_2.data.windowStyle.WinSize[2]-15}
_1hintEdu_2.data.text.Caption = '_1hintEdu_2'
_1hintEdu_2.data.isClickable = 0

_1hintEdu_3 = {}
_1hintEdu_3.data = copy(emptyObj, FirstHint)
_1hintEdu_3.data.windowStyle.WinSize = {320, 100}
_1hintEdu_3.data.text.TextArea = {stepx, stepy, _1hintEdu_3.data.windowStyle.WinSize[1]-stepx, _1hintEdu_3.data.windowStyle.WinSize[2]-15}
_1hintEdu_3.data.text.Caption = '_1hintEdu_3'
_1hintEdu_3.data.isClickable = 0

_1hintEdu_4 = {}
_1hintEdu_4.data = copy(emptyObj, FirstHint)
_1hintEdu_4.data.windowStyle.WinSize = {345, 120}
_1hintEdu_4.data.text.TextArea = {stepx, stepy, _1hintEdu_4.data.windowStyle.WinSize[1]-stepx, _1hintEdu_4.data.windowStyle.WinSize[2]-15}
_1hintEdu_4.data.text.HRation = 0.87
_1hintEdu_4.data.text.Caption = '_1hintEdu_4'
_1hintEdu_4.data.isClickable = 0


_1hintEdu_5 = {}
_1hintEdu_5.data = copy(emptyObj, FirstHint)
_1hintEdu_5.data.windowStyle.WinSize = {260, 160}
_1hintEdu_5.data.text.TextArea = {stepx-10, stepy, _1hintEdu_5.data.windowStyle.WinSize[1]-stepx+10, _1hintEdu_5.data.windowStyle.WinSize[2]-15}
_1hintEdu_5.data.text.Caption = '_1hintEdu_5'
_1hintEdu_5.isCornered = 0

_1hintEdu_6 = {}
_1hintEdu_6.data = copy(emptyObj, FirstHint)
_1hintEdu_6.data.windowStyle.WinSize = {300, 140}
_1hintEdu_6.data.text.TextArea = {stepx-10, stepy, _1hintEdu_6.data.windowStyle.WinSize[1]-stepx+10, _1hintEdu_6.data.windowStyle.WinSize[2]-15}
_1hintEdu_6.data.text.Caption = '_1hintEdu_6'


_1hintEdu_7 = {}
_1hintEdu_7.data = copy(emptyObj, FirstHint)
_1hintEdu_7.data.windowStyle.WinSize = {320, 120}
_1hintEdu_7.data.text.TextArea = {stepx-10, stepy, _1hintEdu_7.data.windowStyle.WinSize[1]-stepx+10, _1hintEdu_7.data.windowStyle.WinSize[2]-15}
_1hintEdu_7.data.text.Caption = '_1hintEdu_7'

_1hintEdu_8 = {}
_1hintEdu_8.data = copy(emptyObj, FirstHint)
_1hintEdu_8.data.windowStyle.WinSize = {355, 140}
_1hintEdu_8.data.text.TextArea = {stepx, stepy, _1hintEdu_8.data.windowStyle.WinSize[1]-stepx, _1hintEdu_8.data.windowStyle.WinSize[2]-15}
_1hintEdu_8.data.text.Caption = '_1hintEdu_8'

_1hintEdu_9 = {}
_1hintEdu_9.data = copy(emptyObj, FirstHint)
_1hintEdu_9.data.windowStyle.WinSize = {340, 140}
_1hintEdu_9.data.text.TextArea = {stepx, stepy, _1hintEdu_9.data.windowStyle.WinSize[1]-stepx+10, _1hintEdu_9.data.windowStyle.WinSize[2]-15}
_1hintEdu_9.data.text.Caption = '_1hintEdu_9'

HintList = 
{
	'_1hintEdu_1',
	'_1hintEdu_2',
	'_1hintEdu_3',
	'_1hintEdu_4',
	
	'_1hintEdu_5',
	'_1hintEdu_6',
	
	'_1hintEdu_7',
	'_1hintEdu_8',
	'_1hintEdu_9',
}

for k, v in pairs(HintList)
do
	item = _G[v]
	if item.data.isClickable ~= nil and item.data.isClickable == 1
	then
		item.data.hyperLink.TextArea = {30, item.data.windowStyle.WinSize[2] - 60, item.data.windowStyle.WinSize[1]-7, item.data.windowStyle.WinSize[2]}
	else
		item.data.hyperLink = nil

	end
end
