# Select List Item
Grammar — Select item index of list for players
Flags —Native
|Action
Selects the specified list index for the specified dialog.
# Arguments
int
[ control ] — Listplayergroup
— Playersint
— Index
Returns — void
native void DialogControlSelectItem(
int control,
playergroup players,
int index,
);
# Related
Category: Dialog / Dialog Item Values
- [F] —
void
— Set Dialog Item Current Value — ( libNtve_gf_SetDialogItemCurrentValue ) - [F] —
void
— Set Dialog Item Minimum Value — ( libNtve_gf_SetDialogItemMinimumValue ) - [F] —
void
— Set Dialog Item Maximum Value — ( libNtve_gf_SetDialogItemMaximumValue ) - [F] —
void
— Set Dialog Item Checked — ( libNtve_gf_SetDialogItemChecked ) - [F] —
void
— Set Dialog Item Edit Value — ( libNtve_gf_SetDialogItemEditorValue ) - [F] —
fixed
— Dialog Item Current Value — ( libNtve_gf_DialogItemValue ) - [F] —
fixed
— Dialog Item Maximum Value — ( libNtve_gf_DialogItemMaximumValue ) - [F] —
fixed
— Dialog Item Minimum Value — ( libNtve_gf_DialogItemMinimumValue ) - [F] —
bool
— Dialog Item Is Checked — ( libNtve_gf_DialogItemIsChecked ) - [F] —
string
— Dialog Item Edit Value — ( libNtve_gf_DialogItemEditValue ) - [F] —
void
— Add List Item — ( DialogControlAddItem ) - [F] —
void
— Select List Item — ( DialogControlSelectItem ) - [F] —
void
— Clear List Selection — ( DialogControlClearSelectedItem ) - [F] —
int
— Selected List Item — ( DialogControlGetSelectedItem ) - [F] —
int
— Count Of List Items — ( DialogControlGetItemCount ) - [F] —
void
— Remove List Item — ( DialogControlRemoveItem ) - [F] —
void
— Remove All List Items — ( DialogControlRemoveAllItems ) - [F] —
void
— Add Graph Data Point — ( DialogControlAddDataPoint ) - [F] —
void
— Remove All Graph Data Points — ( DialogControlRemoveAllDataPoints ) - [F] —
void
— Set Graph Data Color — ( DialogControlSetDataColor ) - [F] —
void
— Set Graph Data Name — ( DialogControlSetDataName ) - [F] —
void
— Set Graph Minimum X Visible — ( DialogControlSetMinXVisible ) - [F] —
fixed
— Get Graph Minimum X Value — ( DialogControlGetMinXValue ) - [F] —
void
— Set Graph Maximum X Visible — ( DialogControlSetMaxXVisible ) - [F] —
fixed
— Get Graph Maximum X Value — ( DialogControlGetMaxXValue ) - [F] —
void
— Set Graph Minimum Y Visible — ( DialogControlSetMinYVisible ) - [F] —
fixed
— Get Graph Minimum Y Value — ( DialogControlGetMinYValue ) - [F] —
void
— Set Graph Maximum Y Visible — ( DialogControlSetMaxYVisible ) - [F] —
fixed
— Get Graph Maximum Y Value — ( DialogControlGetMaxYValue )
# Examples
# campaigns/liberty.sc2campaign
// L10532
DialogControlSelectItem(gv_zPlanetPanel_DropdownDifficulty, PlayerGroupAll(), lv_index)
// L10532
DialogControlSelectItem(gv_zPlanetPanel_DropdownDifficulty, PlayerGroupAll(), lv_index)
# campaigns/swarmstory.sc2campaign
// L14433
DialogControlSelectItem(libSwaC_gv_zS_VSRestartDifficultyPulldown, PlayerGroupAll(), libSwaC_gf_ZS_DifficultyIndex(PlayerDifficulty(1)))
# campaigns/swarmstoryutil.sc2mod
// L2298
DialogControlSelectItem(lib281DEC45_gv_zSS_DebugStoryTypeList, PlayerGroupAll(), 1)
// L2303
DialogControlSelectItem(lib281DEC45_gv_zSS_DebugStoryStateList, PlayerGroupAll(), 1)
// L2320
DialogControlSelectItem(lib281DEC45_gv_zSS_DebugStorySceneList, PlayerGroupAll(), lv_typeIndex)
// L6718
DialogControlSelectItem(lib281DEC45_gv_zSS_MissionDifficultyDropdown, PlayerGroupAll(), 1)
// L6721
DialogControlSelectItem(lib281DEC45_gv_zSS_MissionDifficultyDropdown, PlayerGroupAll(), 2)
// L6724
DialogControlSelectItem(lib281DEC45_gv_zSS_MissionDifficultyDropdown, PlayerGroupAll(), 3)
// L6727
DialogControlSelectItem(lib281DEC45_gv_zSS_MissionDifficultyDropdown, PlayerGroupAll(), 4)
# campaigns/voidstory.sc2campaign
// L129
DialogControlSelectItem(libVCST_gv_pS_DebugStorySceneList, PlayerGroupAll(), libVCST_gv_pS_DebugStorySelectedIndex)
# campaigns/voidstory.sc2campaign
// L5743
DialogControlSelectItem(libVCUI_gv_pU_VSRestartDifficultyPulldown, PlayerGroupAll(), libVoiC_gf_PC_DifficultyIndex(PlayerDifficulty(1)))
// L7400
DialogControlSelectItem(libVCUI_gv_pU_MissionDifficultyDropdown, PlayerGroupAll(), 1)
// L7403
DialogControlSelectItem(libVCUI_gv_pU_MissionDifficultyDropdown, PlayerGroupAll(), 2)
// L7406
DialogControlSelectItem(libVCUI_gv_pU_MissionDifficultyDropdown, PlayerGroupAll(), 3)
// L7409
DialogControlSelectItem(libVCUI_gv_pU_MissionDifficultyDropdown, PlayerGroupAll(), 4)
// L7572
DialogControlSelectItem(libVCUI_gv_pU_MissionDifficultyDropdown, PlayerGroupAll(), 1)
// L7575
DialogControlSelectItem(libVCUI_gv_pU_MissionDifficultyDropdown, PlayerGroupAll(), 2)
// L7578
DialogControlSelectItem(libVCUI_gv_pU_MissionDifficultyDropdown, PlayerGroupAll(), 3)
// L7581
DialogControlSelectItem(libVCUI_gv_pU_MissionDifficultyDropdown, PlayerGroupAll(), 4)
// L7685
DialogControlSelectItem(libVCUI_gv_pU_MissionDifficultyDropdown, PlayerGroupAll(), 1)
# mods/heroes.stormmod
// L783
DialogControlSelectItem(gv_tryMeModePanel.lv_changeAllyPulldown, PlayerGroupAll(), lv_currentIndex)
// L825
DialogControlSelectItem(gv_tryMeModePanel.lv_changeEnemyPulldown, PlayerGroupAll(), lv_currentIndex)
// L783
DialogControlSelectItem(gv_tryMeModePanel.lv_changeAllyPulldown, PlayerGroupAll(), lv_currentIndex)
// L825
DialogControlSelectItem(gv_tryMeModePanel.lv_changeEnemyPulldown, PlayerGroupAll(), lv_currentIndex)
# mods/heroesdata.stormmod
// L834
DialogControlSelectItem(DialogControlLastCreated(), PlayerGroupAll(), 1)
// L1035
DialogControlSelectItem(DialogControlLastCreated(), PlayerGroupAll(), 1)
// L1208
DialogControlSelectItem(DialogControlLastCreated(), PlayerGroupAll(), 1)
# mods/heroesdata.stormmod
// L1936
DialogControlSelectItem(libUIUI_gv_uIDebugPanel.lv_forceMinionWaveCompDropdown, PlayerGroupAll(), 1)
// L1984
DialogControlSelectItem(libUIUI_gv_uIDebugPanel.lv_heroDropdown, PlayerGroupSingle(1), lv_heroIndex)
// L1990
DialogControlSelectItem(libUIUI_gv_uIDebugPanel.lv_skinDropdown, PlayerGroupSingle(1), lv_skinIndex)
// L1996
DialogControlSelectItem(libUIUI_gv_uIDebugPanel.lv_mountTypeDropdown, PlayerGroupSingle(1), lv_mountIndex)
// L2002
DialogControlSelectItem(libUIUI_gv_uIDebugPanel.lv_mountVariationDropdown, PlayerGroupSingle(1), lv_variationIndex)
// L2060
DialogControlSelectItem(libUIUI_gv_uIDebugPanel.lv_heroDropdown, libCore_gv_playerGroupFromPlayer[lp_player], 1)
// L2061
DialogControlSelectItem(libUIUI_gv_uIDebugPanel.lv_voiceLineRadioHeroDropdown, libCore_gv_playerGroupFromPlayer[lp_player], 1)
// L2091
DialogControlSelectItem(libUIUI_gv_uIDebugPanel.lv_skinDropdown, libCore_gv_playerGroupFromPlayer[lp_player], 1)
// L2122
DialogControlSelectItem(libUIUI_gv_uIDebugPanel.lv_mountTypeDropdown, libCore_gv_playerGroupFromPlayer[lp_player], 1)
// L2166
DialogControlSelectItem(libUIUI_gv_uIDebugPanel.lv_mountBaseDropdown, libCore_gv_playerGroupFromPlayer[lp_player], 1)
# mods/missionpacks/novacampaign.sc2mod
// L129
DialogControlSelectItem(libNCST_gv_nS_DebugStorySceneList, PlayerGroupAll(), libNCST_gv_nS_DebugStorySelectedIndex)
# mods/missionpacks/novacampaign.sc2mod
// L972
DialogControlSelectItem(libNCUI_gv_nU_MissionDifficultyDropdown, PlayerGroupAll(), 1)
// L975
DialogControlSelectItem(libNCUI_gv_nU_MissionDifficultyDropdown, PlayerGroupAll(), 2)
// L978
DialogControlSelectItem(libNCUI_gv_nU_MissionDifficultyDropdown, PlayerGroupAll(), 3)
// L981
DialogControlSelectItem(libNCUI_gv_nU_MissionDifficultyDropdown, PlayerGroupAll(), 4)
// L3998
DialogControlSelectItem(libNCUI_gv_NU_VSRestartDifficultyPulldown, PlayerGroupAll(), libComC_gf_CC_DifficultyIndex(PlayerDifficulty(1)))
# mods/starcoop/starcoop.sc2mod
// L897
DialogControlSelectItem(libCOUI_gv_cU_CommanderMutatorChallengePulldown, PlayerGroupAll(), 1)
// L1878
DialogControlSelectItem(libCOUI_gv_cU_CustomMutatorSpeedDropDown, PlayerGroupAll(), libCOMI_gf_MinimumDifficultyValueCoopInteger(2, 2, 2, 1, 1, 1))
// L7761
DialogControlSelectItem(libCOUI_gv_cU_CustomMutatorSpeedDropDown, PlayerGroupSingle(2), DialogControlGetSelectedItem(libCOUI_gv_cU_CustomMutatorSpeedDropDown, 1))
# mods/voidprologue.sc2mod
// L7172
DialogControlSelectItem(libA3DDD02B_gv_pU_VSRestartDifficultyPulldown, PlayerGroupAll(), libA3DDD02B_gf_PP_DifficultyIndex(PlayerDifficulty(1)))
// L9104
DialogControlSelectItem(libA3DDD02B_gv_pP_MLDifficultyPulldown, PlayerGroupAll(), 1)
// L9107
DialogControlSelectItem(libA3DDD02B_gv_pP_MLDifficultyPulldown, PlayerGroupAll(), 2)
// L9110
DialogControlSelectItem(libA3DDD02B_gv_pP_MLDifficultyPulldown, PlayerGroupAll(), 3)
// L9113
DialogControlSelectItem(libA3DDD02B_gv_pP_MLDifficultyPulldown, PlayerGroupAll(), 4)