loongTyler

Untitled

Oct 24th, 2024
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.73 KB | None | 0 0
  1. ''' 1. '''
  2. # Search @ class GiftBox.__init__
  3. self.tooltipGift.Show()
  4.  
  5. # Add below
  6. if app.ENABLE_ATTENDANCE_SYSTEM:
  7. self.interface = None
  8.  
  9. ''' 2. '''
  10. # Search
  11. def OpenMall(self):
  12.  
  13. # Add above
  14. if app.ENABLE_ATTENDANCE_SYSTEM:
  15. def BindInterface(self, interface):
  16. self.interface = interface
  17.  
  18. ''' 3. '''
  19. # Search
  20. def OpenMall(self):
  21.  
  22. # Add below
  23. if app.ENABLE_ATTENDANCE_SYSTEM:
  24. if self.interface and player.CanAttend():
  25. self.interface.OpenAttendanceWindow()
  26. return
  27.  
  28. ''' 4. '''
  29. # Search
  30. def HideGift(self):
  31. self.wndGiftBox.Hide()
  32.  
  33. # Add below
  34. if app.ENABLE_ATTENDANCE_SYSTEM:
  35. def BindInterface(self, interface):
  36. if self.wndGiftBox:
  37. self.wndGiftBox.BindInterface(interface)
  38.  
Advertisement
Add Comment
Please, Sign In to add comment