Skip to content

Instantly share code, notes, and snippets.

@lolleko
Last active August 20, 2024 22:01
Show Gist options
  • Save lolleko/41fa60e2a065a6acd9468ebcc6dbdcc8 to your computer and use it in GitHub Desktop.
Save lolleko/41fa60e2a065a6acd9468ebcc6dbdcc8 to your computer and use it in GitHub Desktop.
Dota 2 Panorama Events

WIKI


AddStyle(string class)

PanelEvent: Yes

Add a CSS class to a panel.


AddStyleToEachChild(string class)

PanelEvent: Yes

Add a CSS class to all children of this panel.


AsyncEvent(float delay, event eventToFire)

PanelEvent: No

Fire another event after a delay (in seconds).


DOTAHideAbilityTooltip()

PanelEvent: Yes

Hide the ability tooltip


DOTAHideBuffTooltip()

PanelEvent: Yes

Hide the buff tooltip


DOTAHideEconItemTooltip()

PanelEvent: Yes

Hide the econ item tooltip.


DOTAHideProfileCardTooltip()

PanelEvent: Yes

Hide the profile card tooltip.


DOTAHideTextTooltip()

PanelEvent: Yes

Hide the text tooltip


DOTAHideTitleImageTextTooltip()

PanelEvent: Yes

Hide the title image text tooltip.


DOTAHideTitleTextTooltip()

PanelEvent: Yes

Hide the title text tooltip.


DOTAShowAbilityTooltip(string abilityName)

PanelEvent: Yes

Show an ability tooltip.


DOTAShowAbilityTooltipForEntityIndex(string abilityName, int32 entityIndex)

PanelEvent: Yes

Show an ability tooltip. Level information comes from the entity specified by the entityIndex.


DOTAShowBuffTooltip(int32 entityIndex, int32 buffSerial, bool bOnEnemy)

PanelEvent: Yes

Show a buff tooltip for the specified entityIndex + buff serial.


DOTAShowEconItemTooltip(uint16 itemDef, uint8 styleIndex, int32 heroID)

PanelEvent: Yes

Show the econ item tooltip for a given item, style, and hero. Use 0 for the default style, and -1 for the default hero.


DOTAShowProfileCardTooltip(uint64 steamID, bool useProName)

PanelEvent: Yes

Show a user's profile card. Use pro name determines whether to use their professional team name if applicable.


DOTAShowTextTooltip(string text)

PanelEvent: Yes

Show a tooltip with the given text.


DOTAShowTextTooltipStyled(string text, string style)

PanelEvent: Yes

Show a tooltip with the given text. Also apply a CSS class named "style" to allow custom styling.


DOTAShowTitleImageTextTooltip(string title, string imagePath, string text)

PanelEvent: Yes

Show a tooltip with the given title, image, and text.


DOTAShowTitleImageTextTooltipStyled(string title, string imagePath, string text, string style)

PanelEvent: Yes

Show a tooltip with the given title, image, and text. Also apply a CSS class named "style" to allow custom styling.


DOTAShowTitleTextTooltip(string title, string text)

PanelEvent: Yes

Show a tooltip with the given title and text.


DOTAShowTitleTextTooltipStyled(string title, string text, string style)

PanelEvent: Yes

Show a tooltip with the given title and text. Also apply a CSS class named "style" to allow custom styling.


IfHasClassEvent(string class, event eventToFire)

PanelEvent: Yes

Fire another event if this panel has a given class.


IfHoverOtherEvent(string otherPanelID, event eventToFire)

PanelEvent: Yes

Fire another event if currently hovering over a panel with the given ID.


IfNotHasClassEvent(string class, event eventToFire)

PanelEvent: Yes

Fire another event if this panel does not have a given class.


IfNotHoverOtherEvent(string otherPanelID, event eventToFire)

PanelEvent: Yes

Fire another event if not currently hovering over a panel with the given ID.


MovePanelDown(int32 repeatCount)

PanelEvent: Yes

Move down from the panel. By default, this will change the focus position, but other panel types may implement this differently.


MovePanelLeft(int32 repeatCount)

PanelEvent: Yes

Move left from the panel. By default, this will change the focus position, but other panel types may implement this differently.


MovePanelRight(int32 repeatCount)

PanelEvent: Yes

Move right from the panel. By default, this will change the focus position, but other panel types may implement this differently.


MovePanelUp(int32 repeatCount)

PanelEvent: Yes

Move up from the panel. By default, this will change the focus position, but other panel types may implement this differently.


PageDown()

PanelEvent: No

Scroll the panel down by one page.


PageLeft()

PanelEvent: No

Scroll the panel left by one page.


PagePanelDown()

PanelEvent: Yes

Scroll the panel down by one page.


PagePanelLeft()

PanelEvent: Yes

Scroll the panel left by one page.


PagePanelRight()

PanelEvent: Yes

Scroll the panel left by one page.


PagePanelUp()

PanelEvent: Yes

Scroll the panel up by one page.


PageRight()

PanelEvent: No

Scroll the panel right by one page.


PageUp()

PanelEvent: No

Scroll the panel up by one page.


RemoveStyle(string class)

PanelEvent: Yes

Remove a CSS class from a panel.


RemoveStyleFromEachChild(string class)

PanelEvent: Yes

Remove a CSS class from all children of this panel.


ScrollDown()

PanelEvent: No

Scroll the panel down by one line.


ScrollLeft()

PanelEvent: No

Scroll the panel left by one line.


ScrollPanelDown()

PanelEvent: Yes

Scroll the panel down by one line.


ScrollPanelLeft()

PanelEvent: Yes

Scroll the panel left by one line.


ScrollPanelRight()

PanelEvent: Yes

Scroll the panel right by one line.


ScrollPanelUp()

PanelEvent: Yes

Scroll the panel up by one line.


ScrollRight()

PanelEvent: No

Scroll the panel right by one line.


ScrollToBottom()

PanelEvent: Yes

Scroll this panel to the bottom.


ScrollToTop()

PanelEvent: Yes

Scroll this panel to the top.


ScrollUp()

PanelEvent: No

Scroll the panel up by one line.


SetChildPanelsSelected(bool selected)

PanelEvent: Yes

Set whether any child panels are :selected.


SetInputFocus()

PanelEvent: Yes

Set focus to this panel.


SetPanelSelected(bool selected)

PanelEvent: Yes

Set whether this panel is :selected.


TogglePanelSelected()

PanelEvent: Yes

Toggle whether this panel is :selected.


ToggleStyle(string class)

PanelEvent: Yes

Toggle whether a panel has the given CSS class.

Undocumented


DOTAShopHideShop()

PanelEvent: No


DOTAShopShowShop()

PanelEvent: No


DOTAHUDToggleShop()

PanelEvent: Maybe?


DOTAShowAbilityTooltipForLevel(string ability_name, int ability_level)

PanelEvent: Yes


DOTAShowAbilityInventoryItemTooltip(string item_name)

PanelEvent: Yes


DOTAShowAbilityShopItemTooltip(string item_name)

PanelEvent: Yes


DropInputFocus()

PanelEvent: Yes


UIShowCustomLayoutParametersTooltip(string id, string pathToLayout, string paramString)

PanelEvent: Yes

LayoutPath: 'file://{resources}/layout/custom_game/building_tooltip.xml' Params: 'buildingName=npc_tower&goldCost=100'


UIHideCustomLayoutTooltip(string id)

PanelEvent: Yes


UIPopupButtonClicked(string ???)

PanelEvent: No


DOTAShowStoreBrowseCategoryPage(string category)

PanelEvent: NO


DOTASetSpectatorChatEnabled(boolean state)

PanelEvent: NO


PlaySoundEffect(string soundEvent)

PanelEvent: NO


DOTAWeekendTourneyMatchOutcomeSequenceStateNotify(int ???)

PanelEvent: NO


DOTAPurchaseBattlePassLevelsApplyLevels()

PanelEvent: NO


DOTAPurchaseBattlePassLevelsClose()

PanelEvent: NO


OverviewHeroShowContextMenu()

PanelEvent: NO


DOTAEnsureRecentGamesLoaded(boolean)

PanelEvent: NO


DOTAEnsureTeammateStatsLoaded(boolean)

PanelEvent: NO


DOTAShopCancelSearch()

PanelEvent: NO


DOTAInternational2017ViewComic()

PanelEvent: NO


DOTABPInternational2017CampaignDetailsAct2Page()

PanelEvent: NO


DOTASetCurrentDashboardPageFullscreen(boolean)

PanelEvent: NO


DOTASetActiveTab(int tabNumber)

PanelEvent: NO


DOTAPlayerCardDustedCarousel() ???


DOTAPlayerCardDusted() ???


DOTAPurchaseEventLevelsTableQuantityChanged() ???

$.RegisterEventHandler( 'DOTAScenePanelSceneLoaded', $( '#Model' ), function() { $.DispatchEvent( 'PlaySoundEffect', 'monkeyking_debut_takeover_stinger' ); } );

$.DispatchEvent( 'DOTAEconSetPreviewSetItemDef', $( '#SetPreview' ), nItemDef, strHero, strSlotType, nItemStyle, true, false );

$.DispatchEvent( 'DOTAEconSetPreviewSetRotationSpeed', $( '#SetPreview' ), 0 );

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment