DPB2Class · Game state and actions

Element

UI element with the original short-lived DPB field caches.

Namespace: DreamPoeBot.Loki

public class ElementView DPB1 version →

Members and overloads

45 results

Element

MethodLink ↗
public Element.Element()

Creates a new Element instance.

CenterClickLocation

MethodLink ↗
public Vector2i Element.CenterClickLocation()

Executes the center click location operation.

Returns: The Vector2i result.

Dump

MethodLink ↗
public string Element.Dump()

Executes the dump operation.

Returns: The string result.

FindElementWithTooltipText

MethodLink ↗
public Element Element.FindElementWithTooltipText(string text, bool ignoreVisibility = false)

Finds element with tooltip text using the supplied arguments.

textstring
Specifies text.
ignoreVisibilitybool
Specifies ignore visibility. Optional; the default is shown in the signature.

Returns: The Element result.

FindElementsWithTextInElementChildrens

MethodLink ↗
public List<Element> Element.FindElementsWithTextInElementChildrens(string text, ref List<Element> refElementList)

Finds elements with text in element childrens using the supplied arguments.

textstring
Specifies text.
refElementListList<Element>
Supplies and may update ref element list.

Returns: The List<Element> result.

FindIdLabelInElementChildrens

MethodLink ↗
public Element Element.FindIdLabelInElementChildrens(string text)

Finds id label in element childrens using the supplied arguments.

textstring
Specifies text.

Returns: The Element result.

FindTextInElementChildrens

MethodLink ↗
public Element Element.FindTextInElementChildrens(string text)

Finds text in element childrens using the supplied arguments.

textstring
Specifies text.

Returns: The Element result.

GetChildAtIndex

MethodLink ↗
public Element Element.GetChildAtIndex(int index)

Returns child at index using the supplied arguments.

indexint
Specifies index.

Returns: The Element result.

GetChildFromIndices

MethodLink ↗
public Element Element.GetChildFromIndices(params int[] indices)

Returns child from indices using the supplied arguments.

indicesint[]
Specifies indices.

Returns: The Element result.

GetChildren

MethodLink ↗
protected List<T> Element.GetChildren<T>() where T : Element, new()

Returns children.

Returns: The List<T> result.

GetClientRect

MethodLink ↗
public virtual RectangleF Element.GetClientRect()

Returns client rect.

Returns: The RectangleF result.

GetParentPos

MethodLink ↗
public Vector2 Element.GetParentPos()

Returns parent pos.

Returns: The Vector2 result.

IsInFOV

MethodLink ↗
public bool Element.IsInFOV(float pct)

Checks whether in fov using the supplied arguments.

pctfloat
Specifies pct.

Returns: A Boolean result. The member description explains the condition being checked.

SetZoom

MethodLink ↗
public void Element.SetZoom(float zoom)

Sets zoom using the supplied arguments.

zoomfloat
Specifies zoom.

ToggleVisibility

MethodLink ↗
public void Element.ToggleVisibility()

Executes the toggle visibility operation.

TryGetSize

MethodLink ↗
public bool Element.TryGetSize(out Vector2 size)

Attempts the existing +270 geometry field; false means an actual absent/invalid read.

sizeVector2
Receives size.

Returns: True when the request succeeds; read any out parameters only after checking the result.

TryGetText

MethodLink ↗
public bool Element.TryGetText(out string text)

Attempts to read the primary text field.

textstring
Receives text.

Returns: True when the request succeeds; read any out parameters only after checking the result.

WriteVisibleFlag

MethodLink ↗
public void Element.WriteVisibleFlag(int flag)

Writes visible flag using the supplied arguments.

flagint
Specifies flag.

ChildCount

PropertyLink ↗
public long Element.ChildCount { get; }

Gets child count for Element.

Children

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

Gets the children collection. Its element types are linked below.

ControlType

PropertyLink ↗
public int Element.ControlType { get; }

Gets control type for Element.

DeltaX

PropertyLink ↗
public float Element.DeltaX { get; }

Gets delta x for Element.

DeltaY

PropertyLink ↗
public float Element.DeltaY { get; }

Gets delta y for Element.

ElementZoom

PropertyLink ↗
public float Element.ElementZoom { get; }

Gets element zoom for Element.

GuiControlType

PropertyLink ↗
public GuiControlType Element.GuiControlType { get; }

Gets gui control type for Element.

Height

PropertyLink ↗
public float Element.Height { get; }

Gets height for Element.

IdLabel

PropertyLink ↗
public string Element.IdLabel { get; }

Gets id label for Element.

IsEnable

PropertyLink ↗
public bool Element.IsEnable { get; }

Whether this element is enable.

IsItemTransparent

PropertyLink ↗
public bool Element.IsItemTransparent { get; }

Whether this element is item transparent.

IsValid

PropertyLink ↗
public override bool Element.IsValid { get; }

Whether this element is valid.

Related types

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