UIRoleInfo页面

This commit is contained in:
fatiao 2025-08-14 10:51:37 +08:00
parent 8a2887cf6d
commit 07bd152b1e
18 changed files with 314648 additions and 2 deletions

View File

@ -387,6 +387,11 @@ MonoBehaviour:
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
- m_GUID: 568208bb3cb8a424eb3427f5cd2add77
m_Address: Assets/Content/Prefabs/UI/UIRoleInfo
m_ReadOnly: 0
m_SerializedLabels: []
FlaggedDuringContentUpdateRestriction: 0
m_ReadOnly: 0
m_Settings: {fileID: 11400000, guid: 8b54c61ef06dca34e89fcf16d0b8c4b3, type: 2}
m_SchemaSet:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 568208bb3cb8a424eb3427f5cd2add77
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: d7a94a28e63471f4283e3ee240cff0d7
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 198de8d3741c95045bd5c9094524d318
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -5631,5 +5631,28 @@ local UICfg = {
['top_btn_display_state']=false,
['NoPay']=false,
},
[3005]={
['id']=3005,
['name']='UIRoleInfo',
['type']=3,
['mainViewType']=0,
['need_mask']=false,
['lua_path']='',
['res_path']='UIRoleInfo/UIRoleInfo',
['childPaths']='',
['page_anim_in_type']=1,
['page_anim_out_type']=2,
['hide_main_top']=false,
['hide_main_bottom']=false,
['need_persistent']=false,
['battle_main_page']=false,
['need_cache']=true,
['can_limit_gift']=false,
['top_res_id']=2,
['top_btn_display_state']=false,
['NoPay']=false,
},
}
return UICfg

View File

@ -178,6 +178,7 @@ local Enum = {
UIFruit = 3002,
UIRank = 3003,
UITeam = 3004,
UIRoleInfo = 3005,
},
ParamState = {

View File

@ -296,5 +296,6 @@ local UIPageName = {
UIFruit = 3002,
UIRank = 3003,
UITeam = 3004,
UIRoleInfo = 3005,
}
return setmetatable(UIPageName, { __index = Enum.UIPageName })

View File

@ -118,7 +118,8 @@ end
function LuaUIMgr:ClosePage(id, needOutAnim)
local uiData = ManagerContainer.CfgMgr:GetUIData(id);
if uiData == nil then
return;
LogError("[LuaUIMgr] Nof Find ui id "..id)
return
end
local ignoreCheckCam = id == Enum.UIPageName.UILoading or id == Enum.UIPageName.UIStartLoading
self:Close(uiData.id,ignoreCheckCam, (needOutAnim == false and false or true));

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 45ece75c6d20a8f4e9ed223ce77a6c2e
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,28 @@
local UIRoleInfoCtr = class("UIRoleInfoCtr", require("UICtrBase"))
function UIRoleInfoCtr:Init(view)
self.view = view
end
function UIRoleInfoCtr:SetData(data)
self.asyncIdx = 0
if data == nil then return end
self.data = data
end
function UIRoleInfoCtr:GetAsyncIdx()
self.asyncIdx = self.asyncIdx + 1
return self.asyncIdx
end
function UIRoleInfoCtr:GetData()
return self.data
end
function UIRoleInfoCtr:OnDispose()
self.data = nil
self.view = nil
end
return UIRoleInfoCtr

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 3369a9052478d054e8f9d2d46820f6c7
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,58 @@
local UIRoleInfoView = require("UIRoleInfo/UIRoleInfoView_Generate")
function UIRoleInfoView:OnAwake(data)
self.controller = require("UIRoleInfo/UIRoleInfoCtr"):new()
self.controller:Init(self)
self.controller:SetData(data)
end
function UIRoleInfoView:AddEventListener()
ManagerContainer.LuaEventMgr:RegisterUIEvent(self.uiData.name)
end
function UIRoleInfoView:FillContent(data, uiBase)
self.uiBase = uiBase
local gameObject = self.uiBase:GetRoot()
if gameObject ~= nil then
self.gameObject = gameObject
self.transform = gameObject.transform
end
self:InitGenerate(self.transform, data)
self:Init()
end
function UIRoleInfoView:Init()
end
function UIRoleInfoView:RemoveEventListener()
ManagerContainer.LuaEventMgr:Unregister(self.uiData.name)
end
function UIRoleInfoView:AddUIEventListener()
self.uiBase:AddButtonEventListener(self.btnBack.button,self, self.OnClickBackBtn)
end
function UIRoleInfoView:OnClickBackBtn()
self:UIClose()
end
function UIRoleInfoView:OnHide()
end
function UIRoleInfoView:OnShow(data)
self.controller:SetData(data)
end
function UIRoleInfoView:OnClose()
end
function UIRoleInfoView:OnDispose()
self.controller:OnDispose()
end
return UIRoleInfoView

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 6ae36890e34beae459e0cf0985b9cffb
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 097f427640d0c8e47b8157092b787512
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -247,9 +247,11 @@ function UITeamView:OnClickHero(btn,params)
self.curSelectedUid = uid
LogError("[OnClickHero] "..tostring(idx)..", self.curReplaceUid "..self.curReplaceUid)
self.controller:PartnerBattleReq(self.curReplaceUid, false)
--self.controller:PartnerBattleReq(self.curSelectedUid, true)
end
-- Enter UIRoleInfo Page
ManagerContainer.LuaUIMgr:Open(Enum.UIPageName.UIRoleInfo, {curUid = uid, allUidList = {}})
-- if ManagerContainer.DataMgr.ArenaData:IsInBattleTeam(uid) then
-- ManagerContainer.LuaUIMgr:ErrorNoticeDisplay("ArenaChangePartnerTips1")
-- return