# Clear List Selection

Grammar — Clear the selected item of list for players
FlagsNative | Action

Clears the selection for the specified dialog.

# Arguments

  • int<control> — List
  • playergroup — Players

Returns — void

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

Category: Dialog / Dialog Item Values

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:2276

    // Implementation
    DialogControlRemoveAllItems(lv_dropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
    DialogControlClearSelectedItem(lv_dropdown, libCore_gv_playerGroupFromPlayer[lp_player]);
    if ((lv_count == 0)) {
        DialogControlSetEnabled(lv_dropdown, libCore_gv_playerGroupFromPlayer[lp_player], false);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:2351

    // Implementation
    DialogControlRemoveAllItems(lv_list, libCore_gv_playerGroupFromPlayer[lp_player]);
    DialogControlClearSelectedItem(lv_list, libCore_gv_playerGroupFromPlayer[lp_player]);
    lv_announcerPackID = (libCore_gf_GetAnnouncerPackFromIndex(lp_announcerPackIndex));
    lv_vOID = CatalogFieldValueGet(c_gameCatalogAnnouncerPack, lv_announcerPackID, "VoiceOver", c_playerAny);

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:2394

    // Implementation
    DialogControlRemoveAllItems(lv_list, libCore_gv_playerGroupFromPlayer[lp_player]);
    DialogControlClearSelectedItem(lv_list, libCore_gv_playerGroupFromPlayer[lp_player]);
    autoB24C70D5_ae = lv_count;
    lv_itVL = 1;

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:10586

    libUIUI_gf_UIDebugPanelPopulateAnnouncerPackVOListForPlayer(lv_triggeringPlayer, lv_announcerIndex);
    DialogControlRemoveAllItems(lv_listRight, libCore_gv_playerGroupFromPlayer[lv_triggeringPlayer]);
    DialogControlClearSelectedItem(lv_listRight, libCore_gv_playerGroupFromPlayer[lv_triggeringPlayer]);
    return true;
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:10638

    libUIUI_gf_UIDebugPanelPopulateVoiceLineRadioVOListForPlayer(lv_triggeringPlayer, lv_heroIndex);
    DialogControlRemoveAllItems(lv_listRight, libCore_gv_playerGroupFromPlayer[lv_triggeringPlayer]);
    DialogControlClearSelectedItem(lv_listRight, libCore_gv_playerGroupFromPlayer[lv_triggeringPlayer]);
    return true;
}

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:10911


    DialogControlRemoveAllItems(lv_listRight, libCore_gv_playerGroupFromPlayer[lv_triggeringPlayer]);
    DialogControlClearSelectedItem(lv_listRight, libCore_gv_playerGroupFromPlayer[lv_triggeringPlayer]);
    return true;
}