GameAPIs
A gameAPI is an interface between a certain object and the game engine. Below you can find a list of links to all available gameAPIs.
An example call to a gameAPI function would look like: globals.Loader_vote.movieClip.gameAPI.OnChoiceClicked = MyFunction;
Every element has 5 standard gameAPI properties, namely:
- OnLoadFinished
- OnUnload
- OnLoadError
- OnLoadProgress
- OnReady
Loader_voicechat
Loader_actionpanel
- OnShowInvokeListTooltip
- OnHideEconItemTooltip
- OnShowBuffTooltip
- OnShowAbilityBuildTooltip
- OnLevelUpButtonPressed
- SetPortraitPosition
- OnCourierSelectSlotRollOver
- PostOnResize
- OnShowAbilityTooltip
- OnPortraitMousePressed
- OnInspectMousePressed
- OnLevelUpStats
- OnHeroViewMousePressed
- OnCourierSelectMenuOpened
- OnShowEconItemTooltip
- OnPortraitMouseReleased
- OnHideInvokeListTooltip
- OnHideBuffTooltip
- OnPortraitDoubleClick
- OnMultiUnitSlotPressed
- OnHighlightElement
- OnAbilityClicked
- OnStatsTooltipVisibilityChange
- OnCourierSelectSlotClicked
- OnHideAbilityTooltip
- OnBuyBackClick
- OnLevelUpAbility
- OnMultiUnitPageClick
- OnDmgArmorTooltipVisibilityChange
- OnHallofFameTooltipVisibilityChange
Loader_combat_log
- OnCheckboxesChanged
- CopySelectedText
- OnAttackerComboChanged
- OnRefreshClicked
- OnCombatLogClosed
- OnTargetComboChanged
- OnIntervalSliderChanged
Loader_rad_mode_panel
- OnAbilityPressed
- OnShowAbilityTooltip
- OnHideAbilityTooltip
- OnDraftAnimationDone
Loader_coach
- OnCoachClickedOnHUD
- OnSetMinimized
- OnSelectPlayer
Loader_stats_dropdown
- SetCategory
- MousePressedOnRow
- HideRowTooltip
- OnSortButtonMouseDown
- ShowRowTooltip
Loader_popups
- FinishedExit
- Button1Clicked
- Button2Clicked
Loader_halloween
- ShowEconItemTooltip
- HideEconItemTooltip
Loader_spectate_dvr
- OnTogglePause
- OnClickedGoLive
- ExitScrubber
- UpdateTimeLabel
- OnClickedRewind
- AdjustReplaySpeed
- OnClickedScrubBar
Loader_error_msg
Loader_scoreboard
- OnShowFightRecapAbilityTooltip
- OnShowFightFinished
- OnSpectatorHarvestButtonPress
- OnMenuButtonPress
- OnTopbarPortraitClick
- OnScoreboardButtonPress
- OnSpectatorItemsButtonPress
- OnChatButtonPress
- OnGuideButtonPress
- OnShowAbilityTooltip
- OnLogButtonPress
- OnHideDayNightTooltip
- OnSettingsButtonPress
- HideFightRecap
- OnSharedContentButtonPress
- OnShowFightRecapItemTooltip
- OnHidePennantTooltip
- OnHideFightRecapAbilityTooltip
- OnSpectateDisconnectPress
- OnHideFightFinished
- OnShowGuideTooltip
- OnSpectatorXPGraphButtonPress
- OnSpectatorGoldButtonPress
- OnShareUnitsButtonPress
- OnShowDayNightTooltip
- OnHideAbilityTooltip
- OnSpectateButtonPress
- OnHideFightRecapItemTooltip
- OnMuteButtonClicked
- ShowFightRecap
- OnShowPennantTooltip
- PlayerNameClicked
Loader_highlight_reel
- OnFadeOutComplete
Loader_guide_panel
- OnGuideListEntrySelected
- OnGuidePanelHidden
- OnGuideDownVote
- OnGuidePanelShown
- OnGuideSelectButtonPressed
- ShowItemTooltip
- OnGuideChooserRefreshPressed
- ShowAbilityTooltip
- OnGuideUpVote
- OnScrollBarChanged
- OnSubscribeClicked
- HideItemTooltip
- OnStartShopItemDrag
- OnEndShopItemDrag
- OnGuideChooserDialogClosed
- OnSetQuickBuy
- HideAbilityTooltip
- OnGuideChooserDialogHidden
- OnGuideChooserDialogShown
- OnUnsubscribeClicked
- OnPurchaseItem
- OnLanguageFilterSelected
Loader_spectator_graph
- UpdateXPGraph
- ClosePanel
- UpdateTeamGoldGraph
- UpdateGoldGraph
- OnGraphEventClicked
Loader_ti_onstage_side
Loader_shared_units
- OnHeroCheckboxClicked
- OnCloseButtonClicked
- OnDisableHelpCheckboxClicked
- OnUnitsCheckboxClicked
- OnPlayerNameClicked
Loader_gameend
- ShowEconItemTooltip
- HideEconItemTooltip
- HideItemTooltip
- ShowItemTooltip
- OnFinishButtonPress
- PlayerNameClicked_AccountID
- OnFinishedAnimatingTimedReward
- OnDebugRestartAnimButtonClicked
- PlayLootSpeech
- OnMouseOutXPBar
- LocalPlayerNameClicked
- OnMouseOverXPBar
- OnItemLanded
- OnBestTimeDetailsClicked
- PlayerNameClicked
Loader_matchmaking_ready
- DeclineLobby
- AcceptLobby
Loader_overlay
- UserMenu_ReportPlayer
- OnShowPrizeTooltip
- UserMenu_UnignorePlayer
- UserMenu_CommendPlayer
- UserMenu_AddFriend
- UserMenu_DropItemFromStash
- OnReplayTimeAndPosition
- ShowPickupItemTooltip
- HideAbilityStealTooltip
- InitImagePicker
- UserMenu_InspectPlayer
- UserMenu_SwapHero
- OnCancelGG
- UserMenu_ItemAlertAllies
- OnRemovedRoshanPopup
- OnHidePrizeTooltip
- StatPopupAddString
- UserMenu_Closed
- UserMenu_ShowItemInShop
- UserMenu_DisassembleItem
- HidePickupItemTooltip
- UserMenu_IgnorePlayer
- UserMenu_Profile
- StatPopupInitialize
- StatPopupFinishAndSend
- UserMenu_MoveItemToStash
- StatPopupAddImage
- UserMenu_SellItem
- UserMenu_SteamProfile
- ShowAbilityStealTooltip
Loader_channelbar
Loader_ti_onstage_pods
Loader_shared_heroselectorandloadout
- OnSuggestedItemBackOrForwardButtonClicked
- FullDeckCancelButtonClicked
- HideEconItemTooltip
- SelectHeroStartingWith
- OnChooseSelectedHero
- OnSearchEnterPress
- FullDeckSaveButtonClicked
- SetHeroShowcaseClicked
- OnEmoticonClicked
- FullDeckCopyToURLButtonClicked
- PlayButtonClicked
- OnClickTurntableHero
- OnComboBoxChanged
- ShowEconItemTooltip
- OnFileListDeleteItemClicked
- BackToLoadoutButtonClicked
- OnFullDeckCardClick
- LoadEmoticons
- UpdateImportList
- NextPage
- OnLanePickerPositionClicked
- OnHideAbilityTooltip
- OnSearchTextChanged
- ItemSelectionShuffle
- BackButtonClicked
- OnFullDeckCardRollOver
- OnExportLayout
- OnChatSubmitted
- OnShowPipTooltip
- OnTurntableDrag
- HandleKeypress
- OnShowHeroQuestTooltip
- OnMenuButtonPress
- PrevPage
- OnShowSuggestedHeroTooltip
- OnClickPlayerListHero
- ToggleFullDeck
- OnShowTextTooltip
- OnShowAbilityTooltip
- OnChooseRandomHero
- OnAllHeroesCheckboxChanged
- OnChatLinkClicked
- ItemSelectionCancel
- OnMouseWheel
- FullDeckEditButtonClicked
- ShowFullDeck
- RepickButtonClicked
- OnPlayerSlotsVisibilityChanged
- EconItemButtonPressed
- FavoriteButtonClicked
- OnSearchBoxHasFocus
- SetTurntableMovement
- OnHideTextTooltip
- StopTurntableDrag
- ItemSelectionUnequip
- FullDeckResetButtonClicked
- BackToBrowsingButtonClicked
- SuggestButtonClicked
- FullDeckCardWasDragged
- OnSuggestedItemClicked
- OnFileListLoadItemClicked
- OnSuggestedHeroClick
Loader_heroselection
- OnChooseSelectedHero
- OnSkillRollOver
- OnHeroRollOver
- OnHeroRollOut
- OnSkillRollOut
- OnChooseRepickHero
- OnClickTopHero
- OnComboItemClicked
- OnChooseRandomHero
- OnSearchTextChanged
- OnChooseCaptain
- OnChatSubmitted
- OnSelectHero
Loader_spectator_fantasy
- ClosePanel
Loader_herodisplay
- OnSlotDoublePressed
- OnSlotPressed
Loader_spectator_harvest
- ClosePanel
Loader_broadcaster
- OnSelectBroadcaster
- OnSelectNoBroadcaster
Loader_spectate
- OnNegativeVoteClicked
- ReplayTakeover
- OnPositiveVoteClicked
- CloseButtonClicked
- JumpBack
- JumpFoward
- SetAutoSpeed
- SetAudioChannel
- SetCameraView
- JumpToNextEvent
- CopyToClipboard
- SetFOW
- SetBroadcasterCameraView
- SetChatEnabled
Loader_spectator_items
- ClosePanel
- ShowItemTooltip
- HideItemTooltip
Loader_shop
- OnHideCategoryTooltip
- OnUpgradeItem
- ShowItemTooltip
- OnPurchaseItemFromShop
- OnShopTabActivated
- OnSuggestedItemCloseSaveClick
- OnShopCollapsed
- OnSearchBoxGainFocus
- OnRecommendedItemsTabOpen
- OnShopOpened
- OnItemDraggedToSuggested
- OnViewModeGridClicked
- OnShowCategoryTooltip
- OnItemBuildItemDragStart
- OnStartShopItemDrag
- OnSearchBoxLoseFocus
- OnSetInventoryQuickBuy
- OnViewModeListClicked
- OnSuggestedItemSaveAsClick
- OnEndShopItemDrag
- HideItemTooltip
- OnEditSuggestedItemClick
- OnSetQuickBuy
- OnRequestItemPurchasableState
- OnSearchTextChanged
- HideDragPlaceholder
- OnRecommendedItemsTabClose
- OnPurchaseItem
Loader_compendium_ingame
- OnDiscardClicked
- SetGraphActive
- OnShowBasicTooltip
- SetShowGraph
- OnDeleteTag
- OnDeleteGamesClicked
- OnAddTag
- OnHideEventTooltip
- OnShowEventTooltip
Loader_shared_content
- OnContentRadioButtonSelect
- OnCloseButtonClicked
Loader_last_hit_challenge
- SetEnableHelper
- OnBeginGameButtonPress
- SubscribeToGameEvent
- Disconnect
- TestProjectCallingIntoGame
- SendServerCommand
Loader_waitingforplayers
- OnHideTextTooltip
- PlayerNameClicked
Loader_quests
Loader_report_dialogue
- CancelButtonClicked
- SubmitReport
Loader_inventory
- OnGlyphButtonPress
- OnMouseOverShopButton
- OnEndDraggingQuickBuyItem
- OnCourierDeliverButtonPress
- OnSellItem
- SetupInventoryItemTooltip
- OnShowCourierTooltip
- OnBeginDraggingQuickBuyItem
- OnBeginDraggingInventoryItem
- OnStashButtonPress
- OnDisassembleItem
- HideQuickBuyItemTooltip
- HideInventoryItemTooltip
- OnGrabAllStash
- OnShowItemInShop
- OnInventoryItemDraggedToSlot
- OnShopButtonPress
- HideStashItemTooltip
- OnShowActionItemTooltip
- OnAddQuickBuyItem
- OnShowCourierDeliveryTooltip
- OnShowGlyphTooltip
- OnActionItemClicked
- OnCourierButtonPress
- OnHideCourierTooltip
- OnHighlightElement
- OnGoldClicked
- ShowInventoryItemTooltip
- ShowQuickBuyItemTooltip
- OnRightClickMenuClosed
- OnCourierAbsentClick
- OnAddStickySlotItem
- OnDropItemFromStash
- OnInventoryItemDraggedToWorld
- OnInventoryItemRightClick
- OnClearQuickBuy
- OnQuickBuyButtonClick
- OnHideCourierDeliveryTooltip
- OnHideActionItemTooltip
- ShowStashItemTooltip
- OnHideGlyphTooltip
- OnInventoryItemPressed
- OnCourierHasteClick
- SetupStashItemTooltip
Loader_spectate_heroselection
- OnShowBannedHeroTooltip
- OnHTMLScrollBarChanged
- OnHTMLMouseWheel
- OnHTMLKeyUp
- OnSelectAbility
- OnShowAbilityTooltip
- SetHTMLBrowserSize
- OnHTMLVisible
- OnHTMLForwardButtonClicked
- OnHTMLKeyDown
- OnHTMLRefreshButtonClicked
- OnHTMLMouseDown
- OnHTMLBackButtonClicked
- OnHideTextTooltip
- OnHTMLMouseMoved
- OnHTMLExternalBrowserButtonClicked
- OnHTMLFocusIn
- OnHideAbilityTooltip
- OnSpectateButtonPress
- OnDisconnectButtonPress
- OnHTMLKeyTyped
- OnResetPickBanLayout
- OnHTMLStopButtonClicked
- OnDashboardButtonPress
- OnChatSubmitted
- OnShowPipTooltip
- OnHTMLMouseUp
- getInternationalStreamBool
- OnHTMLFocusOut
Loader_killcam
- OnCardMouseDrag
- OnShopCardAbilityTooltip
- OnKillcamCollapsed
- OnInspectCloseClicked
- OnShowItemPreviewTooltip
- OnHideItemPreviewTooltip
- OnShowAbilityTooltip
- OnKillcamExpanded
- OnHideAbilityTooltip
- OnHidePipTooltip
- OnShowPipTooltip
- OnShowInventorySlotTooltip
- OnHideInventorySlotTooltip
Loader_tutorial
- ShowEconItemTooltip
- HideEconItemTooltip
- HideArchronicusPageTooltip
- ShowArchronicusPageTooltip
- onExperienceClosed
- OnMinimapSideSelected
- OnPauseScriptedDemoClosed
- OnTriggerLootDropSound
- OnFinishClicked
- OnMinimapAccept
- onCloseClicked
- onQuestLogButtonClicked
Loader_questlog
- HideQuestLog
Loader_quickstats
- SubscribeToGameEvent
- Disconnect
- TestProjectCallingIntoGame
- SendServerCommand
Loader_hud_chat
- OnHistoryFullDownPress
- LeaveChatChannel
- OnHistoryUpPress
- ChatSetCurrentTab
- LoadEmoticons
- ChatSay
- OnEmoticonClicked
- OnHistoryDownPress
- OnMuteCheckboxChecked
- chatLineClicked
- ChatCancel
Loader_chat_wheel
- SetChatWheelState