* CEV-Eris SMES sprite as RSI. Has been modified so that the light overlay states use alpha blending. * Add tiny glow to SMES display sprite. * Appearances work v2 * More WiP * RoundToLevels works correctly on even level counts now. * SMES -> Smes because MS guidelines. * CEV-Eris APC sprite. * APC visuals. * Reduce SMES scale again to normal levels. * Update submodule
37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using Content.Shared.GameObjects;
|
|
using Content.Shared.GameObjects.Components.Power;
|
|
using SS14.Client.UserInterface.Controls;
|
|
using SS14.Client.UserInterface.CustomControls;
|
|
using SS14.Shared.GameObjects;
|
|
using SS14.Shared.Interfaces.GameObjects;
|
|
using SS14.Shared.Interfaces.Network;
|
|
|
|
namespace Content.Client.GameObjects.Components.Power
|
|
{
|
|
public class PowerDebugTool : SharedPowerDebugTool
|
|
{
|
|
SS14Window LastWindow;
|
|
public override void HandleMessage(ComponentMessage message, INetChannel netChannel = null, IComponent component = null)
|
|
{
|
|
base.HandleMessage(message, netChannel, component);
|
|
|
|
switch (message)
|
|
{
|
|
case OpenDataWindowMsg msg:
|
|
if (LastWindow != null && !LastWindow.Disposed)
|
|
{
|
|
LastWindow.Dispose();
|
|
}
|
|
LastWindow = new SS14Window
|
|
{
|
|
Title = "Power Debug Tool",
|
|
};
|
|
LastWindow.Contents.AddChild(new Label() { Text = msg.Data });
|
|
LastWindow.AddToScreen();
|
|
LastWindow.Open();
|
|
break;
|
|
}
|
|
}
|
|
}
|
|
}
|