Difference between revisions of "Lua:showMessage"
Jump to navigation
Jump to search
m |
|||
(One intermediate revision by one other user not shown) | |||
Line 1: | Line 1: | ||
− | + | [[Category:Lua]] | |
+ | '''function''' showMessage(''Text'') | ||
+ | |||
+ | Displays a simple message box with the given text and an OK button. | ||
+ | |||
+ | ===Function Parameters=== | ||
+ | {|width="85%" cellpadding="10%" cellspacing="0" border="0" | ||
+ | !align="left"|Parameter | ||
+ | !align="left"|Type | ||
+ | !style="width: 80%;background-color:white;" align="left"|Description | ||
+ | |- | ||
+ | |Text | ||
+ | |String | ||
+ | |The message to display in the message box. | ||
+ | |} | ||
+ | |||
+ | ===Examples=== | ||
+ | <pre> | ||
+ | showMessage("Hello, world!") | ||
+ | |||
+ | local name = "Player" | ||
+ | showMessage("Welcome, " .. name .. "!") | ||
+ | </pre> | ||
+ | |||
+ | ===See Also=== | ||
+ | * [[messageDialog]] | ||
+ | * [[inputQuery]] | ||
+ | * [[Lua]] |
Latest revision as of 23:53, 10 July 2025
function showMessage(Text)
Displays a simple message box with the given text and an OK button.
Function Parameters[edit]
Parameter | Type | Description |
---|---|---|
Text | String | The message to display in the message box. |
Examples[edit]
showMessage("Hello, world!") local name = "Player" showMessage("Welcome, " .. name .. "!")