# Dialog Item Offset Y
Grammar — Y offset of dialogItem for player
Flags —Native
|Function
Returns the vertical offset of a dialog item.
# Arguments
int
<control> — Dialog Itemint
— Player
Returns — int
native int DialogControlGetOffsetY(
int control,
int player,
);
# Related
Category: Dialog / Dialog Item Size And Position
- Move Dialog Item —
void
— DialogControlSetPosition - Attach Dialog Item To Dialog Item —
void
— DialogControlSetPositionRelative - Set Dialog Item Rotation —
void
— libNtve_gf_SetDialogItemRotation - Set Dialog Item to Use Aspect Uncorrection —
void
— libNtve_gf_SetDialogItemtoUseAspectUncorrection - Set Dialog Item Size to Parent —
void
— DialogControlSetFullDialog - Set Dialog Item Size —
void
— DialogControlSetSize - Dialog Item Width —
int
— DialogControlGetWidth - Dialog Item Height —
int
— DialogControlGetHeight - Dialog Item Offset X —
int
— DialogControlGetOffsetX - Dialog Item Offset Y —
int
— DialogControlGetOffsetY - Dialog Item Anchor —
int
<preset::Anchor> — DialogControlGetAnchor - Dialog Item Relative Anchor —
int
<preset::Anchor> — DialogControlGetRelativeAnchor - Relative Dialog Item —
int
<control> — DialogControlGetRelativeControl - Dialog Item Is Full Dialog —
bool
— DialogControlIsFullDialog
# Examples
campaigns/libertystory.sc2campaign — base.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);