Skip to content

Commit

Permalink
Removing Fade.cs that only worked on PC
Browse files Browse the repository at this point in the history
  • Loading branch information
BenMcLean committed May 11, 2020
1 parent a452229 commit eabc492
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 67 deletions.
1 change: 0 additions & 1 deletion WOLF3D.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@
<Compile Include="WOLF3DGame\Assets.cs" />
<Compile Include="WOLF3DGame\Direction8.cs" />
<Compile Include="WOLF3DGame\ExtensionMethods.cs" />
<Compile Include="WOLF3DGame\Fade.cs" />
<Compile Include="WOLF3DGame\Line3D.cs" />
<Compile Include="WOLF3DGame\Main.cs" />
<Compile Include="WOLF3DGame\Menu\Crosshairs.cs" />
Expand Down
49 changes: 0 additions & 49 deletions WOLF3DGame/Fade.cs

This file was deleted.

17 changes: 0 additions & 17 deletions WOLF3DGame/Main.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,6 @@ public static Color Color
set => WorldEnvironment.Environment.BackgroundColor = value;
}

public static Fade Fade
{
get => fade;
set
{
fade?.GetParent()?.RemoveChild(fade);
fade = value;
if (fade != null)
I.GetViewport().CallDeferred("add_child", fade);
}
}
private static Fade fade = null;

public static ActionRoom ActionRoom { get; set; }
public static MenuRoom MenuRoom { get; set; }
public static Room Room
Expand All @@ -64,12 +51,9 @@ public static Room Room
if (I.room != null)
{
I.room.Exit();
Fade?.GetParent()?.RemoveChild(Fade);
I.RemoveChild(I.room);
}
I.AddChild(I.room = value);
if (Fade != null)
I.GetViewport().CallDeferred("add_child", Fade);
I.room.Enter();
}
}
Expand All @@ -92,7 +76,6 @@ public override void _Ready()
else
GD.Print("ARVRInterface failed to initialize!");

Fade = new Fade();
AddChild(SoundBlaster.OplPlayer);
Room = new SetupRoom();
}
Expand Down

0 comments on commit eabc492

Please sign in to comment.