# Select List Item

Grammar — Select item index of list for players
FlagsNative | Action

Selects the specified list index for the specified dialog.

# Arguments

  • int [ control ] — List
  • playergroup — Players
  • int — Index

Returns — void

native void DialogControlSelectItem(
	int control,
	playergroup players,
	int index,
);

Category: Dialog / Dialog Item Values

# Examples

# campaigns/liberty.sc2campaign

MapScript.galaxy

// L10532
DialogControlSelectItem(gv_zPlanetPanel_DropdownDifficulty, PlayerGroupAll(), lv_index)
// L10532
DialogControlSelectItem(gv_zPlanetPanel_DropdownDifficulty, PlayerGroupAll(), lv_index)

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L14433
DialogControlSelectItem(libSwaC_gv_zS_VSRestartDifficultyPulldown, PlayerGroupAll(), libSwaC_gf_ZS_DifficultyIndex(PlayerDifficulty(1)))

# campaigns/swarmstoryutil.sc2mod

Lib281DEC45.galaxy

// 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

VoidCampaignStoryLib.galaxy

// L129
DialogControlSelectItem(libVCST_gv_pS_DebugStorySceneList, PlayerGroupAll(), libVCST_gv_pS_DebugStorySelectedIndex)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// 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

MapScript.galaxy

// 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

SupportLib.galaxy

// L834
DialogControlSelectItem(DialogControlLastCreated(), PlayerGroupAll(), 1)
// L1035
DialogControlSelectItem(DialogControlLastCreated(), PlayerGroupAll(), 1)
// L1208
DialogControlSelectItem(DialogControlLastCreated(), PlayerGroupAll(), 1)

# mods/heroesdata.stormmod

UILib.galaxy

// 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

LibNCST.galaxy

// L129
DialogControlSelectItem(libNCST_gv_nS_DebugStorySceneList, PlayerGroupAll(), libNCST_gv_nS_DebugStorySelectedIndex)

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// 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

LibCOUI.galaxy

// 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

LibA3DDD02B.galaxy

// 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)