# Set Dialog Title

Grammar — Set title of dialog to title
FlagsNative | Action

Sets the text that is used for the title of the dialog.

# Arguments

  • int<dialog> — Dialog
  • text — Title

Returns — void

native void DialogSetTitle(int dialog, text title);

Category: Dialog / Dialogs

# Examples

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6126

    DialogCreate(libVCMI_gv_pM_GameCheat_DialogWidth, libVCMI_gv_pM_GameCheat_DialogHeight, c_anchorTopRight, 0, 50, true);
    libVCMI_gv_pM_GameCheat_Dialog = DialogLastCreated();
    DialogSetTitle(DialogLastCreated(), StringExternal("Param/Value/lib_VCMI_392837B9"));
    libNtve_gf_CreateDialogItemButton(libVCMI_gv_pM_GameCheat_Dialog, 40, 40, c_anchorTopRight, 0, 0, StringExternal("Param/Value/lib_VCMI_21C58550"), StringExternal("Param/Value/lib_VCMI_E5CED145"), "");
    libVCMI_gv_pM_GameCheat_Minimize = DialogControlLastCreated();

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5066

    DialogCreate(libNCMI_gv_NM_GameCheat_DialogWidth, libNCMI_gv_NM_GameCheat_DialogHeight, c_anchorTopRight, 0, 50, true);
    libNCMI_gv_NM_GameCheat_Dialog = DialogLastCreated();
    DialogSetTitle(DialogLastCreated(), StringExternal("Param/Value/lib_NCMI_392837B9"));
    libNtve_gf_CreateDialogItemButton(libNCMI_gv_NM_GameCheat_Dialog, 40, 40, c_anchorTopRight, 0, 0, StringExternal("Param/Value/lib_NCMI_21C58550"), StringExternal("Param/Value/lib_NCMI_E5CED145"), "");
    libNCMI_gv_NM_GameCheat_Minimize = DialogControlLastCreated();