forked from endernon/PGRData
24 lines
501 B
Lua
24 lines
501 B
Lua
|
|
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
|