Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class BonusTabulkaWindow(ui.ScriptWindow):
- def __init__(self, wndInventory):
- import exception
- #if not app.ENABLE_TABULKA_SYSTEM:
- # exception.Abort("xxxxxxx")
- # return
- if not wndInventory:
- exception.Abort("wndInventory parameter must be set to InventoryWindow")
- return
- ui.ScriptWindow.__init__(self)
- self.isLoaded = 0
- self.wndInventory = wndInventory;
- self.__LoadWindow()
- def __del__(self):
- ui.ScriptWindow.__del__(self)
- def Show(self):
- self.__LoadWindow()
- self.RefreshBonusSlot()
- ui.ScriptWindow.Show(self)
- def Close(self):
- self.Hide()
- def __LoadWindow(self):
- if self.isLoaded == 1:
- return
- self.isLoaded = 1
Add Comment
Please, Sign In to add comment