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

Members and overloads

1 declared here
Show all members

IsVisible

PropertyLink ↗
public bool Element.IsVisible { get; }

Checks this element's visibility together with its parent chain. Visibility alone does not prove that the control is enabled, ready for input or safe to click.

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;

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.

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.