Remove direct references to IOverlay.
I've removed it in the OpenGL branch due to being kinda a bad idea. Overlay as an abstract is a much better one.
This commit is contained in:
@@ -16,6 +16,7 @@ using SS14.Shared.IoC;
|
|||||||
using SS14.Shared.Log;
|
using SS14.Shared.Log;
|
||||||
using SS14.Shared.Utility;
|
using SS14.Shared.Utility;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using SS14.Client.Graphics.Overlays;
|
||||||
|
|
||||||
namespace Content.Client.GameObjects
|
namespace Content.Client.GameObjects
|
||||||
{
|
{
|
||||||
@@ -54,7 +55,7 @@ namespace Content.Client.GameObjects
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// Holds the screen effects that can be applied mapped ot their relevant overlay
|
/// Holds the screen effects that can be applied mapped ot their relevant overlay
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Dictionary<ScreenEffects, IOverlay> EffectsDictionary;
|
private Dictionary<ScreenEffects, Overlay> EffectsDictionary;
|
||||||
|
|
||||||
public override void OnRemove()
|
public override void OnRemove()
|
||||||
{
|
{
|
||||||
@@ -70,7 +71,7 @@ namespace Content.Client.GameObjects
|
|||||||
IoCManager.InjectDependencies(this);
|
IoCManager.InjectDependencies(this);
|
||||||
_window = new SpeciesWindow();
|
_window = new SpeciesWindow();
|
||||||
|
|
||||||
EffectsDictionary = new Dictionary<ScreenEffects, IOverlay>()
|
EffectsDictionary = new Dictionary<ScreenEffects, Overlay>()
|
||||||
{
|
{
|
||||||
{ ScreenEffects.CircleMask, new CircleMaskOverlay() },
|
{ ScreenEffects.CircleMask, new CircleMaskOverlay() },
|
||||||
{ ScreenEffects.GradientCircleMask, new GradientCircleMask() }
|
{ ScreenEffects.GradientCircleMask, new GradientCircleMask() }
|
||||||
|
|||||||
Reference in New Issue
Block a user