PGRData/Script/matrix/xui/xuidialog/XUiSystemDialog.lua

25 lines
501 B
Lua
Raw Permalink Normal View History

local XUiDialog = require("XUi/XUiDialog/XUiDialog")
local XUiSystemDialog = XLuaUiManager.Register(XUiDialog, "UiSystemDialog")
function XUiSystemDialog:OkBtnClick()
self:Close()
if self.OkCallBack then
self.OkCallBack()
end
self.OkCallBack = nil
self.CancelCallBack = nil
end
function XUiSystemDialog:CancelBtnClick()
self:Close()
if self.CancelCallBack then
self.CancelCallBack()
end
self.OkCallBack = nil
self.CancelCallBack = nil
end