Skip to content

Commit 64d6e1b

Browse files
committed
Format .ts files with Prettier v2
1 parent 0ceb5e5 commit 64d6e1b

2 files changed

Lines changed: 3 additions & 5 deletions

File tree

content/panorama/scripts/custom_game/manifest.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,5 @@ GameUI.SetDefaultUIEnabled(DotaDefaultUIElement_t.DOTA_DEFAULT_UI_FLYOUT_SCOREBO
66
GameUI.SetDefaultUIEnabled(DotaDefaultUIElement_t.DOTA_DEFAULT_UI_TOP_BAR_BACKGROUND, false);
77
GameUI.SetDefaultUIEnabled(DotaDefaultUIElement_t.DOTA_DEFAULT_UI_TOP_HEROES, false);
88

9-
const hudRoot = $.GetContextPanel()
10-
.GetParent()!
11-
.GetParent()!;
9+
const hudRoot = $.GetContextPanel().GetParent()!.GetParent()!;
1210
hudRoot.FindChildTraverse("quickstats")!.style.visibility = "collapse";

game/scripts/vscripts/lib/dota_ts_adapter.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ export const registerAbility = (name?: string) => (ability: new () => CDOTA_Abil
4545
toDotaClassInstance(env[name], ability);
4646

4747
const originalSpawn = env[name].Spawn;
48-
env[name].Spawn = function() {
48+
env[name].Spawn = function () {
4949
this.____constructor();
5050
if (originalSpawn) {
5151
originalSpawn.call(this);
@@ -73,7 +73,7 @@ export const registerModifier = (name?: string) => (modifier: new () => CDOTA_Mo
7373
toDotaClassInstance(env[name], modifier);
7474

7575
const originalOnCreated = env[name].OnCreated;
76-
env[name].OnCreated = function(parameters: any) {
76+
env[name].OnCreated = function (parameters: any) {
7777
this.____constructor();
7878
if (originalOnCreated) {
7979
originalOnCreated.call(this, parameters);

0 commit comments

Comments
 (0)