Fix build

This commit is contained in:
fed 2022-01-31 09:15:11 +01:00
parent 3a683f7171
commit d131749a3c
2 changed files with 9 additions and 5 deletions

View File

@ -1187,7 +1187,11 @@ namespace ui_scripting::lua
game_type["isdebugbuild"] = [](const game&)
{
return DEBUG;
#ifdef DEBUG
return true;
#else
return false;
#endif
};
struct player

View File

@ -97,7 +97,7 @@ stack = {}
LUI.MenuBuilder.m_types_build["generic_waiting_popup_"] = function (menu, event)
local oncancel = stack.oncancel
local popup = LUI.MenuBuilder.BuildRegisteredType("waiting_popup", {
message_text = stack.text,
message_text = stack.text,
isLiveWithCancel = true,
cancel_func = function(...)
local args = {...}
@ -116,9 +116,9 @@ end
LUI.MenuBuilder.m_types_build["generic_yes_no_popup_"] = function()
local callback = stack.callback
local popup = LUI.MenuBuilder.BuildRegisteredType("generic_yesno_popup", {
popup_title = stack.title,
message_text = stack.text,
yes_action = function()
popup_title = stack.title,
message_text = stack.text,
yes_action = function()
callback(true)
end,
no_action = function()