Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. def __ClickChangeChOptionButton(self):
  2. self.Close()
  3. import uiCommon
  4. questionDialog = uiCommon.QuestionDialog()
  5. questionDialog.SetText("Kanal değiştirmek istediğine emin misin?")
  6. questionDialog.SetAcceptEvent(ui.__mem_func__(self.DeadlyEscapeOnayliyorum))
  7. questionDialog.SetCancelEvent(ui.__mem_func__(self.DeadlyEscapeKapattim))
  8. questionDialog.Open()
  9. self.questionDialog = questionDialog
  10.  
  11. def DeadlyEscapeOnayliyorum(self):
  12. import player
  13. if not self.changeChDlg:
  14. self.changeChDlg = uiChangeChannel.uiChangeChannel(self.stream)
  15. if player.IsPVPInstance():
  16. import chat
  17. chat.AppendChat(chat.CHAT_TYPE_INFO, "Savaştan kaçamazsınız.")
  18. else:
  19. import app
  20. self.Close()
  21. self.questionDialog.Close()
  22. self.changeChDlg.Show()
  23.  
  24. def DeadlyEscapeKapattim(self):
  25. self.Close()
  26. self.questionDialog.Close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement