引导修改
This commit is contained in:
parent
7145fb758a
commit
ef6969c4d9
@ -619,6 +619,7 @@ local tutorial = {
|
|||||||
["next_id"]=80010,
|
["next_id"]=80010,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="main_ui(Clone)/bottom_node/bottom_btn_cell_2",
|
["target_name"]="main_ui(Clone)/bottom_node/bottom_btn_cell_2",
|
||||||
|
["func_id"]="dungeon_weapon_open",
|
||||||
["arrow_direction"]=2,
|
["arrow_direction"]=2,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -639,6 +640,7 @@ local tutorial = {
|
|||||||
["delay"]=0.5,
|
["delay"]=0.5,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="main_ui(Clone)/sub_ui_node/hero_ui/formation/hero_3",
|
["target_name"]="main_ui(Clone)/sub_ui_node/hero_ui/formation/hero_3",
|
||||||
|
["func_id"]="dungeon_weapon_open",
|
||||||
["arrow_direction"]=2,
|
["arrow_direction"]=2,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -650,6 +652,7 @@ local tutorial = {
|
|||||||
["next_id"]=80030,
|
["next_id"]=80030,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="hero_detail_ui(Clone)/common/btns/btn_weapon",
|
["target_name"]="hero_detail_ui(Clone)/common/btns/btn_weapon",
|
||||||
|
["func_id"]="dungeon_weapon_open",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -663,7 +666,8 @@ local tutorial = {
|
|||||||
["txt_offset"]={
|
["txt_offset"]={
|
||||||
0,
|
0,
|
||||||
200
|
200
|
||||||
}
|
},
|
||||||
|
["func_id"]="dungeon_weapon_open"
|
||||||
},
|
},
|
||||||
[80040]={
|
[80040]={
|
||||||
["next_id"]=80050,
|
["next_id"]=80050,
|
||||||
@ -674,6 +678,7 @@ local tutorial = {
|
|||||||
200
|
200
|
||||||
},
|
},
|
||||||
["target_name"]="hero_detail_ui(Clone)/common/btn_close",
|
["target_name"]="hero_detail_ui(Clone)/common/btn_close",
|
||||||
|
["func_id"]="dungeon_weapon_open",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -684,6 +689,7 @@ local tutorial = {
|
|||||||
["next_id"]=80060,
|
["next_id"]=80060,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="main_ui(Clone)/bottom_node/bottom_btn_cell_1",
|
["target_name"]="main_ui(Clone)/bottom_node/bottom_btn_cell_1",
|
||||||
|
["func_id"]="dungeon_weapon_open",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -703,6 +709,7 @@ local tutorial = {
|
|||||||
["next_id"]=80070,
|
["next_id"]=80070,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/right/dungeon",
|
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/right/dungeon",
|
||||||
|
["func_id"]="dungeon_weapon_open",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -717,7 +724,8 @@ local tutorial = {
|
|||||||
},
|
},
|
||||||
[80070]={
|
[80070]={
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/dungeon_comp/scrollrect/viewport/content/scroll_cell_2/btn_start",
|
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/dungeon_comp/scrollrect/viewport/content/dungeon_weapon_open/btn_start",
|
||||||
|
["func_id"]="dungeon_weapon_open",
|
||||||
["arrow_direction"]=2,
|
["arrow_direction"]=2,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -728,6 +736,7 @@ local tutorial = {
|
|||||||
["next_id"]=90010,
|
["next_id"]=90010,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="main_ui(Clone)/bottom_node/bottom_btn_cell_2",
|
["target_name"]="main_ui(Clone)/bottom_node/bottom_btn_cell_2",
|
||||||
|
["func_id"]="dungeon_armor_open",
|
||||||
["arrow_direction"]=2,
|
["arrow_direction"]=2,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -748,6 +757,7 @@ local tutorial = {
|
|||||||
["delay"]=0.5,
|
["delay"]=0.5,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="main_ui(Clone)/sub_ui_node/hero_ui/formation/hero_3",
|
["target_name"]="main_ui(Clone)/sub_ui_node/hero_ui/formation/hero_3",
|
||||||
|
["func_id"]="dungeon_armor_open",
|
||||||
["arrow_direction"]=2,
|
["arrow_direction"]=2,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -759,6 +769,7 @@ local tutorial = {
|
|||||||
["next_id"]=90030,
|
["next_id"]=90030,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="hero_detail_ui(Clone)/common/btns/btn_armor",
|
["target_name"]="hero_detail_ui(Clone)/common/btns/btn_armor",
|
||||||
|
["func_id"]="dungeon_armor_open",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -772,7 +783,8 @@ local tutorial = {
|
|||||||
["txt_offset"]={
|
["txt_offset"]={
|
||||||
0,
|
0,
|
||||||
200
|
200
|
||||||
}
|
},
|
||||||
|
["func_id"]="dungeon_armor_open"
|
||||||
},
|
},
|
||||||
[90040]={
|
[90040]={
|
||||||
["next_id"]=90050,
|
["next_id"]=90050,
|
||||||
@ -783,6 +795,7 @@ local tutorial = {
|
|||||||
200
|
200
|
||||||
},
|
},
|
||||||
["target_name"]="hero_detail_ui(Clone)/common/btn_close",
|
["target_name"]="hero_detail_ui(Clone)/common/btn_close",
|
||||||
|
["func_id"]="dungeon_armor_open",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -793,6 +806,7 @@ local tutorial = {
|
|||||||
["next_id"]=90060,
|
["next_id"]=90060,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="main_ui(Clone)/bottom_node/bottom_btn_cell_1",
|
["target_name"]="main_ui(Clone)/bottom_node/bottom_btn_cell_1",
|
||||||
|
["func_id"]="dungeon_armor_open",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -812,6 +826,7 @@ local tutorial = {
|
|||||||
["next_id"]=90070,
|
["next_id"]=90070,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/right/dungeon",
|
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/right/dungeon",
|
||||||
|
["func_id"]="dungeon_armor_open",
|
||||||
["arrow_direction"]=1,
|
["arrow_direction"]=1,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -827,7 +842,8 @@ local tutorial = {
|
|||||||
[90070]={
|
[90070]={
|
||||||
["next_id"]=90080,
|
["next_id"]=90080,
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/dungeon_comp/scrollrect/viewport/content/scroll_cell_3/btn_start",
|
["target_name"]="main_ui(Clone)/sub_ui_node/main_comp/dungeon_comp/scrollrect/viewport/content/dungeon_armor_open/btn_start",
|
||||||
|
["func_id"]="dungeon_armor_open",
|
||||||
["arrow_direction"]=2,
|
["arrow_direction"]=2,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
0,
|
0,
|
||||||
@ -837,6 +853,7 @@ local tutorial = {
|
|||||||
[90080]={
|
[90080]={
|
||||||
["type"]=2,
|
["type"]=2,
|
||||||
["target_name"]="dungeon_armor_main_ui(Clone)/scrollrect/viewport/content/scroll_cell_1/touch_node",
|
["target_name"]="dungeon_armor_main_ui(Clone)/scrollrect/viewport/content/scroll_cell_1/touch_node",
|
||||||
|
["func_id"]="dungeon_armor_open",
|
||||||
["arrow_direction"]=4,
|
["arrow_direction"]=4,
|
||||||
["arrow_offset"]={
|
["arrow_offset"]={
|
||||||
20,
|
20,
|
||||||
|
|||||||
@ -31,13 +31,22 @@ function DungeonComp:init()
|
|||||||
self:refreshShow()
|
self:refreshShow()
|
||||||
end
|
end
|
||||||
|
|
||||||
function DungeonComp:refreshShow()
|
function DungeonComp:refreshShow(targetMuduleKey)
|
||||||
if EDITOR_MODE then
|
if EDITOR_MODE then
|
||||||
Logger.logHighlight("更新副本显示."..tostring(Time:getTodaySurplusTime()))
|
Logger.logHighlight("更新副本显示."..tostring(Time:getTodaySurplusTime()))
|
||||||
end
|
end
|
||||||
self.openDungeons = DataManager.DungeonData:getOpenDungeons()
|
self.openDungeons = DataManager.DungeonData:getOpenDungeons()
|
||||||
|
local targetIndex
|
||||||
|
if targetMuduleKey then
|
||||||
|
for index, dungeon in ipairs(self.openDungeons) do
|
||||||
|
if dungeon.module == targetMuduleKey then
|
||||||
|
targetIndex = index
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
self.scrollRectComp:clearCells()
|
self.scrollRectComp:clearCells()
|
||||||
self.scrollRectComp:refillCells(#self.openDungeons)
|
self.scrollRectComp:refillCells(#self.openDungeons, nil, targetIndex)
|
||||||
|
|
||||||
-- 跨天定时器
|
-- 跨天定时器
|
||||||
if self.countdownSid then
|
if self.countdownSid then
|
||||||
|
|||||||
@ -87,6 +87,14 @@ function MainComp:refreshModule(selectModule)
|
|||||||
if DataManager.ArenaData:needShowPopGift() and DataManager.ArenaData:getGiftId() then
|
if DataManager.ArenaData:needShowPopGift() and DataManager.ArenaData:getGiftId() then
|
||||||
ModuleManager.ArenaManager:showGiftPopUI()
|
ModuleManager.ArenaManager:showGiftPopUI()
|
||||||
end
|
end
|
||||||
|
elseif self.curModuleType == GConst.MainCityConst.MAIN_MODULE.DUNGEON then
|
||||||
|
if DataManager.TutorialData:getIsInTutorial() then
|
||||||
|
local moduleKey = DataManager.TutorialData:getTargetFuncId()
|
||||||
|
if moduleKey then
|
||||||
|
local dungeonComp = self.moduleMap[self.curModuleType]
|
||||||
|
dungeonComp:refreshShow(moduleKey)
|
||||||
|
end
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
for idx, cell in pairs(self.moduleMap) do
|
for idx, cell in pairs(self.moduleMap) do
|
||||||
|
|||||||
@ -191,6 +191,10 @@ function TutorialData:getTargetName()
|
|||||||
return self.tutorialInfo.target_name
|
return self.tutorialInfo.target_name
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function TutorialData:getTargetFuncId()
|
||||||
|
return self.tutorialInfo.func_id
|
||||||
|
end
|
||||||
|
|
||||||
function TutorialData:getTargetHeroId()
|
function TutorialData:getTargetHeroId()
|
||||||
return self.tutorialInfo.heroid
|
return self.tutorialInfo.heroid
|
||||||
end
|
end
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user