Guest User

Untitled

a guest
Dec 6th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. class BonusTabulkaWindow(ui.ScriptWindow):
  2.  
  3. def __init__(self, wndInventory):
  4. import exception
  5.  
  6. #if not app.ENABLE_TABULKA_SYSTEM:
  7. # exception.Abort("xxxxxxx")
  8. # return
  9.  
  10. if not wndInventory:
  11. exception.Abort("wndInventory parameter must be set to InventoryWindow")
  12. return
  13.  
  14. ui.ScriptWindow.__init__(self)
  15.  
  16. self.isLoaded = 0
  17. self.wndInventory = wndInventory;
  18.  
  19. self.__LoadWindow()
  20.  
  21. def __del__(self):
  22. ui.ScriptWindow.__del__(self)
  23.  
  24. def Show(self):
  25. self.__LoadWindow()
  26. self.RefreshBonusSlot()
  27.  
  28. ui.ScriptWindow.Show(self)
  29.  
  30. def Close(self):
  31. self.Hide()
  32.  
  33. def __LoadWindow(self):
  34. if self.isLoaded == 1:
  35. return
  36.  
  37. self.isLoaded = 1
Add Comment
Please, Sign In to add comment