Guest User

Untitled

a guest
Jul 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. CodeMessageCommand=function(self, params)
  2. local this = self:GetChildren();
  3. --local top = SCREENMAN:GetTopScreen():IsPaused();
  4.  
  5. if params.Name == "Pause" then
  6. --omg it pauses the game!!
  7. bPause = not bPause
  8.  
  9. SCREENMAN:GetTopScreen():PauseGame(bPause);
  10. SOUND:PlayOnce(THEME:GetPathS("", "8-1.ogg"));
  11. this.cover:visible(bPause);
  12. this.Pause:visible(bPause);
  13. end
  14. end;
Add Comment
Please, Sign In to add comment