DPB1Class ยท Game state and actions

Element

Describe properties of a Ui Element, like its position (X,Y), size (Width,Height), scale (Scale), and many other properties. The whole Game user interface, is a `Matrioska` of Elements and childs element. You usually dont need to care about this informations, the LokiPoe.IngameState, offer convenient wrappers for all the implemented interfaces.

Namespace: DreamPoeBot.Loki

public class ElementView DPB2 version โ†’

Members and overloads

1 results
Show all members

CenterClickLocation

MethodLink โ†—
public Vector2i Element.CenterClickLocation(double min = 0.20000000298023224, double max = 0.800000011920929)

Return a random position inside the element boundry. min and max are used to reduce the search area, use 0,0 to get the perfect center.

mindouble
a value between 1 and 0 multiplayed width and height to reduce the search boundry
maxdouble
a value between 1 and 0 multiplayed width and height to reduce the search boundry

Returns: The Vector2i result.

Related types

DPB1 0.3.29.47 ยท 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.