# Clear List Selection
Grammar — Clear the selected item of list for players
Flags —Native
|Action
Clears the selection for the specified dialog.
# Arguments
int
<control> — Listplayergroup
— Players
Returns — void
native void DialogControlClearSelectedItem(
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
mods/heroesdata.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.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.stormmod — base.stormdata/TriggerLibs/UILib.galaxy:10911
DialogControlRemoveAllItems(lv_listRight, libCore_gv_playerGroupFromPlayer[lv_triggeringPlayer]);
DialogControlClearSelectedItem(lv_listRight, libCore_gv_playerGroupFromPlayer[lv_triggeringPlayer]);
return true;
}