PGRData/Script/matrix/xui/xuifightnewspaper/XUiFightNewspaper.lua
2024-09-01 22:49:41 +02:00

16 lines
No EOL
582 B
Lua

local XUiFightNewspaper = XLuaUiManager.Register(XLuaUi, "UiFightNewspaper")
function XUiFightNewspaper:OnAwake()
self.BtnTanchuangCloseBig.CallBack = function()
local fight = CS.XFight.Instance
if fight then
fight.InputControl:OnClick(CS.XNpcOperationClickKey.CommonUiClose, CS.XOperationClickType.KeyDown)
fight.InputControl:OnClick(CS.XNpcOperationClickKey.CommonUiClose, CS.XOperationClickType.KeyUp)
end
self:Close()
end
end
function XUiFightNewspaper:OnEnable(name)
self.RImgNewspaper:SetRawImage(name)
end