# HG changeset patch # User Wuzzy # Date 1465477183 -3600 # Node ID aa3027b760bbc6babf77bb419073317bb3c43f03 # Parent e8664c10f69b8bdcb81a84ad80897e5518a03e68 LuaAPI: Better ShowMission/HideMission texts diff -r e8664c10f69b -r aa3027b760bb LuaAPI.wiki --- a/LuaAPI.wiki Thu Jun 09 13:56:22 2016 +0100 +++ b/LuaAPI.wiki Thu Jun 09 13:59:43 2016 +0100 @@ -1108,8 +1108,10 @@ === !ShowMission(caption, subcaption, text, icon, time) === -Use to tell the player what he is supposed to do. If you use this function, a mission pop-up is shown for the amount of time specified in `time` (in milliseconds). If `time` is set to 0, it will be displayed for a default amount of time. -This function replaces the *entire* text of the pop-up. Compare this to the global `Goals` variable, which *adds* to the default text without replacing it. +This function will open the mission panel and set the texts in it. + +Use to tell the player what he/she is supposed to do. If you use this function, a mission panel is shown for the amount of time specified in `time` (in milliseconds). If `time` is set to 0, it will be displayed for a default amount of time. +This function replaces the *entire* text of the mission panel. Compare this to the global `Goals` variable, which *adds* to the default text without replacing it. `caption` is the text displayed in the first line, `subcaption` is displayed in the second line and `text` is the text displayed in the third and following lines. @@ -1135,7 +1137,7 @@ === !HideMission() === -Hides the mission. This function is currently bugged somehow and will completely ruin your life, and your script should you happen to use it. +Hides the mission panel if it is currently displayed, otherwise, this function does nothing. === !SetZoom(zoomLevel) === Sets the zoom level. The value for maximum zoom is currently 1.0 and for minimum 3.0 The default zoom level is 2.0