mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-08-03 15:27:13 -04:00
showMessageBox -> showInteractiveMessage
This commit is contained in:
parent
d694d1f219
commit
525aac7a15
@ -109,7 +109,7 @@ namespace MWLua
|
||||
luaManager->addUIMessage(message, mode);
|
||||
};
|
||||
|
||||
api["showMessageBox"] = [windowManager](std::string_view message, sol::optional<sol::table> options) {
|
||||
api["showInteractiveMessage"] = [windowManager](std::string_view message, sol::optional<sol::table> options) {
|
||||
std::string buttonText = "#{Interface:OK}";
|
||||
if (options)
|
||||
{
|
||||
|
@ -37,7 +37,7 @@
|
||||
|
||||
---
|
||||
-- Shows given message as a message box
|
||||
-- @function [parent=#ui] showMessageBox
|
||||
-- @function [parent=#ui] showInteractiveMessage
|
||||
-- @param #string msg
|
||||
-- @param #table options An optional table with additional optional arguments. Can contain:
|
||||
--
|
||||
@ -46,7 +46,7 @@
|
||||
-- @usage local params = {
|
||||
-- buttonText="Bene"
|
||||
-- };
|
||||
-- ui.showMessageBox("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque quis justo in orci pharetra semper in lobortis tortor. Suspendisse et sapien sapien.", params)
|
||||
-- ui.showInteractiveMessage("Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quisque quis justo in orci pharetra semper in lobortis tortor. Suspendisse et sapien sapien.", params)
|
||||
|
||||
---
|
||||
-- Shows given message at the bottom of the screen.
|
||||
|
Loading…
x
Reference in New Issue
Block a user