Fix build
This commit is contained in:
parent
3a683f7171
commit
d131749a3c
@ -1187,7 +1187,11 @@ namespace ui_scripting::lua
|
|||||||
|
|
||||||
game_type["isdebugbuild"] = [](const game&)
|
game_type["isdebugbuild"] = [](const game&)
|
||||||
{
|
{
|
||||||
return DEBUG;
|
#ifdef DEBUG
|
||||||
|
return true;
|
||||||
|
#else
|
||||||
|
return false;
|
||||||
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
struct player
|
struct player
|
||||||
|
@ -97,7 +97,7 @@ stack = {}
|
|||||||
LUI.MenuBuilder.m_types_build["generic_waiting_popup_"] = function (menu, event)
|
LUI.MenuBuilder.m_types_build["generic_waiting_popup_"] = function (menu, event)
|
||||||
local oncancel = stack.oncancel
|
local oncancel = stack.oncancel
|
||||||
local popup = LUI.MenuBuilder.BuildRegisteredType("waiting_popup", {
|
local popup = LUI.MenuBuilder.BuildRegisteredType("waiting_popup", {
|
||||||
message_text = stack.text,
|
message_text = stack.text,
|
||||||
isLiveWithCancel = true,
|
isLiveWithCancel = true,
|
||||||
cancel_func = function(...)
|
cancel_func = function(...)
|
||||||
local args = {...}
|
local args = {...}
|
||||||
@ -116,9 +116,9 @@ end
|
|||||||
LUI.MenuBuilder.m_types_build["generic_yes_no_popup_"] = function()
|
LUI.MenuBuilder.m_types_build["generic_yes_no_popup_"] = function()
|
||||||
local callback = stack.callback
|
local callback = stack.callback
|
||||||
local popup = LUI.MenuBuilder.BuildRegisteredType("generic_yesno_popup", {
|
local popup = LUI.MenuBuilder.BuildRegisteredType("generic_yesno_popup", {
|
||||||
popup_title = stack.title,
|
popup_title = stack.title,
|
||||||
message_text = stack.text,
|
message_text = stack.text,
|
||||||
yes_action = function()
|
yes_action = function()
|
||||||
callback(true)
|
callback(true)
|
||||||
end,
|
end,
|
||||||
no_action = function()
|
no_action = function()
|
||||||
|
Loading…
Reference in New Issue
Block a user