# 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
- Destroy All Dialogs —
void— DialogDestroyAll - Destroy Dialog —
void— DialogDestroy - Position Subtitle to Dialog —
void— DialogSetSubtitlePositionOverride - Clear Subtitle Position Dialog —
void— DialogClearSubtitlePositionOverride - Set Dialog Enabled —
void— DialogSetEnabled - Dialog Is Enabled —
bool— DialogIsEnabled - Set Dialog Offscreen —
void— DialogSetOffscreen - Dialog Is Offscreen —
bool— DialogIsOffscreen - Dialog Is Modal —
bool— DialogIsModal - Show/Hide Dialog Background —
void— DialogSetImageVisible - Dialog Background Image Is Visible —
bool— DialogIsImageVisible - Dialog Background Image —
string— DialogGetImage - Set Dialog Transparency —
void— DialogSetTransparency - Dialog Transparency —
fixed— DialogGetTransparency - Set Dialog RTT Channel —
void— DialogSetChannel - Dialog Channel —
int— DialogGetChannel - Set Dialog Render Priority —
void— DialogSetRenderPriority - Dialog Render Priority —
int— DialogGetRenderPriority - Set Dialog Observed Type —
void— DialogSetObservedType
# Examples
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignLib.galaxy:1613
DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
lv_achievementDialog = DialogLastCreated();
DialogSetRenderPriority(lv_achievementDialog, 550);
DialogSetImageVisible(lv_achievementDialog, false);
DialogControlCreateFromTemplate(lv_achievementDialog, c_triggerControlTypePanel, "LotV_Debug/AchievementFrameDebugTemplate");
mods/missionpacks/campaigncommon.sc2mod — base.sc2data/LibComC.galaxy:104
DialogSetVisible(DialogLastCreated(), PlayerGroupAll(), true);
lv_achievementDialog = DialogLastCreated();
DialogSetRenderPriority(lv_achievementDialog, 550);
DialogSetImageVisible(lv_achievementDialog, false);
DialogControlCreateFromTemplate(lv_achievementDialog, c_triggerControlTypePanel, "LotV_Debug/AchievementFrameDebugTemplate");
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:5765
DialogCreate(500, 400, c_anchorCenter, 0, 0, true);
DialogSetRenderPriority(DialogLastCreated(), 500);
DialogSetFullscreen(DialogLastCreated(), true);
DialogSetImageVisible(DialogLastCreated(), false);