# Dialog Item Offset Y

Grammar — Y offset of dialogItem for player
FlagsNative | Function

Returns the vertical offset of a dialog item.

# Arguments

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

Returns — int

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

Category: Dialog / Dialog Item Size And Position

# Examples

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


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