ShowInfoMessage (Harvest)

From OxeyeWiki

Revision as of 22:29, 1 December 2009 by 166 MMX (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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.

Harvest Library

Example

harvest.showInfoMessage("The wave has been defeated. You have been rewarded with " .. pendingWaveBonus .. " extra Colonial Credits!", "Wave Cleared!", "PortraitCommunications")
harvest.addCredits(pendingWaveBonus)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox