DPB2Class · Game state and actions

Element

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.

Namespace: DreamPoeBot.Loki

public class Element
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

Children

PropertyLink ↗
public List<Element> Element.Children { get; }

Reads the child elements directly below this element. Each child is another Element with its own text, visibility and children. Use a text-search helper when you need to search descendants rather than only this level.

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.

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;

Inspect a supplied UI element without clicking

public static void InspectElement(DreamPoeBot.Loki.Element element)
{
    if (element == null || !element.IsVisible)
        return;

    var text = element.Text;
    var children = element.Children;
    var childCount = children == null ? 0 : children.Count;
    // Use text and childCount in your own log or settings panel.
}

This is a helper, not a complete plugin. Supply an Element obtained from the UI you are inspecting; in DPB2 an object's Ui property is one possible source. Call on the bot thread, reacquire after an interface or area change, and do not assume every element contains text. No click or key press is sent.

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.