Advertisement
Guest User

Untitled

a guest
Oct 13th, 2015
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.86 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 player.IsPVPInstance():
  14. import chat
  15. chat.AppendChat(chat.CHAT_TYPE_INFO, "Savaştan kaçamazsınız.")
  16. else:
  17. import app
  18. self.Close()
  19. self.questionDialog.Close()
  20. self.changeChDlg.Show()
  21.  
  22. if not self.changeChDlg:
  23. self.changeChDlg = uiChangeChannel.uiChangeChannel(self.stream)
  24.  
  25. def DeadlyEscapeKapattim(self):
  26. self.Close()
  27. self.questionDialog.Close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement