【gm】引导测试功能优化

dev_chengFeng
gaoxin 2021-05-15 17:38:58 +08:00
parent c3c485b209
commit eac86d749f
1 changed files with 14 additions and 3 deletions

View File

@ -90,7 +90,7 @@ function GMPanel:InitComponent()
{type = GMType.Function, subType = GMSubType.Func, inputNum = 1, args = "", btnTip = "跳转测试", inputTip = {"输入跳转ID"}, callBack = this.TestJump},
{type = GMType.Function, subType = GMSubType.Server, inputNum = 1, args = "23#0#%s", btnTip = "获取", inputTip = {"天宫秘宝积分"}, callBack = nil},
{type = GMType.Function, subType = GMSubType.Server, inputNum = 1, args = "24#%s", btnTip = "逍遥游", inputTip = {"类型#mapId#bossId"}, callBack = nil},
{type = GMType.Function, subType = GMSubType.Func, inputNum = 1, args = "", btnTip = "功能引导测试", inputTip = {"请输入引导ID"}, callBack = this.TestFuncGuide},
{type = GMType.Function, subType = GMSubType.Func, inputNum = 2, args = "", btnTip = "功能引导测试", inputTip = {"请输入功能ID", "1去主界面2去挂机界面"}, callBack = this.TestFuncGuide},
{type = GMType.Function, subType = GMSubType.Func, inputNum = 0, args = "", btnTip = "红点Debug", inputTip = {""}, callBack = this.OpenRedDebug},
@ -319,9 +319,20 @@ function this.TestJump(text)
JumpManager.GoJump(tonumber(text))
end
-- 测试功能引导
function this.TestFuncGuide(text)
function this.TestFuncGuide(text, goType)
local gid = tonumber(text)
GuideManager.AddFuncGuide(gid)
-- 判断要前往的界面
if goType == "1" then
GuideManager.AddFuncGuide(gid)
this:ClosePanel()
elseif goType == "2" then
GuideManager.AddFuncGuide(gid)
UIManager.OpenPanel(UIName.FightPointPassMainPanel)
else
PopupTipPanel.ShowTip("请输入要前往的界面")
end
end
-- 红点Debug
function this.OpenRedDebug()