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

Education =
{
	{
		iGroup = 0,
		hintPos = {514, 514},
		eventType = Events.HintEvent ,
		hintName = '_2hintEdu_1',
		startTime = 0.1,
	},
	
	{
		iGroup = 0,
		hintPos = {611-8, 703},
		eventType = Events.HintEvent ,
		hintName = '_2hintEdu_2',
		startTime = 0.1
	},
	
	{
		iGroup = 0,
		hintPos = {514, 540},
		eventType = Events.HintEvent ,
		hintName = '_2hintEdu_10',
		startTime = 0.1
	},
	
	{
		iGroup = 0,
		hintPos = {332, 647},
		eventType = Events.HintEvent ,
		hintName = '_2hintEdu_3',
		startTime = 0.1,
	},
	
	{
		iGroup = 0,
		hintPos = {611, 703},
		eventType = Events.HintEvent,
		hintName = '_2hintEdu_4',
		startTime = 0.1,
	},
	
	{
		iGroup = 0,
		hintPos = {688, 30},
		eventType = Events.ClickEvent,
		hintName = '_2hintEdu_5',
		startTime = -1,
		lock=1,
	},

	{
		iGroup = 0,
		hintPos = {295, 600},
		eventType = Events.HintEvent,
		hintName = '_2hintEdu_6',
		startTime = 0.1,
	},	
	
	{
		iGroup = 0,
		hintPos = {688, 30},
		eventType = Events.ClickEvent,
		hintName = '_2hintEdu_7',
		startTime = 0.1,
		lock=1,
	},
	
	------------------------------------------
	{
		iGroup = 0;
		hintPos = {303, 530},
		eventType = Events.HintEvent ,
		hintName = '_2hintEdu_8',
		startTime = -1
	},

	{
		iGroup = 0;
		hintPos = {303, 530},
		eventType = Events.HintEvent ,
		hintName = '_2hintEdu_9',
		startTime = -1
	},	
	
	{
		iGroup = 0;
		hintPos = {520, 702},
		eventType = Events.HintEvent,
		hintName = '_2hintEdu_11',
		startTime = 0.05
	},
	
}

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

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},
	},
	--character's name
	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

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

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

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

_2hintEdu_3 = {}
_2hintEdu_3.data = copy(emptyObj, FirstHint)
_2hintEdu_3.data.windowStyle.WinSize = {290, 115}
_2hintEdu_3.data.text.TextArea = {stepx-10, stepy, _2hintEdu_3.data.windowStyle.WinSize[1]-stepx+15, _2hintEdu_3.data.windowStyle.WinSize[2]-15}
_2hintEdu_3.data.text.Caption = '_2hintEdu_3'
_2hintEdu_3.data.isClickable = 0


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


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

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

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

_2hintEdu_8 = {}
_2hintEdu_8.data = copy(emptyObj, FirstHint)
_2hintEdu_8.data.windowStyle.WinSize = {310, 110}
_2hintEdu_8.data.text.TextArea = {stepx-10, stepy, _2hintEdu_8.data.windowStyle.WinSize[1]-stepx+15, _2hintEdu_8.data.windowStyle.WinSize[2]-15}
_2hintEdu_8.data.text.Caption = '_2hintEdu_8'
_2hintEdu_8.data.isClickable = 0

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

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

HintList = 
{
	'_2hintEdu_1',
	'_2hintEdu_2',
	'_2hintEdu_10',
	'_2hintEdu_3',
	'_2hintEdu_4',
	'_2hintEdu_5',
	'_2hintEdu_6',
	'_2hintEdu_7',
	
	'_2hintEdu_8',
	'_2hintEdu_9',
	'_2hintEdu_11',
}

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
