25 lines
779 B
Lua
25 lines
779 B
Lua
local CommonManager = class("CommonManager", BaseModule)
|
|
|
|
function CommonManager:showMopUpUI(rewards, remainCount, callback, customtitleTx, targetReward, targetDesc, targetTotalProgress)
|
|
local params = {
|
|
customtitleTx = customtitleTx,
|
|
rewards = rewards,
|
|
remainCount = remainCount,
|
|
callback = callback,
|
|
|
|
---- 有目标的扫荡 可为nil
|
|
targetReward = targetReward,
|
|
targetDesc = targetDesc,
|
|
targetTotalProgress = targetTotalProgress,
|
|
}
|
|
UIManager:showUI("app/ui/common/mop_up_ui", params)
|
|
end
|
|
|
|
function CommonManager:showFormationUI(formationType)
|
|
local params = {
|
|
formationType = formationType
|
|
}
|
|
UIManager:showUI("app/ui/common/common_formation_ui", params)
|
|
end
|
|
|
|
return CommonManager |