ShowInfoMessage (Harvest)
From OxeyeWiki
(Difference between revisions)
166 MMX (Talk | contribs)
(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...')
Newer edit →
(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...')
Newer edit →
Revision as of 22:29, 1 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)