DPB2Class · Game state and actions

TradeControlWrapper

Provides trade control wrapper data and the operations listed below. Related types link to the values this API consumes or returns.

Namespace: DreamPoeBot.Loki.Game

public class TradeControlWrapperView DPB1 version →

Members and overloads

12 results

TradeControlWrapper

MethodLink ↗
public TradeControlWrapper.TradeControlWrapper()

Creates a new TradeControlWrapper instance.

Accept

MethodLink ↗
public TradeResult TradeControlWrapper.Accept(bool actuallyAccept = true)

Click the Accept button.

actuallyAcceptbool
Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: TradeResult.None on success, or the relative error.

Cancel

MethodLink ↗
public TradeResult TradeControlWrapper.Cancel(bool actuallyCancel = true)

Click the Cancel button.

actuallyCancelbool
Not read by this overload in the reviewed source. Do not rely on this argument to change its behavior.

Returns: TradeResult.None on success, or the relative error.

AcceptButtonText

PropertyLink ↗
public string TradeControlWrapper.AcceptButtonText { get; }

This return the actual text of the Accept button. Please note: if one of the trading part remove or place a item, the button become disabled for 3 seconds You should always check the text on this button and click it only if the text is exactly "Accept".

ConfirmLabelText

PropertyLink ↗
public string TradeControlWrapper.ConfirmLabelText { get; }

This return the text of the label appearing under you offert window, this text usually let you know if you need to hover over a item.

InventoryControl_OtherOffer

PropertyLink ↗
public InventoryControlWrapper TradeControlWrapper.InventoryControl_OtherOffer { get; }

Return a InventoryControlWrapper class that let you interact with the upper part of the trade window, the part that display your trading partner offert.

InventoryControl_YourOffer

PropertyLink ↗
public InventoryControlWrapper TradeControlWrapper.InventoryControl_YourOffer { get; }

Return a InventoryControlWrapper class that let you interact with the bottom part of the trade window, the part that display your offert.

IsAcceptButtonEnabled

PropertyLink ↗
public bool TradeControlWrapper.IsAcceptButtonEnabled { get; }

Return true is the Accept button is Enabled.

IsConfirmLabelVisible

PropertyLink ↗
public bool TradeControlWrapper.IsConfirmLabelVisible { get; }

Return true if the label appearing under you offert window, that let you know if you need to hover over a item, is visible.

MeAcceptedTheOffert

PropertyLink ↗
public bool TradeControlWrapper.MeAcceptedTheOffert { get; }

Return true if you accepted the trade.

OtherAcceptedTheOffert

PropertyLink ↗
public bool TradeControlWrapper.OtherAcceptedTheOffert { get; }

Return true if the trade partner has accepted the trade (the green border is arount the partner window).

OtherName

PropertyLink ↗
public string TradeControlWrapper.OtherName { get; }

Return the Name of the trading parthner.

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.