This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| 4rpl:commands:showgamemessage [2021/10/31 19:01] – Format Karsten75 | 4rpl:commands:showgamemessage [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ~~NOTOC~~ | ~~NOTOC~~ | ||
| < | < | ||
| + | |||
| + | <WRAP tabs> | ||
| + | * [[4rpl: | ||
| + | * [[4rpl: | ||
| + | * [[4rpl: | ||
| + | * [[4rpl: | ||
| + | </ | ||
| ====== ShowGameMessage ====== | ====== ShowGameMessage ====== | ||
| Line 8: | Line 15: | ||
| Shows a game message by message key. A game message is a popup message that appears at the top of the screen. | Shows a game message by message key. A game message is a popup message that appears at the top of the screen. | ||
| - | ? 'messageID' | + | ? messageID |
| - | : the ADA message ID to show. Create a message using the ADA message editor, and reference it via it's ID. | + | : the ADA message ID to show. Create a message using the [[cw4: |
| - | ? 'button0Text' | + | ? button0Text |
| : and | : and | ||
| - | ? 'button1Text' | + | ? button1Text |
| : show one or two buttons. If you don't want button(s), set them to "" | : show one or two buttons. If you don't want button(s), set them to "" | ||
| - | ? 'pauseGame' | + | ? pauseGame |
| - | : 'true' | + | : true to auto pause the game. |
| - | ? 'messageChannel' | + | ? messageChannel |
| : the name of the message channel to broadcast on when a button is pressed. | : the name of the message channel to broadcast on when a button is pressed. | ||
| - | :: If a button is shown, a message will be sent when the button is pressed. A variable named ' | ||
| - | :: In order to allow the player to close the message, a script must be registered for the message channel specified using [[4rpl: | ||
| - | ::If a message is already showing, then calling this function will do nothing. If you want to replace the message, you must first call CloseGameMessage if there is already a message showing. | ||
| | | ||
| - | **Note:** You can use "\\n" to create a line break in the button text. | + | If a button is shown, a message will be sent when the button is pressed. A variable named ' |
| + | |||
| + | In order to allow the player to close the message, a script must be registered for the message channel specified using [[4rpl: | ||
| + | |||
| + | If a message is already showing, then calling this function will do nothing. If you want to replace the message, you must first call [[CloseGameMessage]] if there is already a message showing. | ||
| + | |||
| + | **Note:** You can use " | ||
| ===== Examples ===== | ===== Examples ===== | ||
| Line 40: | Line 50: | ||
| | | ||
| </ | </ | ||
| + | |||
| + | === See also === | ||
| + | |||
| + | *[[cw4: | ||
| + | | ||
| < | < | ||