slot0 = class("GuildFirePage", import(".GuildMemberBasePage")) function slot0.getUIName(slot0) return "GuildFirePage" end function slot0.OnLoaded(slot0) uv0.super.OnLoaded(slot0) slot0.fireconfirmBtn = slot0:findTF("frame/confirm_btn") slot0.firecancelBtn = slot0:findTF("frame/cancel_btn") slot0.firenameTF = slot0:findTF("frame/info/name/Text", slot0._tf):GetComponent(typeof(Text)) slot0.fireiconTF = slot0:findTF("frame/info/shipicon/icon", slot0._tf):GetComponent(typeof(Image)) slot0.fireduty = slot0:findTF("frame/duty"):GetComponent(typeof(Image)) slot0.firestarsTF = slot0:findTF("frame/info/shipicon/stars", slot0._tf) slot0.firestarTF = slot0:findTF("frame/info/shipicon/stars/star", slot0._tf) slot0.firelevelTF = slot0:findTF("frame/info/level/Text", slot0._tf):GetComponent(typeof(Text)) slot0.circle = slot0:findTF("frame/info/shipicon/frame", slot0._tf) end function slot0.OnInit(slot0) onButton(slot0, slot0.firecancelBtn, function () uv0:Hide() end, SFX_CONFIRM) onButton(slot0, slot0._tf, function () uv0:Hide() end, SFX_CONFIRM) end function slot0.OnShow(slot0) slot1 = slot0.guildVO slot2 = slot0.playerVO slot3 = slot0.memberVO slot0.firenameTF.text = slot3.name slot4 = AttireFrame.attireFrameRes(slot3, isSelf, AttireConst.TYPE_ICON_FRAME, slot3.propose) PoolMgr.GetInstance():GetPrefab("IconFrame/" .. slot4, slot4, true, function (slot0) if IsNil(uv0._tf) then return end if uv0.circle then slot0.name = uv1 findTF(slot0.transform, "icon"):GetComponent(typeof(Image)).raycastTarget = false setParent(slot0, uv0.circle, false) else PoolMgr.GetInstance():ReturnPrefab("IconFrame/" .. uv1, uv1, slot0) end end) LoadSpriteAsync("qicon/" .. Ship.New({ configId = slot3.icon, skin_id = slot3.skinId }):getPainting(), function (slot0) if not IsNil(uv0.fireiconTF) then uv0.fireiconTF.sprite = slot0 end end) slot0.fireduty.sprite = GetSpriteFromAtlas("dutyicon", "icon_" .. slot3.duty) for slot12 = slot0.firestarsTF.childCount, pg.ship_data_statistics[slot3.icon].star - 1 do cloneTplTo(slot0.firestarTF, slot0.firestarsTF) end for slot12 = 1, slot8 do setActive(slot0.firestarsTF:GetChild(slot12 - 1), slot12 <= slot5.star) end slot0.firelevelTF.text = "Lv." .. slot3.level onButton(slot0, slot0.fireconfirmBtn, function () if uv0.id == uv1.id then return end pg.MsgboxMgr.GetInstance():ShowMsgBox({ content = i18n("guild_fire_tip"), onYes = function () uv0:emit(GuildMemberMediator.FIRE, uv1.id) uv0:Hide() end }) end, SFX_CONFIRM) end return slot0