# Set Dialog Item Text Value

Grammar — Set dialogItem property to value for players
FlagsNative | Action | Internal

# Arguments

  • int<control> — Dialog Item
  • int<preset::ControlProperty> — Property
  • playergroup — Players
  • text — Value

Returns — void

native void DialogControlSetPropertyAsText(
	int control,
	int property,
	playergroup players,
	text value,
);

Category: Dialog / Dialog Item Values / Internal

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2615

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 200, 50);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, 50, 50);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringExternal("Param/Value/0AC87428"));
    gv_tBDWindowButtonClose = DialogControlLastCreated();
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:2620

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 400, 50);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, 0, 50);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), (StringExternal("Param/Value/99190C9E") + lp_message));
    DialogSetVisible(gv_tBDWindowDialog, PlayerGroupAll(), true);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:4680

    gv_debugSceneCallbacks[gv_debugSceneCount] = lp_callback;
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), lp_label);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), lp_wide, lp_tall);
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "DebugScenePanelButton", PlayerGroupAll());

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:4695

    // Implementation
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), lp_label);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 500, 50);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, lp_x, lp_y);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:4720

    // Implementation
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), lp_label);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 230, 50);
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tstory01.sc2map/MapScript.galaxy:4799

    // Implementation
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), lp_label);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 230, 50);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:2615

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 200, 50);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, 50, 50);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringExternal("Param/Value/0AC87428"));
    gv_tBDWindowButtonClose = DialogControlLastCreated();
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:2620

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 400, 50);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, 0, 50);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), (StringExternal("Param/Value/99190C9E") + lp_message));
    DialogSetVisible(gv_tBDWindowDialog, PlayerGroupAll(), true);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:4680

    gv_debugSceneCallbacks[gv_debugSceneCount] = lp_callback;
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), lp_label);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), lp_wide, lp_tall);
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "DebugScenePanelButton", PlayerGroupAll());

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:4695

    // Implementation
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), lp_label);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 500, 50);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, lp_x, lp_y);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:4720

    // Implementation
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), lp_label);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 230, 50);
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tstory01.sc2mapMapScript.galaxy:4799

    // Implementation
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), lp_label);
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 230, 50);
}

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10463

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), lv_width, lv_height);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, lv_xX, lv_yY);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), libCamp_gv_tS_MapProgressCheatName[(lp_mission)]);
    libNtve_gf_SetDialogItemColor(DialogControlLastCreated(), Color(0.00, 100.00, 0.00), PlayerGroupAll());
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "DebugProgressPanelMission", PlayerGroupAll());

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10473

        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 120, lv_height);
        DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, (lv_xX + (lv_width - 8)), (lv_yY - (lv_height / 2)));
        DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringExternal("Param/Value/lib_Camp_FF7E2E63"));
        libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "DebugProgressPanelLabelUnlock", PlayerGroupAll());
    }

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10478


    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringToText(""));
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), (lv_width - (lv_marginX * 2)), (lv_height - (lv_marginY * 2)));
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "DebugProgressPanelLabelProgress", PlayerGroupAll());

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10484

    libCamp_gv_tS_DebugProgressMissionLabelsStates[lv_missionIndex] = DialogControlLastCreated();
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringToText(""));
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), (lv_width - (lv_marginX * 2)), (lv_height - (lv_marginY * 2)));
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "DebugProgressPanelLabelUnit", PlayerGroupAll());

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10490

    libCamp_gv_tS_DebugProgressMissionLabelsUnits[lv_missionIndex] = DialogControlLastCreated();
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringToText(""));
    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), (lv_width - (lv_marginX * 2)), (lv_height - (lv_marginY * 2)));
    libNtve_gf_SetDialogItemStyle(DialogControlLastCreated(), "DebugProgressPanelLabelCredits", PlayerGroupAll());

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10612

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 150, 50);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, 190, 30);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringExternal("Param/Value/lib_Camp_D890E79E"));
    libCamp_gv_tS_DebugProgressButtonOK = DialogControlLastCreated();
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeLabel);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10617

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 280, 50);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, 50, 50);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringToText(""));
    libCamp_gv_tS_DebugProgressLabelWarning = DialogControlLastCreated();
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10623

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 150, 50);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, 40, 30);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringExternal("Param/Value/lib_Camp_21B35898"));
    libCamp_gv_tS_DebugProgressButtonCancel = DialogControlLastCreated();
    DialogControlCreate(DialogLastCreated(), c_triggerControlTypeButton);

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10629

    DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 150, 50);
    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomLeft, 40, 30);
    DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringExternal("Param/Value/lib_Camp_8245BB9F"));
    libCamp_gv_tS_DebugProgressButtonReset = DialogControlLastCreated();
    if ((GameCheatsEnabled(c_gameCheatCategoryDevelopment) == true) && (GameIsOnline() == false) && (libCamp_gf_CampaignDebugModeIsOn("NoBattleNet") == true)) {

campaigns/libertystory.sc2campaignbase.sc2data/TriggerLibs/CampaignLib.galaxy:10636

        DialogControlSetSize(DialogControlLastCreated(), PlayerGroupAll(), 220, 50);
        DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorBottomRight, 370, 30);
        DialogControlSetPropertyAsText(DialogControlLastCreated(), c_triggerControlPropertyText, PlayerGroupAll(), StringExternal("Param/Value/lib_Camp_F317CBE3"));
        libCamp_gv_tS_DebugProgressButtonLaunchMission = DialogControlLastCreated();
        TriggerEnable(libCamp_gt_TS_DebugProgressLaunchMissionPopup, true);

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2568

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsText(lp_dialogItem, c_triggerControlPropertyText, lp_players, lp_text);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:2787

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsText(lp_dialogItem, c_triggerControlPropertyTooltip, lp_players, lp_tooltip);
}

mods/core.sc2modbase.sc2data/TriggerLibs/NativeLib.galaxy:3147

    DialogControlSetSize(libNtve_gv_screenButtons[lp_screenButtonID], PlayerGroupAll(), lp_width, lp_height);
    DialogControlSetPosition(libNtve_gv_screenButtons[lp_screenButtonID], PlayerGroupAll(), c_anchorCenter, 0, 0);
    DialogControlSetPropertyAsText(libNtve_gv_screenButtons[lp_screenButtonID], c_triggerControlPropertyText, PlayerGroupAll(), lp_text);
    libNtve_gv_screenButtonCallbacks[lp_screenButtonID] = lp_callback;
    DialogSetVisible(libNtve_gv_screenButtonDialogs[lp_screenButtonID], PlayerGroupAll(), true);

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2021

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsText(lp_dialogItem, c_triggerControlPropertyText, lp_players, lp_text);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2240

    // Automatic Variable Declarations
    // Implementation
    DialogControlSetPropertyAsText(lp_dialogItem, c_triggerControlPropertyTooltip, lp_players, lp_tooltip);
}

mods/core.stormmodbase.stormdata/TriggerLibs/NativeLib.galaxy:2625

    DialogControlSetSize(libNtve_gv_screenButtons[lp_screenButtonID], PlayerGroupAll(), lp_width, lp_height);
    DialogControlSetPosition(libNtve_gv_screenButtons[lp_screenButtonID], PlayerGroupAll(), c_anchorCenter, 0, 0);
    DialogControlSetPropertyAsText(libNtve_gv_screenButtons[lp_screenButtonID], c_triggerControlPropertyText, PlayerGroupAll(), lp_text);
    libNtve_gv_screenButtonCallbacks[lp_screenButtonID] = lp_callback;
    DialogSetVisible(libNtve_gv_screenButtonDialogs[lp_screenButtonID], PlayerGroupAll(), true);