# Dialog Offset Y

Grammar — Y offset of dialog
FlagsNative | Function

Returns the vertical offset of a dialog.

# Arguments

  • int<dialog> — Dialog

Returns — int

native int DialogGetOffsetY(int dialog);

Category: Dialog / Dialog Size And Position

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:3299

void gf_MoveNewItemFlashInstant (int lp_newItemIndex) {
    // Implementation
    PortraitSetPosition(gv_newItems[lp_newItemIndex].lv_flash, c_anchorTopLeft, 0, (DialogGetOffsetY(gv_newItems[lp_newItemIndex].lv_dialog) + 20));
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:3299

void gf_MoveNewItemFlashInstant (int lp_newItemIndex) {
    // Implementation
    PortraitSetPosition(gv_newItems[lp_newItemIndex].lv_flash, c_anchorTopLeft, 0, (DialogGetOffsetY(gv_newItems[lp_newItemIndex].lv_dialog) + 20));
}

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

    // Automatic Variable Declarations
    // Implementation
    return libCamp_gf_GD_IntegerToGrid(DialogGetOffsetY(lp_dialog), libCamp_ge_GRIDDLG_HV_Vertical, libCamp_ge_GRIDDLG_HV2_NoneClient);
}