# Dialog Item Text
Grammar — Text of dialogItem for player
Flags —Function
Returns the text of the dialog item for the specified player.
# Arguments
int
<control> — Dialog Itemint
— Player
Returns — text
text libNtve_gf_DialogItemText(
int lp_dialogItem,
int lp_player,
);
# Related
Category: Dialog / Dialog Items
- Create Dialog Item —
int
<control> — DialogControlCreate - Create Dialog Item In Panel —
int
<control> — DialogControlCreateInPanel - Create Dialog Item From Template —
int
<control> — DialogControlCreateFromTemplate - Create Dialog Item In Panel From Template —
int
<control> — DialogControlCreateInPanelFromTemplate - Hookup Dialog Item —
int
<control> — DialogControlHookup - Hookup Standard Dialog Item —
int
<control> — DialogControlHookupStandard - Hookup Unit Status Dialog Item —
int
<control> — DialogControlHookupUnitStatus - Show/Hide Dialog Item —
void
— DialogControlSetVisible - Enable/Disable Dialog Item —
void
— DialogControlSetEnabled - Set Dialog Item Text —
void
— libNtve_gf_SetDialogItemText - Set Dialog Item Observed Type —
void
— DialogControlSetObservedType - Last Created Dialog Item —
int
<control> — DialogControlLastCreated - Dialog Item Is Visible —
bool
— DialogControlIsVisible - Dialog Item Is Enabled —
bool
— DialogControlIsEnabled - Dialog Item Text —
text
— libNtve_gf_DialogItemText - Dialog Item Is Used —
void
— TriggerAddEventDialogControl - Used Dialog Item —
int
<control> — EventDialogControl - Dialog Item Event Type —
int
<preset::ControlEventType> — EventDialogControlEventType - Dialog Item Mouse Button —
int
<preset::MouseButton> — EventDialogControlMouseButton
# Examples
campaigns/liberty.sc2campaign — base.sc2maps/maps/campaign/tarcade.sc2map/MapScript.galaxy:3842
libNtve_gf_SetDialogItemImage2(lp_button, "Assets\\Textures\\ui_button_generic_greenglow_normaloverpressedover.dds", PlayerGroupAll());
libNtve_gf_SetDialogItemStyle(lp_button, "ArcadeBackButton", PlayerGroupAll());
libNtve_gf_SetDialogItemText(lp_button, TextCase(libNtve_gf_DialogItemText(lp_button, 1), true), PlayerGroupAll());
}
campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tarcade.sc2map — MapScript.galaxy:3842
libNtve_gf_SetDialogItemImage2(lp_button, "Assets\\Textures\\ui_button_generic_greenglow_normaloverpressedover.dds", PlayerGroupAll());
libNtve_gf_SetDialogItemStyle(lp_button, "ArcadeBackButton", PlayerGroupAll());
libNtve_gf_SetDialogItemText(lp_button, TextCase(libNtve_gf_DialogItemText(lp_button, 1), true), PlayerGroupAll());
}
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:1044
}
DialogControlSetEnabled(gv_toggleButton, PlayerGroupAll(), false);
lv_buttonText = libNtve_gf_DialogItemText(gv_toggleButton, gv_pLAYER_01_USER);
libNtve_gf_SetDialogItemText(gv_toggleButton, StringExternal("Param/Value/67AA4B62"), PlayerGroupAll());
UnitGroupLoopBegin(lv_warpedUnits);
campaigns/void.sc2campaign — base.sc2maps/maps/campaign/void/pcampaigntest.sc2map/MapScript.galaxy:2286
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
TriggerExecute(gt_SetupToggleButton, true, false);
TextExpressionSetToken("Param/Expression/D1B03013", "ButtonText", libNtve_gf_DialogItemText(gv_toggleButton, 1));
libVCMI_gf_SendTransmissionCampaignPlaceHolder(null, null, StringExternal("Param/Value/45E57795"), TextExpressionAssemble("Param/Expression/D1B03013"), 8.0, true, libVCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libVCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
gv_cinematicCompleted = true;
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2map — MapScript.galaxy:1044
}
DialogControlSetEnabled(gv_toggleButton, PlayerGroupAll(), false);
lv_buttonText = libNtve_gf_DialogItemText(gv_toggleButton, gv_pLAYER_01_USER);
libNtve_gf_SetDialogItemText(gv_toggleButton, StringExternal("Param/Value/67AA4B62"), PlayerGroupAll());
UnitGroupLoopBegin(lv_warpedUnits);
campaigns/void.sc2campaign/base.sc2maps/maps/campaign/void/pcampaigntest.sc2map — MapScript.galaxy:2286
CinematicFade(true, 1.0, c_fadeStyleNormal, ColorWithAlpha(0.00, 0.00, 0.00, 0.00), 0.0, true);
TriggerExecute(gt_SetupToggleButton, true, false);
TextExpressionSetToken("Param/Expression/D1B03013", "ButtonText", libNtve_gf_DialogItemText(gv_toggleButton, 1));
libVCMI_gf_SendTransmissionCampaignPlaceHolder(null, null, StringExternal("Param/Value/45E57795"), TextExpressionAssemble("Param/Expression/D1B03013"), 8.0, true, libVCMI_ge_MissionTransmissionPortraitOptioins_HidePortraitAfter, libVCMI_ge_MissionTransmissionCueSoundOptions_DefaultCueSoundBehavior);
gv_cinematicCompleted = true;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:8619
lv_itIndex = lp_index;
for ( ; ( (autoC91B969B_ai >= 0 && lv_itIndex <= autoC91B969B_ae) || (autoC91B969B_ai < 0 && lv_itIndex >= autoC91B969B_ae) ) ; lv_itIndex += autoC91B969B_ai ) {
libNtve_gf_SetDialogItemText(libUIUI_gv_tutorialReferenceLabels[lv_itIndex], libNtve_gf_DialogItemText(libUIUI_gv_tutorialReferenceLabels[(lv_itIndex + 1)], 1), PlayerGroupAll());
}
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:5625
for ( ; ( (auto34BA5C64_ai >= 0 && lv_windowIndex <= auto34BA5C64_ae) || (auto34BA5C64_ai < 0 && lv_windowIndex >= auto34BA5C64_ae) ) ; lv_windowIndex += auto34BA5C64_ai ) {
libCOUI_gv_cU_WaveTimerWindowTimers[(lv_windowIndex-1)] = libCOUI_gv_cU_WaveTimerWindowTimers[lv_windowIndex];
libNtve_gf_SetDialogItemText(libCOUI_gv_cU_WaveTimerWindowTitle[(lv_windowIndex-1)], libNtve_gf_DialogItemText(libCOUI_gv_cU_WaveTimerWindowTitle[lv_windowIndex], 1), PlayerGroupAll());
lv_slotIndex = 1;
for ( ; ( (auto742C6A92_ai >= 0 && lv_slotIndex <= auto742C6A92_ae) || (auto742C6A92_ai < 0 && lv_slotIndex >= auto742C6A92_ae) ) ; lv_slotIndex += auto742C6A92_ai ) {