# Custom Dialog Result
Grammar — Custom dialog result
Flags —Native
|Function
Returns the custom dialog item a player selected. Use in response to “Custom Dialog Dismissed”.
Returns — int
<preset::CustomDialogResult>
native int EventCustomDialogResult();
# Supported triggers
- Custom Dialog Dismissed — TriggerAddEventCustomDialogDismissed
# Related
Category: UI / Custom Dialog
- Custom Dialog Dismissed —
void
— TriggerAddEventCustomDialogDismissed - Custom Dialog Result —
int
<preset::CustomDialogResult> — EventCustomDialogResult - Display Custom Dialog —
void
— UIShowCustomDialog
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:15359
}
gv_queryDialogResult = EventCustomDialogResult();
gv_queryDialogClosed = true;
return true;
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:24585
TriggerEnable(TriggerGetCurrent(), false);
if ((EventCustomDialogResult() == libNtve_ge_CustomDialogResult_c_customDialogResultYes)) {
GameSetNextMap("");
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypePlanetPanel, false);
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:25385
TriggerEnable(TriggerGetCurrent(), false);
gv_planetPanel_CharInvasionQueryDone = true;
gv_planetPanel_CharInvasionQueryResult = EventCustomDialogResult();
return true;
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:15359
}
gv_queryDialogResult = EventCustomDialogResult();
gv_queryDialogClosed = true;
return true;
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:24585
TriggerEnable(TriggerGetCurrent(), false);
if ((EventCustomDialogResult() == libNtve_ge_CustomDialogResult_c_customDialogResultYes)) {
GameSetNextMap("");
UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypePlanetPanel, false);
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2map — MapScript.galaxy:25385
TriggerEnable(TriggerGetCurrent(), false);
gv_planetPanel_CharInvasionQueryDone = true;
gv_planetPanel_CharInvasionQueryResult = EventCustomDialogResult();
return true;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/StartingExperienceLib.galaxy:5434
}
if ((EventCustomDialogResult() == libNtve_ge_CustomDialogResult_c_customDialogResultYes)) {
libStEx_gv_queryDialogResult = libStEx_ge_QueryDialogResult_Yes;
}