DPB1Class · Interface and panels

LokiPoe.InGameState.InventoryUi

This class let you intercat and retrieve informations about your inventory and all equipped items.

Namespace: DreamPoeBot.Loki.Game

public static class LokiPoe.InGameState.InventoryUi
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Use this API

Class usage example: Read the open backpack →

Members and overloads

23 declared here

HandlePendingLevelUps

MethodLink ↗
public static LokiPoe.InGameState.HandlePendingLevelUpResult LokiPoe.InGameState.InventoryUi.HandlePendingLevelUps(Func<Inventory, Item, Item, bool> shouldLevel, bool actuallyLevel = true)

Calls HandlePendingLevelUps on LokiPoe.InGameState.InventoryUi with shouldLevel, actuallyLevel and returns LokiPoe.InGameState.HandlePendingLevelUpResult. Open the return contract below before using the result.

Return type: LokiPoe.InGameState.HandlePendingLevelUpResult
Explore LokiPoe.InGameState.HandlePendingLevelUpResult → members & methods

Named values for handle pending level up result. Select a value when an API accepts or returns HandlePendingLevelUpResult.

Parameters

shouldLevel
Parameter type: Func<Inventory, Item, Item, bool>

Specifies should level.

actuallyLevel
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Action-control flag. Support varies by overload; do not assume that false makes the operation side-effect-free.

Returns: The HandlePendingLevelUpResult result.

AllInventoryControls

PropertyLink ↗
public static IEnumerable<InventoryControlWrapper> LokiPoe.InGameState.InventoryUi.AllInventoryControls { get; }

Return a IEnumerable of InventoryControlWrapper listing ALL your inventory (the main inventory and all equipped slots)

Value type: IEnumerable<InventoryControlWrapper>
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

AreIconsDisplayed

PropertyLink ↗
public static bool LokiPoe.InGameState.InventoryUi.AreIconsDisplayed { get; }

This info is relative to the Gems level up shoved at the bottom of the inventory panel Return true if at least 1 gem is displayed

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

InventoryControl_Belt

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Belt { get; }

Return a InventoryControlWrapper describing your Belt inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_Boots

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Boots { get; }

Return a InventoryControlWrapper describing your Boots inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_Chest

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Chest { get; }

Return a InventoryControlWrapper describing your Chest inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_Flasks

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Flasks { get; }

Return a InventoryControlWrapper describing your Flasks inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_Gloves

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Gloves { get; }

Return a InventoryControlWrapper describing your Gloves inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_Graft

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Graft { get; }

Return a InventoryControlWrapper describing your trinket inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_Head

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Head { get; }

Return a InventoryControlWrapper describing your Head inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_LeftRing

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_LeftRing { get; }

Return a InventoryControlWrapper describing your LeftRing inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_Main

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Main { get; }

Return a InventoryControlWrapper describing your main inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_Neck

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Neck { get; }

Return a InventoryControlWrapper describing your Neck inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_PrimaryMainHand

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_PrimaryMainHand { get; }

Return a InventoryControlWrapper describing your PrimaryMainHand inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_PrimaryOffHand

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_PrimaryOffHand { get; }

Return a InventoryControlWrapper describing your PrimaryOffHand inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_RightRing

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_RightRing { get; }

Return a InventoryControlWrapper describing your RightRing inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_SecondaryMainHand

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_SecondaryMainHand { get; }

Return a InventoryControlWrapper describing your SecondaryMainHand inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_SecondaryOffHand

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_SecondaryOffHand { get; }

Return a InventoryControlWrapper describing your SecondaryOffHand inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_TherdRing

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_TherdRing { get; }

Return a InventoryControlWrapper describing your TherdRing inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

InventoryControl_Trinket

PropertyLink ↗
public static InventoryControlWrapper LokiPoe.InGameState.InventoryUi.InventoryControl_Trinket { get; }

Return a InventoryControlWrapper describing your trinket inventory.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

IsOpened

PropertyLink ↗
public static bool LokiPoe.InGameState.InventoryUi.IsOpened { get; }

Return true if the inventory panel is open.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

ListOfPendingSkillElements

PropertyLink ↗
public static List<Element> LokiPoe.InGameState.InventoryUi.ListOfPendingSkillElements { get; }

Gets the list of pending skill elements collection. Its element types are linked below.

Value type: List<Element>
Explore Element → members & methods

A game-interface element. Inspect text, visibility, geometry and child elements; follow the individual members for their signatures and result types. Prefer a named panel wrapper when one is available.

Class usage examples

These examples demonstrate the class, not every member listed above. Each example links the declarations it teaches.

Imports used by these examples
using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;

Read the open backpack

if (!LokiPoe.IsInGame || !LokiPoe.InGameState.InventoryUi.IsOpened)
    return;

var inventory = LokiPoe.InGameState.InventoryUi.InventoryControl_Main?.Inventory;
if (inventory == null)
    return;

foreach (var item in inventory.Items)
{
    var itemName = item.Name;
    var localId = item.LocalId;
}

Run on the bot thread. Read items from the grid that owns them; reacquire the inventory after an action or a wait.

DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.