What's new
  • Visit Rebornbuddy
  • Visit Resources
  • Visit API Documentation
  • Visit Downloads
  • Visit Portal
  • Visit Panda Profiles
  • Visit LLamamMagic

Moving an item ... opening inventory window

darkfriend77

Member
Joined
Jun 14, 2011
Messages
467
Reaction score
2
hi,

there ... for some adjustment ... in the new trinity project we need to have inventory open when moving items ... like the sort stash or inventory ... or the weaponswap ...


thinking that ...

public void MoveItem(int itemId, int ownerId, Zeta.Internals.Actors.InventorySlot slot, int column, int row)
Member von Zeta.Internals.Actors.DiaActivePlayer.InventoryManager

would invoke an open Inventory window automaticly ... was wrong ...

so it seems that we get in the need to manage that our self?

with UIElment .. isvisible ...and open it ...

can u help us and just write which function would provide us with that functionality and how is a proper implementation ....

UIActions.ActionUIQuickInventoryKey .... ToggleInventoryMenu() ....

pseudo code:

if Inventory is not visible
open inventory window

move item

if Inventory is visible
close inventory window


maybee it would be easier to invoke it in all necessary functions ... so we dont have to care about ....

thx ..
 
Last edited:
I have updated my copy of the latest GilesEquipper to open the inventory window when it equips an item and close the inventory after it has checked all items.

Open Inventory
Code:
if (!UIElements.InventoryWindow.IsVisible)
                UIElements.BackgroundScreenPCButtonInventory.Click();

Close Inventory
Code:
if (UIElements.InventoryWindow.IsVisible)
                UIElements.BackgroundScreenPCButtonInventory.Click();

Toggle Inventory
Code:
if (UIElements.InventoryWindow.IsVisible)
                UIElements.BackgroundScreenPCButtonInventory.Click();
            else
                UIElements.BackgroundScreenPCButtonInventory.Click();
 
Back
Top