# Remove All List Items
Grammar — Remove all items from list for players
Flags —Native
|Action
Removes all of the list items from the specified dialog item.
# Arguments
int
<control> — Listplayergroup
— Players
Returns — void
native void DialogControlRemoveAllItems(
int control,
playergroup 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:2310
if ((DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryTypeList, 1) != lib281DEC45_gv_zSS_DebugStoryCurrentTypeIndex)) {
lib281DEC45_gv_zSS_DebugStoryCurrentTypeIndex = DialogControlGetSelectedItem(lib281DEC45_gv_zSS_DebugStoryTypeList, 1);
DialogControlRemoveAllItems(lib281DEC45_gv_zSS_DebugStorySceneList, PlayerGroupAll());
auto2749AB36_ae = UserDataInstanceCount("ScriptedScenes");
auto2749AB36_ai = 1;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:156
// Implementation
libVCST_gv_pS_DebugStoryListCount = 0;
DialogControlRemoveAllItems(libVCST_gv_pS_DebugStorySceneList, PlayerGroupAll());
auto88925A07_ae = UserDataInstanceCount("Scenes");
lv_index = 1;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:192
// Implementation
DialogControlRemoveAllItems(libVCST_gv_pS_DebugStoryPreviewList, PlayerGroupAll());
if ((libVCST_gv_pS_DebugStoryListType[libVCST_gv_pS_DebugStorySelectedIndex] == null)) {
return ;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:764
// Implementation
TriggerEnable(gt_ChangeAllyHeroDropdownSelectionChanged, false);
DialogControlRemoveAllItems(gv_tryMeModePanel.lv_changeAllyPulldown, PlayerGroupAll());
lv_itListItemIndex = 0;
lv_itListItemIndex += 1;
mods/heroes.stormmod — base.stormmaps/maps/heroes/singleplayermaps/%2810%29trymemode.stormmap/MapScript.galaxy:806
// Implementation
TriggerEnable(gt_ChangeEnemyHeroDropdownSelectionChanged, false);
DialogControlRemoveAllItems(gv_tryMeModePanel.lv_changeEnemyPulldown, PlayerGroupAll());
lv_itListItemIndex = 0;
lv_itListItemIndex += 1;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:764
// Implementation
TriggerEnable(gt_ChangeAllyHeroDropdownSelectionChanged, false);
DialogControlRemoveAllItems(gv_tryMeModePanel.lv_changeAllyPulldown, PlayerGroupAll());
lv_itListItemIndex = 0;
lv_itListItemIndex += 1;
mods/heroes.stormmod/base.stormmaps/maps/heroes/singleplayermaps/(10)trymemode.stormmap — map/MapScript.galaxy:806
// Implementation
TriggerEnable(gt_ChangeEnemyHeroDropdownSelectionChanged, false);
DialogControlRemoveAllItems(gv_tryMeModePanel.lv_changeEnemyPulldown, PlayerGroupAll());
lv_itListItemIndex = 0;
lv_itListItemIndex += 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2052
// Implementation
DialogControlRemoveAllItems(libUIUI_gv_uIDebugPanel.lv_heroDropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
DialogControlRemoveAllItems(libUIUI_gv_uIDebugPanel.lv_voiceLineRadioHeroDropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
auto5870041B_ae = libCore_gv_dataHeroesNumberOfHeroes;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2053
// Implementation
DialogControlRemoveAllItems(libUIUI_gv_uIDebugPanel.lv_heroDropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
DialogControlRemoveAllItems(libUIUI_gv_uIDebugPanel.lv_voiceLineRadioHeroDropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
auto5870041B_ae = libCore_gv_dataHeroesNumberOfHeroes;
lv_itHeroIndex = 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2080
// Implementation
DialogControlRemoveAllItems(libUIUI_gv_uIDebugPanel.lv_skinDropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
autoAB36DC2D_ae = DataTableGetInt(true, ("HeroIndex_" + IntToString(lp_heroIndex) + "_SkinCount"));
lv_itSkin = 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2111
// Implementation
DialogControlRemoveAllItems(libUIUI_gv_uIDebugPanel.lv_mountTypeDropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
lv_heroIndexStr = IntToString(lp_heroIndex);
lv_skinIndex = libCore_gf_DataSkinsGetSkinIndexFromSkinLink((DataTableGetString(true, ("HeroIndex_" + lv_heroIndexStr + "_SkinIndex_" + IntToString(DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_skinDropdown, lp_player))))));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2147
// Implementation
DialogControlRemoveAllItems(libUIUI_gv_uIDebugPanel.lv_mountBaseDropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
lv_heroIndexStr = IntToString(lp_heroIndex);
lv_skinIndex = libCore_gf_DataSkinsGetSkinIndexFromSkinLink((DataTableGetString(true, ("HeroIndex_" + lv_heroIndexStr + "_SkinIndex_" + IntToString(DialogControlGetSelectedItem(libUIUI_gv_uIDebugPanel.lv_skinDropdown, lp_player))))));
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2185
// Implementation
DialogControlRemoveAllItems(libUIUI_gv_uIDebugPanel.lv_mountVariationDropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
if ((DialogControlGetItemCount(libUIUI_gv_uIDebugPanel.lv_mountBaseDropdown, lp_player) <= 0)) {
return ;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2223
// Implementation
DialogControlRemoveAllItems(lv_dropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
auto551F6E44_ae = libCore_gv_loot_SprayCount;
lv_itSpray = 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2249
// Implementation
DialogControlRemoveAllItems(lv_dropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
autoFA2DEA7E_ae = libCore_gv_loot_BannerCount;
lv_itBanner = 1;
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2275
// Implementation
DialogControlRemoveAllItems(lv_dropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
DialogControlClearSelectedItem(lv_dropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
if ((lv_count == 0)) {
mods/heroesdata.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:2309
// Implementation
DialogControlRemoveAllItems(libUIUI_gv_uIDebugPanel.lv_announcerPackDropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
DialogControlRemoveAllItems(libUIUI_gv_uIDebugPanel.lv_announcerRadioDropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
auto4F5B37D8_ae = libCore_gv_loot_AnnouncerPackCount;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:154
// Implementation
libNCST_gv_nS_DebugStoryListCount = 0;
DialogControlRemoveAllItems(libNCST_gv_nS_DebugStorySceneList, PlayerGroupAll());
auto88925A07_ae = UserDataInstanceCount("Scenes");
auto88925A07_ai = 1;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:191
// Implementation
DialogControlRemoveAllItems(libNCST_gv_nS_DebugStoryPreviewList, PlayerGroupAll());
if ((libNCST_gv_nS_DebugStoryListType[libNCST_gv_nS_DebugStorySelectedIndex] == null)) {
return ;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:541
// Implementation
lv_aIRace = libCOMI_gf_GetUnitRace(UnitGroupClosestToPoint(UnitGroup(null, 3, RegionEntireMap(), UnitFilter(0, 0, (1 << c_targetFilterMissile), (1 << (c_targetFilterDead - 32))), 0), PlayerStartLocation(3)));
DialogControlRemoveAllItems(libCOUI_gv_cU_AIChoiceListBox, PlayerGroupAll());
auto0D3C40F8_ai = 1;
auto0D3C40F8_ae = UserDataInstanceCount("CoopAICommanders")+1;
mods/starcoop/starcoop.sc2mod — base.sc2data/LibCOUI.galaxy:884
}
DialogControlRemoveAllItems(libCOUI_gv_cU_CommanderMutatorChallengePulldown, PlayerGroupAll());
DialogControlAddItem(libCOUI_gv_cU_CommanderMutatorChallengePulldown, PlayerGroupAll(), StringExternal("Param/Value/lib_COUI_ADB604BB"));
auto5D8E1B6C_ae = UserDataInstanceCount("MutatorChallenges");