# Set Dialog Render Priority
Grammar — Set dialog Render Priority to renderPriority|Render Priority
Flags —Native
|Action
Sets the render priority for the specified dialog. Dialogs with higher render priorties are rendered on top of dialogs with lower render priorities.
# Arguments
int
[ dialog ] — Dialogint
— Render Priority
Returns — void
native void DialogSetRenderPriority(
int dialog,
int renderPriority,
);
# Related
Category: Dialog / Dialog Tools
- [F] —
void
— Destroy All Dialogs — ( DialogDestroyAll ) - [F] —
void
— Destroy Dialog — ( DialogDestroy ) - [F] —
void
— Position Subtitle to Dialog — ( DialogSetSubtitlePositionOverride ) - [F] —
void
— Clear Subtitle Position Dialog — ( DialogClearSubtitlePositionOverride ) - [F] —
void
— Set Dialog Enabled — ( DialogSetEnabled ) - [F] —
bool
— Dialog Is Enabled — ( DialogIsEnabled ) - [F] —
void
— Set Dialog Offscreen — ( DialogSetOffscreen ) - [F] —
bool
— Dialog Is Offscreen — ( DialogIsOffscreen ) - [F] —
bool
— Dialog Is Modal — ( DialogIsModal ) - [F] —
void
— Show/Hide Dialog Background — ( DialogSetImageVisible ) - [F] —
bool
— Dialog Background Image Is Visible — ( DialogIsImageVisible ) - [F] —
string
— Dialog Background Image — ( DialogGetImage ) - [F] —
void
— Set Dialog Transparency — ( DialogSetTransparency ) - [F] —
fixed
— Dialog Transparency — ( DialogGetTransparency ) - [F] —
void
— Set Dialog RTT Channel — ( DialogSetChannel ) - [F] —
int
— Dialog Channel — ( DialogGetChannel ) - [F] —
void
— Set Dialog Render Priority — ( DialogSetRenderPriority ) - [F] —
int
— Dialog Render Priority — ( DialogGetRenderPriority ) - [F] —
void
— Set Dialog Observed Type — ( DialogSetObservedType )
# Examples
# campaigns/voidstory.sc2campaign
// L1613
DialogSetRenderPriority(lv_achievementDialog, 550)
# mods/missionpacks/campaigncommon.sc2mod
// L104
DialogSetRenderPriority(lv_achievementDialog, 550)
# mods/starcoop/starcoop.sc2mod
// L5765
DialogSetRenderPriority(DialogLastCreated(), 500)