# Dialog Width
Grammar — dialog width
Flags —Native
|Function
Returns the width of a dialog.
# Arguments
int
[ dialog ] — Dialog
Returns — int
native int DialogGetWidth(int dialog);
# Related
Category: Dialog / Dialog Size And Position
- [F] —
void
— Set Dialog Size — ( DialogSetSize ) - [F] —
void
— Move Dialog — ( DialogSetPosition ) - [F] —
void
— Attach Dialog To Dialog — ( DialogSetPositionRelative ) - [F] —
void
— Attach Dialog To Unit — ( DialogSetPositionRelativeToUnit ) - [F] —
void
— Anchor Dialog To Unit — ( DialogSetPositionRelativeToUnitWithAnchor ) - [F] —
void
— Set Dialog Fullscreen — ( DialogSetFullscreen ) - [F] —
int
— Dialog Width — ( DialogGetWidth ) - [F] —
int
— Dialog Height — ( DialogGetHeight ) - [F] —
int
— Dialog Offset X — ( DialogGetOffsetX ) - [F] —
int
— Dialog Offset Y — ( DialogGetOffsetY ) - [F] —
int
[ preset::Anchor ] — Dialog Anchor — ( DialogGetAnchor ) - [F] —
int
[ preset::Anchor ] — Dialog Relative Anchor — ( DialogGetRelativeAnchor ) - [F] —
int
[ dialog ] — Relative Dialog — ( DialogGetRelativeDialog ) - [F] —
bool
— Dialog Is Fullscreen — ( DialogIsFullscreen )
# Examples
# campaigns/libertystory.sc2campaign
// L1731
DialogGetWidth(lp_dialog)
# campaigns/swarmstory.sc2campaign
// L8431
DialogGetWidth(DialogLastCreated())
// L14641
DialogGetWidth(DialogLastCreated())
// L15095
DialogGetWidth(DialogLastCreated())
// L15195
DialogGetWidth(libSwaC_gv_zS_DebugStoryTechDialog)
# campaigns/swarmstoryutil.sc2mod
// L5042
DialogGetWidth(DialogLastCreated())
# campaigns/voidstory.sc2campaign
// L140
DialogGetWidth(DialogLastCreated())
// L217
DialogGetWidth(libVoiC_gv_pC_DebugCampaignTechDialog)
# campaigns/voidstory.sc2campaign
— VoidCampaignMissionLib.galaxy
// L6438
DialogGetWidth(libVCMI_gv_pM_MissionCheat_Dialog)
// L6447
DialogGetWidth(libVCMI_gv_pM_MissionCheat_Dialog)
# campaigns/voidstory.sc2campaign
// L4380
DialogGetWidth(libVCST_gv_pS_Clickable[libVCST_gf_PS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog)
# mods/missionpacks/novacampaign.sc2mod
// L5378
DialogGetWidth(libNCMI_gv_NM_MissionCheat_Dialog)
// L5387
DialogGetWidth(libNCMI_gv_NM_MissionCheat_Dialog)
# mods/missionpacks/novacampaign.sc2mod
// L3724
DialogGetWidth(libNCST_gv_nS_Clickable[libNCST_gf_NS_ClickableIndex(lp_clickableInstance)].lv_calloutDialog)
# mods/missionpacks/novacampaign.sc2mod
// L245
DialogGetWidth(DialogLastCreated())
// L307
DialogGetWidth(libNovC_gv_nC_DebugCampaignTechUpgradesDialog)
// L504
DialogGetWidth(DialogLastCreated())
// L556
DialogGetWidth(libNovC_gv_NC_DebugCampaignTechDialog)