slot0 = class("GuildMemberBasePage", import("....base.BaseSubView")) function slot0.SetCallBack(slot0, slot1, slot2) slot0.onShowCallBack = slot1 slot0.onHideCallBack = slot2 end function slot0.OnLoaded(slot0) slot0.buttonContainer = slot0:findTF("frame/opera") slot2 = pg.UIMgr:GetInstance().OverlayMain.transform:InverseTransformPoint(slot0.buttonContainer.position) slot0.buttonPos = Vector3(slot2.x, slot2.y, 0) end function slot0.Show(slot0, slot1, slot2, slot3, slot4) if slot4 then slot4() end slot0.guildVO = slot1 slot0.playerVO = slot2 slot0.memberVO = slot3 if not slot0:ShouldShow() then return end slot0:OnShow() pg.UIMgr.GetInstance():BlurPanel(slot0._tf) uv0.super.Show(slot0) slot0._tf:SetAsLastSibling() slot0.onShowCallBack(slot0.buttonPos) end function slot0.Hide(slot0) if slot0:isShowing() then pg.UIMgr.GetInstance():UnblurPanel(slot0._tf, slot0._parentTf) end if slot0.circle.childCount > 0 then slot1 = slot0.circle:GetChild(0).gameObject PoolMgr.GetInstance():ReturnPrefab("IconFrame/" .. slot1.name, slot1.name, slot1) end uv0.super.Hide(slot0) slot0.onHideCallBack() end function slot0.OnDestroy(slot0) slot0:Hide() end function slot0.ShouldShow(slot0) return true end function slot0.OnShow(slot0) end return slot0