@@ -140,6 +140,23 @@ interface ScreenEntity {
140140 accurateCollision : boolean ;
141141}
142142
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+
143160interface CDOTA_PanoramaScript_GameUI {
144161 /**
145162 * Control whether the default UI is enabled
@@ -359,12 +376,15 @@ interface CDOTA_PanoramaScript_GameUI {
359376 */
360377 TipPlayer ( iPlayerID : number ) : void ;
361378
362- DisplayCustomContextualTip ( ...args : unknown [ ] ) : void ;
379+ /**
380+ * Display a custom contextual tip (wizard tip) with specific loc string and duration
381+ */
382+ DisplayCustomContextualTip ( tip : ContextualTip ) : void ;
363383
364384 /**
365385 * Set the text of a passed label for a DOTA Talent using ability values.
366386 */
367- SetupDOTATalentNameLabel ( ... args : unknown [ ] ) : void ;
387+ SetupDOTATalentNameLabel ( panel : LabelPanel , sAbilityName : string ) : void ;
368388
369389 /**
370390 * Returns true if the passed ability is a talent.
@@ -750,8 +770,14 @@ interface CScriptBindingPR_Players {
750770 */
751771 IsSpectator ( iPlayerID : PlayerID ) : boolean ;
752772
773+ /**
774+ * Player portrait click event.
775+ */
753776 PlayerPortraitClicked ( nClickedPlayerID : PlayerID , bHoldingCtrl : boolean , bHoldingAlt : boolean ) : void ;
754777
778+ /**
779+ * Player portrait double click event.
780+ */
755781 PlayerPortraitDoubleClicked ( nClickedPlayerID : PlayerID , bHoldingCtrl : boolean , bHoldingAlt : boolean ) : void ;
756782
757783 BuffClicked ( nEntity : EntityIndex , nBuffSerial : number , bAlert : boolean ) : void ;
@@ -1762,9 +1788,9 @@ interface CScriptBindingPR_Game {
17621788
17631789 PlayDataDrivenCamera ( pszCameraName : string ) : number ;
17641790
1765- SetJoyFocusPanel ( ... pPanelArg : unknown [ ] ) : void ;
1791+ SetJoyFocusPanel ( pPanelArg ?: Panel ) : void ;
17661792
1767- PushJoyFocusPanel ( ... pPanelArg : unknown [ ] ) : void ;
1793+ PushJoyFocusPanel ( pPanelArg ?: Panel ) : void ;
17681794
17691795 PopJoyFocusPanel ( ) : void ;
17701796
0 commit comments