# Dialog Item Send Animation Event 2

Grammar — Set animationStateName|animation state with eventName|event name on dialog item dialogItem for players
FlagsNative | Action | Restricted

Sets the current event for the animation state using event name. StateGroup can listen to these animation states to switch state using When condition.

# Arguments

  • int [ control ] — Dialog Item
  • playergroup — Players
  • string — Event
  • string — Event 2

Returns — void

native void DialogControlSetAnimationState(
	int control,
	playergroup players,
	string animationStateName,
	string eventName,
);

Category: Dialog / Dialog Item Tools

# Examples

# mods/heroesbrawlmods/arenamodemods/arenamode.stormmod

LibAREN.galaxy

// L1335
DialogControlSetAnimationState(libUIUI_gv_uIGameUIHandles.lv_gameUIContainer, libGame_gv_teams[lv_itTeam].lv_teamPlayerGroupNoNPCPlayers, "TeamColors", ("Team" + IntToString(lv_itTeam) + "IsBlue"))
// L1384
DialogControlSetAnimationState(lv_dialogItem[lv_itTeam][(((lv_itImage+1)%libAREN_gv_victoriesCount)+1)], PlayerGroupAll(), "RoundVictory", "On")
// L1387
DialogControlSetAnimationState(lv_dialogItem[lv_itTeam][(((lv_itImage+1)%libAREN_gv_victoriesCount)+1)], PlayerGroupAll(), "RoundVictory", "Off")

# mods/heroesbrawlmods/arenamodemods/attackdefend.stormmod

LibAtDe.galaxy

// L922
DialogControlSetAnimationState(libUIUI_gv_uIGameUIHandles.lv_gameUIContainer, libGame_gv_teams[lv_itTeam].lv_teamPlayerGroupNoNPCPlayers, "TeamColors", ("Team" + IntToString(lv_itTeam) + "IsBlue"))

# mods/heroesbrawlmods/arenamodemods/templearena.stormmod

LibAMCT.galaxy

// L1217
DialogControlSetAnimationState(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleFireEffect2[lp_templeIndex], PlayerGroupAll(), "ArrowUpState", "On")
// L1218
DialogControlSetAnimationState(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleFireEffect2[lp_templeIndex], PlayerGroupAll(), "ArrowDownState", "On")
// L1227
DialogControlSetAnimationState(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleFireEffect2[lp_templeIndex], PlayerGroupAll(), "ArrowUpState", "Off")
// L1228
DialogControlSetAnimationState(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleFireEffect2[lp_templeIndex], PlayerGroupAll(), "ArrowDownState", "Off")
// L1355
DialogControlSetAnimationState(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleFireEffect2[lp_templeIndex], libGame_gf_PlayersOnTeamHeroes(lp_team, false), "ArrowUpState", "Blue")
// L1356
DialogControlSetAnimationState(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleFireEffect2[lp_templeIndex], libGame_gf_PlayersOnTeamHeroes(lv_enemyTeam, false), "ArrowUpState", "Red")
// L1359
DialogControlSetAnimationState(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleFireEffect2[lp_templeIndex], PlayerGroupAll(), "ArrowUpState", "On")
// L1362
DialogControlSetAnimationState(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleFireEffect2[lp_templeIndex], libGame_gf_PlayersOnTeamHeroes(lp_team, false), "ArrowDownState", "Blue")
// L1363
DialogControlSetAnimationState(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleFireEffect2[lp_templeIndex], libGame_gf_PlayersOnTeamHeroes(lv_enemyTeam, false), "ArrowDownState", "Red")
// L1366
DialogControlSetAnimationState(libAMCT_gv_mMCapturePointsPanel.lv_capturePointsTempleFireEffect2[lp_templeIndex], PlayerGroupAll(), "ArrowDownState", "On")

# mods/heroesbrawlmods/arenamodemods/trialgrounds.stormmod

LibAMVS.galaxy

// L2121
DialogControlSetAnimationState(libAMVS_gv_trGr_UI.lv_helpTextLabel, PlayerGroupAll(), "Team", "0")
// L2743
DialogControlSetAnimationState(libAMVS_gv_trGr_UI.lv_helpTextLabel, PlayerGroupAll(), "Team", IntToString(libAMVS_gv_arti.lv_team))
// L2798
DialogControlSetAnimationState(libAMVS_gv_trGr_UI.lv_helpTextLabel, PlayerGroupAll(), "Team", IntToString(libAMVS_gv_arti.lv_team))

# mods/heroesbrawlmods/brawlmapmods/blackheartsrevenge.stormmod

LibMDoE.galaxy

// L1242
DialogControlSetAnimationState(libUIUI_gv_uIGameUIHandles.lv_gameUIContainer, PlayerGroupAll(), "SingleStackCarryBehavior", "True")
// L1646
DialogControlSetAnimationState(libMDoE_gv_mDoeUITopPanel.lv_scorePanel, PlayerGroupAll(), "ShipDamage", IntToString(libAtDe_gv_attackDefend.lv_score[libAtDe_gv_attackDefend.lv_defendingTeam]))
// L3703
DialogControlSetAnimationState(libMDoE_gv_mDoeUITopPanel.lv_topNotificationPanel, PlayerGroupAll(), "Round", IntToString(2))

# mods/heroesbrawlmods/brawlmapmods/coop/escapefrombraxis.stormmod

LibPEB1.galaxy

// L3767
DialogControlSetAnimationState(libPEB1_gv_pZEMinimap, PlayerGroupAll(), "MaskState", "Part2")
// L4070
DialogControlSetAnimationState(libPEB1_gv_pZEMinimap, PlayerGroupAll(), "MaskState", "Part3")
// L8380
DialogControlSetAnimationState(libPEB1_gv_pZEMinimap, PlayerGroupAll(), "MaskState", "Part2")
// L9021
DialogControlSetAnimationState(libPEB1_gv_pZEMinimap, PlayerGroupAll(), "MaskState", "Part3")
// L11082
DialogControlSetAnimationState(libPEB1_gv_pZEMinimap, PlayerGroupAll(), "MaskState", "Part1")

# mods/heroesdata.stormmod

GameLib.galaxy

// L12136
DialogControlSetAnimationState(DialogControlLastCreated(), PlayerGroupAll(), "MoonwellIndicator", "Left")
// L12139
DialogControlSetAnimationState(DialogControlLastCreated(), PlayerGroupAll(), "MoonwellIndicator", "Right")
// L12157
DialogControlSetAnimationState(DialogControlLastCreated(), PlayerGroupAll(), "MoonwellIndicator", "None")
// L13739
DialogControlSetAnimationState(libGame_gv_capturePoints[lv_capturePointIndex].lv_captureProgressBar, PlayerGroupAll(), "IsContested", "Contested")
// L13839
DialogControlSetAnimationState(libGame_gv_capturePoints[lv_capturePointIndex].lv_captureProgressBar, PlayerGroupAll(), "IsContested", "NotContested")
// L13994
DialogControlSetAnimationState(libGame_gv_capturePoints[lv_itCapturePointIndex].lv_progressBarDimmingFrame, PlayerGroupAll(), "IsDim", "DimmedOn")
// L14031
DialogControlSetAnimationState(libGame_gv_capturePoints[lv_itCapturePointIndex].lv_progressBarDimmingFrame, PlayerGroupAll(), "IsDim", "DimmedOff")

# mods/heroesdata.stormmod

MapMechanicsLib.galaxy

// L1056
DialogControlSetAnimationState(libMapM_gv_uIJungleCampPanel.lv_jungleCreepCampsInfoPanel2[lp_camp], PlayerGroupAll(), "CampEliteStatus", "CampIsElite")
// L1059
DialogControlSetAnimationState(libMapM_gv_uIJungleCampPanel.lv_jungleCreepCampsInfoPanel2[lp_camp], PlayerGroupAll(), "CampEliteStatus", "CampNotElite")
// L1093
DialogControlSetAnimationState(libMapM_gv_uIJungleCampPanel.lv_jungleCreepCampsInfoPanel[lp_camp], libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), "TeamCaptured", "BlueTeam")
// L1094
DialogControlSetAnimationState(libMapM_gv_uIJungleCampPanel.lv_jungleCreepCampsInfoPanel[lp_camp], libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, false), "TeamCaptured", "RedTeam")
// L1095
DialogControlSetAnimationState(libMapM_gv_uIJungleCampPanel.lv_jungleCreepCampsInfoPanel[lp_camp], PlayerGroupSingle(libCore_gv_oBSERVER_ObserverUIPlayer), "TeamCaptured", "BlueTeam")
// L1098
DialogControlSetAnimationState(libMapM_gv_uIJungleCampPanel.lv_jungleCreepCampsInfoPanel[lp_camp], libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamOrderIndex_C, false), "TeamCaptured", "RedTeam")
// L1099
DialogControlSetAnimationState(libMapM_gv_uIJungleCampPanel.lv_jungleCreepCampsInfoPanel[lp_camp], libGame_gf_PlayersOnTeamHeroes(libGame_gv_teamChaosIndex_C, false), "TeamCaptured", "BlueTeam")
// L1100
DialogControlSetAnimationState(libMapM_gv_uIJungleCampPanel.lv_jungleCreepCampsInfoPanel[lp_camp], PlayerGroupSingle(libCore_gv_oBSERVER_ObserverUIPlayer), "TeamCaptured", "RedTeam")
// L1103
DialogControlSetAnimationState(libMapM_gv_uIJungleCampPanel.lv_jungleCreepCampsInfo_Label_Description[lp_camp], PlayerGroupAll(), "ShowHideDescription", "HideDesc")
// L1106
DialogControlSetAnimationState(libMapM_gv_uIJungleCampPanel.lv_jungleCreepCampsInfo_Label_Description[lp_camp], PlayerGroupAll(), "ShowHideDescription", "ShowDesc")

# mods/heroesdata.stormmod

UILib.galaxy

// L1495
DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_abilitiesPanelTimeZone[lv_itEffect], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "DamageHealState", "Heal")
// L1506
DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_abilitiesPanelTimeZone[lv_itEffect], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "DamageHealState", "Damage")
// L1528
DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_abilitiesPanelTimeZone[lv_itEffect], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "DamageHealState", "Heal")
// L1539
DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_abilitiesPanelTimeZone[lv_itEffect], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "DamageHealState", "Damage")
// L1549
DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_abilitiesPanelTimeZone[lv_itEffect], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "DamageHealState", "NoData")
// L1584
DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_abilitiesPanelTimeZone[lv_itEffect], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "KillingBlowState", "IsKillingBlow")
// L1645
DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_highestDamagersAmountLabels[lv_itHighestDamager], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "HighestDamagerState", "Player")
// L1654
DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_highestDamagersAmountLabels[lv_itHighestDamager], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "HighestDamagerState", "AI")
// L1666
DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_highestDamagersAmountLabels[lv_itHighestDamager], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "HighestDamagerState", "NPC")
// L1680
DialogControlSetAnimationState(libUIUI_gv_deathRecap_Panel.lv_highestDamagersAmountLabels[lv_itHighestDamager], libCore_gv_playerGroupFromPlayer[lp_deadPlayer], "HighestDamagerState", "NoData")

# mods/heroesmapmods/battlegroundmapmods/alteracpass.stormmod

LibMMAP.galaxy

// L724
DialogControlSetAnimationState(libMMAP_gv_aVUI.lv_mMContainer, PlayerGroupAll(), "TeamWins", IntToString(lp_winningTeam))
// L963
DialogControlSetAnimationState(libMMAP_gv_aVUI.lv_mMContainer, PlayerGroupAll(), "TeamWins", IntToString(libCore_gv_cOMPUTER_Neutral))
// L1096
DialogControlSetAnimationState(libMMAP_gv_aVUI.lv_mMContainer, PlayerGroupAll(), "TeamWinningCage", IntToString(libGame_gf_ComputerPlayerInTeam(lp_team)))
// L1099
DialogControlSetAnimationState(libMMAP_gv_aVUI.lv_mMContainer, PlayerGroupAll(), "TeamWinningCage", "00")
// L1135
DialogControlSetAnimationState(libMMAP_gv_aVUI.lv_mMContainer, lv_teamPlayerGroup, "TopBarCaptured", (lv_isCapturing + lv_isContested))
// L1136
DialogControlSetAnimationState(libMMAP_gv_aVUI.lv_mMContainer, lv_enemyTeamPlayerGroup, "BottomBarCaptured", (lv_isCapturing + lv_isContested))
// L1189
DialogControlSetAnimationState(libMMAP_gv_aVUI.lv_notificationFrame[lv_notificationIndex], PlayerGroupAll(), "EventID", (IntToString(lp_teamOfCaptor) + IntToString(lp_teamOfCapturedFlag)))

# mods/heroesmapmods/battlegroundmapmods/blackheartsbay.stormmod

LibBBAY.galaxy

// L824
DialogControlSetAnimationState(libUIUI_gv_mapMechanicsPanel.lv_blackheartsBayDoubloonTurninReadyGlow[libGame_gv_teamOrderIndex_C], PlayerGroupAll(), "TurninReady", "IsReady")
// L830
DialogControlSetAnimationState(libUIUI_gv_mapMechanicsPanel.lv_blackheartsBayDoubloonTurninReadyGlow[libGame_gv_teamOrderIndex_C], PlayerGroupAll(), "TurninReady", "NotReady")
// L835
DialogControlSetAnimationState(libUIUI_gv_mapMechanicsPanel.lv_blackheartsBayDoubloonTurninReadyGlow[libGame_gv_teamChaosIndex_C], PlayerGroupAll(), "TurninReady", "IsReady")
// L840
DialogControlSetAnimationState(libUIUI_gv_mapMechanicsPanel.lv_blackheartsBayDoubloonTurninReadyGlow[libGame_gv_teamChaosIndex_C], PlayerGroupAll(), "TurninReady", "NotReady")

# mods/heroesmapmods/battlegroundmapmods/hanamura.stormmod

LibNPLD.galaxy

// L99
DialogControlSetAnimationState(libNPLD_gv_hanamura.lv_payloadPanel_ActivePayloadStatus, PlayerGroupAll(), "OrderPath", IntToString(libNPLD_gv_neutralPayload.lv_pathIndex_Team[libGame_gv_teamOrderIndex_C]))
// L100
DialogControlSetAnimationState(libNPLD_gv_hanamura.lv_payloadPanel_ActivePayloadStatus, PlayerGroupAll(), "ChaosPath", IntToString(libNPLD_gv_neutralPayload.lv_pathIndex_Team[libGame_gv_teamChaosIndex_C]))

# mods/heroesmapmods/battlegroundmapmods/skytemple.stormmod

LibMLCP.galaxy

// L2030
DialogControlSetAnimationState(libMLCP_gv_mMSkyTemplePanelIcons[lv_templeIndex].lv_shrineIcon, PlayerGroupAll(), "Ownership", "Order")
// L2067
DialogControlSetAnimationState(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineIcon, PlayerGroupAll(), "Ownership", "Disable")
// L2084
DialogControlSetAnimationState(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineProgress, PlayerGroupAll(), "Ownership", "Neutral")
// L2089
DialogControlSetAnimationState(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineIcon, libGame_gf_PlayersOnTeamHeroes(lp_team, false), "Ownership", "Order")
// L2090
DialogControlSetAnimationState(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineIcon, libGame_gf_PlayersOnTeamHeroes(lv_enemyTeam, false), "Ownership", "Chaos")
// L2092
DialogControlSetAnimationState(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineIcon, libCore_gv_playerGroupFromPlayer[libCore_gv_oBSERVER_ObserverUIPlayer], "Ownership", "Order")
// L2095
DialogControlSetAnimationState(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineIcon, libCore_gv_playerGroupFromPlayer[libCore_gv_oBSERVER_ObserverUIPlayer], "Ownership", "Chaos")
// L2156
DialogControlSetAnimationState(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineProgress, PlayerGroupAll(), "Ownership", "Neutral")
// L2159
DialogControlSetAnimationState(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineProgress, PlayerGroupAll(), "Ownership", "Order")
// L2162
DialogControlSetAnimationState(libMLCP_gv_mMSkyTemplePanelIcons[lp_templeIndex].lv_shrineProgress, PlayerGroupAll(), "Ownership", "Chaos")

# mods/heroesmapmods/battlegroundmapmods/tombofthespiderqueen.stormmod

LibMSOC.galaxy

// L669
DialogControlSetAnimationState(libMSOC_gv_mMTombSpiderQueenPanel.lv_theCryptsTurninGlow[lp_teamNumber], PlayerGroupAll(), "TurninReady", "IsReady")
// L674
DialogControlSetAnimationState(libMSOC_gv_mMTombSpiderQueenPanel.lv_theCryptsTurninGlow[lp_teamNumber], PlayerGroupAll(), "TurninReady", "NotReady")
// L978
DialogControlSetAnimationState(DialogControlLastCreated(), PlayerGroupAll(), "TurninReady", "NotReady")

# mods/heroesmapmods/battlegroundmapmods/volskayamechanics.stormmod

LibVLSK.galaxy

// L936
DialogControlSetAnimationState(libVLSK_gv_volskayaUI.lv_mapMechanic_CenterCircle, PlayerGroupAll(), "TeamOwnershipColor", "Neutral")
// L941
DialogControlSetAnimationState(libVLSK_gv_volskayaUI.lv_mapMechanic_CenterCircle, PlayerGroupAll(), "TeamOwnershipColor", "Order")
// L946
DialogControlSetAnimationState(libVLSK_gv_volskayaUI.lv_mapMechanic_CenterCircle, PlayerGroupAll(), "TeamOwnershipColor", "Chaos")
// L965
DialogControlSetAnimationState(libVLSK_gv_volskayaUI.lv_mapMechanic_ContestProgressBar_FillImage, PlayerGroupAll(), "TeamColor", "Order")
// L969
DialogControlSetAnimationState(libVLSK_gv_volskayaUI.lv_mapMechanic_ContestProgressBar_FillImage, PlayerGroupAll(), "TeamColor", "Chaos")

# mods/heroesmapmods/battlegroundmapmods/warheadjunction.stormmod

LibMSC2.galaxy

// L1106
DialogControlSetAnimationState(libUIUI_gv_uIGameUIHandles.lv_gameUIContainer, PlayerGroupAll(), "SingleStackCarryBehavior", "True")

# mods/heromods/ana.stormmod

LibHANA.galaxy

// L384
DialogControlSetAnimationState(libHANA_gv_anaUI.lv_EyeOfHorusTargetImage, lv_anaPlayerGroup, "Show", "Wait")
// L385
DialogControlSetAnimationState(libHANA_gv_anaUI.lv_EyeOfHorusTargetImage, lv_anaPlayerGroup, "Show", "Visible")

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// L1152
DialogControlSetAnimationState(libNCUI_gv_nU_MissionRewardsModule, PlayerGroupAll(), "RewardsCountState", "Rewards1")
// L1157
DialogControlSetAnimationState(libNCUI_gv_nU_MissionRewardsModule, PlayerGroupAll(), "RewardsCountState", "Rewards2")
// L1162
DialogControlSetAnimationState(libNCUI_gv_nU_MissionRewardsModule, PlayerGroupAll(), "RewardsCountState", "Rewards0")
// L1175
DialogControlSetAnimationState(libNCUI_gv_nU_MissionRewardsContainers[lv_rewardIndex], PlayerGroupAll(), "EarnedState", "Earned")
// L1178
DialogControlSetAnimationState(libNCUI_gv_nU_MissionRewardsContainers[lv_rewardIndex], PlayerGroupAll(), "EarnedState", "Unearned")
// L1185
DialogControlSetAnimationState(libNCUI_gv_nU_MissionRewardsContainers[lv_rewardIndex], PlayerGroupAll(), "EarnedState", "Earned")
// L1188
DialogControlSetAnimationState(libNCUI_gv_nU_MissionRewardsContainers[lv_rewardIndex], PlayerGroupAll(), "EarnedState", "Unearned")
// L1521
DialogControlSetAnimationState(lp_dialogItem, PlayerGroupAll(), "NewItemState", "NoNewItem ")
// L1524
DialogControlSetAnimationState(lp_dialogItem, PlayerGroupAll(), "NewItemState", "NewItem")
// L1760
DialogControlSetAnimationState(libNCUI_gv_nU_UpgradesSelectionButtons[lv_upgradeSlotIndex], PlayerGroupAll(), "AssignedState", "Unassigned")

# mods/starcoop/starcoop.sc2mod

LibCOMI.galaxy

// L4842
DialogControlSetAnimationState(libCOUI_gv_cU_GPCmdButtons[lv_heroUnitID][UnitGetOwner(lp_unit)], PlayerGroupAll(), "ActiveState", "False")
// L4845
DialogControlSetAnimationState(libCOUI_gv_cU_GPCmdButtons[1][UnitGetOwner(lp_unit)], PlayerGroupAll(), "ActiveState", "True")
// L4846
DialogControlSetAnimationState(libCOUI_gv_cU_GPCmdButtons[2][UnitGetOwner(lp_unit)], PlayerGroupAll(), "ActiveState", "False")
// L4847
DialogControlSetAnimationState(libCOUI_gv_cU_GPCmdButtons[3][UnitGetOwner(lp_unit)], PlayerGroupAll(), "ActiveState", "False")