Enju 1 Posted December 23, 2021 Share Posted December 23, 2021 Just create the function to return the page index. Open the file uiInventory.py (root) and add the following function in the InventoryWindow class. def GetInventoryPageIndex(self): return self.inventoryPageIndex Link to comment Share on other sites More sharing options...
wubservice 2 Posted December 25, 2021 Share Posted December 25, 2021 (edited) On 12/23/2021 at 9:32 PM, Enju said: Just create the function to return the page index. Open the file uiInventory.py (root) and add the following function in the InventoryWindow class. def GetInventoryPageIndex(self): return self.inventoryPageIndex That already comes in the tutorial, and it is as if the call did not work Help? EDIT: On uinewshop.py search: class ShopDialogCreate(ui.ScriptWindow): UI={} def __init__(self, interface): ui.ScriptWindow.__init__(self) self.tooltipItem = uiToolTip.ItemToolTip() self.tooltipItem.Hide() self.privateShopBuilder = uiPrivateShopBuilder.PrivateShopBuilder() self.privateShopBuilder.Hide() Copy and paste: if app.WJ_ENABLE_TRADABLE_ICON: self.privateShopBuilder.BindInterface(interface) self.privateShopBuilder.SetInven(interface.wndInventory) interface.wndInventory.BindWindow(self.privateShopBuilder) Edited December 25, 2021 by wubservice Link to comment Share on other sites More sharing options...
Sidelekbrytro 2 Posted February 14, 2023 Share Posted February 14, 2023 On 12/23/2021 at 9:32 PM, Enju said: Just create the function to return the page index. Open the file uiInventory.py (root) and add the following function in the InventoryWindow class. def GetInventoryPageIndex(self): return self.inventoryPageIndex I got this function and again same problem, someone fixed? Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now