# Set Dialog Item Render Priority

Grammar — Set dialogItem Render Priority to renderPriority for players
FlagsAction

Sets the render priority for the specified dialog item, which controls the z order that dialog items are rendered. The default render priority is 512. Setting a render priority lower than this means this dialog item should render below other dialog items within the same dialog. Setting a render priority higher than this means the dialog item should render above other dialog items within the same dialog.

# Arguments

  • int [ control ] — Dialog Item
  • int — Render Priority
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemRenderPriority(
	int lp_dialogItem,
	int lp_renderPriority,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Tools

# Examples

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L2911
libNtve_gf_SetDialogItemRenderPriority(lv_damageBar, 511, PlayerGroupAll())
// L2945
libNtve_gf_SetDialogItemRenderPriority(DialogControlLastCreated(), 510, PlayerGroupAll())
// L3215
libNtve_gf_SetDialogItemRenderPriority(libSwaC_gv_zS_SwarmHeroUIDialogEnergyBarBackground[lp_index], 510, PlayerGroupAll())
// L3216
libNtve_gf_SetDialogItemRenderPriority(libSwaC_gv_zS_SwarmHeroUIDialogHealthBarBackground[lp_index], 510, PlayerGroupAll())
// L18195
libNtve_gf_SetDialogItemRenderPriority(lv_damageBar, 511, PlayerGroupAll())

# campaigns/void.sc2campaign

MapScript.galaxy

// L1516
libNtve_gf_SetDialogItemRenderPriority(gv_overloadTempleFlashingButton, 513, PlayerGroupAll())
// L1516
libNtve_gf_SetDialogItemRenderPriority(gv_overloadTempleFlashingButton, 513, PlayerGroupAll())

# campaigns/voidstory.sc2campaign

VoidCampaignLib.galaxy

// L8288
libNtve_gf_SetDialogItemRenderPriority(DialogControlLastCreated(), 1, PlayerGroupAll())

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L3512
libNtve_gf_SetDialogItemRenderPriority(lv_damageBar, 507, PlayerGroupAll())
// L3804
libNtve_gf_SetDialogItemRenderPriority(libVCUI_gv_pU_VoidHeroUIDialogEnergyBarBackground[lp_index], 505, PlayerGroupAll())
// L3805
libNtve_gf_SetDialogItemRenderPriority(libVCUI_gv_pU_VoidHeroUIDialogHealthBarBackground[lp_index], 505, PlayerGroupAll())
// L3807
libNtve_gf_SetDialogItemRenderPriority(libVCUI_gv_pU_VoidHeroUIDialogShieldBarBackground[lp_index], 505, PlayerGroupAll())
// L3808
libNtve_gf_SetDialogItemRenderPriority(libVCUI_gv_pU_VoidHeroUIDialogShieldBarImage[lp_index], 507, PlayerGroupAll())
// L9705
libNtve_gf_SetDialogItemRenderPriority(lv_damageBar, 506, PlayerGroupAll())

# mods/core.sc2mod

NativeLib.galaxy

// L4823
libNtve_gf_SetDialogItemRenderPriority(DialogControlLastCreated(), 520, PlayerGroupAll())
// L4068
libNtve_gf_SetDialogItemRenderPriority(DialogControlLastCreated(), 520, PlayerGroupAll())

# mods/missionpacks/campaigncommon.sc2mod

LibComC.galaxy

// L4253
libNtve_gf_SetDialogItemRenderPriority(DialogControlLastCreated(), 1, PlayerGroupAll())

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// L3108
libNtve_gf_SetDialogItemRenderPriority(lv_damageBar, 507, PlayerGroupAll())
// L3367
libNtve_gf_SetDialogItemRenderPriority(libNCUI_gv_NU_HeroDialogEnergyBarBackground[lp_index], 505, PlayerGroupAll())
// L3368
libNtve_gf_SetDialogItemRenderPriority(libNCUI_gv_NU_HeroDialogHealthBarBackground[lp_index], 505, PlayerGroupAll())
// L3369
libNtve_gf_SetDialogItemRenderPriority(libNCUI_gv_NU_HeroDialogShieldBarBackground[lp_index], 505, PlayerGroupAll())
// L3370
libNtve_gf_SetDialogItemRenderPriority(libNCUI_gv_nU_HeroDialogShieldBarImage[lp_index], 507, PlayerGroupAll())
// L6850
libNtve_gf_SetDialogItemRenderPriority(lv_damageBar, 506, PlayerGroupAll())

# mods/starcoop/starcoop.sc2mod

LibCOOC.galaxy

// L5384
libNtve_gf_SetDialogItemRenderPriority(DialogControlLastCreated(), 1, PlayerGroupAll())

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L2480
libNtve_gf_SetDialogItemRenderPriority(lv_damageBar, 507, PlayerGroupAll())
// L2795
libNtve_gf_SetDialogItemRenderPriority(libCOUI_gv_cU_HeroDialogEnergyBarBackground[lp_index], 505, PlayerGroupAll())
// L2796
libNtve_gf_SetDialogItemRenderPriority(libCOUI_gv_cU_HeroDialogHealthBarBackground[lp_index], 505, PlayerGroupAll())
// L2797
libNtve_gf_SetDialogItemRenderPriority(libCOUI_gv_cU_HeroDialogShieldBarImage[lp_index], 511, PlayerGroupAll())
// L2798
libNtve_gf_SetDialogItemRenderPriority(libCOUI_gv_cU_HeroDialogShieldBarBackground[lp_index], 510, PlayerGroupAll())
// L8134
libNtve_gf_SetDialogItemRenderPriority(lv_damageBar, 506, lv_heroGroup)

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L1902
libNtve_gf_SetDialogItemRenderPriority(lv_damageBar, 511, PlayerGroupAll())
// L1936
libNtve_gf_SetDialogItemRenderPriority(DialogControlLastCreated(), 510, PlayerGroupAll())
// L2165
libNtve_gf_SetDialogItemRenderPriority(libA3DDD02B_gv_pP_HeroUIDialogEnergyBarBackground[lp_index], 505, PlayerGroupAll())
// L2166
libNtve_gf_SetDialogItemRenderPriority(libA3DDD02B_gv_pP_HeroUIDialogHealthBarBackground[lp_index], 505, PlayerGroupAll())
// L2167
libNtve_gf_SetDialogItemRenderPriority(libA3DDD02B_gv_pP_HeroUIDialogShieldsBarBackground[lp_index], 505, PlayerGroupAll())
// L2168
libNtve_gf_SetDialogItemRenderPriority(libA3DDD02B_gv_pP_HeroUIDialogShieldsBarImage[lp_index], 507, PlayerGroupAll())
// L8582
libNtve_gf_SetDialogItemRenderPriority(lv_damageBar, 506, PlayerGroupAll())

# mods/warcoop/warclassicsystem.sc2mod

WarClassicSystem.galaxy

// L1018
libNtve_gf_SetDialogItemRenderPriority(libGAwX_gv_warningText, 1512, PlayerGroupAll())