daily pastebin goal
7%
SHARE
TWEET

Untitled

a guest Dec 6th, 2018 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top