剧情预览功能
This commit is contained in:
parent
3fd3e464d3
commit
baa441aa22
@ -5776,7 +5776,7 @@ local UICfg = {
|
||||
['hide_main_bottom'] = false,
|
||||
['need_persistent'] = false,
|
||||
['battle_main_page'] = false,
|
||||
['need_cache'] = true,
|
||||
['need_cache'] = false,
|
||||
['can_limit_gift'] = false,
|
||||
['top_res_id'] = 0,
|
||||
['top_btn_display_state'] = false,
|
||||
|
||||
@ -83,7 +83,7 @@ function UIStoryMgr:StartStoryByStoryId(storyId, skipCheckCache)
|
||||
end
|
||||
local record = false
|
||||
if not skipCheckCache then
|
||||
record = UIStoryMgr:CheckRecord(storyId)
|
||||
--record = UIStoryMgr:CheckRecord(storyId)
|
||||
end
|
||||
LogError("UIStoryMgr:StartStoryByStoryId "..tostring(storyId).."-"..tostring(record))
|
||||
|
||||
@ -174,7 +174,7 @@ function UIStoryMgr:StartStory()
|
||||
end
|
||||
curStoryData = storyList[1]
|
||||
table.remove(storyList, 1)
|
||||
storyPlayStatus = true
|
||||
--storyPlayStatus = true
|
||||
|
||||
LogError("[UIStoryMgr] Open Story "..Inspect(curStoryData))
|
||||
if curStoryData["Type"] == nil or curStoryData["Type"] == 0 then
|
||||
|
||||
@ -120,23 +120,26 @@ function UIStoryPreviewView:Gen_StoryItem(loopview, index, row, col)
|
||||
--类型
|
||||
if info.Type == 0 then --漫画
|
||||
itemlua.btn_comic:SetActive(true)
|
||||
self.uiBase:AddButtonEventListener(itemlua.btn_comic.button, self, self.OnClickComic)
|
||||
self.uiBase:AddButtonUniqueEventListener(itemlua.btn_comic.button, self, self.OnClickComic, info)
|
||||
|
||||
elseif info.Type == 1 then --momo
|
||||
itemlua.btn_momo:SetActive(true)
|
||||
self.uiBase:AddButtonEventListener(itemlua.btn_momo.button, self, self.OnClickMomo)
|
||||
self.uiBase:AddButtonUniqueEventListener(itemlua.btn_momo.button, self, self.OnClickMomo, info)
|
||||
end
|
||||
|
||||
|
||||
return item
|
||||
end
|
||||
|
||||
function UIStoryPreviewView:OnClickComic()
|
||||
LogWarning("tzy_OnClickComic")
|
||||
function UIStoryPreviewView:OnClickComic(button, params)
|
||||
local storyCfg = params[0]
|
||||
local storyId = storyCfg.StoryId
|
||||
ManagerContainer.UIStoryMgr:StartStoryByStoryId(tonumber(storyId), true)
|
||||
end
|
||||
|
||||
function UIStoryPreviewView:OnClickMomo()
|
||||
LogWarning("tzy_OnClickMomo")
|
||||
function UIStoryPreviewView:OnClickMomo(button, params)
|
||||
local storyCfg = params[0]
|
||||
local storyId = storyCfg.StoryId
|
||||
ManagerContainer.UIStoryMgr:StartStoryByStoryId(tonumber(storyId), true)
|
||||
end
|
||||
|
||||
return UIStoryPreviewView
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user