-- 页面Icon
local SubBgPicAni = "GameMachines_LHJ"
local FiveXThrAni = "GameMachines_WZ5x3slot"
local ThrXOneAni = "GameMachines_WZ3x1slot"
local FruitAni = "GameMachines_WZ_fruit"
local BossPicAni = "GameMachines_BossPic"
local MulBossPicAni = "GameMachines_BossPic"


--隐藏后重新打开对应的提示
--括号中的为NPCID
local ReOpenTip = {
	[24400] = "Auto spin is over.",
	[24401] = "Auto spin is over.",
	[24402] = "Auto spin is over.",
	[24403] = "Auto spin is over.",
	[24773] = "Auto spin is over.",
	[24774] = "Auto spin is over.",
	[24775] = "Auto spin is over.",
	[24776] = "Auto spin is over.",
	[24845] = "Auto spin is over.",
	[24846] = "Auto spin is over.",
	[24847] = "Auto spin is over.",
	[24848] = "Auto spin is over.",
	[24849] = "Auto spin is over.",
	[24850] = "Auto spin is over.",
	[24851] = "Auto spin is over.",
	[24852] = "Auto spin is over.",
	[24853] = "Auto spin is over.",
	[24854] = "Auto spin is over.",
	[24855] = "Auto spin is over.",
	[24856] = "Auto spin is over.",
	[25218] = "Auto spin is over.",
	[25219] = "Auto spin is over.",
	[25220] = "Auto spin is over.",
	[25221] = "Auto spin is over.",
	[25222] = "Auto spin is over.",
	[25223] = "Auto spin is over.",
	[25224] = "Auto spin is over.",
	[25225] = "Auto spin is over.",
	[25226] = "Auto spin is over.",
	[25227] = "Auto spin is over.",
	[25228] = "Auto spin is over.",
	[25229] = "Auto spin is over.",
	[25230] = "Auto spin is over.",
	[25231] = "Auto spin is over.",
	[25232] = "Auto spin is over.",
	[25233] = "Auto spin is over.",
	[25234] = "Auto spin is over.",
	[25213] = "Auto spin is over.",
	[25212] = "Auto spin is over.",
	[25211] = "Auto spin is over.",
	[25967] = "Auto spin is over.",
	[25968] = "Auto spin is over.",
	[25969] = "Auto spin is over.",
	[25970] = "Auto spin is over.",
	[25971] = "Auto spin is over.",
	[25972] = "Auto spin is over.",
	[25973] = "Auto spin is over.",
	[25974] = "Auto spin is over.",
	[25975] = "Auto spin is over.",
	[25976] = "Auto spin is over.",
	[25977] = "Auto spin is over.",
	[25978] = "Auto spin is over.",
	[25979] = "Auto spin is over.",
	[25980] = "Auto spin is over.",
	[26002] = "Auto spin is over.",
	[26003] = "Auto spin is over.",
	[26004] = "Auto spin is over.",
	[26005] = "Auto spin is over.",
	[26006] = "Auto spin is over.",
	[26007] = "Auto spin is over.",
	[26008] = "Auto spin is over.",
	[26985] = "Auto spin is over.",
	[26986] = "Auto spin is over.",
	[26987] = "Auto spin is over.",
	[26988] = "Auto spin is over.",
	[26989] = "Auto spin is over.",
	[26990] = "Auto spin is over.",
	[26991] = "Auto spin is over.",
	[29352] = "Auto spin is over.",
	[29354] = "Auto spin is over.",
	[29867] = "Auto spin is over.",
	[29868] = "Auto spin is over.",
	[29869] = "Auto spin is over.",
	[29870] = "Auto spin is over.",
	[29871] = "Auto spin is over.",
	[29872] = "Auto spin is over.",
	[29873] = "Auto spin is over.",
	[29874] = "Auto spin is over.",
	[29875] = "Auto spin is over.",
	[29876] = "Auto spin is over.",
	[29877] = "Auto spin is over.",
	[29878] = "Auto spin is over.",
	[29879] = "Auto spin is over.",
	[29880] = "Auto spin is over.",
	[29881] = "Auto spin is over.",
	[29882] = "Auto spin is over.",
	[30240] = "Auto spin is over.",
	[30241] = "Auto spin is over.",
	[29234] = "Auto spin is over.",
	[30800] = "Auto spin is over.",
	[30801] = "Auto spin is over.",
	[30802] = "Auto spin is over.",
	[27608] = "Auto spin is over.",
	[27609] = "Auto spin is over.",
	[27610] = "Auto spin is over.",
	[27611] = "Auto spin is over.",
	[27612] = "Auto spin is over.",
	[27613] = "Auto spin is over.",
	[27614] = "Auto spin is over.",
	[27619] = "Auto spin is over.",
	[27620] = "Auto spin is over.",
	[27621] = "Auto spin is over.",
	[27622] = "Auto spin is over.",
	[27623] = "Auto spin is over.",
	[27624] = "Auto spin is over.",
	[27625] = "Auto spin is over.",
	[27630] = "Auto spin is over.",
	[27631] = "Auto spin is over.",
	[27632] = "Auto spin is over.",
	[27633] = "Auto spin is over.",
	[27634] = "Auto spin is over.",
	[27635] = "Auto spin is over.",
	[27636] = "Auto spin is over.",
	[27923] = "Auto spin is over.",
	[27924] = "Auto spin is over.",
	[27925] = "Auto spin is over.",
	[27926] = "Auto spin is over.",
	[27927] = "Auto spin is over.",
	[27928] = "Auto spin is over.",
	[27929] = "Auto spin is over.",
	[27934] = "Auto spin is over.",
	[27935] = "Auto spin is over.",
	[27936] = "Auto spin is over.",
	[27937] = "Auto spin is over.",
	[27938] = "Auto spin is over.",
	[27939] = "Auto spin is over.",
	[27940] = "Auto spin is over.",
	[27972] = "Auto spin is over.",
	[27973] = "Auto spin is over.",
	[27974] = "Auto spin is over.",
	[27975] = "Auto spin is over.",
	[27976] = "Auto spin is over.",
	[27977] = "Auto spin is over.",
	[27978] = "Auto spin is over.",
	[32112] = "Auto spin is over.",
	[32174] = "Auto spin is over.",
	[32175] = "Auto spin is over.",
	[32176] = "Auto spin is over.",
	[32177] = "Auto spin is over.",
	[32178] = "Auto spin is over.",
	[32179] = "Auto spin is over.",
	[32180] = "Auto spin is over.",
	[32181] = "Auto spin is over.",
	[32182] = "Auto spin is over.",
	[32183] = "Auto spin is over.",
	[32184] = "Auto spin is over.",
	[32185] = "Auto spin is over.",
	[32186] = "Auto spin is over.",
	[32187] = "Auto spin is over.",
	[32188] = "Auto spin is over.",
	[32189] = "Auto spin is over.",
	[32190] = "Auto spin is over.",
	
}


--金币5x3按钮配置（总共4个按钮）
--注意，需要从0开始配置并且连续
local FiveXThrMoney = {
	--第一个按钮
	[0] = {
		--NPCID
		["NpcID"] = 24854,
		--文本显示
		["text"] = "20K",
	},
	[1] = {
		--NPCID
		["NpcID"] = 24856,
		--文本显示
		["text"] = "2KK",
	},
	[2] = {
		--NPCID
		["NpcID"] = 29881,
		--文本显示
		["text"] = "40K",
	},
	[3] = {
		--NPCID
		["NpcID"] = 29882,
		--文本显示
		["text"] = "4KK",
	},
}

--天石5x3按钮配置（总共4个按钮）
--注意，需要从0开始配置并且连续
local FiveXThrEMoney = {
	--第一个按钮
	[0] = {
		--NPCID
		["NpcID"] = 25230,
		--文本显示
		["text"] = "20",
	},
	[1] = {
		--NPCID
		["NpcID"] = 25230,
		--文本显示
		["text"] = "20",
	},
	[2] = {
		--NPCID
		["NpcID"] = 25230,
		--文本显示
		["text"] = "20",
	},
	[3] = {
		--NPCID
		["NpcID"] = 25230,
		--文本显示
		["text"] = "20",
	},
}

--金币3x1按钮配置（总共4个按钮）
--注意，需要从0开始配置并且连续
local ThrXOneMoney = {
	--第一个按钮
	[0] = {
		--NPCID
		["NpcID"] = 22711,
		--文本显示
		["text"] = "10K",
	},
	[1] = {
		--NPCID
		["NpcID"] = 22712,
		--文本显示
		["text"] = "100K",
	},
	[2] = {
		--NPCID
		["NpcID"] = 22713,
		--文本显示
		["text"] = "1KK",
	},
	[3] = {
		--NPCID
		["NpcID"] = 22714,
		--文本显示
		["text"] = "5KK",
	},
}

--天石3x1按钮配置（总共4个按钮）
--注意，需要从0开始配置并且连续
local ThrXOneEMoney = {
	--第一个按钮
	[0] = {
		--NPCID
		["NpcID"] = 15460,
		--文本显示
		["text"] = "3",
	},
	[1] = {
		--NPCID
		["NpcID"] = 15461,
		--文本显示
		["text"] = "10",
	},
	[2] = {
		--NPCID
		["NpcID"] = 15462,
		--文本显示
		["text"] = "100",
	},
	[3] = {
		--NPCID
		["NpcID"] = 23020,
		--文本显示
		["text"] = "1000",
	},
}

-----------------------------------------下面区分普通服跟激情服，NpcID需要配置水果机的具体值，text是文本
--金币水果机按钮配置（总共4个按钮）
--注意，需要从0开始配置并且连续             
local FruitSlotMoney = {
	--普通服
	["Normal"] = {
		--第一个按钮
		[0] = {
			--NPCID
			["NpcID"] = 26694,
			--文本显示
			["text"] = "10K",
		},
		[1] = {
			--NPCID
			["NpcID"] = 26695,
			--文本显示
			["text"] = "100K",
		},
		[2] = {
			--NPCID
			["NpcID"] = 26696,
			--文本显示
			["text"] = "1KK",
		},
	},
	--激情服
	["Passion"] = {
		--第一个按钮
		[0] = {
			--NPCID
			["NpcID"] = 26694,
			--文本显示
			["text"] = "10K",
		},
		[1] = {
			--NPCID
			["NpcID"] = 26695,
			--文本显示
			["text"] = "100K",
		},
		[2] = {
			--NPCID
			["NpcID"] = 26696,
			--文本显示
			["text"] = "1KK",
		},
	},
}

-----------------------------------------下面区分普通服跟激情服，NpcID需要配置水果机的具体值，text是文本
--天石水果机按钮配置（总共4个按钮）
--注意，需要从0开始配置并且连续
local FruitSlotEMoney = {
	--普通服
	["Normal"] = {
		--第一个按钮
		[0] = {
			--NPCID
			["NpcID"] = 26698,
			--文本显示
			["text"] = "1",
		},
		[1] = {
			--NPCID
			["NpcID"] = 26700,
			--文本显示
			["text"] = "10",
		},
		[2] = {
			--NPCID
			["NpcID"] = 26701,
			--文本显示
			["text"] = "50",
		},
	},
	--激情服
	["Passion"] = {
		--第一个按钮
		[0] = {
			--NPCID
			["NpcID"] = 26698,
			--文本显示
			["text"] = "1",
		},
		[1] = {
			--NPCID
			["NpcID"] = 26700,
			--文本显示
			["text"] = "10",
		},
		[2] = {
			--NPCID
			["NpcID"] = 26701,
			--文本显示
			["text"] = "50",
		},
	},
}

-----------------------------------------下面区分普通服跟激情服，NpcID需要配置水果机的具体值，text是文本
--多人金币水果机按钮配置（总共4个按钮）
--注意，需要从0开始配置并且连续
local MulFruitSlotMoney = {
	--普通服
	["Normal"] = {
		--第一个按钮
		[0] = {
			--NPCID
			["NpcID"] = 28295,
			--文本显示
			["text"] = "10K",
		},
		[1] = {
			--NPCID
			["NpcID"] = 28364,
			--文本显示
			["text"] = "100K",
		},
		[2] = {
			--NPCID
			["NpcID"] = 28365,
			--文本显示
			["text"] = "1KK",
		},
	},
	--激情服
	["Passion"] = {
		--第一个按钮
		[0] = {
			--NPCID
			["NpcID"] = 28295,
			--文本显示
			["text"] = "10K",
		},
		[1] = {
			--NPCID
			["NpcID"] = 28364,
			--文本显示
			["text"] = "100K",
		},
		[2] = {
			--NPCID
			["NpcID"] = 28365,
			--文本显示
			["text"] = "1KK",
		},
	},
}

-----------------------------------------下面区分普通服跟激情服，NpcID需要配置水果机的具体值，text是文本
--多人天石水果机按钮配置（总共4个按钮）
--注意，需要从0开始配置并且连续
local MulFruitSlotEMoney = {
	--普通服
	["Normal"] = {
		--第一个按钮
	},
	--激情服
	["Passion"] = {
		--第一个按钮
	},
}

local function GetIconAni(id)
	local keyValue = nil

	if (id == 0) then
		keyValue = FiveXThrAni
	elseif (id == 1) then
		keyValue = ThrXOneAni
	elseif (id == 2) then
		keyValue = FruitAni
	elseif (id == 3) then
		keyValue = FruitAni
	end
	
	if (keyValue ~= nil) then
		return keyValue
	end
	
	return ""
end

local function GetSubBGAni(id)
	local keyValue = nil

	if (id == 0) then
		keyValue = SubBgPicAni
	elseif (id == 1) then
		keyValue = SubBgPicAni
	elseif (id == 2) then
		keyValue = BossPicAni
	elseif (id == 3) then
		keyValue = MulBossPicAni
	end
	
	if (keyValue ~= nil) then
		return keyValue
	end
	
	return ""
end

local function GetFiveXThr(kind, id, key)
	local keyValue = nil

	if (kind == 0) then
		keyValue = FiveXThrMoney[id][key]
	elseif (kind == 1) then
		keyValue = FiveXThrEMoney[id][key]
	end
	
	if (keyValue ~= nil) then
		return keyValue
	end
	
	if (keyValue == "text") then
		return ""
	end
	
	return 0
end

local function GetThrXOne(kind, id, key)
	local keyValue = nil

	if (kind == 0) then
		keyValue = ThrXOneMoney[id][key]
	elseif (kind == 1) then
		keyValue = ThrXOneEMoney[id][key]
	end
	
	if (keyValue ~= nil) then
		return keyValue
	end
	
	if (keyValue == "text") then
		return ""
	end
	
	return 0
end


local function GetReOpenTip(id)
	local keyValue = ReOpenTip[id]

	if (keyValue ~= nil) then
		return keyValue
	end
	
	return ""
end

local function GetFruitSlot(kind, id, key)
	local keyValue = nil

	if (kind == 0) then
		if (UserData_IsPassionServer() ~= true) then
			keyValue = FruitSlotMoney["Normal"][id][key]
		else 
			keyValue = FruitSlotMoney["Passion"][id][key]
		end
	elseif (kind == 1) then
		if (UserData_IsPassionServer() ~= true) then
			keyValue = FruitSlotEMoney["Normal"][id][key]
		else 
			keyValue = FruitSlotEMoney["Passion"][id][key]
		end
	end
	
	if (keyValue ~= nil) then
		return keyValue
	end
	
	if (keyValue == "text") then
		return ""
	end
	
	return 0
end

local function GetMulFruitSlot(kind, id, key)
	local keyValue = nil

	if (kind == 0) then
		if (UserData_IsPassionServer() == true) then
			keyValue = MulFruitSlotMoney["Normal"][id][key]
		else 
			keyValue = MulFruitSlotMoney["Passion"][id][key]
		end
	elseif (kind == 1) then
		if (UserData_IsPassionServer() == true) then
			keyValue = MulFruitSlotEMoney["Normal"][id][key]
		else 
			keyValue = MulFruitSlotEMoney["Passion"][id][key]
		end
	end
	
	if (keyValue ~= nil) then
		return keyValue
	end
	
	if (keyValue == "text") then
		return ""
	end
	
	return 0
end

local function GetValue(kind1, kind2, id, key)
	local keyValue = nil

	if (kind1 == 0) then
		keyValue = GetFiveXThr(kind2, id, key)
	elseif (kind1 == 1) then
		keyValue = GetThrXOne(kind2, id, key)
	elseif (kind1 == 2) then
		keyValue = GetFruitSlot(kind2, id, key)
	elseif (kind1 == 3) then
		keyValue = GetMulFruitSlot(kind2, id, key)
	end
	
	return keyValue
end

--用于Slot5X3主界面开配置
local SlotInfo = {
	--征服风
	[0] = {
		["JackPotVX"] = 0,--"jackpot数值"的x偏移
		["JackPotVY"] = 0,--"jackpot数值"的y偏移
		["GameMachines_Pic0"] = "newlaohu21",--跟中奖图标长得一模一样的光效，等号左边中括号里的是中奖图标的title(ani/Control.ani能查到)，等号右边是光效title(ini/3DEffect.ini能查到)
		["GameMachines_Pic1"] = "newlaohu18",--跟中奖图标长得一模一样的光效*
		["GameMachines_Pic2"] = "newlaohu19",--跟中奖图标长得一模一样的光效*
		["GameMachines_Pic3"] = "newlaohu20",--跟中奖图标长得一模一样的光效*
		["GameMachines_Pic4"] = "newlaohu11",--跟中奖图标长得一模一样的光效*
		["GameMachines_Pic5"] = "newlaohu12",--跟中奖图标长得一模一样的光效*
		["GameMachines_Pic6"] = "newlaohu13",--跟中奖图标长得一模一样的光效*
		["GameMachines_Pic7"] = "newlaohu14",--跟中奖图标长得一模一样的光效*
		["GameMachines_Pic98"] = "newlaohu15",--跟中奖图标长得一模一样的光效*
		["GameMachines_Pic99"] = "newlaohu17",--跟中奖图标长得一模一样的光效*
		["GameMachines_Pic100"] = "newlaohu49",--跟中奖图标长得一模一样的光效*
		["HighlightEffectX"] = -3,--中奖光效x偏移，它其实已经是取了格子中心点位置，但是光效有时候对得不那么准，所以再开个配置方便些*
		["HighlightEffectY"] = -3,--中奖光效y偏移，它其实已经是取了格子中心点位置，但是光效有时候对得不那么准，所以再开个配置方便些*
		["AutoX"] = 0,--Auto，x偏移量
		["AutoY"] = 0,--Auto，y偏移量
		["AutoW"] = 0,--Auto，要调宽或调窄几个像素
		["AutoH"] = 0,--Auto，要调高或调矮几个像素
		["AutoText"] = "", --Auto, text要改成什么，"NULL"表示清空，因GUI有配置字符串Auto，征服和海盗风都用了，只有埃及要清空，只好引入"NULL"的用法
		["AutoAniSection"] = "GameMachines_Tongyongbtn", --Auto, 外观
		["ScoreX"] = 0,--Score，x偏移量
		["ScoreY"] = 0,--Score，y偏移量
		["ScoreW"] = 0,--Score，要调宽或调窄几个像素
		["ScoreH"] = 0,--Score，要调高或调矮几个像素
		["ScoreText"] = "", --Score, text要改成什么，"NULL"表示清空，因GUI有配置字符串Auto，征服和海盗风都用了，只有埃及要清空，只好引入"NULL"的用法
		["ScoreAniSection"] = "GameMachines_Tongyongbtn", --Score, 外观	
		["SpinX"] = 0,
		["SpinY"] = 0,
		["SpinW"] = 0,
		["SpinH"] = 0,
		["SpinAniSection"] = "GameMachines_spinBtn",--Spin 外观
		["SpinImageOffsetX"] = 0, --当Spin左侧留白较多，可用这个调，让响应区更精确一点
		["SpinImageOffsetY"] = 0,
		["StopX"] = 0,
		["StopY"] = 0,
		["StopW"] = 0,
		["StopH"] = 0,
		["StopAniSection"] = "GameMachines_Stopbtn",--Stop 外观
		["StopImageOffsetX"] = 0, --当Stop左侧留白较多，可用这个调，让响应区更精确一点
		["StopImageOffsetY"] = 0,
		["LeftTimesX"] = 298,--剩余次数
		["LeftTimesY"] = 92,
		["LeftTimesFontColor"] = 0xff000000,
		["LeftTimesFontSize"] = 18,
		["CloseX"] = 0,
		["CloseY"] = 0,
		["CloseW"] = 0,
		["CloseH"] = 0,
		["CloseAniSection"] = "NewJiuGong_Close2Btn",--x 外观
		["HelpX"] = 0,
		["HelpY"] = 0,
		["HelpW"] = 0,
		["HelpH"] = 0,
		["HelpAniSection"] = "GameMachines_wenhaobtn",--？外观
		["DownBetX"] = 0,
		["DownBetY"] = 0,
		["DownBetW"] = 0,
		["DownBetH"] = 0,
		["DownBetAniSection"] = "GameMachines_NewJianbtn",--减号 外观
		["UpBetX"] = 0,
		["UpBetY"] = 0,
		["UpBetW"] = 0,
		["UpBetH"] = 0,
		["UpBetAniSection"] = "GameMachines_NewAddbtn",--加号 外观
		["DingNumStepXAdd"] = 0, --jackpot图片式数字，数字间隔可能通过这项调大或调小，在ini/Gui.ini的基础上加上此项配置
		["SubBg0AniSection"] = "GameMachines_BG8",--余额底框图片Title
		["WinValueEffect"] = "copxjgold",--伴随win数值的光效
		["WinValueEffectX"] = 0,--伴随win数值的光效的x偏移（是基于gui.ini里992-6132控件的x的偏移，征服风）
		["WinValueEffectY"] = 0,--伴随win数值的光效的x偏移（是基于gui.ini里992-6132控件的y的偏移，征服风）
		["SpeedNormalX"] = 70,--Normal，x偏移量
		["SpeedNormalY"] = 70,--Normal，y偏移量
		["SpeedNormalW"] = 0,--Normal，要调宽或调窄几个像素
		["SpeedNormalH"] = 0,--Normal，要调高或调矮几个像素
		["SpeedNormalText"] = "", --Normal
		["SpeedNormalAniSection"] = "newjiasu_1aijibtn", --Normal, 外观
		["SpeedFastX"] = 70,--Turbo，x偏移量
		["SpeedFastY"] = 70,--Turbo，y偏移量
		["SpeedFastW"] = 0,--Turbo，要调宽或调窄几个像素
		["SpeedFastH"] = 0,--Turbo，要调高或调矮几个像素
		["SpeedFastText"] = "", --Turbo
		["SpeedFastAniSection"] = "newjiasu_2aijibtn", --Turbo, 外观
		["SpeedFastEffect"] = "gnewchufa1",--如果是Turbo模式，会在spin上额外显示一个光效
		["SpeedFastEffectX"] = -5,--如果是Turbo模式，会在spin上额外显示一个光效，x偏移量
		["SpeedFastEffectY"] = -10,--如果是Turbo模式，会在spin上额外显示一个光效，y偏移量
		--大奖光效当前配置数据是程序自测使用的数据，请根据外部实际的光效配置
		["WinEffect1"] = "777_jackpot",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect2"] = "777_jackpot_1",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect3"] = "777_jackpot_2",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect4"] = "777_jackpot_3",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
	},
	--海盗风
	[1] = {
		["JackPotVX"] = -55,--"jackpot数值"的x偏移
		["JackPotVY"] = -54,--"jackpot数值"的y偏移
		["NewPirate_PIC0"] = "",--(0漏做)跟中奖图标长得一模一样的光效，等号左边中括号里的是中奖图标的title(ani/Control.ani能查到)，等号右边是光效title(ini/3DEffect.ini能查到)*
		["NewPirate_PIC1"] = "newlaohu28",--跟中奖图标长得一模一样的光效*
		["NewPirate_PIC2"] = "newlaohu48",--(2漏做)跟中奖图标长得一模一样的光效*
		["NewPirate_PIC3"] = "newlaohu25",--跟中奖图标长得一模一样的光效*
		["NewPirate_PIC4"] = "newlaohu24",--跟中奖图标长得一模一样的光效*
		["NewPirate_PIC5"] = "newlaohu26",--跟中奖图标长得一模一样的光效*
		["NewPirate_PIC6"] = "newlaohu23",--跟中奖图标长得一模一样的光效*
		["NewPirate_PIC7"] = "newlaohu29",--跟中奖图标长得一模一样的光效*
		["NewPirate_PIC98"] = "newlaohu31",--跟中奖图标长得一模一样的光效*
		["NewPirate_PIC99"] = "newlaohu17",--跟中奖图标长得一模一样的光效*
		["NewPirate_PIC100"] = "newlaohu27",--跟中奖图标长得一模一样的光效*
		["HighlightEffectX"] = -3,--中奖光效x偏移，它其实已经是取了格子中心点位置，但是光效有时候对得不那么准，所以再开个配置方便些*
		["HighlightEffectY"] = -3,--中奖光效y偏移，它其实已经是取了格子中心点位置，但是光效有时候对得不那么准，所以再开个配置方便些*
		["AutoX"] = -110,--Auto，x偏移量
		["AutoY"] = -43,--Auto，y偏移量
		["AutoW"] = 0,--Auto，要调宽或调窄几个像素
		["AutoH"] = 0,--Auto，要调高或调矮几个像素
		["AutoText"] = "", --Auto, text要改成什么，"NULL"表示清空，因GUI有配置字符串Auto，征服和海盗风都用了，只有埃及要清空，只好引入"NULL"的用法
		["AutoAniSection"] = "NewPirate_AutoBtn", --Auto, 外观
		["ScoreX"] = -105,--Score，x偏移量
		["ScoreY"] = -5,--Score，y偏移量
		["ScoreW"] = 10,--Score，要调宽或调窄几个像素
		["ScoreH"] = 0,--Score，要调高或调矮几个像素
		["ScoreText"] = "", --Score, text要改成什么，"NULL"表示清空，因GUI有配置字符串Auto，征服和海盗风都用了，只有埃及要清空，只好引入"NULL"的用法
		["ScoreAniSection"] = "NewPirate_ScoreBtn", --Score, 外观
		["SpinX"] = -133,
		["SpinY"] = -63,
		["SpinW"] = 80,
		["SpinH"] = 60,
		["SpinAniSection"] = "NewPirate_SPINbtn",--Spin 外观
		["SpinImageOffsetX"] = 0, --当Spin左侧留白较多，可用这个调，让响应区更精确一点
		["SpinImageOffsetY"] = 0,
		["StopX"] = -133,
		["StopY"] = -63,
		["StopW"] = 80,
		["StopH"] = 60,
		["StopAniSection"] = "Pirate_Stopbtn",--Stop 外观（缺资源，补好资源后，看下这个title要不要换掉，ani/Control.ani找不到这个title）
		["StopImageOffsetX"] = 0, --当Stop左侧留白较多，可用这个调，让响应区更精确一点
		["StopImageOffsetY"] = 0,
		["LeftTimesX"] = 298,--剩余次数
		["LeftTimesY"] = 92,
		["LeftTimesFontColor"] = 0xff000000,
		["LeftTimesFontSize"] = 18,
		["CloseX"] = -26,
		["CloseY"] = -28,
		["CloseW"] = 0,
		["CloseH"] = 0,
		["CloseAniSection"] = "NewJiuGong_Close2Btn",--x 外观
		["HelpX"] = -31,
		["HelpY"] = -28,
		["HelpW"] = 0,
		["HelpH"] = 0,
		["HelpAniSection"] = "GameMachines_wenhaobtn",--？外观
		["DownBetX"] = 28,
		["DownBetY"] = -3,
		["DownBetW"] = 0,
		["DownBetH"] = 0,
		["DownBetAniSection"] = "NewPirate_JianBtn",--减号 外观
		["UpBetX"] = 28,
		["UpBetY"] = -3,
		["UpBetW"] = 0,
		["UpBetH"] = 0,
		["UpBetAniSection"] = "NewPirate_JiaBtn",--加号 外观
		["DingNumStepXAdd"] = -5, --jackpot图片式数字，数字间隔可能通过这项调大或调小，在ini/Gui.ini的基础上加上此项配置
		["JackPotVBkImgX"] = 100000,
		["SubBg0X"] = 10000,--余额底框x偏移
		["SubBg0Y"] = 0,--余额底框y偏移
		["SubBg0AniSection"] = "GameMachines_BG8",--余额底框图片Title
		["WinValueEffect"] = "copxjgold",--伴随win数值的光效
		["WinValueEffectX"] = 0,--伴随win数值的光效的x偏移（是基于gui.ini里992-6132控件的x的偏移，海盗风）
		["WinValueEffectY"] = 0,--伴随win数值的光效的x偏移（是基于gui.ini里992-6132控件的y的偏移，海盗风）
		["SpeedNormalX"] = -10,--Normal，x偏移量
		["SpeedNormalY"] = -30,--Normal，y偏移量
		["SpeedNormalW"] = 0,--Normal，要调宽或调窄几个像素
		["SpeedNormalH"] = 0,--Normal，要调高或调矮几个像素
		["SpeedNormalText"] = "", --Normal
		["SpeedNormalAniSection"] = "newjiasu_1aijibtn", --Normal, 外观
		["SpeedFastX"] = -10,--Turbo，x偏移量
		["SpeedFastY"] = -30,--Turbo，y偏移量
		["SpeedFastW"] = 0,--Turbo，要调宽或调窄几个像素
		["SpeedFastH"] = 0,--Turbo，要调高或调矮几个像素
		["SpeedFastText"] = "", --Turbo
		["SpeedFastAniSection"] = "newjiasu_2aijibtn", --Turbo, 外观
		["SpeedFastEffect"] = "gnewspin",--如果是Turbo模式，会在spin上额外显示一个光效
		["SpeedFastEffectX"] = -80,--如果是Turbo模式，会在spin上额外显示一个光效，x偏移量
		["SpeedFastEffectY"] = -40,--如果是Turbo模式，会在spin上额外显示一个光效，y偏移量
		--大奖光效当前配置数据是程序自测使用的数据，请根据外部实际的光效配置
		["WinEffect1"] = "777_jackpot",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect2"] = "777_jackpot_1",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect3"] = "777_jackpot_2",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect4"] = "777_jackpot_3",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
	},
	--埃及风
	[2] = {
		["JackPotVX"] = 30,--"jackpot数值"的x偏移
		["JackPotVY"] = -45,--"jackpot数值"的y偏移
		["Type3_PIC0"] = "newlaohu10",--跟中奖图标长得一模一样的光效，等号左边中括号里的是中奖图标的title(ani/Control.ani能查到)，等号右边是光效title(ini/3DEffect.ini能查到)
		["Type3_PIC1"] = "newlaohu9",--跟中奖图标长得一模一样的光效*
		["Type3_PIC2"] = "newlaohu7",--跟中奖图标长得一模一样的光效*
		["Type3_PIC3"] = "newlaohu10",--跟中奖图标长得一模一样的光效*
		["Type3_PIC4"] = "newlaohu5",--跟中奖图标长得一模一样的光效*
		["Type3_PIC5"] = "newlaohu1",--跟中奖图标长得一模一样的光效*
		["Type3_PIC6"] = "newlaohu6",--跟中奖图标长得一模一样的光效*
		["Type3_PIC7"] = "newlaohu3",--跟中奖图标长得一模一样的光效*
		["Type3_PIC98"] = "newlaohu4",--跟中奖图标长得一模一样的光效*
		["Type3_PIC99"] = "",--跟中奖图标长得一模一样的光效*
		["Type3_PIC100"] = "newlaohu8",--跟中奖图标长得一模一样的光效*
		["AutoX"] = -50,--Auto，x偏移量
		["AutoY"] = -70,--Auto，y偏移量
		["AutoW"] = 5,--Auto，要调宽或调窄几个像素
		["AutoH"] = 15,--Auto，要调高或调矮几个像素
		["AutoText"] = "NULL", --Auto, text要改成什么，"NULL"表示清空，因GUI有配置字符串Auto，征服和海盗风都用了，只有埃及要清空，只好引入"NULL"的用法
		["AutoAniSection"] = "Type3_Autobtn", --Auto, 外观
		["ScoreX"] = -90,--Score，x偏移量
		["ScoreY"] = -72,--Score，y偏移量
		["ScoreW"] = 55,--Score，要调宽或调窄几个像素
		["ScoreH"] = 20,--Score，要调高或调矮几个像素
		["ScoreText"] = "NULL", --Score, text要改成什么，"NULL"表示清空，因GUI有配置字符串Auto，征服和海盗风都用了，只有埃及要清空，只好引入"NULL"的用法
		["ScoreAniSection"] = "Type3_ScoreBtn", --Score, 外观
		["SpinX"] = -74,
		["SpinY"] = -95,
		["SpinW"] = 80,
		["SpinH"] = -20,
		["SpinAniSection"] = "Type3_spinBtn",--Spin 外观
		["SpinImageOffsetX"] = -30, --埃及风的Spin左侧留白较多，可用这个调，让响应区更精确一点
		["SpinImageOffsetY"] = 0,
		["StopX"] = -74,
		["StopY"] = -95,
		["StopW"] = 80,
		["StopH"] = -20,
		["StopAniSection"] = "Type3_Stopbtn",--Stop 外观
		["StopImageOffsetX"] = -30, --埃及风的Stop左侧留白较多，可用这个调，让响应区更精确一点
		["StopImageOffsetY"] = 0,
		["LeftTimesX"] = 276,
		["LeftTimesY"] = -3,
		["LeftTimesFontColor"] = 0xff000000,
		["LeftTimesFontSize"] = 18,
		["CloseX"] = 20,
		["CloseY"] = 20,
		["CloseW"] = 0,
		["CloseH"] = 0,
		["CloseAniSection"] = "Type3_CloseBtn",--x 外观
		["HelpX"] = 15,
		["HelpY"] = 20,
		["HelpW"] = 0,
		["HelpH"] = 0,
		["HelpAniSection"] = "Type3_wenhaobtn",--？外观
		["DownBetX"] = -220,
		["DownBetY"] = -63,
		["DownBetW"] = 5,
		["DownBetH"] = 0,
		["DownBetAniSection"] = "Type3_JianBtn",--减号 外观
		["UpBetX"] = 38,
		["UpBetY"] = -63,
		["UpBetW"] = 5,
		["UpBetH"] = 0,
		["UpBetAniSection"] = "Type3_JiaBtn",--加号 外观
		["DingNumStepXAdd"] = -12, --jackpot图片式数字，数字间隔可能通过这项调大或调小，在ini/Gui.ini的基础上加上此项配置
		["WildEffectX"] = 15,--Wild光效（那个菱形光效）x偏移
		["WildEffectY"] = 0,--Wild光效（那个菱形光效）x偏移
		["ChestEffectX"] = 15,--Box光效（宝箱图标上的光效）x偏移
		["ChestEffectY"] = 0,--Box光效（宝箱图标上的光效）x偏移
		["JackPotVBkImgX"] = 100000,
		["SubBg0X"] = -84,--余额底框x偏移
		["SubBg0Y"] = -25,--余额底框y偏移
		["SubBg0AniSection"] = "Type3_yvebg",--余额底框图片Title
		["WinValueEffect"] = "copxjgold",--伴随win数值的光效
		["WinValueEffectX"] = 0,--伴随win数值的光效的x偏移（是基于gui.ini里992-6132控件的x的偏移，埃及风）
		["WinValueEffectY"] = 0,--伴随win数值的光效的x偏移（是基于gui.ini里992-6132控件的y的偏移，埃及风）
		["SpeedNormalX"] = 0,--Normal，x偏移量
		["SpeedNormalY"] = 0,--Normal，y偏移量
		["SpeedNormalW"] = 0,--Normal，要调宽或调窄几个像素
		["SpeedNormalH"] = 0,--Normal，要调高或调矮几个像素
		["SpeedNormalText"] = "", --Normal，只有埃及是图片自带文字
		["SpeedNormalAniSection"] = "newjiasu_1aijibtn", --Normal, 外观
		["SpeedFastX"] = 0,--Turbo，x偏移量
		["SpeedFastY"] = 0,--Turbo，y偏移量
		["SpeedFastW"] = 0,--Turbo，要调宽或调窄几个像素
		["SpeedFastH"] = 0,--Turbo，要调高或调矮几个像素
		["SpeedFastText"] = "", --Turbo，只有埃及是图片自带文字
		["SpeedFastAniSection"] = "newjiasu_2aijibtn", --Turbo, 外观
		["SpeedFastEffect"] = "gnewchufa",--如果是Turbo模式，会在spin上额外显示一个光效
		["SpeedFastEffectX"] = -40,--如果是Turbo模式，会在spin上额外显示一个光效，x偏移量
		["SpeedFastEffectY"] = -108,--如果是Turbo模式，会在spin上额外显示一个光效，y偏移量
		--大奖光效当前配置数据是程序自测使用的数据，请根据外部实际的光效配置
		["WinEffect1"] = "777_jackpot",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect2"] = "777_jackpot_1",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect3"] = "777_jackpot_2",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect4"] = "777_jackpot_3",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
	},
	--废土风
	[3] = {
		["LineIntervalAdd"] = 500, -- 中奖图标高亮间隔时间增加值，不能为负数，不配置默认为0（在固定间隔800毫秒的基础上增加）
		--大奖光效当前配置数据是程序自测使用的数据，请根据外部实际的光效配置
		["SpineEffectX"] = 20,--SPINE光效 额外偏移
		["SpineEffectY"] = 60,--SPINE光效 额外偏移
		["WinEffect1"] = "newlaohu51",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect2"] = "newlaohu50",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["WinEffect3"] = "newlaohu67",--大奖光效 , 左侧key值未服务端的wineffect(对应数据库字段请咨询服务端开发)跟 "WinEffect"组合生成
		["JackPotVX"] = 0,--"jackpot数值"的x偏移
		["JackPotVY"] = -48,--"jackpot数值"的y偏移
		["type4_Pic0"] = "",--跟中奖图标长得一模一样的光效，等号左边中括号里的是中奖图标的title(ani/Control.ani能查到)，等号右边是光效title(ini/3DEffect.ini能查到)
		["type4_Pic1"] = "qiangshou",--跟中奖图标长得一模一样的光效*
		["type4_Pic2"] = "newlaohu56",--跟中奖图标长得一模一样的光效*
		["type4_Pic3"] = "zombie",--跟中奖图标长得一模一样的光效*
		["type4_Pic4"] = "newlaohu58",--跟中奖图标长得一模一样的光效*
		["type4_Pic5"] = "newlaohu57",--跟中奖图标长得一模一样的光效*
		["type4_Pic6"] = "newlaohu68",--跟中奖图标长得一模一样的光效*
		["type4_Pic7"] = "zomdog",--跟中奖图标长得一模一样的光效*
		["type4_Pic98"] = "newlaohu55",--跟中奖图标长得一模一样的光效*
		["type4_Pic99"] = "",--跟中奖图标长得一模一样的光效*
		["type4_Pic100"] = "newlaohu54",--跟中奖图标长得一模一样的光效*
		["AutoX"] = -60,--Auto，x偏移量
		["AutoY"] = 70,--Auto，y偏移量
		["AutoW"] = 5,--Auto，要调宽或调窄几个像素
		["AutoH"] = 15,--Auto，要调高或调矮几个像素
		["AutoText"] = "NULL", --Auto, text要改成什么，"NULL"表示清空，因GUI有配置字符串Auto，征服和海盗风都用了，只有埃及要清空，只好引入"NULL"的用法
		["AutoAniSection"] = "type4_btn12", --Auto, 外观
		["ScoreX"] = -65,--Score，x偏移量
		["ScoreY"] = 70,--Score，y偏移量
		["ScoreW"] = 55,--Score，要调宽或调窄几个像素
		["ScoreH"] = 20,--Score，要调高或调矮几个像素
		["ScoreText"] = "NULL", --Score, text要改成什么，"NULL"表示清空，因GUI有配置字符串Auto，征服和海盗风都用了，只有埃及要清空，只好引入"NULL"的用法
		["ScoreAniSection"] = "type4_btn10", --Score, 外观
		["SpinX"] = 0,
		["SpinY"] = 70,
		["SpinW"] = 80,
		["SpinH"] = -20,
		["SpinAniSection"] = "type4_btn11",--Spin 外观
		["SpinImageOffsetX"] = -30, --埃及风的Spin左侧留白较多，可用这个调，让响应区更精确一点
		["SpinImageOffsetY"] = 0,
		["StopX"] = 0,
		["StopY"] = 70,
		["StopW"] = 80,
		["StopH"] = -20,
		["StopAniSection"] = "type4_btn13",--Stop 外观
		["StopImageOffsetX"] = -30, --埃及风的Stop左侧留白较多，可用这个调，让响应区更精确一点
		["StopImageOffsetY"] = 0,
		["LeftTimesX"] = 276,
		["LeftTimesY"] = -3,
		["LeftTimesFontColor"] = 0xff000000,
		["LeftTimesFontSize"] = 18,
		["CloseX"] = -870,
		["CloseY"] = -70,
		["CloseW"] = 25,
		["CloseH"] = 25,
		["CloseAniSection"] = "type4_btn5",--x 外观
		["HelpX"] = 90,
		["HelpY"] = -90,
		["HelpW"] = 25,
		["HelpH"] = 25,
		["HelpAniSection"] = "type4_btn4",--？外观
		["DownBetX"] = -210,
		["DownBetY"] = 77,
		["DownBetW"] = 5,
		["DownBetH"] = 0,
		["DownBetAniSection"] = "type4_btn3",--减号 外观
		["UpBetX"] = 22,
		["UpBetY"] = 77,
		["UpBetW"] = 5,
		["UpBetH"] = 0,
		["UpBetAniSection"] = "type4_btn2",--加号 外观
		["DingNumStepXAdd"] = -12, --jackpot图片式数字，数字间隔可能通过这项调大或调小，在ini/Gui.ini的基础上加上此项配置
		["WildEffectX"] = 15,--Wild光效（那个菱形光效）x偏移
		["WildEffectY"] = 15,--Wild光效（那个菱形光效）x偏移
		["ChestEffectX"] = 15,--Box光效（宝箱图标上的光效）x偏移
		["ChestEffectY"] = 0,--Box光效（宝箱图标上的光效）x偏移
		["JackPotVBkImgX"] = 100000,
		["SubBg0X"] = -150,--余额底框x偏移
		["SubBg0Y"] = -85,--余额底框y偏移
		["SubBg0AniSection"] = "type4_BG7",--余额底框图片Title
		["WinValueEffect"] = "copxjgold",--伴随win数值的光效
		["WinValueEffectX"] = 0,--伴随win数值的光效的x偏移（是基于gui.ini里992-6132控件的x的偏移，埃及风）
		["WinValueEffectY"] = 0,--伴随win数值的光效的x偏移（是基于gui.ini里992-6132控件的y的偏移，埃及风）
		["SpeedNormalX"] = 20,--Normal，x偏移量
		["SpeedNormalY"] = 45,--Normal，y偏移量
		["SpeedNormalW"] = 0,--Normal，要调宽或调窄几个像素
		["SpeedNormalH"] = 0,--Normal，要调高或调矮几个像素
		["SpeedNormalText"] = "", --Normal，只有埃及是图片自带文字
		["SpeedNormalAniSection"] = "newjiasu_1aijibtn", --Normal, 外观
		["SpeedFastX"] = 20,--Turbo，x偏移量
		["SpeedFastY"] = 45,--Turbo，y偏移量
		["SpeedFastW"] = 0,--Turbo，要调宽或调窄几个像素
		["SpeedFastH"] = 0,--Turbo，要调高或调矮几个像素
		["SpeedFastText"] = "", --Turbo，只有埃及是图片自带文字
		["SpeedFastAniSection"] = "newjiasu_2aijibtn", --Turbo, 外观
		["SpeedFastEffect"] = "newlaohu53",--如果是Turbo模式，会在spin上额外显示一个光效
		["SpeedFastEffectX"] = 0,--如果是Turbo模式，会在spin上额外显示一个光效，x偏移量
		["SpeedFastEffectY"] = 74,--如果是Turbo模式，会在spin上额外显示一个光效，y偏移量
	},
	
}

local npcTable = {}
	--征服风
	npcTable[0] = {24400,24401,24402,24403,24773,24774,24775,24776,24845,24846,24847,24848,24849,24850,24851,24852,24853,24854,24855,24856,25218,25219,25220,25221,25222,25223,25224,25225,25226,25227,25228,25229,25230,25231,25232,25233,25234,25213,25212,25211,25967,25968,25969,25970,25971,25972,25973,25974,25975,25976,25977,25978,25979,25980,26002,26003,26004,26005,26006,26007,26008,26985,26986,26987,26988,26989,26990,26991,29234,27608,27609,27610,27611,27612,27613,27614,27619,27620,27621,27622,27623,27624,27625,27630,27631,27632,27633,27634,27635,27636,27923,27924,27925,27926,27927,27928,27929,27934,27935,27936,27937,27938,27939,27940,27972,27973,27974,27975,27976,27977,27978}
	--海盗风
	npcTable[1] = {29352,29354,29867,29868,29869,29870,29871,29872,29873,29874,29875,29876,29877,29878,29879,29880,29881,29882,30240,30241}
	--埃及风
	npcTable[2] = {30800,30801,30802}
	--废土风
	npcTable[3] = {32112,32174,32175,32176,32177,32178,32179,32180,32181,32182,32183,32184,32185,32186,32187,32188,32189,32190}
	
-- 以下是测试数据，请根据实际填
local function GetSlot(npcid, section)
	if (section == "ShakeEffect") then
		--中奖图标上再叠加一个光效
		return "newlaohu44"
	end
	for k,v in pairs(npcTable) do
		for _,i in pairs(v) do
			if npcid == i then
				return SlotInfo[k][section]
			end
		end
	end
end

local HelpInfo = {
	--征服风
	[0] = {
		["ReturnX"] = 0,--BackToGame的x偏移
		["ReturnY"] = 0,--BackToGame的y偏移
		["ReturnW"] = 0,--BackToGame的w增减量
		["ReturnH"] = 0,--BackToGame的h增减量
		["ReturnAniSection"] = "gamehelpzf_fanhuibtn",--BackToGame的图片title
		["LeftX"] = 0,--“<”的x偏移
		["LeftY"] = 0,--“<”的y偏移
		["LeftW"] = 0,--“<”的w增减量
		["LeftH"] = 0,--“<”的h增减量
		["LeftAniSection"] = "gamehelp_shangbtn",--“<”的图片title
		["RightX"] = 0,--“>”的x偏移
		["RightY"] = 0,--“>”的y偏移
		["RightW"] = 0,--“>”的w增减量
		["RightH"] = 0,--“>”的h增减量
		["RightAniSection"] = "gamehelp_xiabtn",--“>”的图片title
		["MaxPage"] = 4,--总页数
		["Page1AniSection"] = "gamehelpzf_jichubg",--第1页的图片title
		["Page2AniSection"] = "gamehelpzf_gongnengbg",--第2页的图片title
		["Page3AniSection"] = "gamehelphd_lianxian1",--第3页的图片title
		["Page4AniSection"] = "gamehelphd_lianxian2",--第4页的图片title
	},
	--海盗风
	[1] = {
		["ReturnX"] = 0,--BackToGame的x偏移
		["ReturnY"] = 0,--BackToGame的y偏移
		["ReturnW"] = 0,--BackToGame的w增减量
		["ReturnH"] = 0,--BackToGame的h增减量
		["ReturnAniSection"] = "gamehelpzf_fanhuibtn",--BackToGame的图片title
		["LeftX"] = 0,--“<”的x偏移
		["LeftY"] = 0,--“<”的y偏移
		["LeftW"] = 0,--“<”的w增减量
		["LeftH"] = 0,--“<”的h增减量
		["LeftAniSection"] = "gamehelp_shangbtn",--“<”的图片title
		["RightX"] = 0,--“>”的x偏移
		["RightY"] = 0,--“>”的y偏移
		["RightW"] = 0,--“>”的w增减量
		["RightH"] = 0,--“>”的h增减量
		["RightAniSection"] = "gamehelp_xiabtn",--“>”的图片title
		["MaxPage"] = 4,--总页数
		["Page1AniSection"] = "gamehelphd_jichubg",--第1页的图片title
		["Page2AniSection"] = "gamehelphd_gongnengbg",--第2页的图片title
		["Page3AniSection"] = "gamehelphd_lianxian1",--第3页的图片title
		["Page4AniSection"] = "gamehelphd_lianxian2",--第4页的图片title
	},
	--埃及风
	[2] = {
		["ReturnX"] = 0,--BackToGame的x偏移
		["ReturnY"] = -8,--BackToGame的y偏移
		["ReturnW"] = 0,--BackToGame的w增减量
		["ReturnH"] = 0,--BackToGame的h增减量
		["ReturnAniSection"] = "gamehelp_fanhuibtn",--BackToGame的图片title
		["LeftX"] = 0,--“<”的x偏移
		["LeftY"] = -8,--“<”的y偏移
		["LeftW"] = 0,--“<”的w增减量
		["LeftH"] = 0,--“<”的h增减量
		["LeftAniSection"] = "gamehelp_shangbtn",--“<”的图片title
		["RightX"] = 0,--“>”的x偏移
		["RightY"] = -8,--“>”的y偏移
		["RightW"] = 0,--“>”的w增减量
		["RightH"] = 0,--“>”的h增减量
		["RightAniSection"] = "gamehelp_xiabtn",--“>”的图片title
		["MaxPage"] = 5,--总页数
		["Page1AniSection"] = "Type3_Diagram1Pic",--第1页的图片title
		["Page2AniSection"] = "Type3_Diagram2Pic",--第2页的图片title
		["Page3AniSection"] = "Type3_Diagram3Pic",--第3页的图片title
		["Page4AniSection"] = "Type3_Diagram4Pic",--第4页的图片title
		["Page5AniSection"] = "Type3_Diagram5Pic",--第4页的图片title
	},
	--废土风
	[3] = {
		["ReturnX"] = 0,--BackToGame的x偏移
		["ReturnY"] = 55,--BackToGame的y偏移
		["ReturnW"] = 0,--BackToGame的w增减量
		["ReturnH"] = 0,--BackToGame的h增减量
		["ReturnAniSection"] = "type4_btn9",--BackToGame的图片title
		["LeftX"] = 0,--“<”的x偏移
		["LeftY"] = 75,--“<”的y偏移
		["LeftW"] = 0,--“<”的w增减量
		["LeftH"] = 0,--“<”的h增减量
		["LeftAniSection"] = "type4_btn14",--“<”的图片title
		["RightX"] = 23,--“>”的x偏移
		["RightY"] = 75,--“>”的y偏移
		["RightW"] = 0,--“>”的w增减量
		["RightH"] = 0,--“>”的h增减量
		["RightAniSection"] = "type4_btn7",--“>”的图片title
		["MaxPage"] = 3,--总页数
		["Page1AniSection"] = "type4_BG4",--第1页的图片title
		["Page2AniSection"] = "type4_BG2",--第2页的图片title
		["Page3AniSection"] = "type4_BG3",--第3页的图片title
	},
	
}

-- slots帮助
-- 以下是测试数据，请根据实际填
local function GetHelp(npcid, section)
	for k,v in pairs(npcTable) do
		for _,i in pairs(v) do
			if npcid == i then
				return HelpInfo[k][section]
			end
		end
	end
end

--5x3威虎山选组界面内的大图标分组数据
local T_5X3MenuBig = {
	["Amount"] = 0,
	--[0] = {
	--	--废土风
	--	["GroupId"] = 2,
	--},
	--[1] = {
	--	--埃及风-组内只含金币
	--	["GroupId"] = 1,
	--},
	-- [1] = {
		-- --海盗风-组内只含金币
		-- ["GroupId"] = 3,
	-- },
	-- [2] = {
		-- --海盗风-组内只含金币
		-- ["GroupId"] = 4,
	-- },
}

--5x3威虎山选组界面内的小图标分组数据，小图标都跟在大图标后面
local T_5X3MenuSmall = {
	["Amount"] = 4,
	[0] = {
		--废土风
		["GroupId"] = 2,
	},
	[1] = {
		--埃及风-组内只含金币
		["GroupId"] = 1,
	},
	[2] = {
		--海盗风
		["GroupId"] = 7,
	},
	[3] = {
		--征服风
		["GroupId"] = 8,
	},
	-- [2] = {
		-- --海盗风-组内只含金币
		-- ["GroupId"] = 7,
	-- },
	-- [3] = {
		-- --海盗风-组内只含金币
		-- ["GroupId"] = 8,
	-- },
}

--5x3威虎山选组界面内的所有图标详细信息
local T_5X3MenuDetail = {
	--M代表金币图标
	["M"] = "GameMachinesNew_Money64Pic",
	--E代表天石图标
	["E"] = "GameMachinesNew_Tian64Pic",
	--中括号里的id对应T_5X3MenuBig或T_5X3MenuSmall里的["GroupId"]
	[1] = {
		--分组图标title
		["BgImage"] = "GameMachinesNew_ZRK1",
		--分组图标上的光效（只有两种，大或小两种尺寸，所有大图标共用一种，所有小图标共用另一种）
		["BgEffect"] = "newlaohu47",
		--二级菜单图标
		["SubMenuIcon"] = "GameMachinesNew_CRK1",
		--二级菜单内含的NPC有哪些？用逗号隔开NPCID
		["NpcId"] = "30800,30801,30802",
		--二级菜单内含的NPC对应的下注额程序字描述，与["NpcId"]配的顺序要一致
		["SubMenuText"] = "40K-2KK,4KK-200KK,20-1000",
		--二级菜单内含的NPC对应的货币图标，与["NpcId"]配的顺序要一致
		--里面的M和E只是中间字符，最终会去取["M"]和["E"]里面的图标title
		["SubMenuChipIcon"] = "M,M,E",
	},
	[2] = {
		--分组图标title
		["BgImage"] = "type4_feiBG",
		--分组图标上的光效（只有两种，大或小两种尺寸，所有大图标共用一种，所有小图标共用另一种）
		["BgEffect"] = "newlaohu47",
		--二级菜单图标
		["SubMenuIcon"] = "type4_feixBG",
		--二级菜单内含的NPC有哪些？用逗号隔开NPCID
		["NpcId"] = "32112,32174,32175",
		--二级菜单内含的NPC对应的下注额程序字描述，与["NpcId"]配的顺序要一致
		["SubMenuText"] = "40K-2KK,4KK-200KK,20-1000",
		--二级菜单内含的NPC对应的货币图标，与["NpcId"]配的顺序要一致
		["SubMenuChipIcon"] = "M,M,E",
	},
	[3] = {
		--分组图标title
		["BgImage"] = "GameMachinesNew_ZRK5",
		--分组图标上的光效（只有两种，大或小两种尺寸，所有大图标共用一种，所有小图标共用另一种）
		["BgEffect"] = "newlaohu46",
		--二级菜单图标
		["SubMenuIcon"] = "GameMachinesNew_CRK5",
		--二级菜单内含的NPC有哪些？用逗号隔开NPCID
		["NpcId"] = "29881,29882",
		--二级菜单内含的NPC对应的下注额程序字描述，与["NpcId"]配的顺序要一致
		["SubMenuText"] = "40K-2KK,4KK-200KK",
		--二级菜单内含的NPC对应的货币图标，与["NpcId"]配的顺序要一致
		["SubMenuChipIcon"] = "M,M",
	},
	[4] = {
		--分组图标title
		["BgImage"] = "GameMachinesNew_ZRK6",
		--分组图标上的光效（只有两种，大或小两种尺寸，所有大图标共用一种，所有小图标共用另一种）
		["BgEffect"] = "newlaohu46",
		--二级菜单图标
		["SubMenuIcon"] = "GameMachinesNew_CRK6",
		--二级菜单内含的NPC有哪些？用逗号隔开NPCID
		["NpcId"] = "24854,24856,25230",
		--二级菜单内含的NPC对应的下注额程序字描述，与["NpcId"]配的顺序要一致
		["SubMenuText"] = "20K-1KK,2KK-100KK,20-1000",
		--二级菜单内含的NPC对应的货币图标，与["NpcId"]配的顺序要一致
		["SubMenuChipIcon"] = "M,M,E",
	},
	--中括号里的id对应T_5X3MenuBig或T_5X3MenuSmall里的["GroupId"]
	[5] = {
		--分组图标title
		["BgImage"] = "GameMachinesNew_ZRKX1",
		--分组图标上的光效（只有两种，大或小两种尺寸，所有大图标共用一种，所有小图标共用另一种）
		["BgEffect"] = "newlaohu47",
		--二级菜单图标
		["SubMenuIcon"] = "GameMachinesNew_CRKX1",
		["NpcId"] = "30800,30801,30802",
		--二级菜单内含的NPC对应的下注额程序字描述，与["NpcId"]配的顺序要一致
		["SubMenuText"] = "40K-2KK,4KK-200KK,20-1000",
		--二级菜单内含的NPC对应的货币图标，与["NpcId"]配的顺序要一致
		["SubMenuChipIcon"] = "M,M,E",
	},
	[6] = {
		--分组图标title
		["BgImage"] = "GameMachinesNew_ZRKX3",
		--分组图标上的光效（只有两种，大或小两种尺寸，所有大图标共用一种，所有小图标共用另一种）
		["BgEffect"] = "newlaohu47",
		--二级菜单图标
		["SubMenuIcon"] = "GameMachinesNew_CRKX3",
		--二级菜单内含的NPC有哪些？用逗号隔开NPCID
		["NpcId"] = "30800,30801",
		--二级菜单内含的NPC对应的下注额程序字描述，与["NpcId"]配的顺序要一致
		["SubMenuText"] = "40K-2KK,4KK-200KK",
		--二级菜单内含的NPC对应的货币图标，与["NpcId"]配的顺序要一致
		["SubMenuChipIcon"] = "M,M",
	},
	[7] = {
		--分组图标title
		["BgImage"] = "GameMachinesNew_ZRKX5",
		--分组图标上的光效（只有两种，大或小两种尺寸，所有大图标共用一种，所有小图标共用另一种）
		["BgEffect"] = "newlaohu47",
		--二级菜单图标
		-- ["SubMenuIcon"] = "GameMachinesNew_CRKX5",
		["SubMenuIcon"] = "GameMachinesNew_CRK5",
		--二级菜单内含的NPC有哪些？用逗号隔开NPCID
		["NpcId"] = "29881,29882",
		--二级菜单内含的NPC对应的下注额程序字描述，与["NpcId"]配的顺序要一致
		["SubMenuText"] = "40K-2KK,4KK-200KK",
		--二级菜单内含的NPC对应的货币图标，与["NpcId"]配的顺序要一致
		["SubMenuChipIcon"] = "M,M",
	},
	[8] = {
		--分组图标title
		["BgImage"] = "GameMachinesNew_ZRKX6",
		--分组图标上的光效（只有两种，大或小两种尺寸，所有大图标共用一种，所有小图标共用另一种）
		["BgEffect"] = "newlaohu47",
		--二级菜单图标
		-- ["SubMenuIcon"] = "GameMachinesNew_CRKX6",
		["SubMenuIcon"] = "GameMachinesNew_CRK6",
		--二级菜单内含的NPC有哪些？用逗号隔开NPCID
		["NpcId"] = "24854,24856,25230",
		--二级菜单内含的NPC对应的下注额程序字描述，与["NpcId"]配的顺序要一致
		["SubMenuText"] = "20K-1KK,2KK-100KK,20-1000",
		--二级菜单内含的NPC对应的货币图标，与["NpcId"]配的顺序要一致
		["SubMenuChipIcon"] = "M,M,E",
	},
}

local function Get5X3MenuBig(key, index)
	if (key == "Amount") then
		return T_5X3MenuBig[key]
	end
	return T_5X3MenuBig[index][key]
end

local function Get5X3MenuSmall(key, index)
	if (key == "Amount") then
		return T_5X3MenuSmall[key]
	end
	return T_5X3MenuSmall[index][key]
end

local function Get5X3MenuDetail(key, GroupId)
	if (key == "JackpotGivePrizeWDay") then
		--Jackpot大奖周几发奖（取值范围：0~6，0表示周日，6表示周六，1表示周1...）
		return 6
	elseif (key == "JackpotGivePrizeHour") then
		--Jackpot大奖几点发奖（取值范围：0~20）
		return 20
	elseif (key == "M" or key == "E") then
		return T_5X3MenuDetail[key]
	end
	return T_5X3MenuDetail[GroupId][key]
end

--对应1850对话框右半边那个尺寸大一点的分组图标，图标的位置信息
local T_5X3MenuBigPos = {
	--假如每页放3个大图标，第1个大图标里的x,y,BgImageOffsetX,BgImageOffsetY如下
	--按钮实际只有Play Now那一小块，压在按钮下的那个图标是作为按钮的背景，所以按钮Play Now那小块的宽、高、以及按钮左边或上边有留白，是去调gui，留白可调gui里的ImageOffsetX和ImageOffsetY
	--Play Now按钮的偏移配置在x,y里，压在按钮背后的那个图标的偏移则是配置在BgImageOffsetX,BgImageOffsetY里
	[0] = "328,454,-58,-421",
	--假如每页放3个大图标，第2个大图标里的x,y,BgImageOffsetX,BgImageOffsetY如下
	[1] = "550,454,-58,-421",
	--假如每页放3个大图标，第3个大图标里的x,y,BgImageOffsetX,BgImageOffsetY如下
	[2] = "772,454,-58,-421",
}

local function Get5X3MenuBigPos(index)
	return T_5X3MenuBigPos[index]
end

--对应1850对话框右半边那个尺寸小一点的分组图标，图标的位置信息
local T_5X3MenuSmallPos = {
	--假如每页放6个小图标，第1个小图标的x,y,BgImageOffsetX,BgImageOffsetY如下
	--按钮实际只有Play Now那一小块，压在按钮下的那个图标是作为按钮的背景，所以按钮Play Now那小块的宽、高、以及按钮左边或上边有留白，是去调gui，留白可调gui里的ImageOffsetX和ImageOffsetY
	--Play Now按钮的偏移配置在x,y里，压在按钮背后的那个图标的偏移则是配置在BgImageOffsetX,BgImageOffsetY里
	[0] = "328,221,-59,-194",
	--假如每页放6个小图标，第2个小图标的x,y,BgImageOffsetX,BgImageOffsetY如下
	[1] = "328,454,-59,-194",
	--假如每页放6个小图标，第3个小图标的x,y,BgImageOffsetX,BgImageOffsetY如下
	[2] = "550,221,-59,-194",
	--假如每页放6个小图标，第4个小图标的x,y,BgImageOffsetX,BgImageOffsetY如下
	[3] = "550,454,-59,-194",
	--假如每页放6个小图标，第5个小图标的x,y,BgImageOffsetX,BgImageOffsetY如下
	[4] = "772,221,-59,-194",
	--假如每页放6个小图标，第6个小图标的x,y,BgImageOffsetX,BgImageOffsetY如下
	[5] = "772,454,-59,-194",
}

local function Get5X3MenuSmallPos(index)
	return T_5X3MenuSmallPos[index]
end

--对应1850对话框右半边那个尺寸小一点的分组图标右上方那个“向上箭头”按钮的位置，那个按钮有将本图标置顶的功能，置顶到所有小图标的最开头
local T_5X3MenuToTopPos = {
	--假如每页放6个置顶按钮，第1个置顶按钮的x,y如下
	--按钮的AniSection、宽、高都在gui里面调
	[0] = "468,57",
	--假如每页放6个置顶按钮，第2个置顶按钮的x,y如下
	[1] = "468,290",	
	--假如每页放6个置顶按钮，第3个置顶按钮的x,y如下
	[2] = "690,57",
	--假如每页放6个置顶按钮，第4个置顶按钮的x,y如下
	[3] = "690,290",	
	--假如每页放6个置顶按钮，第5个置顶按钮的x,y如下
	[4] = "912,57",
	--假如每页放6个置顶按钮，第6个置顶按钮的x,y如下
	[5] = "912,290",	
}

local function Get5X3MenuToTopPos(index)
	return T_5X3MenuToTopPos[index]
end

local Slot = {
	GetSlot = GetSlot,
	GetHelp = GetHelp,
	GetReOpenTip = GetReOpenTip,
	GetFiveXThr = GetFiveXThr,
	GetThrXOne = GetThrXOne,
	GetIconAni = GetIconAni,
	GetSubBGAni = GetSubBGAni,
	GetValue = GetValue,
	Get5X3MenuToTopPos = Get5X3MenuToTopPos,
	Get5X3MenuSmallPos = Get5X3MenuSmallPos,
	Get5X3MenuBigPos = Get5X3MenuBigPos,
	Get5X3MenuDetail = Get5X3MenuDetail,
	Get5X3MenuSmall = Get5X3MenuSmall,
	Get5X3MenuBig = Get5X3MenuBig,
	Unload = Unload,
}

local function Unload()
	SlotInfo = nil
	HelpInfo = nil
	T_5X3MenuToTopPos = nil
	T_5X3MenuSmallPos = nil
	T_5X3MenuBigPos = nil
	T_5X3MenuDetail = nil
	T_5X3MenuBig = nil
	T_5X3MenuSmall = nil
end

-- global
Slot_GetSlot = Slot.GetSlot
Slot_GetHelp = Slot.GetHelp
Slot_GetValue = Slot.GetValue
Slot_GetIconAni = Slot.GetIconAni
Slot_GetSubBGAni = Slot.GetSubBGAni
Slot_GetReOpenTip = Slot.GetReOpenTip
Slot_Get5X3MenuToTopPos = Slot.Get5X3MenuToTopPos
Slot_Get5X3MenuSmallPos = Slot.Get5X3MenuSmallPos
Slot_Get5X3MenuBigPos = Slot.Get5X3MenuBigPos
Slot_Get5X3MenuDetail = Slot.Get5X3MenuDetail
Slot_Get5X3MenuSmall = Slot.Get5X3MenuSmall
Slot_Get5X3MenuBig = Slot.Get5X3MenuBig
Slot_Unload = Slot.Unload

return Slot
