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

15 lines
No EOL
547 B
Lua

--踩格子界面
local XUiFightBangbiPaper = XLuaUiManager.Register(XLuaUi, "UiFightBangbiPaper")
function XUiFightBangbiPaper:OnStart()
self:RegisterClickEvent(self.BtnTanchuangCloseBig, self.OnClose)
end
function XUiFightBangbiPaper:OnClose()
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