# Dialog Item Edit Value
Grammar — Edit value of dialogItem for player
Flags —Function
Returns the string edit value for a dialog item.
# Arguments
int
<control> — Dialog Itemint
— Player
Returns — string
string libNtve_gf_DialogItemEditValue(
int lp_dialogItem,
int lp_player,
);
# 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:7919
if ((DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1) > UserDataInstanceCount("WriterStates"))) {
UserDataSetInt("StoryStates", UserDataInstance("StoryStates", (DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)-UserDataInstanceCount("WriterStates"))), "value", 1, StringToInt(libNtve_gf_DialogItemEditValue(EventDialogControl(), 1)));
}
else {
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:7922
}
else {
UserDataSetInt("WriterStates", UserDataInstance("WriterStates", DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryStateList, 1)), "Value", 1, StringToInt(libNtve_gf_DialogItemEditValue(EventDialogControl(), 1)));
}
return true;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignMissionLib.galaxy:6509
if ((EventDialogControl() == libVCMI_gv_pM_MissionCheat_Cheats[lv_dialogIndex].lv_buttonDialog)) {
if ((libVCMI_gv_pM_MissionCheat_Cheats[lv_dialogIndex].lv_uIType == libVCMI_ge_MissionCheatUIType_ButtonEditBoxCombo)) {
lv_editBoxValue = libNtve_gf_DialogItemEditValue(libVCMI_gv_pM_MissionCheat_Cheats[lv_dialogIndex].lv_editBoxDialog, 1);
if ((lv_editBoxValue != "")) {
DataTableSetString(true, ("PS_" + TriggerGetFunction(libVCMI_gv_pM_MissionCheat_Cheats[lv_dialogIndex].lv_trigger)), lv_editBoxValue);
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:530
// Automatic Variable Declarations
// Implementation
if ((libNtve_gf_DialogItemEditValue(libVCST_gv_pS_DebugStoryFilterEditBox, 1) != "") && (StringContains(lp_name, libNtve_gf_DialogItemEditValue(libVCST_gv_pS_DebugStoryFilterEditBox, 1), c_stringAnywhere, c_stringNoCase) == false)) {
return ;
}
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:530
// Automatic Variable Declarations
// Implementation
if ((libNtve_gf_DialogItemEditValue(libVCST_gv_pS_DebugStoryFilterEditBox, 1) != "") && (StringContains(lp_name, libNtve_gf_DialogItemEditValue(libVCST_gv_pS_DebugStoryFilterEditBox, 1), c_stringAnywhere, c_stringNoCase) == false)) {
return ;
}
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:3496
}
lv_speedEditBoxContents = libNtve_gf_DialogItemEditValue(libSprt_gv_qACheatsControlsPanel.lv_speedCountEditbox, 1);
lv_speedValue = StringToFixed(lv_speedEditBoxContents);
if ((lv_speedValue > 8.0)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:3906
}
lv_cameraAngleEditBoxContents = libNtve_gf_DialogItemEditValue(libSprt_gv_qACheatsControlsPanel.lv_cameraAngleEditbox, 1);
lv_angleValue = StringToFixed(lv_cameraAngleEditBoxContents);
if (((lv_angleValue > 90.0) || (lv_angleValue < 0.0))) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/SupportLib.galaxy:3987
}
lv_itemCouintEditBoxContents = libNtve_gf_DialogItemEditValue(libSprt_gv_qACheatsControlsPanel.lv_itemCountEditbox, EventPlayer());
lv_itemCount = StringToInt(lv_itemCouintEditBoxContents);
lv_currentPos = CameraGetTarget(EventPlayer());
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:10800
}
else {
lv_delay = StringToFixed(libNtve_gf_DialogItemEditValue(libUIUI_gv_uIDebugPanel.lv_soundVODelayEditor, lv_triggeringPlayer));
auto39B1433C_ae = lv_listCountRight;
lv_listIndexRight = 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:11073
lv_player = EventPlayer();
libUIUI_gv_uIDebugPanelDebugMetaXPValue = StringToInt(libNtve_gf_DialogItemEditValue(libUIUI_gv_uIDebugPanel.lv_metaXPEditBox, lv_player));
if ((libUIUI_gv_uIDebugPanelDebugMetaXPValue <= 0)) {
TextExpressionSetToken("Param/Expression/lib_UIUI_8002416C", "A", IntToText(libUIUI_gv_uIDebugPanelDebugMetaXPValue));
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCMI.galaxy:5449
if ((EventDialogControl() == libNCMI_gv_NM_MissionCheat_Cheats[lv_dialogIndex].lv_buttonDialog)) {
if ((libNCMI_gv_NM_MissionCheat_Cheats[lv_dialogIndex].lv_uIType == libNCMI_ge_MissionCheatUIType_ButtonEditBoxCombo)) {
lv_editBoxValue = libNtve_gf_DialogItemEditValue(libNCMI_gv_NM_MissionCheat_Cheats[lv_dialogIndex].lv_editBoxDialog, 1);
if ((lv_editBoxValue != "")) {
DataTableSetString(true, ("NS_" + TriggerGetFunction(libNCMI_gv_NM_MissionCheat_Cheats[lv_dialogIndex].lv_trigger)), lv_editBoxValue);
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:474
void libNCST_gf_NS_DebugStoryAddListItem (string lp_name, string lp_listInstance, string lp_listType) {
// Implementation
if ((libNtve_gf_DialogItemEditValue(libNCST_gv_nS_DebugStoryFilterEditBox, 1) != "") && (StringContains(lp_name, libNtve_gf_DialogItemEditValue(libNCST_gv_nS_DebugStoryFilterEditBox, 1), c_stringAnywhere, c_stringNoCase) == false)) {
return ;
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:474
void libNCST_gf_NS_DebugStoryAddListItem (string lp_name, string lp_listInstance, string lp_listType) {
// Implementation
if ((libNtve_gf_DialogItemEditValue(libNCST_gv_nS_DebugStoryFilterEditBox, 1) != "") && (StringContains(lp_name, libNtve_gf_DialogItemEditValue(libNCST_gv_nS_DebugStoryFilterEditBox, 1), c_stringAnywhere, c_stringNoCase) == false)) {
return ;
}