@@ -140,6 +140,23 @@ interface ScreenEntity {
140
140
accurateCollision : boolean ;
141
141
}
142
142
143
+ interface ContextualTip {
144
+ TipAnnotation ?: string ;
145
+ DisplayDuration ?: number ;
146
+ PanoramaClasses ?: string [ ] ;
147
+ PanoramaSnippet ?: string ;
148
+ ReferencedAbilities ?: string [ ] ;
149
+ ReferencedUnits : string [ ] ;
150
+ Variant ?: number ;
151
+ ForceAnnotation ?: boolean ;
152
+ IntParameter ?: number ;
153
+ IntParameter2 ?: number ;
154
+ FloatParameter ?: number ;
155
+ FloatParameter2 ?: number ;
156
+ StringParameter ?: string ;
157
+ StringParameter2 ?: string ;
158
+ }
159
+
143
160
interface CDOTA_PanoramaScript_GameUI {
144
161
/**
145
162
* Control whether the default UI is enabled
@@ -343,6 +360,36 @@ interface CDOTA_PanoramaScript_GameUI {
343
360
* Creates a localized version of the number
344
361
*/
345
362
ConstructNumberString ( n : number ) : string ;
363
+
364
+ /**
365
+ * Query to check if Tips are available for the local player
366
+ */
367
+ AreTipsAvailable ( ) : boolean ;
368
+
369
+ /**
370
+ * Query to see if the local player can tip a specific player
371
+ */
372
+ IsPlayerTippable ( iPlayerID : number ) : boolean ;
373
+
374
+ /**
375
+ * Tip a player
376
+ */
377
+ TipPlayer ( iPlayerID : number ) : void ;
378
+
379
+ /**
380
+ * Display a custom contextual tip (wizard tip) with specific loc string and duration
381
+ */
382
+ DisplayCustomContextualTip ( tip : ContextualTip ) : void ;
383
+
384
+ /**
385
+ * Set the text of a passed label for a DOTA Talent using ability values.
386
+ */
387
+ SetupDOTATalentNameLabel ( panel : LabelPanel , sAbilityName : string ) : void ;
388
+
389
+ /**
390
+ * Returns true if the passed ability is a talent.
391
+ */
392
+ IsAbilityDOTATalent ( pszAbilityName : string ) : boolean ;
346
393
}
347
394
348
395
/**
@@ -693,6 +740,11 @@ interface CScriptBindingPR_Players {
693
740
*/
694
741
GetTeam ( iPlayerID : PlayerID ) : DOTATeam_t ;
695
742
743
+ /**
744
+ * Get the player's selected hero id.
745
+ */
746
+ GetSelectedHeroID ( iPlayerID : PlayerID ) : HeroID ;
747
+
696
748
/**
697
749
* Average gold earned per minute for this player.
698
750
*/
@@ -718,8 +770,16 @@ interface CScriptBindingPR_Players {
718
770
*/
719
771
IsSpectator ( iPlayerID : PlayerID ) : boolean ;
720
772
773
+ /**
774
+ * Player portrait click event.
775
+ */
721
776
PlayerPortraitClicked ( nClickedPlayerID : PlayerID , bHoldingCtrl : boolean , bHoldingAlt : boolean ) : void ;
722
777
778
+ /**
779
+ * Player portrait double click event.
780
+ */
781
+ PlayerPortraitDoubleClicked ( nClickedPlayerID : PlayerID , bHoldingCtrl : boolean , bHoldingAlt : boolean ) : void ;
782
+
723
783
BuffClicked ( nEntity : EntityIndex , nBuffSerial : number , bAlert : boolean ) : void ;
724
784
725
785
/**
@@ -1116,6 +1176,11 @@ interface CScriptBindingPR_Entities {
1116
1176
* Get the item contained in this physical item container.
1117
1177
*/
1118
1178
GetContainedItem ( nEntityIndex : EntityIndex ) : ItemEntityIndex ;
1179
+
1180
+ /**
1181
+ * Set the minimap icon on this client.
1182
+ */
1183
+ SetMinimapIcon ( nEntityIndex : number , pszMinimapIcon : string ) : void ;
1119
1184
}
1120
1185
1121
1186
interface CScriptBindingPR_Abilities {
@@ -1159,6 +1224,8 @@ interface CScriptBindingPR_Abilities {
1159
1224
1160
1225
GetCurrentCharges ( nEntityIndex : AbilityEntityIndex ) : number ;
1161
1226
1227
+ GetCurrentAbilityCharges ( nEntityIndex : AbilityEntityIndex ) : number ;
1228
+
1162
1229
GetEffectiveLevel ( nEntityIndex : AbilityEntityIndex ) : number ;
1163
1230
1164
1231
GetHeroLevelRequiredToUpgrade ( nEntityIndex : AbilityEntityIndex ) : number ;
@@ -1225,6 +1292,8 @@ interface CScriptBindingPR_Abilities {
1225
1292
1226
1293
IsToggle ( nEntityIndex : AbilityEntityIndex ) : boolean ;
1227
1294
1295
+ UsesAbilityCharges ( nEntityIndex : AbilityEntityIndex ) : boolean ;
1296
+
1228
1297
GetAOERadius ( nEntityIndex : AbilityEntityIndex ) : number ;
1229
1298
1230
1299
GetBackswingTime ( nEntityIndex : AbilityEntityIndex ) : number ;
@@ -1247,6 +1316,8 @@ interface CScriptBindingPR_Abilities {
1247
1316
1248
1317
GetUpgradeBlend ( nEntityIndex : AbilityEntityIndex ) : number ;
1249
1318
1319
+ GetAbilityChargeRestoreTimeRemaining ( nEntityIndex : AbilityEntityIndex ) : number ;
1320
+
1250
1321
/**
1251
1322
* Get the local player's current active ability. (Pre-cast targetting state.)
1252
1323
*/
@@ -1281,6 +1352,9 @@ interface CScriptBindingPR_Abilities {
1281
1352
* Returns the keybind (as a string) for the specified ability.
1282
1353
*/
1283
1354
GetKeybind ( nAbilityEntIndex : AbilityEntityIndex ) : string ;
1355
+
1356
+ /** Get the max ability charge count. */
1357
+ GetMaxAbilityCharges ( nAbilityEntIndex : number ) : number ;
1284
1358
}
1285
1359
1286
1360
interface CScriptBindingPR_Items {
@@ -1437,6 +1511,12 @@ interface CScriptBindingPR_Game {
1437
1511
1438
1512
IsInBanPhase ( ) : boolean ;
1439
1513
1514
+ GetConvarBool ( name : string ) : boolean ;
1515
+
1516
+ GetConvarInt ( name : string ) : number ;
1517
+
1518
+ GetConvarFloat ( name : string ) : number ;
1519
+
1440
1520
/**
1441
1521
* Return the team id of the winning team.
1442
1522
*/
@@ -1685,6 +1765,54 @@ interface CScriptBindingPR_Game {
1685
1765
* Registers a keybind that can be listened to with Game.AddCommand
1686
1766
*/
1687
1767
CreateCustomKeyBind ( keyName : string , commandName : string ) : void ;
1768
+
1769
+ NemesticeGetGameplayTipNumber ( ) : number ;
1770
+
1771
+ NemesticeSetGameplayTipNumber ( nGameplayTipNumber : number ) : void ;
1772
+
1773
+ NemesticeShouldShowGameInfo ( ) : boolean ;
1774
+
1775
+ NemesticeSetShowGameInfo ( bShowGameInfo : boolean ) : void ;
1776
+
1777
+ Winter2022ShouldShowGameInfo ( ) : boolean ;
1778
+
1779
+ Winter2022SetShowGameInfo ( bShowGameInfo : boolean ) : void ;
1780
+
1781
+ Winter2022GetGameplayTipNumber ( ) : number ;
1782
+
1783
+ Winter2022SetGameplayTipNumber ( nGameplayTipNumber : number ) : void ;
1784
+
1785
+ ForceCustomUILoad ( ) : void ;
1786
+
1787
+ CutToDefaultCamera ( ) : void ;
1788
+
1789
+ PlayDataDrivenCamera ( pszCameraName : string ) : number ;
1790
+
1791
+ SetJoyFocusPanel ( pPanelArg ?: Panel ) : void ;
1792
+
1793
+ PushJoyFocusPanel ( pPanelArg ?: Panel ) : void ;
1794
+
1795
+ PopJoyFocusPanel ( ) : void ;
1796
+
1797
+ /**
1798
+ *Whether the local player has muted voice chat for the specified player id
1799
+ */
1800
+ IsPlayerMutedVoice ( nPlayerID : number ) : boolean ;
1801
+
1802
+ /**
1803
+ * Set whether the local player has muted voice chat for the specified player id
1804
+ */
1805
+ SetPlayerMutedVoice ( nPlayerID : number , bMutedVoice : boolean ) : void ;
1806
+
1807
+ /**
1808
+ * Whether the local player has muted text chat for the specified player id
1809
+ */
1810
+ IsPlayerMutedText ( nPlayerID : number ) : boolean ;
1811
+
1812
+ /**
1813
+ * Set whether the local player has muted text chat for the specified player id
1814
+ */
1815
+ SetPlayerMutedText ( nPlayerID : number , bMutedText : boolean ) : void ;
1688
1816
}
1689
1817
1690
1818
interface CPanoramaScript_SteamUGC {
@@ -1909,6 +2037,11 @@ interface DollarStatic {
1909
2037
* Convert a string to HTML-safe
1910
2038
*/
1911
2039
HTMLEscape ( string : string ) : string ;
2040
+
2041
+ /**
2042
+ * Return true if a file exists. Path will usually start with 'file://{images}'
2043
+ */
2044
+ BImageFileExists ( path : string ) : boolean ;
1912
2045
}
1913
2046
1914
2047
interface AsyncWebRequestResponse {
0 commit comments