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 TradeControlWrapper
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

12 declared here

TradeControlWrapper

MethodLink ↗
public TradeControlWrapper.TradeControlWrapper()

Creates a new TradeControlWrapper instance.

Accept

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

Click the Accept button.

Return type: TradeResult
Explore TradeResult → members & methods

Named values for trade result. Select a value when an API accepts or returns TradeResult.

Parameters

actuallyAccept
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.

Return type: TradeResult
Explore TradeResult → members & methods

Named values for trade result. Select a value when an API accepts or returns TradeResult.

Parameters

actuallyCancel
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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".

Value type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.

Value type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

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.

Value type: InventoryControlWrapper
Explore InventoryControlWrapper → members & methods

Work with a specific inventory grid, including selecting and picking up items. Use the local item identifier from that grid.

IsAcceptButtonEnabled

PropertyLink ↗
public bool TradeControlWrapper.IsAcceptButtonEnabled { get; }

Return true is the Accept button is Enabled.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

MeAcceptedTheOffert

PropertyLink ↗
public bool TradeControlWrapper.MeAcceptedTheOffert { get; }

Return true if you accepted the trade.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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).

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

OtherName

PropertyLink ↗
public string TradeControlWrapper.OtherName { get; }

Return the Name of the trading parthner.

Value type: stringNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

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.