# Dialog Item Text

Grammar — Text of dialogItem for player
FlagsFunction

Returns the text of the dialog item for the specified player.

# Arguments

  • int<control> — Dialog Item
  • int — Player

Returns — text

text libNtve_gf_DialogItemText(
	int lp_dialogItem,
	int lp_player,
);

Category: Dialog / Dialog Items

# Examples

campaigns/liberty.sc2campaignbase.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.sc2mapMapScript.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.sc2campaignbase.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.sc2campaignbase.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.sc2mapMapScript.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.sc2mapMapScript.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.stormmodbase.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.sc2modbase.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 ) {