# Set Dialog Item Edit Value

Grammar — Set dialogItem edit value to value for players
FlagsAction

Sets the string edit value for a dialog item.

# Arguments

  • int<control> — Dialog Item
  • string — Value
  • playergroup — Players

Returns — void

void libNtve_gf_SetDialogItemEditorValue(
	int lp_dialogItem,
	string lp_value,
	playergroup lp_players,
);

Category: Dialog / Dialog Item Values

# Examples

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:2333

    }
    if ((DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1) > UserDataInstanceCount("WriterStates"))) {
        libNtve_gf_SetDialogItemEditorValue(lib281DEC45_gv_zSS_DebugStoryStateEditBox, IntToString(UserDataGetInt("StoryStates", UserDataInstance("StoryStates", (DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)-UserDataInstanceCount("WriterStates"))), "value", 1)), PlayerGroupAll());
    }
    else {

campaigns/swarmstoryutil.sc2modbase.sc2data/Lib281DEC45.galaxy:2336

    }
    else {
        libNtve_gf_SetDialogItemEditorValue(lib281DEC45_gv_zSS_DebugStoryStateEditBox, IntToString(UserDataGetInt("WriterStates", UserDataInstance("WriterStates", DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)), "Value", 1)), PlayerGroupAll());
    }
    auto278E2963_ae = lib281DEC45_gv_zSS_DebugStoryInteractiveCount;

campaigns/voidstory.sc2campaignbase.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6425

            DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_buttonDialog, c_anchorTopRight, 0, 0);
            DialogControlSetSize(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_buttonDialog, PlayerGroupAll(), ((lv_buttonWidth * 2) / 3), lv_buttonHeight);
            libNtve_gf_SetDialogItemEditorValue(libVCMI_gv_pM_MissionCheat_Cheats[lv_cheatIndex].lv_editBoxDialog, "0", PlayerGroupAll());
        }

mods/missionpacks/novacampaign.sc2modbase.sc2data/LibNCMI.galaxy:5363

            DialogControlSetPositionRelative(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTopLeft, libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_buttonDialog, c_anchorTopRight, 0, 0);
            DialogControlSetSize(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_buttonDialog, PlayerGroupAll(), ((lv_buttonWidth * 2) / 3), lv_buttonHeight);
            libNtve_gf_SetDialogItemEditorValue(libNCMI_gv_NM_MissionCheat_Cheats[lv_cheatIndex].lv_editBoxDialog, "0", PlayerGroupAll());
        }