# Set Dialog Item Toggled
Grammar — Set dialogItem Toggled flag to toggled for players
Flags —Action
Set a Trigger Dialog Item to be in the Toggled state. This is currently supported on Buttons.
# Arguments
int
[ control ] — Dialog Itembool
— Toggledplayergroup
— Players
Returns — void
void libNtve_gf_SetDialogItemToggled(
int lp_dialogItem,
bool lp_toggled,
playergroup lp_players,
);
# Related
Category: Dialog / Dialog Item Tools
- [F] —
void
— Dialog Item Send Animation Event 2 — ( DialogControlSetAnimationState ) - [F] —
void
— Position Subtitle to Dialog Item — ( DialogSetSubtitlePositionOverrideControl ) - [F] —
void
— Clear Subtitle Position Dialog Item — ( DialogClearSubtitlePositionOverrideControl ) - [F] —
void
— Destroy All Dialog Items — ( DialogControlDestroyAll ) - [F] —
int
[ dialog ] — Dialog Containing Dialog Item — ( DialogControlGetDialog ) - [F] —
int
[ preset::ControlType ] — Dialog Item Type — ( DialogControlGetType ) - [F] —
void
— Set Dialog Item Color — ( libNtve_gf_SetDialogItemColor ) - [F] —
void
— Set Dialog Item Style — ( libNtve_gf_SetDialogItemStyle ) - [F] —
void
— Set Dialog Item Text Writeout — ( libNtve_gf_SetDialogItemTextWriteout ) - [F] —
void
— Set Dialog Item Text Writeout Duration — ( libNtve_gf_SetDialogItemTextWriteoutDuration ) - [F] —
void
— Set Dialog Item Tooltip — ( libNtve_gf_SetDialogItemTooltip ) - [F] —
color
— Dialog Item Color — ( libNtve_gf_DialogItemColor ) - [F] —
string
[ fontstyle ] — Dialog Item Style — ( libNtve_gf_DialogItemStyle ) - [F] —
text
— Dialog Item Tooltip — ( libNtve_gf_DialogItemTooltip ) - [F] —
void
— Destroy Dialog Item — ( DialogControlDestroy ) - [F] —
void
— Set Dialog Item Image — ( libNtve_gf_SetDialogItemImage ) - [F] —
void
— Set Dialog Item Hover Image — ( libNtve_gf_SetDialogItemImage2 ) - [F] —
void
— Set Dialog Item Image Type — ( libNtve_gf_SetDialogItemImageType ) - [F] —
void
— Set Dialog Item Blend Mode — ( libNtve_gf_SetDialogItemBlendMode ) - [F] —
void
— Set Dialog Item Tiled — ( libNtve_gf_SetDialogItemImageType2 ) - [F] —
void
— Set Dialog Background — ( DialogSetImage ) - [F] —
string
— Dialog Item Image — ( libNtve_gf_DialogItemImage ) - [F] —
int
[ preset::ImageType ] — Dialog Item Image Type — ( libNtve_gf_DialogItemImageType ) - [F] —
void
— Fade Dialog Item Transparency — ( DialogControlFadeTransparency ) - [F] —
void
— Set Dialog Item Flash — ( libNtve_gf_SetDialogItemFlash ) - [F] —
void
— Set Dialog Item Cutscene — ( libNtve_gf_SetDialogItemCutscene ) - [F] —
void
— Dialog Item Invoke As Text — ( DialogControlInvokeAsText ) - [F] —
void
— Dialog Item Invoke As String — ( DialogControlInvokeAsString ) - [F] —
void
— Dialog Item Send Animation Event — ( DialogControlSendAnimationEvent ) - [F] —
void
— Dialog Item Set Animation Speed — ( DialogControlSetAnimationSpeed ) - [F] —
void
— Dialog Item Set Animation Time — ( DialogControlSetAnimationTime ) - [F] —
void
— Dialog Item Advance Animation — ( DialogControlAdvanceAnimation ) - [F] —
void
— Dialog Item Force Transition — ( DialogControlForceTransition ) - [F] —
void
— Dialog Item Request Focus — ( DialogControlRequestFocus ) - [F] —
void
— Set Dialog Item Achievement — ( libNtve_gf_SetDialogItemAchievement ) - [F] —
void
— Set Dialog Item Render Priority — ( libNtve_gf_SetDialogItemRenderPriority ) - [F] —
void
— Set Dialog Item Click On Down — ( libNtve_gf_SetDialogItemClickOnDown ) - [F] —
void
— Set Dialog Item Toggled — ( libNtve_gf_SetDialogItemToggled ) - [F] —
void
— Set Dialog Item Movie — ( libNtve_gf_SetDialogItemMovie ) - [F] —
void
— Set Dialog Item Desaturated — ( libNtve_gf_SetDialogItemDesaturated ) - [F] —
void
— Set Dialog Item Desaturation Color — ( libNtve_gf_SetDialogItemDesaturationColor ) - [F] —
void
— Set Dialog Item Custom Tooltip — ( libNtve_gf_SetDialogItemCustomTooltip ) - [F] —
void
— Set Dialog Item Unit — ( libNtve_gf_SetDialogItemUnit ) - [F] —
void
— Set Dialog Item Model — ( libNtve_gf_SetDialogItemModel ) - [F] —
void
— Set Dialog Item Animation — ( libNtve_gf_SetDialogItemAnimation ) - [F] —
void
— Set Dialog Item Camera — ( libNtve_gf_SetDialogItemCamera ) - [F] —
void
— Set Dialog Item Border Visible — ( libNtve_gf_SetDialogItemBorderVisible ) - [F] —
void
— Set Dialog Item Border Image — ( libNtve_gf_SetDialogItemBorderImage ) - [F] —
void
— Set Dialog Item Background Visible — ( libNtve_gf_SetDialogItemBackgroundVisible ) - [F] —
void
— Set Dialog Item Use Transition — ( libNtve_gf_SetDialogItemUseTransition ) - [F] —
void
— Set Dialog Item Muted — ( libNtve_gf_SetDialogItemMuted ) - [F] —
void
— Set Dialog Item Paused — ( libNtve_gf_SetDialogItemPaused ) - [F] —
void
— Set Dialog Item Accept Mouse — ( libNtve_gf_SetDialogItemAcceptMouse ) - [F] —
void
— Set Dialog Item Tint Color — ( libNtve_gf_SetDialogItemTintColor ) - [F] —
void
— Set Dialog Item Team Color — ( libNtve_gf_SetDialogItemTeamColor ) - [F] —
void
— Set Dialog Item Light — ( libNtve_gf_SetDialogItemLight ) - [F] —
void
— Set Dialog Item Transition Model — ( libNtve_gf_SetDialogItemTransitionModel ) - [F] —
void
— Set Dialog Item Force Visible — ( libNtve_gf_SetDialogItemForceVisible ) - [F] —
void
— Set Dialog Item Render Type — ( libNtve_gf_SetDialogItemRenderType ) - [F] —
void
— Set Dialog Item Unit Link — ( libNtve_gf_SetDialogItemUnitLink ) - [F] —
void
— Set Dialog Item Team Color Index — ( libNtve_gf_SetDialogItemTeamColorIndex ) - [F] —
void
— Set Dialog Item Animation Duration — ( libNtve_gf_SetDialogItemAnimationDuration ) - [F] —
void
— Set Dialog Item Animation Time — ( libNtve_gf_SetDialogItemAnimationTime ) - [F] —
void
— Set Dialog Item Actor — ( libNtve_gf_SetDialogItemActor ) - [F] —
void
— Set Dialog Item Behavior — ( libNtve_gf_SetDialogItemBehavior ) - [F] —
void
— Set Dialog Item Hotkey — ( libNtve_gf_SetDialogItemHotkey ) - [F] —
void
— Set Dialog Item Allowed Mouse Buttons — ( libNtve_gf_SetDialogItemAllowedMouseButtons ) - [F] —
void
— Set Dialog Item Alpha Mask — ( libNtve_gf_SetDialogItemAlphaMask ) - [F] —
void
— Set Dialog Item Animation Index — ( libNtve_gf_SetDialogItemAnimationIndex ) - [F] —
void
— Set Dialog Item Handle — ( libNtve_gf_SetDialogItemHandle ) - [F] —
void
— Set Dialog Item Border Color — ( libNtve_gf_SetDialogItemBorderColor ) - [F] —
void
— Set Dialog Item Fill Color — ( libNtve_gf_SetDialogItemFillColor ) - [F] —
void
— Set Dialog Item Submenu — ( libNtve_gf_SetDialogItemSubmenu ) - [F] —
void
— Set Dialog Item Unit Group — ( libNtve_gf_SetDialogItemUnitGroup ) - [F] —
void
— Set Dialog Item PlayerId — ( libNtve_gf_SetDialogItemPlayerId ) - [F] —
void
— Set Dialog Item Score Value Link — ( libNtve_gf_SetDialogItemScoreValueLink ) - [F] —
void
— Set Dialog Item State Index — ( libNtve_gf_SetDialogItemStateIndex )
# Examples
# campaigns/swarmstory.sc2campaign
// L8728
libNtve_gf_SetDialogItemToggled(libSwaC_gv_zS_ArmyCustomUpgradeButtons[lv_index], true, PlayerGroupAll())
// L8731
libNtve_gf_SetDialogItemToggled(libSwaC_gv_zS_ArmyCustomUpgradeButtons[lv_index], false, PlayerGroupAll())
// L11647
libNtve_gf_SetDialogItemToggled(libSwaC_gv_zS_KerriganUITierButtons[lv_tier][lv_tierIndex], true, PlayerGroupAll())
// L11651
libNtve_gf_SetDialogItemToggled(libSwaC_gv_zS_KerriganUITierButtons[lv_tier][lv_tierIndex], false, PlayerGroupAll())
# campaigns/swarmstoryutil.sc2mod
// L1425
libNtve_gf_SetDialogItemToggled(lib281DEC45_gv_zSS_UITravelPlanetButton[lp_planetIndex], false, PlayerGroupAll())
// L1432
libNtve_gf_SetDialogItemToggled(lib281DEC45_gv_zSS_UITravelPlanetButton[lp_planetIndex], true, PlayerGroupAll())
// L6360
libNtve_gf_SetDialogItemToggled(lib281DEC45_gv_zSS_UITravelPlanetButton[lv_index], false, PlayerGroupAll())
# campaigns/void.sc2campaign
// L906
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[1], true, PlayerGroupAll())
// L907
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[2], false, PlayerGroupAll())
// L908
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[3], false, PlayerGroupAll())
// L909
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll())
// L944
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[1], false, PlayerGroupAll())
// L945
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[2], true, PlayerGroupAll())
// L946
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[3], false, PlayerGroupAll())
// L947
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll())
// L987
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[1], false, PlayerGroupAll())
// L988
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[2], false, PlayerGroupAll())
// L906
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[1], true, PlayerGroupAll())
// L907
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[2], false, PlayerGroupAll())
// L908
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[3], false, PlayerGroupAll())
// L909
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll())
// L944
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[1], false, PlayerGroupAll())
// L945
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[2], true, PlayerGroupAll())
// L946
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[3], false, PlayerGroupAll())
// L947
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[4], false, PlayerGroupAll())
// L987
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[1], false, PlayerGroupAll())
// L988
libNtve_gf_SetDialogItemToggled(gv_victoryUI_StageSelectButtons[2], false, PlayerGroupAll())
# campaigns/voidstory.sc2campaign
// L790
libNtve_gf_SetDialogItemToggled(libVCUI_gv_pU_ArmyCategoryButtons[lv_categoryIndex], true, PlayerGroupAll())
// L797
libNtve_gf_SetDialogItemToggled(libVCUI_gv_pU_ArmyCategoryButtons[lv_categoryIndex], false, PlayerGroupAll())
// L880
libNtve_gf_SetDialogItemToggled(libVCUI_gv_pU_ArmyFactionButtons[lv_factionIndex], true, PlayerGroupAll())
// L891
libNtve_gf_SetDialogItemToggled(libVCUI_gv_pU_ArmyFactionButtons[lv_factionIndex], false, PlayerGroupAll())
// L1242
libNtve_gf_SetDialogItemToggled(libVCUI_gv_pU_BottomBarButton[(lp_button)], lp_toggled, PlayerGroupAll())
// L2660
libNtve_gf_SetDialogItemToggled(libVCUI_gv_pU_SoAInventoryButtons[lv_groupIndex][lv_itemIndex], true, PlayerGroupAll())
// L2666
libNtve_gf_SetDialogItemToggled(libVCUI_gv_pU_SoAInventoryButtons[lv_groupIndex][lv_itemIndex], false, PlayerGroupAll())
// L9064
libNtve_gf_SetDialogItemToggled(libVCUI_gv_pU_StarmapPlanetTitleName[1], true, PlayerGroupAll())
// L9075
libNtve_gf_SetDialogItemToggled(libVCUI_gv_pU_StarmapPlanetTitleName[2], true, PlayerGroupAll())
// L9105
libNtve_gf_SetDialogItemToggled(libVCUI_gv_pU_StarmapPlanetTitleName[1], false, PlayerGroupAll())
# mods/heroesbrawlmods/brawlmapmods/coop/pvebrawluimod.stormmod
// L1402
libNtve_gf_SetDialogItemToggled(libPBUI_gv_curateHeroSelectionUI.lv_talentsInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1403
libNtve_gf_SetDialogItemToggled(libPBUI_gv_curateHeroSelectionUI.lv_brawlInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1407
libNtve_gf_SetDialogItemToggled(libPBUI_gv_curateHeroSelectionUI.lv_abilitiesInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1408
libNtve_gf_SetDialogItemToggled(libPBUI_gv_curateHeroSelectionUI.lv_brawlInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1412
libNtve_gf_SetDialogItemToggled(libPBUI_gv_curateHeroSelectionUI.lv_abilitiesInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1413
libNtve_gf_SetDialogItemToggled(libPBUI_gv_curateHeroSelectionUI.lv_talentsInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1482
libNtve_gf_SetDialogItemToggled(libPBUI_gv_curateHeroSelectionUI.lv_abilitiesInfoButton, false, PlayerGroupAll())
// L1483
libNtve_gf_SetDialogItemToggled(libPBUI_gv_curateHeroSelectionUI.lv_talentsInfoButton, false, PlayerGroupAll())
// L1484
libNtve_gf_SetDialogItemToggled(libPBUI_gv_curateHeroSelectionUI.lv_brawlInfoButton, false, PlayerGroupAll())
// L1576
libNtve_gf_SetDialogItemToggled(libPBUI_gv_curateHeroSelectionUI.lv_abilitiesInfoButton, false, PlayerGroupAll())
# mods/heroesbrawlmods/brawlmapmods/coop/pvemod.stormmod
// L1671
libNtve_gf_SetDialogItemToggled(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_talentsInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1672
libNtve_gf_SetDialogItemToggled(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_brawlInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1676
libNtve_gf_SetDialogItemToggled(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_abilitiesInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1677
libNtve_gf_SetDialogItemToggled(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_brawlInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1681
libNtve_gf_SetDialogItemToggled(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_abilitiesInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1682
libNtve_gf_SetDialogItemToggled(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_talentsInfoButton, false, libCore_gv_playerGroupFromPlayer[EventPlayer()])
// L1751
libNtve_gf_SetDialogItemToggled(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_abilitiesInfoButton, false, PlayerGroupAll())
// L1752
libNtve_gf_SetDialogItemToggled(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_talentsInfoButton, false, PlayerGroupAll())
// L1753
libNtve_gf_SetDialogItemToggled(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_brawlInfoButton, false, PlayerGroupAll())
// L1854
libNtve_gf_SetDialogItemToggled(libPVEU_gv_pvEUICurateHeroSelectionUI.lv_abilitiesInfoButton, false, PlayerGroupAll())
# mods/heroesdata.stormmod
// L9726
libNtve_gf_SetDialogItemToggled(libUIUI_gv_uIDebugPanel.lv_announcerRadio, true, PlayerGroupAll())
// L10576
libNtve_gf_SetDialogItemToggled(libUIUI_gv_uIDebugPanel.lv_announcerRadio, true, PlayerGroupSingle(lv_triggeringPlayer))
// L10577
libNtve_gf_SetDialogItemToggled(libUIUI_gv_uIDebugPanel.lv_voiceLineRadio, false, PlayerGroupSingle(lv_triggeringPlayer))
// L10628
libNtve_gf_SetDialogItemToggled(libUIUI_gv_uIDebugPanel.lv_announcerRadio, false, PlayerGroupSingle(lv_triggeringPlayer))
// L10629
libNtve_gf_SetDialogItemToggled(libUIUI_gv_uIDebugPanel.lv_voiceLineRadio, true, PlayerGroupSingle(lv_triggeringPlayer))
# mods/missionpacks/novacampaign.sc2mod
// L386
libNtve_gf_SetDialogItemToggled(libNCUI_gv_nU_BottomBarButton[(lp_button)], lp_toggled, PlayerGroupAll())
// L1831
libNtve_gf_SetDialogItemToggled(libNCUI_gv_nU_UpgradesSubselectionItemButtons[lv_upgradeItemsIndex], true, PlayerGroupAll())
// L1834
libNtve_gf_SetDialogItemToggled(libNCUI_gv_nU_UpgradesSubselectionItemButtons[lv_upgradeItemsIndex], false, PlayerGroupAll())
// L1848
libNtve_gf_SetDialogItemToggled(libNCUI_gv_nU_UpgradesSelectionButtons[lv_upgradeSlotIndex], true, PlayerGroupAll())
// L1851
libNtve_gf_SetDialogItemToggled(libNCUI_gv_nU_UpgradesSelectionButtons[lv_upgradeSlotIndex], false, PlayerGroupAll())
// L1917
libNtve_gf_SetDialogItemToggled(libNCUI_gv_nU_UpgradesSubselectionItemButtons[lv_itemID], true, PlayerGroupAll())
// L1953
libNtve_gf_SetDialogItemToggled(libNCUI_gv_nU_UpgradesSubselectionItemButtons[lv_itemID], false, PlayerGroupAll())
// L2596
libNtve_gf_SetDialogItemToggled(libNCUI_gv_nU_EquipmentSlotContainers[lv_resetEquipmentSlotIndex], false, PlayerGroupAll())
// L2676
libNtve_gf_SetDialogItemToggled(libNCUI_gv_nU_EquipmentSlotContainerItemButtons[lp_equipmentID][lv_equipmentItemIndex], true, PlayerGroupAll())
// L2690
libNtve_gf_SetDialogItemToggled(libNCUI_gv_nU_EquipmentSlotContainerItemButtons[lp_equipmentID][lv_equipmentItemIndex], false, PlayerGroupAll())
# mods/starcoop/starcoop.sc2mod
// L970
libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderButton[lv_commIndex], true, lv_playerSelf)
// L979
libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderButton[lv_commIndex], true, libCOOC_gv_cC_HumanPlayerGroup)
// L990
libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderButton[lv_commIndex], false, libCOOC_gv_cC_HumanPlayerGroup)
// L1020
libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderItemButtons[lv_tierIndex], true, lv_playerSelf)
// L1024
libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CommanderItemButtons[lv_tierIndex], false, lv_playerSelf)
// L1961
libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CustomMutatorItemButtons[lv_frameIndex], false, lv_updatePlayers)
// L1965
libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CustomMutatorItemButtons[lv_frameIndex], true, lv_updatePlayers)
// L1969
libNtve_gf_SetDialogItemToggled(libCOUI_gv_cU_CustomMutatorItemButtons[lv_frameIndex], false, lv_updatePlayers)