LuaAPI.wiki
changeset 561 814f54a83d06
parent 560 d0c74d14c7b6
child 562 89d9153aaf4f
equal deleted inserted replaced
560:d0c74d14c7b6 561:814f54a83d06
   921 
   921 
   922 
   922 
   923 == Functions affecting the GUI ==
   923 == Functions affecting the GUI ==
   924 
   924 
   925 === <tt>!AddCaption(text)</tt> ===
   925 === <tt>!AddCaption(text)</tt> ===
   926 Display event text in the upper part of the screen.
   926 Display an event text in the upper part of the screen. The text will be white and the caption group will be `capgrpMessage`.
       
   927 
       
   928 === <tt>!AddCaption(text, color, captiongroup)</tt> ===
       
   929 Display an event text in the upper part of the screen with the specified [LuaAPI#Color color] and caption group.
       
   930 
       
   931 || *`captiongroup`* || *Meaning* ||
       
   932 || `capgrpGameState` || Used for important global game events, like Sudden Death ||
       
   933 || `capgrpAmmoinfo` || Used for new weapon crates and some other events ||
       
   934 || `capgrpVolume` || Used when adjusting volume ||
       
   935 || `capgrpMessage` || Generic message ||
       
   936 || `capgrpMessage2` || Generic message ||
       
   937 || `capgrpAmmostate` || Used to show information about weapon state, i.e. bounce level, timer, remaining shots, etc. ||
       
   938 
   927 
   939 
   928 === <tt>!ShowMission(caption, subcaption, text, icon, time)</tt> ===
   940 === <tt>!ShowMission(caption, subcaption, text, icon, time)</tt> ===
   929 Use to tell the player what he is supposed to do.
   941 Use to tell the player what he is supposed to do.
   930 
   942 
   931 As of version 0.9.15, `icon` currently accepts the following values:
   943 As of version 0.9.15, `icon` currently accepts the following values: