ShowInfoMessage (Harvest)
From OxeyeWiki
(Difference between revisions)
(Created page with '{{HarvestMethod | showInfoMessage(message[, title[, pictureName[, sound]]]) | Displays an event in the text list, combined with a portrait and/or sound effect. If you omit the so...') |
|||
Line 17: | Line 17: | ||
harvest.addCredits(pendingWaveBonus) | harvest.addCredits(pendingWaveBonus) | ||
</pre> | </pre> | ||
+ | |||
+ | === Resources === | ||
+ | *[http://www.oxeyegames.com/forum/viewtopic.php?p=1523#p1523 Oxeye Game Studio Forum - Harvest Functions] |
Latest revision as of 16:14, 2 December 2009
showInfoMessage(message[, title[, pictureName[, sound]]]) | ||
Displays an event in the text list, combined with a portrait and/or sound effect. If you omit the sound effect, a normal message beep will be played. The character portraits are called "PortraitCommunications", "PortraitDropShip", "PortraitBase" and "PortraitMedusa". | ||
Parameter | Expected Type | Description |
message | String | The message itself |
title | String | The title to be shown on the info box |
pictureName | String | The name of the picture to be shown. |
sound | String | The sound name of the sound file to be played when the message will be shown. |
Returns | ||
Returns nothing. |
Example
harvest.showInfoMessage("The wave has been defeated. You have been rewarded with " .. pendingWaveBonus .. " extra Colonial Credits!", "Wave Cleared!", "PortraitCommunications") harvest.addCredits(pendingWaveBonus)