# Dialog Item Current Value
Grammar — Current value of dialogItem for player
Flags —Function
Returns the current value that is set for a dialog item.
# Arguments
int
<control> — Dialog Itemint
— Player
Returns — fixed
fixed libNtve_gf_DialogItemValue(
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
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:658
DialogControlSetVisible(gv_tryMeModePanel.lv_levelFrame, PlayerGroupAll(), false);
gv_setHeroLevelUIOn = false;
gv_heroCurrentLevel = FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C));
gf_SetHeroLevel(gv_heroCurrentLevel, false);
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:937
DialogControlSetVisible(gv_tryMeModePanel.lv_gameSpeedFrame, PlayerGroupAll(), false);
gv_setGameSpeedUIOn = false;
lv_speed = gf_GameSpeedFromIndex(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_gameSpeedSlider, gv_pLAYER_TryMe_C)));
GameSetSpeedValue(lv_speed);
UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringExternal("Param/Value/A2085E1B"));
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2014
}
TextExpressionSetToken("Param/Expression/06B55100", "A", IntToText(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C))));
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_levelLabel, TextExpressionAssemble("Param/Expression/06B55100"), PlayerGroupAll());
return true;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2258
}
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_gameSpeedLabel, gf_GameSpeedText(gf_GameSpeedFromIndex(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_gameSpeedSlider, 1)))), PlayerGroupAll());
return true;
}
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:2286
gf_TemporarilyDisableButtonPressedTriggers(true);
gv_heroCurrentLevel = FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C));
gf_SetHeroLevel(gv_heroCurrentLevel, true);
Wait(0.0625, c_timeGame);
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:658
DialogControlSetVisible(gv_tryMeModePanel.lv_levelFrame, PlayerGroupAll(), false);
gv_setHeroLevelUIOn = false;
gv_heroCurrentLevel = FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C));
gf_SetHeroLevel(gv_heroCurrentLevel, false);
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:937
DialogControlSetVisible(gv_tryMeModePanel.lv_gameSpeedFrame, PlayerGroupAll(), false);
gv_setGameSpeedUIOn = false;
lv_speed = gf_GameSpeedFromIndex(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_gameSpeedSlider, gv_pLAYER_TryMe_C)));
GameSetSpeedValue(lv_speed);
UIDisplayMessage(PlayerGroupAll(), c_messageAreaSubtitle, StringExternal("Param/Value/A2085E1B"));
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2014
}
TextExpressionSetToken("Param/Expression/06B55100", "A", IntToText(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C))));
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_levelLabel, TextExpressionAssemble("Param/Expression/06B55100"), PlayerGroupAll());
return true;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2258
}
libNtve_gf_SetDialogItemText(gv_tryMeModePanel.lv_gameSpeedLabel, gf_GameSpeedText(gf_GameSpeedFromIndex(FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_gameSpeedSlider, 1)))), PlayerGroupAll());
return true;
}
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:2286
gf_TemporarilyDisableButtonPressedTriggers(true);
gv_heroCurrentLevel = FixedToInt(libNtve_gf_DialogItemValue(gv_tryMeModePanel.lv_levelSlider, gv_pLAYER_TryMe_C));
gf_SetHeroLevel(gv_heroCurrentLevel, true);
Wait(0.0625, c_timeGame);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2026
BankValueSetFromFlag(lv_localBank, "Debug Menu Options", "SpawnAtCamera", libUIUI_gv_uIDebugPanelSpawnAtCamera);
BankValueSetFromFlag(lv_localBank, "Debug Menu Options", "SavedHero", libUIUI_gv_uIDebugPanelSavedHero);
BankValueSetFromFixed(lv_localBank, "Debug Menu Options", "HeroLevelXP", libCore_gf_GetTotalXPForLevel(FixedToInt(libNtve_gf_DialogItemValue(libUIUI_gv_uIDebugPanel.lv_levelSlider, lp_localPlayer))));
BankValueSetFromInt(lv_localBank, "Debug Menu Options", "HeroIndex", DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_heroDropdown, 1));
BankValueSetFromInt(lv_localBank, "Debug Menu Options", "SkinIndex", DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_skinDropdown, 1));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:10243
}
TextExpressionSetToken("Param/Expression/lib_UIUI_7777446E", "A", FixedToText(libNtve_gf_DialogItemValue(EventDialogControl(), EventPlayer()), 0));
libNtve_gf_SetDialogItemText(libUIUI_gv_uIDebugPanel.lv_playerLabel, TextExpressionAssemble("Param/Expression/lib_UIUI_7777446E"), libCore_gv_playerGroupFromPlayer[EventPlayer()]);
return true;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:10275
}
TextExpressionSetToken("Param/Expression/lib_UIUI_FA37F92E", "A", FixedToText(libNtve_gf_DialogItemValue(EventDialogControl(), EventPlayer()), 0));
libNtve_gf_SetDialogItemText(libUIUI_gv_uIDebugPanel.lv_levelLabel, TextExpressionAssemble("Param/Expression/lib_UIUI_FA37F92E"), libCore_gv_playerGroupFromPlayer[EventPlayer()]);
return true;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:10995
lv_announcerPackIndex = DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_announcerPackDropdown, lv_triggeringPlayer);
lv_voiceLineIndex = DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_voiceLineDropdown, lv_triggeringPlayer);
lv_player = FixedToInt(libNtve_gf_DialogItemValue(libUIUI_gv_uIDebugPanel.lv_playerSlider, lv_triggeringPlayer));
if ((libNtve_gf_DialogItemIsChecked(libUIUI_gv_uIDebugPanel.lv_useCurrentXPCheckbox, lv_triggeringPlayer) == true)) {
lv_xP = UnitGetPropertyFixed(libGame_gv_players[lv_player].lv_heroUnit, c_unitPropXP, c_unitPropCurrent);
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:11000
}
else {
lv_xP = libCore_gf_GetTotalXPForLevel(FixedToInt(libNtve_gf_DialogItemValue(libUIUI_gv_uIDebugPanel.lv_levelSlider, lv_triggeringPlayer)));
}
libUIUI_gf_UIDebugPanelLoadLootContentIndexForPlayer(lv_triggeringPlayer, lv_heroIndex, lv_sprayIndex, lv_bannerIndex, lv_announcerPackIndex, lv_voiceLineIndex);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:632
DialogControlSetSize(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), 450, 50);
DialogControlSetPosition(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), c_anchorTop, 0, 240);
libNtve_gf_SetDialogItemText(libCOUI_gv_cU_RandomMutationSelectLabel, StringToText(("Difficulty: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 1))) + "]")), PlayerGroupAll());
libNtve_gf_CreateDialogItemButton(libCOUI_gv_cU_RandomMutationSelectDialog, 75, 50, c_anchorBottom, 0, 25, StringToText(""), StringToText("OK"), "");
libCOUI_gv_cU_RandomMutationSelectOKButton = DialogControlLastCreated();
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:632
DialogControlSetSize(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), 450, 50);
DialogControlSetPosition(libCOUI_gv_cU_RandomMutationSelectLabel, PlayerGroupAll(), c_anchorTop, 0, 240);
libNtve_gf_SetDialogItemText(libCOUI_gv_cU_RandomMutationSelectLabel, StringToText(("Difficulty: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 1))) + "]")), PlayerGroupAll());
libNtve_gf_CreateDialogItemButton(libCOUI_gv_cU_RandomMutationSelectDialog, 75, 50, c_anchorBottom, 0, 25, StringToText(""), StringToText("OK"), "");
libCOUI_gv_cU_RandomMutationSelectOKButton = DialogControlLastCreated();
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6549
}
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6550
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6551
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
libCOUI_gf_CU_RandomMutationSelectClose(1);
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6552
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
lv_minmutators = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, EventPlayer()));
lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
libCOUI_gf_CU_RandomMutationSelectClose(1);
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6554
lv_maxmutators = MaxI(lv_minmutators, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, EventPlayer())));
libCOUI_gf_CU_RandomMutationSelectClose(1);
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
if ((lv_maxdifficulty < lv_mindifficulty)) {
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6555
libCOUI_gf_CU_RandomMutationSelectClose(1);
lv_mindifficulty = RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, EventPlayer()));
lv_maxdifficulty = MaxI(lv_mindifficulty, RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, EventPlayer())));
if ((lv_maxdifficulty < lv_mindifficulty)) {
lv_maxdifficulty = lv_mindifficulty;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6616
}
libNtve_gf_SetDialogItemText(libCOUI_gv_cU_RandomMutationSelectLabel, StringToText(("Difficulty: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 1))) + "] Mutators: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, 1))) + "]")), PlayerGroupAll());
return true;
}
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:6616
}
libNtve_gf_SetDialogItemText(libCOUI_gv_cU_RandomMutationSelectLabel, StringToText(("Difficulty: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxSlider, 1))) + "] Mutators: [" + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMinMutSlider, 1))) + ", " + IntToString(RoundI(libNtve_gf_DialogItemValue(libCOUI_gv_cU_RandomMutationSelectMaxMutSlider, 1))) + "]")), PlayerGroupAll());
return true;
}
mods/warcoop/warcoopdata.sc2mod — base.sc2data/TriggerLibs/WarCoopData.galaxy:3321
}
lv_newdifficultylevel = libNtve_gf_ArithmeticIntClamp(RoundI(libNtve_gf_DialogItemValue(libWCdr_gv_debugHeroSelectUI.lv_optionsPanel.lv_difficultySlider, 1)), UserDataGetInt("LegionDifficultyScaling", "LevelRange", "MinLevel", 1), UserDataGetInt("LegionDifficultyScaling", "LevelRange", "MaxLevel", 1));
if ((lv_newdifficultylevel == libWCdr_gv_legends.lv_difficultyLevel)) {
return true;