# Set Dialog Title
Grammar — Set title of dialog to title
Flags —Native
|Action
Sets the text that is used for the title of the dialog.
# Arguments
int
<dialog> — Dialogtext
— Title
Returns — void
native void DialogSetTitle(int dialog, text title);
# Related
Category: Dialog / Dialogs
- Create Dialog —
int
<dialog> — DialogCreate - Show/Hide Dialog —
void
— DialogSetVisible - Set Dialog Title —
void
— DialogSetTitle - Last Created Dialog —
int
<dialog> — DialogLastCreated - Dialog Is Visible —
bool
— DialogIsVisible - Dialog Title —
text
— DialogGetTitle
# Examples
campaigns/voidstory.sc2campaign — base.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.sc2mod — base.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();