Skip to content

Commit

Permalink
Frostivus 2023 update
Browse files Browse the repository at this point in the history
  • Loading branch information
Shushishtok committed Dec 16, 2023
1 parent 04fa07a commit 967c901
Show file tree
Hide file tree
Showing 5 changed files with 41 additions and 8 deletions.
1 change: 1 addition & 0 deletions build/vscripts/api/data/modifier-properties.ts
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ const modifiersData: Record<string, [ArgumentType, apiTypes.Type[], string?]> =
OnBuildingKilled: ['ModifierInstanceEvent', ['nil']],
OnDamageCalculated: ['ModifierAttackEvent', ['nil']],
OnDeath: ['ModifierInstanceEvent', ['nil']],
OnDeathCompleted: ['ModifierInstanceEvent', ['nil']],
OnDominated: ['ModifierUnitEvent', ['nil']],
OnHealReceived: ['ModifierHealEvent', ['nil']],
OnHealthGained: ['ModifierHealEvent', ['nil']],
Expand Down
13 changes: 6 additions & 7 deletions dumper/dump
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,12 @@ background-position: left 10px top 40px;</pre>

=== background-repeat ===
Controls if the background should be repeated in the horizontal and vertical directions.<br><br>Possible values per direction:<br>"repeat" - (default) Repeated in the specified direction until it fills the panel<br>"space" - Repeated as many times as required to fill the panel w/o being clipped. Space is added between images to to align first and last image with panel edges.<br>"round" - Repeated as many times as required to fill the panel w/o being clipped. The image is resized to align first and last image with panel edges.<br>"no-repeat" - Not repeated<br><br>Possible single values:<br>"repeat-x" - equals "repeat no-repeat"<br>"repeat-y" - equals "no-repeat repeat"<br><br><b>Examples:</b><pre>background-repeat: repeat; // equals "repeat repeat" (default)
background-repeat: repeat space; // repeats horizontally, spaces vertically
background-repeat: repeat space; // repeats horizontally, spaces vertically
background-repeat: no-repeat round; // 1 column of images, scaled to fit evenly</pre>


=== background-size ===
Sets the horizontal and vertical dimensions used to draw the background image. Can be set in pixels, percent, "contains" to size down to panel dimensions or "auto" preserves the image aspect ratio. By default, set to "auto" which preveres the image's original size.<br><br>Multiple background layers can be specified in a comma separated list, which are then combined with background-image, background-position, background-texture-size and background-repeat values.<br><br><b>Examples:</b><pre>background-size: auto; // same as "auto auto" (default)
Sets the horizontal and vertical dimensions used to draw the background image. Can be set in pixels, percent, "contains" to size down to panel dimensions or "auto" preserves the image aspect ratio. By default, set to "auto" which preveres the image's original size.<br><br>Multiple background layers can be specified in a comma separated list, which are then combined with background-image, background-position, background-texture-size and background-repeat values.<br><br><b>Examples:</b><pre>background-size: auto; // same as "auto auto" (default)
background-size: 100% 100%; // image fills the panel
background-size: 50% 75%; // image fills 50% of the panel's width, and 75% of the panel's height
background-size: 300px 200px; // image is drawn 300px wide, 200px tall</pre>
Expand Down Expand Up @@ -172,7 +172,7 @@ border-radius: 2px;
border-radius: 50% / 50%;
// 2 px horizontal radii 4px vertical elliptical corners on all sides
border-radius: 2px / 4px;
// All corners fully specified
// All corners fully specified
border-radius: 2px 3px 4px 2px / 2px 3px 3px 2px;</pre>


Expand Down Expand Up @@ -618,15 +618,15 @@ $> dump_panorama_events
|-
| <code>AddStyleAfterDelay(panoramasymbol class, float pre-delay)</code>
| Yes
| Add a CSS class to a panel after a specified delay.
| Add a CSS class to a panel after a specified delay.
|-
| <code>AddStyleToEachChild(panoramasymbol class)</code>
| Yes
| Add a CSS class to all children of this panel.
|-
| <code>AddTimedStyle(panoramasymbol class, float duration, float pre-delay)</code>
| Yes
| Add a class for a specified duration, with optional pre-delay; clears existing timers when called with same class.
| Add a class for a specified duration, with optional pre-delay; clears existing timers when called with same class.
|-
| <code>AsyncEvent(float delay, event eventToFire)</code>
| No
Expand Down Expand Up @@ -850,7 +850,7 @@ $> dump_panorama_events
|-
| <code>RemoveStyleAfterDelay(panoramasymbol class, float pre-delay)</code>
| Yes
| Remove a CSS class from a panel after a specified delay.
| Remove a CSS class from a panel after a specified delay.
|-
| <code>RemoveStyleFromEachChild(panoramasymbol class)</code>
| Yes
Expand Down Expand Up @@ -50080,4 +50080,3 @@ declare enum DOTA_SHOP_TYPE
DOTA_SHOP_NEUTRALS = 7,
DOTA_SHOP_NONE = 8,
}

4 changes: 4 additions & 0 deletions files/engine-enums.json
Original file line number Diff line number Diff line change
Expand Up @@ -6362,6 +6362,10 @@
"name": "DOTA_ABILITY_BEHAVIOR_AUTOCAST",
"shortName": "AUTOCAST"
},
{
"name": "DOTA_ABILITY_BEHAVIOR_BREAK_DISABLES",
"shortName": "BREAK_DISABLES"
},
{
"name": "DOTA_ABILITY_BEHAVIOR_CAN_SELF_CAST",
"shortName": "CAN_SELF_CAST"
Expand Down
22 changes: 22 additions & 0 deletions files/events.json
Original file line number Diff line number Diff line change
Expand Up @@ -2009,6 +2009,17 @@
}
]
},
{
"name": "dota_tower_deny",
"sourceFile": "game",
"local": false,
"fields": [
{
"name": "killer_userid",
"type": "EntityIndex"
}
]
},
{
"name": "dota_effigy_kill",
"sourceFile": "game",
Expand Down Expand Up @@ -2054,6 +2065,17 @@
}
]
},
{
"name": "dota_banner_planted",
"sourceFile": "game",
"local": false,
"fields": [
{
"name": "teamnumber",
"type": "short"
}
]
},
{
"name": "dota_courier_lost",
"sourceFile": "game",
Expand Down
9 changes: 8 additions & 1 deletion files/vscripts/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -18361,7 +18361,14 @@
"name": "OnDeathCompleted",
"available": "both",
"abstract": true,
"args": [],
"args": [
{
"name": "event",
"types": [
"ModifierInstanceEvent"
]
}
],
"returns": [
"nil"
]
Expand Down

0 comments on commit 967c901

Please sign in to comment.