def ReloadItemsList(): global ListItems ListItems.ClearItems() gameItems.RestartItems() # -- Load Items -- # for x in range(gameMain.DefaultCnt.Get_RegKey("/ItemData/minimum", int), gameMain.DefaultCnt.Get_RegKey("/ItemData/all", int) + 1): # -- Check if item is Visible -- # if gameMain.DefaultCnt.Get_RegKey("/ItemData/" + str(x) + "/is_buyable", bool): CurrentItemRoot = "/ItemData/store/" + str(x) + "_" ItemSprite = gameItems.GetItemSprite_ByID(x) ListItems.AddItem(gameMain.DefaultCnt.Get_RegKey(CurrentItemRoot + "name"), gameMain.DefaultCnt.Get_RegKey(CurrentItemRoot + "description"), gameMain.DefaultCnt.Get_RegKey(ItemSprite))
def Unload(): global CurrentDate_Day global CurrentDate_Month global CurrentDate_Year global CurrentDate_Minute global CurrentDate_Second global CurrentDate_Microseconds global Current_TotalClicks global Current_TotalClicksNext global Current_TotalClicksForEach global Current_ExperiencePerEach global Current_MoneyPerClickBest global Current_Experience global Current_Money global Current_MoneyValuePerClick global CurrentDate_DayLimiter global CurrentDate_MonthLimiter global CurrentDate_MinuteLimiter global CurrentDate_SecondLimiter global CurrentDate_YearLimiter global Current_MoneyMinimun global SaveDataLoaded global triggered_tutorials global WelcomeMessageTriggered global LowerMoneyWarning global BankruptWarning global PlanetID global PlanetName CurrentDate_Day = None CurrentDate_Month = None CurrentDate_Year = None CurrentDate_Minute = None CurrentDate_Second = None CurrentDate_Microseconds = None Current_TotalClicks = None Current_TotalClicksNext = None Current_TotalClicksForEach = None Current_ExperiencePerEach = None Current_MoneyPerClickBest = None Current_Experience = None Current_Money = None Current_MoneyValuePerClick = None CurrentDate_DayLimiter = None CurrentDate_MonthLimiter = None CurrentDate_MinuteLimiter = None CurrentDate_SecondLimiter = None CurrentDate_YearLimiter = None Current_MoneyMinimun = None SaveDataLoaded = None triggered_tutorials = list() WelcomeMessageTriggered = None BankruptWarning = None LowerMoneyWarning = None PlanetID = None PlanetName = None storeWindow.ReloadItemsList() expStoreWindow.ReloadItemsList() gameItems.RestartItems() gameScr.IncomingLog.Unload() maintenance.Unload()