# Dialog Item Offset X

Grammar — X offset of dialogItem for player
FlagsNative | Function

Returns the horizontal offset of a dialog item.

# Arguments

  • int<control> — Dialog Item
  • int — Player

Returns — int

native int DialogControlGetOffsetX(
	int control,
	int player,
);

Category: Dialog / Dialog Item Size And Position

# Examples

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:1774


    // Implementation
    lv_x = IntToFixed(DialogControlGetOffsetX(lp_dialogItem, lp_player));
    if ((DialogControlGetRelativeControl(lp_dialogItem, lp_player) == c_invalidDialogControlId)) {
        lv_anchor = DialogControlGetAnchor(lp_dialogItem, lp_player);