# Set Dialog Item Edit Value
Grammar — Set dialogItem edit value to value for players
Flags —Action
Sets the string edit value for a dialog item.
# Arguments
int
<control> — Dialog Itemstring
— Valueplayergroup
— Players
Returns — void
void libNtve_gf_SetDialogItemEditorValue(
int lp_dialogItem,
string lp_value,
playergroup lp_players,
);
# Related
Category: Dialog / Dialog Item Values
- Set Dialog Item Current Value —
void
— libNtve_gf_SetDialogItemCurrentValue - Set Dialog Item Minimum Value —
void
— libNtve_gf_SetDialogItemMinimumValue - Set Dialog Item Maximum Value —
void
— libNtve_gf_SetDialogItemMaximumValue - Set Dialog Item Checked —
void
— libNtve_gf_SetDialogItemChecked - Set Dialog Item Edit Value —
void
— libNtve_gf_SetDialogItemEditorValue - Dialog Item Current Value —
fixed
— libNtve_gf_DialogItemValue - Dialog Item Maximum Value —
fixed
— libNtve_gf_DialogItemMaximumValue - Dialog Item Minimum Value —
fixed
— libNtve_gf_DialogItemMinimumValue - Dialog Item Is Checked —
bool
— libNtve_gf_DialogItemIsChecked - Dialog Item Edit Value —
string
— libNtve_gf_DialogItemEditValue - Add List Item —
void
— DialogControlAddItem - Select List Item —
void
— DialogControlSelectItem - Clear List Selection —
void
— DialogControlClearSelectedItem - Selected List Item —
int
— DialogControlGetSelectedItem - Count Of List Items —
int
— DialogControlGetItemCount - Remove List Item —
void
— DialogControlRemoveItem - Remove All List Items —
void
— DialogControlRemoveAllItems - Add Graph Data Point —
void
— DialogControlAddDataPoint - Remove All Graph Data Points —
void
— DialogControlRemoveAllDataPoints - Set Graph Data Color —
void
— DialogControlSetDataColor - Set Graph Data Name —
void
— DialogControlSetDataName - Set Graph Minimum X Visible —
void
— DialogControlSetMinXVisible - Get Graph Minimum X Value —
fixed
— DialogControlGetMinXValue - Set Graph Maximum X Visible —
void
— DialogControlSetMaxXVisible - Get Graph Maximum X Value —
fixed
— DialogControlGetMaxXValue - Set Graph Minimum Y Visible —
void
— DialogControlSetMinYVisible - Get Graph Minimum Y Value —
fixed
— DialogControlGetMinYValue - Set Graph Maximum Y Visible —
void
— DialogControlSetMaxYVisible - Get Graph Maximum Y Value —
fixed
— DialogControlGetMaxYValue
# Examples
campaigns/swarmstoryutil.sc2mod — base.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.sc2mod — base.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.sc2campaign — base.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.sc2mod — base.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());
}