DPB2Class · 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: DPB2 0.4.5.103Compare the DPB1 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Members and overloads

1 declared here
Show all members

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.

Examples for this member

Only examples explicitly associated with this declaration are shown.

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.

DPB2 0.4.5.103 · 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.