# Set Dialog Render Priority

Grammar — Set dialog Render Priority to renderPriority|Render Priority
FlagsNative | 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> — Dialog
  • int — Render Priority

Returns — void

native void DialogSetRenderPriority(
	int dialog,
	int renderPriority,
);

Category: Dialog / Dialog Tools

# Examples

campaigns/voidstory.sc2campaignbase.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.sc2modbase.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.sc2modbase.sc2data/LibCOUI.galaxy:5765


    DialogCreate(500, 400, c_anchorCenter, 0, 0, true);
    DialogSetRenderPriority(DialogLastCreated(), 500);
    DialogSetFullscreen(DialogLastCreated(), true);
    DialogSetImageVisible(DialogLastCreated(), false);