# Remove All List Items

Grammar — Remove all items from list for players
FlagsNative | Action

Removes all of the list items from the specified dialog item.

# Arguments

  • int<control> — List
  • playergroup — Players

Returns — void

native void DialogControlRemoveAllItems(
	int control,
	playergroup players,
);

Category: Dialog / Dialog Item Values

# Examples

campaigns/swarmstoryutil.sc2modbase.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.sc2campaignbase.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.sc2campaignbase.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.stormmodbase.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.stormmodbase.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.stormmapmap/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.stormmapmap/MapScript.galaxy:806

    // Implementation
    TriggerEnable(gt_ChangeEnemyHeroDropdownSelectionChanged, false);
    DialogControlRemoveAllItems(gv_tryMeModePanel.lv_changeEnemyPulldown, PlayerGroupAll());
    lv_itListItemIndex = 0;
    lv_itListItemIndex += 1;

mods/heroesdata.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.stormmodbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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.sc2modbase.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");