Ticket #2950: GuiNotification.patch
File GuiNotification.patch, 818 bytes (added by , 9 years ago) |
---|
-
binaries/data/mods/public/maps/scripts/TriggerHelper.js
162 162 return (classes && classes.indexOf(classname) != -1); 163 163 }; 164 164 165 //Post a GUI notification 166 //@param players: Array of playerIDs to post the message to 167 //@param message: the to be posted message in a String 168 function GUINotification(players, message) { 169 var cmpGUIInterface = Engine.QueryInterface(SYSTEM_ENTITY, IID_GuiInterface); 170 cmpGUIInterface.PushNotification({ 171 "players": players, 172 "message": message, 173 translateMessage: true 174 }); 175 } 176 165 177 Engine.RegisterGlobal("TriggerHelper", TriggerHelper);