4d225c65f2
- Barotrauma's projects are in the Barotrauma directory - All libraries are in the Libraries directory - MonoGame is now managed by NuGet, rather than referenced from the installed files (TODO: consider using PCL for easier cross-platform development?) - NuGet libraries are not included in the repo, as getting the latest versions automatically should be preferred - Removed Content/effects.mgfx as it didn't seem to be used anywhere - Removed some references to Subsurface directory - Renamed Launcher2 to Launcher
48 lines
940 B
C#
48 lines
940 B
C#
using Microsoft.Xna.Framework;
|
|
using Microsoft.Xna.Framework.Graphics;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Barotrauma
|
|
{
|
|
partial class Screen
|
|
{
|
|
private static Screen selected;
|
|
|
|
public static Screen Selected
|
|
{
|
|
get { return selected; }
|
|
}
|
|
|
|
public static void SelectNull()
|
|
{
|
|
selected = null;
|
|
}
|
|
|
|
public virtual void Deselect()
|
|
{
|
|
}
|
|
|
|
public virtual void Select()
|
|
{
|
|
if (selected != null && selected != this)
|
|
{
|
|
selected.Deselect();
|
|
#if CLIENT
|
|
GUIComponent.KeyboardDispatcher.Subscriber = null;
|
|
#endif
|
|
}
|
|
selected = this;
|
|
}
|
|
|
|
public virtual Camera Cam
|
|
{
|
|
get { return null; }
|
|
}
|
|
|
|
public virtual void Update(double deltaTime)
|
|
{
|
|
}
|
|
}
|
|
}
|