slot0 = class("AwardInfoMediator", import("..base.ContextMediator")) slot0.ON_DROP = "AwardInfoMediator:ON_DROP" function slot0.register(slot0) slot0:bind(uv0.ON_DROP, function (slot0, slot1, slot2) if slot1.type == DROP_TYPE_EQUIP then uv0:addSubLayers(Context.New({ mediator = EquipmentInfoMediator, viewComponent = EquipmentInfoLayer, data = { equipmentId = slot1.cfg.id, type = EquipmentInfoMediator.TYPE_DISPLAY, onRemoved = slot2, LayerWeightMgr_weight = LayerWeightConst.THIRD_LAYER } })) else pg.MsgboxMgr.GetInstance():ShowMsgBox({ type = MSGBOX_TYPE_SINGLE_ITEM, drop = slot1, onNo = slot2, onYes = slot2, weight = LayerWeightConst.THIRD_LAYER }) end end) end function slot0.listNotificationInterests(slot0) return {} end function slot0.handleNotification(slot0, slot1) slot2 = slot1:getName() slot3 = slot1:getBody() end return slot0