mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-09-09 04:15:40 -04:00
showMessageBox -> showInteractiveMessage
This commit is contained in:
parent
d694d1f219
commit
525aac7a15
@ -109,7 +109,7 @@ namespace MWLua
|
|||||||
luaManager->addUIMessage(message, mode);
|
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}";
|
std::string buttonText = "#{Interface:OK}";
|
||||||
if (options)
|
if (options)
|
||||||
{
|
{
|
||||||
|
@ -37,7 +37,7 @@
|
|||||||
|
|
||||||
---
|
---
|
||||||
-- Shows given message as a message box
|
-- Shows given message as a message box
|
||||||
-- @function [parent=#ui] showMessageBox
|
-- @function [parent=#ui] showInteractiveMessage
|
||||||
-- @param #string msg
|
-- @param #string msg
|
||||||
-- @param #table options An optional table with additional optional arguments. Can contain:
|
-- @param #table options An optional table with additional optional arguments. Can contain:
|
||||||
--
|
--
|
||||||
@ -46,7 +46,7 @@
|
|||||||
-- @usage local params = {
|
-- @usage local params = {
|
||||||
-- buttonText="Bene"
|
-- 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.
|
-- Shows given message at the bottom of the screen.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user