Merge branch 'master' into 2020-03-03-g-g-g-g-g-g-g-g-ghooooosts
@@ -43,6 +43,7 @@ namespace Content.Client.Chat
|
|||||||
|
|
||||||
AnchorLeft = 1.0f;
|
AnchorLeft = 1.0f;
|
||||||
AnchorRight = 1.0f;*/
|
AnchorRight = 1.0f;*/
|
||||||
|
MouseFilter = MouseFilterMode.Stop;
|
||||||
|
|
||||||
var outerVBox = new VBoxContainer();
|
var outerVBox = new VBoxContainer();
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using Content.Client.Interfaces.Chat;
|
using Content.Client.Interfaces.Chat;
|
||||||
using Content.Shared.Chat;
|
using Content.Shared.Chat;
|
||||||
using Robust.Client.Console;
|
using Robust.Client.Console;
|
||||||
@@ -81,10 +81,7 @@ namespace Content.Client.Chat
|
|||||||
{
|
{
|
||||||
_netManager.RegisterNetMessage<MsgChatMessage>(MsgChatMessage.NAME, _onChatMessage);
|
_netManager.RegisterNetMessage<MsgChatMessage>(MsgChatMessage.NAME, _onChatMessage);
|
||||||
|
|
||||||
_speechBubbleRoot = new LayoutContainer
|
_speechBubbleRoot = new LayoutContainer();
|
||||||
{
|
|
||||||
MouseFilter = Control.MouseFilterMode.Ignore
|
|
||||||
};
|
|
||||||
LayoutContainer.SetAnchorPreset(_speechBubbleRoot, LayoutContainer.LayoutPreset.Wide);
|
LayoutContainer.SetAnchorPreset(_speechBubbleRoot, LayoutContainer.LayoutPreset.Wide);
|
||||||
_userInterfaceManager.StateRoot.AddChild(_speechBubbleRoot);
|
_userInterfaceManager.StateRoot.AddChild(_speechBubbleRoot);
|
||||||
_speechBubbleRoot.SetPositionFirst();
|
_speechBubbleRoot.SetPositionFirst();
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Content.Client.Interfaces.Chat;
|
using Content.Client.Interfaces.Chat;
|
||||||
using Robust.Client.Interfaces.Graphics.ClientEye;
|
using Robust.Client.Interfaces.Graphics.ClientEye;
|
||||||
using Robust.Client.UserInterface;
|
using Robust.Client.UserInterface;
|
||||||
using Robust.Client.UserInterface.Controls;
|
using Robust.Client.UserInterface.Controls;
|
||||||
@@ -44,14 +44,12 @@ namespace Content.Client.Chat
|
|||||||
_senderEntity = senderEntity;
|
_senderEntity = senderEntity;
|
||||||
_eyeManager = eyeManager;
|
_eyeManager = eyeManager;
|
||||||
|
|
||||||
MouseFilter = MouseFilterMode.Ignore;
|
|
||||||
// Use text clipping so new messages don't overlap old ones being pushed up.
|
// Use text clipping so new messages don't overlap old ones being pushed up.
|
||||||
RectClipContent = true;
|
RectClipContent = true;
|
||||||
|
|
||||||
var label = new RichTextLabel
|
var label = new RichTextLabel
|
||||||
{
|
{
|
||||||
MaxWidth = 256,
|
MaxWidth = 256,
|
||||||
MouseFilter = MouseFilterMode.Ignore
|
|
||||||
};
|
};
|
||||||
label.SetMessage(text);
|
label.SetMessage(text);
|
||||||
|
|
||||||
@@ -59,7 +57,6 @@ namespace Content.Client.Chat
|
|||||||
{
|
{
|
||||||
StyleClasses = { "tooltipBox" },
|
StyleClasses = { "tooltipBox" },
|
||||||
Children = { label },
|
Children = { label },
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
ModulateSelfOverride = Color.White.WithAlpha(0.75f)
|
ModulateSelfOverride = Color.White.WithAlpha(0.75f)
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -120,7 +120,6 @@ namespace Content.Client.GameObjects.Components.Doors
|
|||||||
{
|
{
|
||||||
animPlayer.Play(OpenAnimation, AnimationKey);
|
animPlayer.Play(OpenAnimation, AnimationKey);
|
||||||
}
|
}
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case DoorVisualState.Open:
|
case DoorVisualState.Open:
|
||||||
sprite.LayerSetState(DoorVisualLayers.Base, "open");
|
sprite.LayerSetState(DoorVisualLayers.Base, "open");
|
||||||
|
|||||||
@@ -0,0 +1,107 @@
|
|||||||
|
using System;
|
||||||
|
using Content.Shared.GameObjects.Components.Power;
|
||||||
|
using Robust.Client.Animations;
|
||||||
|
using Robust.Client.GameObjects;
|
||||||
|
using Robust.Client.GameObjects.Components.Animations;
|
||||||
|
using Robust.Client.Interfaces.GameObjects.Components;
|
||||||
|
using Robust.Shared.Interfaces.GameObjects;
|
||||||
|
using YamlDotNet.RepresentationModel;
|
||||||
|
|
||||||
|
namespace Content.Client.GameObjects.Components.Power
|
||||||
|
{
|
||||||
|
public class AutolatheVisualizer2D : AppearanceVisualizer
|
||||||
|
{
|
||||||
|
private const string AnimationKey = "autolathe_animation";
|
||||||
|
|
||||||
|
private Animation _buildingAnimation;
|
||||||
|
private Animation _insertingMetalAnimation;
|
||||||
|
private Animation _insertingGlassAnimation;
|
||||||
|
|
||||||
|
public override void LoadData(YamlMappingNode node)
|
||||||
|
{
|
||||||
|
base.LoadData(node);
|
||||||
|
|
||||||
|
_buildingAnimation = PopulateAnimation("autolathe_building", "autolathe_building_unlit", 0.5f);
|
||||||
|
_insertingMetalAnimation = PopulateAnimation("autolathe_inserting_metal_plate", "autolathe_inserting_unlit", 0.9f);
|
||||||
|
_insertingGlassAnimation = PopulateAnimation("autolathe_inserting_glass_plate", "autolathe_inserting_unlit", 0.9f);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Animation PopulateAnimation(string sprite, string spriteUnlit, float length)
|
||||||
|
{
|
||||||
|
var animation = new Animation {Length = TimeSpan.FromSeconds(length)};
|
||||||
|
|
||||||
|
var flick = new AnimationTrackSpriteFlick();
|
||||||
|
animation.AnimationTracks.Add(flick);
|
||||||
|
flick.LayerKey = AutolatheVisualLayers.Base;
|
||||||
|
flick.KeyFrames.Add(new AnimationTrackSpriteFlick.KeyFrame(sprite, 0f));
|
||||||
|
|
||||||
|
var flickUnlit = new AnimationTrackSpriteFlick();
|
||||||
|
animation.AnimationTracks.Add(flickUnlit);
|
||||||
|
flickUnlit.LayerKey = AutolatheVisualLayers.BaseUnlit;
|
||||||
|
flickUnlit.KeyFrames.Add(new AnimationTrackSpriteFlick.KeyFrame(spriteUnlit, 0f));
|
||||||
|
|
||||||
|
return animation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void InitializeEntity(IEntity entity)
|
||||||
|
{
|
||||||
|
if (!entity.HasComponent<AnimationPlayerComponent>())
|
||||||
|
{
|
||||||
|
entity.AddComponent<AnimationPlayerComponent>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnChangeData(AppearanceComponent component)
|
||||||
|
{
|
||||||
|
base.OnChangeData(component);
|
||||||
|
|
||||||
|
var sprite = component.Owner.GetComponent<ISpriteComponent>();
|
||||||
|
var animPlayer = component.Owner.GetComponent<AnimationPlayerComponent>();
|
||||||
|
if (!component.TryGetData(PowerDeviceVisuals.VisualState, out LatheVisualState state))
|
||||||
|
{
|
||||||
|
state = LatheVisualState.Idle;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (state)
|
||||||
|
{
|
||||||
|
case LatheVisualState.Idle:
|
||||||
|
if (animPlayer.HasRunningAnimation(AnimationKey))
|
||||||
|
{
|
||||||
|
animPlayer.Stop(AnimationKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
sprite.LayerSetState(AutolatheVisualLayers.Base, "autolathe");
|
||||||
|
sprite.LayerSetState(AutolatheVisualLayers.BaseUnlit, "autolathe_unlit");
|
||||||
|
break;
|
||||||
|
case LatheVisualState.Producing:
|
||||||
|
if (!animPlayer.HasRunningAnimation(AnimationKey))
|
||||||
|
{
|
||||||
|
animPlayer.Play(_buildingAnimation, AnimationKey);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case LatheVisualState.InsertingMetal:
|
||||||
|
if (!animPlayer.HasRunningAnimation(AnimationKey))
|
||||||
|
{
|
||||||
|
animPlayer.Play(_insertingMetalAnimation, AnimationKey);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case LatheVisualState.InsertingGlass:
|
||||||
|
if (!animPlayer.HasRunningAnimation(AnimationKey))
|
||||||
|
{
|
||||||
|
animPlayer.Play(_insertingGlassAnimation, AnimationKey);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
throw new ArgumentOutOfRangeException();
|
||||||
|
}
|
||||||
|
|
||||||
|
var glowingPartsVisible = !(component.TryGetData(PowerDeviceVisuals.Powered, out bool powered) && !powered);
|
||||||
|
sprite.LayerSetVisible(AutolatheVisualLayers.BaseUnlit, glowingPartsVisible);
|
||||||
|
}
|
||||||
|
public enum AutolatheVisualLayers
|
||||||
|
{
|
||||||
|
Base,
|
||||||
|
BaseUnlit
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,104 @@
|
|||||||
|
using System;
|
||||||
|
using Content.Shared.GameObjects.Components.Power;
|
||||||
|
using Robust.Client.Animations;
|
||||||
|
using Robust.Client.GameObjects;
|
||||||
|
using Robust.Client.GameObjects.Components.Animations;
|
||||||
|
using Robust.Client.Interfaces.GameObjects.Components;
|
||||||
|
using Robust.Shared.Interfaces.GameObjects;
|
||||||
|
using YamlDotNet.RepresentationModel;
|
||||||
|
|
||||||
|
namespace Content.Client.GameObjects.Components.Power
|
||||||
|
{
|
||||||
|
public class ProtolatheVisualizer2D : AppearanceVisualizer
|
||||||
|
{
|
||||||
|
private const string AnimationKey = "protolathe_animation";
|
||||||
|
|
||||||
|
private Animation _buildingAnimation;
|
||||||
|
private Animation _insertingMetalAnimation;
|
||||||
|
private Animation _insertingGlassAnimation;
|
||||||
|
|
||||||
|
public override void LoadData(YamlMappingNode node)
|
||||||
|
{
|
||||||
|
base.LoadData(node);
|
||||||
|
|
||||||
|
_buildingAnimation = PopulateAnimation("protolathe_building", 0.9f);
|
||||||
|
_insertingMetalAnimation = PopulateAnimation("protolathe_metal", 0.9f);
|
||||||
|
_insertingGlassAnimation = PopulateAnimation("protolathe_glass", 0.9f);
|
||||||
|
}
|
||||||
|
|
||||||
|
private Animation PopulateAnimation(string sprite, float length)
|
||||||
|
{
|
||||||
|
var animation = new Animation {Length = TimeSpan.FromSeconds(length)};
|
||||||
|
|
||||||
|
var flick = new AnimationTrackSpriteFlick();
|
||||||
|
animation.AnimationTracks.Add(flick);
|
||||||
|
flick.LayerKey = ProtolatheVisualLayers.AnimationLayer;
|
||||||
|
flick.KeyFrames.Add(new AnimationTrackSpriteFlick.KeyFrame(sprite, 0f));
|
||||||
|
|
||||||
|
return animation;
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void InitializeEntity(IEntity entity)
|
||||||
|
{
|
||||||
|
if (!entity.HasComponent<AnimationPlayerComponent>())
|
||||||
|
{
|
||||||
|
entity.AddComponent<AnimationPlayerComponent>();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
public override void OnChangeData(AppearanceComponent component)
|
||||||
|
{
|
||||||
|
base.OnChangeData(component);
|
||||||
|
|
||||||
|
var sprite = component.Owner.GetComponent<ISpriteComponent>();
|
||||||
|
var animPlayer = component.Owner.GetComponent<AnimationPlayerComponent>();
|
||||||
|
if (!component.TryGetData(PowerDeviceVisuals.VisualState, out LatheVisualState state))
|
||||||
|
{
|
||||||
|
state = LatheVisualState.Idle;
|
||||||
|
}
|
||||||
|
sprite.LayerSetVisible(ProtolatheVisualLayers.AnimationLayer, true);
|
||||||
|
switch (state)
|
||||||
|
{
|
||||||
|
case LatheVisualState.Idle:
|
||||||
|
if (animPlayer.HasRunningAnimation(AnimationKey))
|
||||||
|
{
|
||||||
|
animPlayer.Stop(AnimationKey);
|
||||||
|
}
|
||||||
|
|
||||||
|
sprite.LayerSetState(ProtolatheVisualLayers.Base, "protolathe");
|
||||||
|
sprite.LayerSetState(ProtolatheVisualLayers.BaseUnlit, "protolathe_unlit");
|
||||||
|
sprite.LayerSetVisible(ProtolatheVisualLayers.AnimationLayer, false);
|
||||||
|
break;
|
||||||
|
case LatheVisualState.Producing:
|
||||||
|
if (!animPlayer.HasRunningAnimation(AnimationKey))
|
||||||
|
{
|
||||||
|
animPlayer.Play(_buildingAnimation, AnimationKey);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case LatheVisualState.InsertingMetal:
|
||||||
|
if (!animPlayer.HasRunningAnimation(AnimationKey))
|
||||||
|
{
|
||||||
|
animPlayer.Play(_insertingMetalAnimation, AnimationKey);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case LatheVisualState.InsertingGlass:
|
||||||
|
if (!animPlayer.HasRunningAnimation(AnimationKey))
|
||||||
|
{
|
||||||
|
animPlayer.Play(_insertingGlassAnimation, AnimationKey);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
throw new ArgumentOutOfRangeException();
|
||||||
|
}
|
||||||
|
|
||||||
|
var glowingPartsVisible = !(component.TryGetData(PowerDeviceVisuals.Powered, out bool powered) && !powered);
|
||||||
|
sprite.LayerSetVisible(ProtolatheVisualLayers.BaseUnlit, glowingPartsVisible);
|
||||||
|
}
|
||||||
|
public enum ProtolatheVisualLayers
|
||||||
|
{
|
||||||
|
Base,
|
||||||
|
BaseUnlit,
|
||||||
|
AnimationLayer
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -242,23 +242,22 @@ namespace Content.Client.GameObjects.Components.Storage
|
|||||||
};
|
};
|
||||||
AddChild(ActualButton);
|
AddChild(ActualButton);
|
||||||
|
|
||||||
var hBoxContainer = new HBoxContainer {MouseFilter = MouseFilterMode.Ignore};
|
var hBoxContainer = new HBoxContainer();
|
||||||
EntitySpriteView = new SpriteView
|
EntitySpriteView = new SpriteView
|
||||||
{
|
{
|
||||||
CustomMinimumSize = new Vector2(32.0f, 32.0f), MouseFilter = MouseFilterMode.Ignore
|
CustomMinimumSize = new Vector2(32.0f, 32.0f)
|
||||||
};
|
};
|
||||||
EntityName = new Label
|
EntityName = new Label
|
||||||
{
|
{
|
||||||
SizeFlagsVertical = SizeFlags.ShrinkCenter,
|
SizeFlagsVertical = SizeFlags.ShrinkCenter,
|
||||||
Text = "Backpack",
|
Text = "Backpack",
|
||||||
MouseFilter = MouseFilterMode.Ignore
|
|
||||||
};
|
};
|
||||||
hBoxContainer.AddChild(EntitySpriteView);
|
hBoxContainer.AddChild(EntitySpriteView);
|
||||||
hBoxContainer.AddChild(EntityName);
|
hBoxContainer.AddChild(EntityName);
|
||||||
|
|
||||||
EntityControl = new Control
|
EntityControl = new Control
|
||||||
{
|
{
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand, MouseFilter = MouseFilterMode.Ignore
|
SizeFlagsHorizontal = SizeFlags.FillExpand
|
||||||
};
|
};
|
||||||
EntitySize = new Label
|
EntitySize = new Label
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ namespace Content.Client.GameObjects.EntitySystems
|
|||||||
|
|
||||||
DebugTools.AssertNotNull(_currentPopup);
|
DebugTools.AssertNotNull(_currentPopup);
|
||||||
|
|
||||||
var buttons = new List<Button>();
|
var buttons = new Dictionary<string, List<Button>>();
|
||||||
|
|
||||||
var vBox = _currentPopup.List;
|
var vBox = _currentPopup.List;
|
||||||
vBox.DisposeAllChildren();
|
vBox.DisposeAllChildren();
|
||||||
@@ -137,7 +137,10 @@ namespace Content.Client.GameObjects.EntitySystems
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
buttons.Add(button);
|
if(!buttons.ContainsKey(data.Category))
|
||||||
|
buttons[data.Category] = new List<Button>();
|
||||||
|
|
||||||
|
buttons[data.Category].Add(button);
|
||||||
}
|
}
|
||||||
|
|
||||||
var user = GetUserEntity();
|
var user = GetUserEntity();
|
||||||
@@ -148,7 +151,13 @@ namespace Content.Client.GameObjects.EntitySystems
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
var disabled = verb.GetVisibility(user, component) != VerbVisibility.Visible;
|
var disabled = verb.GetVisibility(user, component) != VerbVisibility.Visible;
|
||||||
buttons.Add(CreateVerbButton(verb.GetText(user, component), disabled, verb.ToString(),
|
var category = verb.GetCategory(user, component);
|
||||||
|
|
||||||
|
|
||||||
|
if(!buttons.ContainsKey(category))
|
||||||
|
buttons[category] = new List<Button>();
|
||||||
|
|
||||||
|
buttons[category].Add(CreateVerbButton(verb.GetText(user, component), disabled, verb.ToString(),
|
||||||
entity.ToString(), () => verb.Activate(user, component)));
|
entity.ToString(), () => verb.Activate(user, component)));
|
||||||
}
|
}
|
||||||
//Get global verbs. Visible for all entities regardless of their components.
|
//Get global verbs. Visible for all entities regardless of their components.
|
||||||
@@ -158,17 +167,33 @@ namespace Content.Client.GameObjects.EntitySystems
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
var disabled = globalVerb.GetVisibility(user, entity) != VerbVisibility.Visible;
|
var disabled = globalVerb.GetVisibility(user, entity) != VerbVisibility.Visible;
|
||||||
buttons.Add(CreateVerbButton(globalVerb.GetText(user, entity), disabled, globalVerb.ToString(),
|
var category = globalVerb.GetCategory(user, entity);
|
||||||
|
|
||||||
|
if(!buttons.ContainsKey(category))
|
||||||
|
buttons[category] = new List<Button>();
|
||||||
|
|
||||||
|
buttons[category].Add(CreateVerbButton(globalVerb.GetText(user, entity), disabled, globalVerb.ToString(),
|
||||||
entity.ToString(), () => globalVerb.Activate(user, entity)));
|
entity.ToString(), () => globalVerb.Activate(user, entity)));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buttons.Count > 0)
|
if (buttons.Count > 0)
|
||||||
{
|
{
|
||||||
buttons.Sort((a, b) => string.Compare(a.Text, b.Text, StringComparison.Ordinal));
|
foreach (var (category, verbs) in buttons)
|
||||||
|
|
||||||
foreach (var button in buttons)
|
|
||||||
{
|
{
|
||||||
vBox.AddChild(button);
|
if (string.IsNullOrEmpty(category))
|
||||||
|
continue;
|
||||||
|
|
||||||
|
vBox.AddChild(CreateCategoryButton(category, verbs));
|
||||||
|
}
|
||||||
|
|
||||||
|
if (buttons.ContainsKey(""))
|
||||||
|
{
|
||||||
|
buttons[""].Sort((a, b) => string.Compare(a.Text, b.Text, StringComparison.Ordinal));
|
||||||
|
|
||||||
|
foreach (var verb in buttons[""])
|
||||||
|
{
|
||||||
|
vBox.AddChild(verb);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -204,6 +229,25 @@ namespace Content.Client.GameObjects.EntitySystems
|
|||||||
return button;
|
return button;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private Button CreateCategoryButton(string text, List<Button> verbButtons)
|
||||||
|
{
|
||||||
|
verbButtons.Sort((a, b) => string.Compare(a.Text, b.Text, StringComparison.Ordinal));
|
||||||
|
|
||||||
|
var button = new Button
|
||||||
|
{
|
||||||
|
Text = $"{text}...",
|
||||||
|
};
|
||||||
|
button.OnPressed += _ =>
|
||||||
|
{
|
||||||
|
_currentPopup.List.DisposeAllChildren();
|
||||||
|
foreach (var verb in verbButtons)
|
||||||
|
{
|
||||||
|
_currentPopup.List.AddChild(verb);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return button;
|
||||||
|
}
|
||||||
|
|
||||||
private void CloseContextMenu()
|
private void CloseContextMenu()
|
||||||
{
|
{
|
||||||
_currentPopup?.Dispose();
|
_currentPopup?.Dispose();
|
||||||
|
|||||||
@@ -13,6 +13,8 @@ namespace Content.Client.GlobalVerbs
|
|||||||
class ViewVariablesVerb : GlobalVerb
|
class ViewVariablesVerb : GlobalVerb
|
||||||
{
|
{
|
||||||
public override string GetText(IEntity user, IEntity target) => "View variables";
|
public override string GetText(IEntity user, IEntity target) => "View variables";
|
||||||
|
public override string GetCategory(IEntity user, IEntity target) => "Debug";
|
||||||
|
|
||||||
public override bool RequireInteractionRange => false;
|
public override bool RequireInteractionRange => false;
|
||||||
|
|
||||||
public override VerbVisibility GetVisibility(IEntity user, IEntity target)
|
public override VerbVisibility GetVisibility(IEntity user, IEntity target)
|
||||||
|
|||||||
@@ -345,14 +345,12 @@ namespace Content.Client.UserInterface.Cargo
|
|||||||
|
|
||||||
var hBox = new HBoxContainer
|
var hBox = new HBoxContainer
|
||||||
{
|
{
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
SizeFlagsHorizontal = SizeFlags.FillExpand
|
||||||
MouseFilter = MouseFilterMode.Ignore
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Icon = new TextureRect
|
Icon = new TextureRect
|
||||||
{
|
{
|
||||||
CustomMinimumSize = new Vector2(32.0f, 32.0f),
|
CustomMinimumSize = new Vector2(32.0f, 32.0f),
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
RectClipContent = true
|
RectClipContent = true
|
||||||
};
|
};
|
||||||
hBox.AddChild(Icon);
|
hBox.AddChild(Icon);
|
||||||
@@ -366,7 +364,6 @@ namespace Content.Client.UserInterface.Cargo
|
|||||||
var panel = new PanelContainer
|
var panel = new PanelContainer
|
||||||
{
|
{
|
||||||
PanelOverride = new StyleBoxFlat { BackgroundColor = new Color(37, 37, 42) },
|
PanelOverride = new StyleBoxFlat { BackgroundColor = new Color(37, 37, 42) },
|
||||||
MouseFilter = MouseFilterMode.Ignore
|
|
||||||
};
|
};
|
||||||
PointCost = new Label
|
PointCost = new Label
|
||||||
{
|
{
|
||||||
@@ -396,13 +393,11 @@ namespace Content.Client.UserInterface.Cargo
|
|||||||
var hBox = new HBoxContainer
|
var hBox = new HBoxContainer
|
||||||
{
|
{
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
||||||
MouseFilter = MouseFilterMode.Ignore
|
|
||||||
};
|
};
|
||||||
|
|
||||||
Icon = new TextureRect
|
Icon = new TextureRect
|
||||||
{
|
{
|
||||||
CustomMinimumSize = new Vector2(32.0f, 32.0f),
|
CustomMinimumSize = new Vector2(32.0f, 32.0f),
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
RectClipContent = true
|
RectClipContent = true
|
||||||
};
|
};
|
||||||
hBox.AddChild(Icon);
|
hBox.AddChild(Icon);
|
||||||
|
|||||||
@@ -141,6 +141,7 @@ namespace Content.Client.UserInterface
|
|||||||
{
|
{
|
||||||
preferencesManager.CreateCharacter(HumanoidCharacterProfile.Default());
|
preferencesManager.CreateCharacter(HumanoidCharacterProfile.Default());
|
||||||
UpdateUI();
|
UpdateUI();
|
||||||
|
args.Event.Handle();
|
||||||
};
|
};
|
||||||
|
|
||||||
hBox.AddChild(new PanelContainer
|
hBox.AddChild(new PanelContainer
|
||||||
@@ -179,13 +180,14 @@ namespace Content.Client.UserInterface
|
|||||||
_charactersVBox.AddChild(characterPickerButton);
|
_charactersVBox.AddChild(characterPickerButton);
|
||||||
|
|
||||||
var characterIndexCopy = characterIndex;
|
var characterIndexCopy = characterIndex;
|
||||||
characterPickerButton.ActualButton.OnPressed += args =>
|
characterPickerButton.OnPressed += args =>
|
||||||
{
|
{
|
||||||
_humanoidProfileEditor.Profile = (HumanoidCharacterProfile) character;
|
_humanoidProfileEditor.Profile = (HumanoidCharacterProfile) character;
|
||||||
_humanoidProfileEditor.CharacterSlot = characterIndexCopy;
|
_humanoidProfileEditor.CharacterSlot = characterIndexCopy;
|
||||||
_humanoidProfileEditor.UpdateControls();
|
_humanoidProfileEditor.UpdateControls();
|
||||||
_preferencesManager.SelectCharacter(character);
|
_preferencesManager.SelectCharacter(character);
|
||||||
UpdateUI();
|
UpdateUI();
|
||||||
|
args.Event.Handle();
|
||||||
};
|
};
|
||||||
characterIndex++;
|
characterIndex++;
|
||||||
}
|
}
|
||||||
@@ -195,9 +197,8 @@ namespace Content.Client.UserInterface
|
|||||||
_charactersVBox.AddChild(_createNewCharacterButton);
|
_charactersVBox.AddChild(_createNewCharacterButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class CharacterPickerButton : Control
|
private class CharacterPickerButton : ContainerButton
|
||||||
{
|
{
|
||||||
public readonly Button ActualButton;
|
|
||||||
private IEntity _previewDummy;
|
private IEntity _previewDummy;
|
||||||
|
|
||||||
public CharacterPickerButton(
|
public CharacterPickerButton(
|
||||||
@@ -206,6 +207,10 @@ namespace Content.Client.UserInterface
|
|||||||
ButtonGroup group,
|
ButtonGroup group,
|
||||||
ICharacterProfile profile)
|
ICharacterProfile profile)
|
||||||
{
|
{
|
||||||
|
AddStyleClass(StyleClassButton);
|
||||||
|
ToggleMode = true;
|
||||||
|
Group = group;
|
||||||
|
|
||||||
_previewDummy = entityManager.SpawnEntity("HumanMob_Dummy", MapCoordinates.Nullspace);
|
_previewDummy = entityManager.SpawnEntity("HumanMob_Dummy", MapCoordinates.Nullspace);
|
||||||
_previewDummy.GetComponent<HumanoidAppearanceComponent>().UpdateFromProfile(profile);
|
_previewDummy.GetComponent<HumanoidAppearanceComponent>().UpdateFromProfile(profile);
|
||||||
var humanoid = profile as HumanoidCharacterProfile;
|
var humanoid = profile as HumanoidCharacterProfile;
|
||||||
@@ -216,22 +221,13 @@ namespace Content.Client.UserInterface
|
|||||||
|
|
||||||
var isSelectedCharacter = profile == preferencesManager.Preferences.SelectedCharacter;
|
var isSelectedCharacter = profile == preferencesManager.Preferences.SelectedCharacter;
|
||||||
|
|
||||||
ActualButton = new Button
|
|
||||||
{
|
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
|
||||||
SizeFlagsVertical = SizeFlags.FillExpand,
|
|
||||||
ToggleMode = true,
|
|
||||||
Group = group
|
|
||||||
};
|
|
||||||
if (isSelectedCharacter)
|
if (isSelectedCharacter)
|
||||||
ActualButton.Pressed = true;
|
Pressed = true;
|
||||||
AddChild(ActualButton);
|
|
||||||
|
|
||||||
var view = new SpriteView
|
var view = new SpriteView
|
||||||
{
|
{
|
||||||
Sprite = _previewDummy.GetComponent<SpriteComponent>(),
|
Sprite = _previewDummy.GetComponent<SpriteComponent>(),
|
||||||
Scale = (2, 2),
|
Scale = (2, 2),
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
OverrideDirection = Direction.South
|
OverrideDirection = Direction.South
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -264,7 +260,6 @@ namespace Content.Client.UserInterface
|
|||||||
var internalHBox = new HBoxContainer
|
var internalHBox = new HBoxContainer
|
||||||
{
|
{
|
||||||
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
SeparationOverride = 0,
|
SeparationOverride = 0,
|
||||||
Children =
|
Children =
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -107,7 +107,7 @@ namespace Content.Client.UserInterface
|
|||||||
|
|
||||||
public void Initialize()
|
public void Initialize()
|
||||||
{
|
{
|
||||||
RootControl = new LayoutContainer {MouseFilter = Control.MouseFilterMode.Ignore};
|
RootControl = new LayoutContainer();
|
||||||
LayoutContainer.SetAnchorPreset(RootControl, LayoutContainer.LayoutPreset.Wide);
|
LayoutContainer.SetAnchorPreset(RootControl, LayoutContainer.LayoutPreset.Wide);
|
||||||
|
|
||||||
var escapeTexture = _resourceCache.GetTexture("/Textures/UserInterface/hamburger.svg.96dpi.png");
|
var escapeTexture = _resourceCache.GetTexture("/Textures/UserInterface/hamburger.svg.96dpi.png");
|
||||||
@@ -237,7 +237,6 @@ namespace Content.Client.UserInterface
|
|||||||
|
|
||||||
HandsContainer = new MarginContainer
|
HandsContainer = new MarginContainer
|
||||||
{
|
{
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
SizeFlagsVertical = Control.SizeFlags.ShrinkEnd
|
SizeFlagsVertical = Control.SizeFlags.ShrinkEnd
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -353,13 +352,11 @@ namespace Content.Client.UserInterface
|
|||||||
|
|
||||||
AddChild(new MarginContainer
|
AddChild(new MarginContainer
|
||||||
{
|
{
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
MarginTopOverride = 4,
|
MarginTopOverride = 4,
|
||||||
Children =
|
Children =
|
||||||
{
|
{
|
||||||
new VBoxContainer
|
new VBoxContainer
|
||||||
{
|
{
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
Children =
|
Children =
|
||||||
{
|
{
|
||||||
(_textureRect = new TextureRect
|
(_textureRect = new TextureRect
|
||||||
@@ -367,7 +364,6 @@ namespace Content.Client.UserInterface
|
|||||||
Texture = texture,
|
Texture = texture,
|
||||||
SizeFlagsHorizontal = SizeFlags.ShrinkCenter,
|
SizeFlagsHorizontal = SizeFlags.ShrinkCenter,
|
||||||
SizeFlagsVertical = SizeFlags.Expand | SizeFlags.ShrinkCenter,
|
SizeFlagsVertical = SizeFlags.Expand | SizeFlags.ShrinkCenter,
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
ModulateSelfOverride = ColorNormal,
|
ModulateSelfOverride = ColorNormal,
|
||||||
CustomMinimumSize = (0, 32),
|
CustomMinimumSize = (0, 32),
|
||||||
Stretch = TextureRect.StretchMode.KeepCentered
|
Stretch = TextureRect.StretchMode.KeepCentered
|
||||||
@@ -376,7 +372,6 @@ namespace Content.Client.UserInterface
|
|||||||
{
|
{
|
||||||
Text = keyName,
|
Text = keyName,
|
||||||
SizeFlagsHorizontal = SizeFlags.ShrinkCenter,
|
SizeFlagsHorizontal = SizeFlags.ShrinkCenter,
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
ModulateSelfOverride = ColorNormal,
|
ModulateSelfOverride = ColorNormal,
|
||||||
StyleClasses = {StyleClassLabelTopButton}
|
StyleClasses = {StyleClassLabelTopButton}
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -39,8 +39,6 @@ namespace Content.Client.UserInterface
|
|||||||
{
|
{
|
||||||
IoCManager.InjectDependencies(this);
|
IoCManager.InjectDependencies(this);
|
||||||
|
|
||||||
MouseFilter = MouseFilterMode.Ignore;
|
|
||||||
|
|
||||||
var textureHandLeft = _resourceCache.GetTexture("/Textures/UserInterface/Inventory/hand_l.png");
|
var textureHandLeft = _resourceCache.GetTexture("/Textures/UserInterface/Inventory/hand_l.png");
|
||||||
var textureHandRight = _resourceCache.GetTexture("/Textures/UserInterface/Inventory/hand_r.png");
|
var textureHandRight = _resourceCache.GetTexture("/Textures/UserInterface/Inventory/hand_r.png");
|
||||||
var textureHandActive = _resourceCache.GetTexture("/Textures/UserInterface/Inventory/hand_active.png");
|
var textureHandActive = _resourceCache.GetTexture("/Textures/UserInterface/Inventory/hand_active.png");
|
||||||
@@ -54,8 +52,7 @@ namespace Content.Client.UserInterface
|
|||||||
var hBox = new HBoxContainer
|
var hBox = new HBoxContainer
|
||||||
{
|
{
|
||||||
SeparationOverride = 0,
|
SeparationOverride = 0,
|
||||||
Children = {_rightStatusPanel, _rightButton, _leftButton, _leftStatusPanel},
|
Children = {_rightStatusPanel, _rightButton, _leftButton, _leftStatusPanel}
|
||||||
MouseFilter = MouseFilterMode.Ignore
|
|
||||||
};
|
};
|
||||||
|
|
||||||
AddChild(hBox);
|
AddChild(hBox);
|
||||||
@@ -68,7 +65,6 @@ namespace Content.Client.UserInterface
|
|||||||
// Active hand
|
// Active hand
|
||||||
_leftButton.AddChild(ActiveHandRect = new TextureRect
|
_leftButton.AddChild(ActiveHandRect = new TextureRect
|
||||||
{
|
{
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
Texture = textureHandActive,
|
Texture = textureHandActive,
|
||||||
TextureScale = (2, 2)
|
TextureScale = (2, 2)
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -31,7 +31,6 @@ namespace Content.Client.GameObjects
|
|||||||
|
|
||||||
AddChild(SpriteView = new SpriteView
|
AddChild(SpriteView = new SpriteView
|
||||||
{
|
{
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
Scale = (2, 2),
|
Scale = (2, 2),
|
||||||
OverrideDirection = Direction.South
|
OverrideDirection = Direction.South
|
||||||
});
|
});
|
||||||
@@ -52,7 +51,6 @@ namespace Content.Client.GameObjects
|
|||||||
{
|
{
|
||||||
SizeFlagsHorizontal = SizeFlags.ShrinkCenter,
|
SizeFlagsHorizontal = SizeFlags.ShrinkCenter,
|
||||||
SizeFlagsVertical = SizeFlags.ShrinkCenter,
|
SizeFlagsVertical = SizeFlags.ShrinkCenter,
|
||||||
MouseFilter = MouseFilterMode.Ignore,
|
|
||||||
Stretch = TextureRect.StretchMode.KeepCentered,
|
Stretch = TextureRect.StretchMode.KeepCentered,
|
||||||
TextureScale = (2, 2),
|
TextureScale = (2, 2),
|
||||||
Visible = false,
|
Visible = false,
|
||||||
|
|||||||
@@ -307,19 +307,19 @@ namespace Content.Client.UserInterface
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
// Regular buttons!
|
// Regular buttons!
|
||||||
new StyleRule(new SelectorElement(typeof(Button), null, null, new[] {ContainerButton.StylePseudoClassNormal}), new[]
|
new StyleRule(new SelectorElement(typeof(ContainerButton), new[] { ContainerButton.StyleClassButton }, null, new[] {ContainerButton.StylePseudoClassNormal}), new[]
|
||||||
{
|
{
|
||||||
new StyleProperty(ContainerButton.StylePropertyStyleBox, buttonNormal),
|
new StyleProperty(ContainerButton.StylePropertyStyleBox, buttonNormal),
|
||||||
}),
|
}),
|
||||||
new StyleRule(new SelectorElement(typeof(Button), null, null, new[] {ContainerButton.StylePseudoClassHover}), new[]
|
new StyleRule(new SelectorElement(typeof(ContainerButton), new[] { ContainerButton.StyleClassButton }, null, new[] {ContainerButton.StylePseudoClassHover}), new[]
|
||||||
{
|
{
|
||||||
new StyleProperty(ContainerButton.StylePropertyStyleBox, buttonHover),
|
new StyleProperty(ContainerButton.StylePropertyStyleBox, buttonHover),
|
||||||
}),
|
}),
|
||||||
new StyleRule(new SelectorElement(typeof(Button), null, null, new[] {ContainerButton.StylePseudoClassPressed}), new[]
|
new StyleRule(new SelectorElement(typeof(ContainerButton), new[] { ContainerButton.StyleClassButton }, null, new[] {ContainerButton.StylePseudoClassPressed}), new[]
|
||||||
{
|
{
|
||||||
new StyleProperty(ContainerButton.StylePropertyStyleBox, buttonPressed),
|
new StyleProperty(ContainerButton.StylePropertyStyleBox, buttonPressed),
|
||||||
}),
|
}),
|
||||||
new StyleRule(new SelectorElement(typeof(Button), null, null, new[] {ContainerButton.StylePseudoClassDisabled}), new[]
|
new StyleRule(new SelectorElement(typeof(ContainerButton), new[] { ContainerButton.StyleClassButton }, null, new[] {ContainerButton.StylePseudoClassDisabled}), new[]
|
||||||
{
|
{
|
||||||
new StyleProperty(ContainerButton.StylePropertyStyleBox, buttonDisabled),
|
new StyleProperty(ContainerButton.StylePropertyStyleBox, buttonDisabled),
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
using Robust.Client.UserInterface;
|
using Robust.Client.UserInterface;
|
||||||
using Robust.Client.UserInterface.Controls;
|
using Robust.Client.UserInterface.Controls;
|
||||||
|
|
||||||
namespace Content.Client.UserInterface
|
namespace Content.Client.UserInterface
|
||||||
@@ -14,7 +14,6 @@ namespace Content.Client.UserInterface
|
|||||||
public StatusEffectsUI()
|
public StatusEffectsUI()
|
||||||
{
|
{
|
||||||
_vBox = new VBoxContainer();
|
_vBox = new VBoxContainer();
|
||||||
MouseFilter = Control.MouseFilterMode.Ignore;
|
|
||||||
AddChild(_vBox);
|
AddChild(_vBox);
|
||||||
|
|
||||||
LayoutContainer.SetGrowHorizontal(this, LayoutContainer.GrowDirection.Begin);
|
LayoutContainer.SetGrowHorizontal(this, LayoutContainer.GrowDirection.Begin);
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ namespace Content.Server.GameObjects.Components.Chemistry
|
|||||||
if (SolutionValidReaction(reaction, out int unitReactions))
|
if (SolutionValidReaction(reaction, out int unitReactions))
|
||||||
{
|
{
|
||||||
PerformReaction(reaction, unitReactions);
|
PerformReaction(reaction, unitReactions);
|
||||||
checkForNewReaction = true;
|
checkForNewReaction = true;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using System.Collections.Generic;
|
|||||||
using Content.Server.GameObjects.Components.Interactable.Tools;
|
using Content.Server.GameObjects.Components.Interactable.Tools;
|
||||||
using Content.Server.GameObjects.Components.Stack;
|
using Content.Server.GameObjects.Components.Stack;
|
||||||
using Content.Server.GameObjects.EntitySystems;
|
using Content.Server.GameObjects.EntitySystems;
|
||||||
|
using Content.Server.Interfaces;
|
||||||
using Content.Shared.Construction;
|
using Content.Shared.Construction;
|
||||||
using Robust.Server.GameObjects;
|
using Robust.Server.GameObjects;
|
||||||
using Robust.Server.GameObjects.EntitySystems;
|
using Robust.Server.GameObjects.EntitySystems;
|
||||||
@@ -12,6 +13,7 @@ using Robust.Shared.Interfaces.GameObjects;
|
|||||||
using Robust.Shared.Interfaces.GameObjects.Components;
|
using Robust.Shared.Interfaces.GameObjects.Components;
|
||||||
using Robust.Shared.Interfaces.Random;
|
using Robust.Shared.Interfaces.Random;
|
||||||
using Robust.Shared.IoC;
|
using Robust.Shared.IoC;
|
||||||
|
using Robust.Shared.Localization;
|
||||||
using Robust.Shared.Map;
|
using Robust.Shared.Map;
|
||||||
using Robust.Shared.ViewVariables;
|
using Robust.Shared.ViewVariables;
|
||||||
using static Content.Shared.Construction.ConstructionStepMaterial;
|
using static Content.Shared.Construction.ConstructionStepMaterial;
|
||||||
@@ -34,6 +36,8 @@ namespace Content.Server.GameObjects.Components.Construction
|
|||||||
#pragma warning disable 649
|
#pragma warning disable 649
|
||||||
[Dependency] private IRobustRandom _random;
|
[Dependency] private IRobustRandom _random;
|
||||||
[Dependency] private readonly IEntitySystemManager _entitySystemManager;
|
[Dependency] private readonly IEntitySystemManager _entitySystemManager;
|
||||||
|
[Dependency] private readonly IServerNotifyManager _notifyManager;
|
||||||
|
[Dependency] private readonly ILocalizationManager _localizationManager;
|
||||||
#pragma warning restore 649
|
#pragma warning restore 649
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
@@ -49,8 +53,10 @@ namespace Content.Server.GameObjects.Components.Construction
|
|||||||
{
|
{
|
||||||
var playerEntity = eventArgs.User;
|
var playerEntity = eventArgs.User;
|
||||||
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
|
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
|
||||||
if (!interactionSystem.InRangeUnobstructed(playerEntity.Transform.MapPosition, Owner.Transform.WorldPosition, ignoredEnt: Owner, insideBlockerValid: true))
|
if (!interactionSystem.InRangeUnobstructed(playerEntity.Transform.MapPosition, Owner.Transform.WorldPosition, ignoredEnt: Owner, insideBlockerValid: Prototype.CanBuildInImpassable))
|
||||||
{
|
{
|
||||||
|
_notifyManager.PopupMessage(Owner.Transform.GridPosition, playerEntity,
|
||||||
|
_localizationManager.GetString("You can't reach there!"));
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -3,6 +3,7 @@ using Content.Server.GameObjects.Components.Stack;
|
|||||||
using Content.Server.GameObjects.EntitySystems;
|
using Content.Server.GameObjects.EntitySystems;
|
||||||
using Content.Shared.Construction;
|
using Content.Shared.Construction;
|
||||||
using Content.Shared.GameObjects.Components.Construction;
|
using Content.Shared.GameObjects.Components.Construction;
|
||||||
|
using Content.Shared.Interfaces;
|
||||||
using Robust.Server.GameObjects.EntitySystems;
|
using Robust.Server.GameObjects.EntitySystems;
|
||||||
using Robust.Server.Interfaces.GameObjects;
|
using Robust.Server.Interfaces.GameObjects;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
@@ -10,6 +11,7 @@ using Robust.Shared.Interfaces.GameObjects;
|
|||||||
using Robust.Shared.Interfaces.Map;
|
using Robust.Shared.Interfaces.Map;
|
||||||
using Robust.Shared.Interfaces.Network;
|
using Robust.Shared.Interfaces.Network;
|
||||||
using Robust.Shared.IoC;
|
using Robust.Shared.IoC;
|
||||||
|
using Robust.Shared.Localization;
|
||||||
using Robust.Shared.Map;
|
using Robust.Shared.Map;
|
||||||
using Robust.Shared.Maths;
|
using Robust.Shared.Maths;
|
||||||
using Robust.Shared.Prototypes;
|
using Robust.Shared.Prototypes;
|
||||||
@@ -24,6 +26,8 @@ namespace Content.Server.GameObjects.Components.Construction
|
|||||||
[Dependency] private readonly IMapManager _mapManager;
|
[Dependency] private readonly IMapManager _mapManager;
|
||||||
[Dependency] private readonly IServerEntityManager _serverEntityManager;
|
[Dependency] private readonly IServerEntityManager _serverEntityManager;
|
||||||
[Dependency] private readonly IEntitySystemManager _entitySystemManager;
|
[Dependency] private readonly IEntitySystemManager _entitySystemManager;
|
||||||
|
[Dependency] private readonly ISharedNotifyManager _notifyManager;
|
||||||
|
[Dependency] private readonly ILocalizationManager _localizationManager;
|
||||||
#pragma warning restore 649
|
#pragma warning restore 649
|
||||||
|
|
||||||
public override void HandleMessage(ComponentMessage message, INetChannel netChannel = null, IComponent component = null)
|
public override void HandleMessage(ComponentMessage message, INetChannel netChannel = null, IComponent component = null)
|
||||||
@@ -44,8 +48,10 @@ namespace Content.Server.GameObjects.Components.Construction
|
|||||||
var transform = Owner.Transform;
|
var transform = Owner.Transform;
|
||||||
|
|
||||||
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
|
var interactionSystem = _entitySystemManager.GetEntitySystem<InteractionSystem>();
|
||||||
if (!interactionSystem.InRangeUnobstructed(loc.ToMap(_mapManager), Owner.Transform.WorldPosition, ignoredEnt: Owner, insideBlockerValid: true))
|
if (!interactionSystem.InRangeUnobstructed(loc.ToMap(_mapManager), Owner.Transform.WorldPosition, ignoredEnt: Owner, insideBlockerValid: prototype.CanBuildInImpassable))
|
||||||
{
|
{
|
||||||
|
_notifyManager.PopupMessage(transform.GridPosition, Owner,
|
||||||
|
_localizationManager.GetString("You can't reach there!"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -104,12 +104,6 @@ namespace Content.Server.GameObjects.Components.Movement
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
[ViewVariables] public bool DiagonalMovementEnabled => _configurationManager.GetCVar<bool>("game.diagonalmovement");
|
[ViewVariables] public bool DiagonalMovementEnabled => _configurationManager.GetCVar<bool>("game.diagonalmovement");
|
||||||
|
|
||||||
public override void Initialize()
|
|
||||||
{
|
|
||||||
base.Initialize();
|
|
||||||
_configurationManager.RegisterCVar("game.diagonalmovement", true, CVar.ARCHIVE);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public override void OnAdd()
|
public override void OnAdd()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1,18 +1,22 @@
|
|||||||
// Only unused on .NET Core due to KeyValuePair.Deconstruct
|
// Only unused on .NET Core due to KeyValuePair.Deconstruct
|
||||||
// ReSharper disable once RedundantUsingDirective
|
// ReSharper disable once RedundantUsingDirective
|
||||||
|
|
||||||
|
using System;
|
||||||
using Robust.Shared.Utility;
|
using Robust.Shared.Utility;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
using Content.Server.GameObjects.Components.Power;
|
using Content.Server.GameObjects.Components.Power;
|
||||||
using Content.Server.GameObjects.Components.Stack;
|
using Content.Server.GameObjects.Components.Stack;
|
||||||
using Content.Server.GameObjects.EntitySystems;
|
using Content.Server.GameObjects.EntitySystems;
|
||||||
using Content.Shared.GameObjects.Components.Materials;
|
using Content.Shared.GameObjects.Components.Materials;
|
||||||
|
using Content.Shared.GameObjects.Components.Power;
|
||||||
using Content.Shared.GameObjects.Components.Research;
|
using Content.Shared.GameObjects.Components.Research;
|
||||||
using Content.Shared.Research;
|
using Content.Shared.Research;
|
||||||
|
using Robust.Server.GameObjects;
|
||||||
using Robust.Server.GameObjects.Components.UserInterface;
|
using Robust.Server.GameObjects.Components.UserInterface;
|
||||||
using Robust.Server.Interfaces.GameObjects;
|
using Robust.Server.Interfaces.GameObjects;
|
||||||
using Robust.Server.Interfaces.Player;
|
using Robust.Server.Interfaces.Player;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.Map;
|
|
||||||
using Robust.Shared.Timers;
|
using Robust.Shared.Timers;
|
||||||
using Robust.Shared.ViewVariables;
|
using Robust.Shared.ViewVariables;
|
||||||
|
|
||||||
@@ -32,16 +36,28 @@ namespace Content.Server.GameObjects.Components.Research
|
|||||||
[ViewVariables]
|
[ViewVariables]
|
||||||
public bool Producing { get; private set; } = false;
|
public bool Producing { get; private set; } = false;
|
||||||
|
|
||||||
|
private AppearanceComponent _appearance;
|
||||||
|
private LatheState _state = LatheState.Base;
|
||||||
|
|
||||||
|
protected virtual LatheState State
|
||||||
|
{
|
||||||
|
get => _state;
|
||||||
|
set => _state = value;
|
||||||
|
}
|
||||||
|
|
||||||
private LatheRecipePrototype _producingRecipe = null;
|
private LatheRecipePrototype _producingRecipe = null;
|
||||||
private PowerDeviceComponent _powerDevice;
|
private PowerDeviceComponent _powerDevice;
|
||||||
private bool Powered => _powerDevice.Powered;
|
private bool Powered => _powerDevice.Powered;
|
||||||
|
|
||||||
|
private static readonly TimeSpan InsertionTime = TimeSpan.FromSeconds(0.9f);
|
||||||
|
|
||||||
public override void Initialize()
|
public override void Initialize()
|
||||||
{
|
{
|
||||||
base.Initialize();
|
base.Initialize();
|
||||||
_userInterface = Owner.GetComponent<ServerUserInterfaceComponent>().GetBoundUserInterface(LatheUiKey.Key);
|
_userInterface = Owner.GetComponent<ServerUserInterfaceComponent>().GetBoundUserInterface(LatheUiKey.Key);
|
||||||
_userInterface.OnReceiveMessage += UserInterfaceOnOnReceiveMessage;
|
_userInterface.OnReceiveMessage += UserInterfaceOnOnReceiveMessage;
|
||||||
_powerDevice = Owner.GetComponent<PowerDeviceComponent>();
|
_powerDevice = Owner.GetComponent<PowerDeviceComponent>();
|
||||||
|
_appearance = Owner.GetComponent<AppearanceComponent>();
|
||||||
}
|
}
|
||||||
|
|
||||||
private void UserInterfaceOnOnReceiveMessage(ServerBoundUserInterfaceMessage message)
|
private void UserInterfaceOnOnReceiveMessage(ServerBoundUserInterfaceMessage message)
|
||||||
@@ -100,12 +116,17 @@ namespace Content.Server.GameObjects.Components.Research
|
|||||||
|
|
||||||
_userInterface.SendMessage(new LatheProducingRecipeMessage(recipe.ID));
|
_userInterface.SendMessage(new LatheProducingRecipeMessage(recipe.ID));
|
||||||
|
|
||||||
|
State = LatheState.Producing;
|
||||||
|
SetAppearance(LatheVisualState.Producing);
|
||||||
|
|
||||||
Timer.Spawn(recipe.CompleteTime, () =>
|
Timer.Spawn(recipe.CompleteTime, () =>
|
||||||
{
|
{
|
||||||
Producing = false;
|
Producing = false;
|
||||||
_producingRecipe = null;
|
_producingRecipe = null;
|
||||||
Owner.EntityManager.SpawnEntity(recipe.Result, Owner.Transform.GridPosition);
|
Owner.EntityManager.SpawnEntity(recipe.Result, Owner.Transform.GridPosition);
|
||||||
_userInterface.SendMessage(new LatheStoppedProducingRecipeMessage());
|
_userInterface.SendMessage(new LatheStoppedProducingRecipeMessage());
|
||||||
|
State = LatheState.Base;
|
||||||
|
SetAppearance(LatheVisualState.Idle);
|
||||||
});
|
});
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
@@ -125,7 +146,6 @@ namespace Content.Server.GameObjects.Components.Research
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
OpenUserInterface(actor.playerSession);
|
OpenUserInterface(actor.playerSession);
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
bool IAttackBy.AttackBy(AttackByEventArgs eventArgs)
|
bool IAttackBy.AttackBy(AttackByEventArgs eventArgs)
|
||||||
{
|
{
|
||||||
@@ -151,15 +171,37 @@ namespace Content.Server.GameObjects.Components.Research
|
|||||||
|
|
||||||
foreach (var mat in material.MaterialTypes.Values)
|
foreach (var mat in material.MaterialTypes.Values)
|
||||||
{
|
{
|
||||||
|
|
||||||
storage.InsertMaterial(mat.ID, VolumePerSheet * multiplier);
|
storage.InsertMaterial(mat.ID, VolumePerSheet * multiplier);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
State = LatheState.Inserting;
|
||||||
|
switch (material.MaterialTypes.Values.First().Name)
|
||||||
|
{
|
||||||
|
case "Steel":
|
||||||
|
SetAppearance(LatheVisualState.InsertingMetal);
|
||||||
|
break;
|
||||||
|
case "Glass":
|
||||||
|
SetAppearance(LatheVisualState.InsertingGlass);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
Timer.Spawn(InsertionTime, async () =>
|
||||||
|
{
|
||||||
|
State = LatheState.Base;
|
||||||
|
SetAppearance(LatheVisualState.Idle);
|
||||||
|
});
|
||||||
|
|
||||||
eventArgs.AttackWith.Delete();
|
eventArgs.AttackWith.Delete();
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void SetAppearance(LatheVisualState state)
|
||||||
|
{
|
||||||
|
if (_appearance != null || Owner.TryGetComponent(out _appearance))
|
||||||
|
_appearance.SetData(PowerDeviceVisuals.VisualState, state);
|
||||||
|
}
|
||||||
|
|
||||||
private Queue<string> GetIDQueue()
|
private Queue<string> GetIDQueue()
|
||||||
{
|
{
|
||||||
var queue = new Queue<string>();
|
var queue = new Queue<string>();
|
||||||
@@ -170,5 +212,12 @@ namespace Content.Server.GameObjects.Components.Research
|
|||||||
|
|
||||||
return queue;
|
return queue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected enum LatheState
|
||||||
|
{
|
||||||
|
Base,
|
||||||
|
Inserting,
|
||||||
|
Producing
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -40,6 +40,8 @@ namespace Content.Server.GameObjects.Components
|
|||||||
return "Rotate clockwise";
|
return "Rotate clockwise";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override string GetCategory(IEntity user, RotatableComponent component) => "Rotate";
|
||||||
|
|
||||||
protected override VerbVisibility GetVisibility(IEntity user, RotatableComponent component)
|
protected override VerbVisibility GetVisibility(IEntity user, RotatableComponent component)
|
||||||
{
|
{
|
||||||
return VerbVisibility.Visible;
|
return VerbVisibility.Visible;
|
||||||
@@ -59,6 +61,8 @@ namespace Content.Server.GameObjects.Components
|
|||||||
return "Rotate counter-clockwise";
|
return "Rotate counter-clockwise";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected override string GetCategory(IEntity user, RotatableComponent component) => "Rotate";
|
||||||
|
|
||||||
protected override VerbVisibility GetVisibility(IEntity user, RotatableComponent component)
|
protected override VerbVisibility GetVisibility(IEntity user, RotatableComponent component)
|
||||||
{
|
{
|
||||||
return VerbVisibility.Visible;
|
return VerbVisibility.Visible;
|
||||||
|
|||||||
@@ -11,10 +11,12 @@ using Robust.Server.GameObjects;
|
|||||||
using Robust.Server.GameObjects.EntitySystems;
|
using Robust.Server.GameObjects.EntitySystems;
|
||||||
using Robust.Server.Interfaces.Player;
|
using Robust.Server.Interfaces.Player;
|
||||||
using Robust.Server.Interfaces.Timing;
|
using Robust.Server.Interfaces.Timing;
|
||||||
|
using Robust.Shared.Configuration;
|
||||||
using Robust.Shared.GameObjects;
|
using Robust.Shared.GameObjects;
|
||||||
using Robust.Shared.GameObjects.Components.Transform;
|
using Robust.Shared.GameObjects.Components.Transform;
|
||||||
using Robust.Shared.GameObjects.Systems;
|
using Robust.Shared.GameObjects.Systems;
|
||||||
using Robust.Shared.Input;
|
using Robust.Shared.Input;
|
||||||
|
using Robust.Shared.Interfaces.Configuration;
|
||||||
using Robust.Shared.Interfaces.GameObjects;
|
using Robust.Shared.Interfaces.GameObjects;
|
||||||
using Robust.Shared.Interfaces.GameObjects.Components;
|
using Robust.Shared.Interfaces.GameObjects.Components;
|
||||||
using Robust.Shared.Interfaces.Map;
|
using Robust.Shared.Interfaces.Map;
|
||||||
@@ -38,6 +40,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
|||||||
[Dependency] private readonly ITileDefinitionManager _tileDefinitionManager;
|
[Dependency] private readonly ITileDefinitionManager _tileDefinitionManager;
|
||||||
[Dependency] private readonly IMapManager _mapManager;
|
[Dependency] private readonly IMapManager _mapManager;
|
||||||
[Dependency] private readonly IRobustRandom _robustRandom;
|
[Dependency] private readonly IRobustRandom _robustRandom;
|
||||||
|
[Dependency] private readonly IConfigurationManager _configurationManager;
|
||||||
#pragma warning restore 649
|
#pragma warning restore 649
|
||||||
|
|
||||||
private AudioSystem _audioSystem;
|
private AudioSystem _audioSystem;
|
||||||
@@ -78,6 +81,8 @@ namespace Content.Server.GameObjects.EntitySystems
|
|||||||
SubscribeLocalEvent<PlayerDetachedSystemMessage>(PlayerDetached);
|
SubscribeLocalEvent<PlayerDetachedSystemMessage>(PlayerDetached);
|
||||||
|
|
||||||
_audioSystem = EntitySystemManager.GetEntitySystem<AudioSystem>();
|
_audioSystem = EntitySystemManager.GetEntitySystem<AudioSystem>();
|
||||||
|
|
||||||
|
_configurationManager.RegisterCVar("game.diagonalmovement", true, CVar.ARCHIVE);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static void PlayerAttached(PlayerAttachSystemMessage ev)
|
private static void PlayerAttached(PlayerAttachSystemMessage ev)
|
||||||
|
|||||||
@@ -108,7 +108,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
|||||||
|
|
||||||
// TODO: These keys being giant strings is inefficient as hell.
|
// TODO: These keys being giant strings is inefficient as hell.
|
||||||
data.Add(new VerbsResponseMessage.VerbData(verb.GetText(userEntity, component),
|
data.Add(new VerbsResponseMessage.VerbData(verb.GetText(userEntity, component),
|
||||||
$"{component.GetType()}:{verb.GetType()}",
|
$"{component.GetType()}:{verb.GetType()}", verb.GetCategory(userEntity, component),
|
||||||
vis == VerbVisibility.Visible));
|
vis == VerbVisibility.Visible));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -121,7 +121,7 @@ namespace Content.Server.GameObjects.EntitySystems
|
|||||||
continue;
|
continue;
|
||||||
|
|
||||||
data.Add(new VerbsResponseMessage.VerbData(globalVerb.GetText(userEntity, entity),
|
data.Add(new VerbsResponseMessage.VerbData(globalVerb.GetText(userEntity, entity),
|
||||||
globalVerb.GetType().ToString(), vis == VerbVisibility.Visible));
|
globalVerb.GetType().ToString(), globalVerb.GetCategory(userEntity, entity), vis == VerbVisibility.Visible));
|
||||||
}
|
}
|
||||||
|
|
||||||
var response = new VerbsResponseMessage(data, req.EntityUid);
|
var response = new VerbsResponseMessage(data, req.EntityUid);
|
||||||
|
|||||||
@@ -16,6 +16,8 @@ namespace Content.Server.GlobalVerbs
|
|||||||
public class ControlMobVerb : GlobalVerb
|
public class ControlMobVerb : GlobalVerb
|
||||||
{
|
{
|
||||||
public override string GetText(IEntity user, IEntity target) => "Control Mob";
|
public override string GetText(IEntity user, IEntity target) => "Control Mob";
|
||||||
|
public override string GetCategory(IEntity user, IEntity target) => "Debug";
|
||||||
|
|
||||||
public override bool RequireInteractionRange => false;
|
public override bool RequireInteractionRange => false;
|
||||||
|
|
||||||
public override VerbVisibility GetVisibility(IEntity user, IEntity target)
|
public override VerbVisibility GetVisibility(IEntity user, IEntity target)
|
||||||
|
|||||||
@@ -15,6 +15,8 @@ namespace Content.Server.GlobalVerbs
|
|||||||
class RejuvenateVerb : GlobalVerb
|
class RejuvenateVerb : GlobalVerb
|
||||||
{
|
{
|
||||||
public override string GetText(IEntity user, IEntity target) => "Rejuvenate";
|
public override string GetText(IEntity user, IEntity target) => "Rejuvenate";
|
||||||
|
public override string GetCategory(IEntity user, IEntity target) => "Debug";
|
||||||
|
|
||||||
public override bool RequireInteractionRange => false;
|
public override bool RequireInteractionRange => false;
|
||||||
|
|
||||||
public override VerbVisibility GetVisibility(IEntity user, IEntity target)
|
public override VerbVisibility GetVisibility(IEntity user, IEntity target)
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ namespace Content.Shared.Construction
|
|||||||
private string _id;
|
private string _id;
|
||||||
private string _result;
|
private string _result;
|
||||||
private string _placementMode;
|
private string _placementMode;
|
||||||
|
private bool _canBuildInImpassable;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Friendly name displayed in the construction GUI.
|
/// Friendly name displayed in the construction GUI.
|
||||||
@@ -37,6 +38,11 @@ namespace Content.Shared.Construction
|
|||||||
/// </summary>
|
/// </summary>
|
||||||
public SpriteSpecifier Icon => _icon;
|
public SpriteSpecifier Icon => _icon;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// If you can start building or complete steps on impassable terrain.
|
||||||
|
/// </summary>
|
||||||
|
public bool CanBuildInImpassable => _canBuildInImpassable;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A list of keywords that are used for searching.
|
/// A list of keywords that are used for searching.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -81,6 +87,7 @@ namespace Content.Shared.Construction
|
|||||||
ser.DataField(ref _type, "objecttype", ConstructionType.Structure);
|
ser.DataField(ref _type, "objecttype", ConstructionType.Structure);
|
||||||
ser.DataField(ref _result, "result", null);
|
ser.DataField(ref _result, "result", null);
|
||||||
ser.DataField(ref _placementMode, "placementmode", "PlaceFree");
|
ser.DataField(ref _placementMode, "placementmode", "PlaceFree");
|
||||||
|
ser.DataField(ref _canBuildInImpassable, "canbuildinimpassable", false);
|
||||||
|
|
||||||
_keywords = ser.ReadDataField<List<string>>("keywords", new List<string>());
|
_keywords = ser.ReadDataField<List<string>>("keywords", new List<string>());
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -0,0 +1,14 @@
|
|||||||
|
using System;
|
||||||
|
using Robust.Shared.Serialization;
|
||||||
|
|
||||||
|
namespace Content.Shared.GameObjects.Components.Power
|
||||||
|
{
|
||||||
|
[Serializable, NetSerializable]
|
||||||
|
public enum LatheVisualState
|
||||||
|
{
|
||||||
|
Idle,
|
||||||
|
Producing,
|
||||||
|
InsertingMetal,
|
||||||
|
InsertingGlass
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -6,6 +6,7 @@ namespace Content.Shared.GameObjects.Components.Power
|
|||||||
[Serializable, NetSerializable]
|
[Serializable, NetSerializable]
|
||||||
public enum PowerDeviceVisuals
|
public enum PowerDeviceVisuals
|
||||||
{
|
{
|
||||||
|
VisualState,
|
||||||
Powered
|
Powered
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -35,12 +35,14 @@ namespace Content.Shared.GameObjects.EntitySystemMessages
|
|||||||
{
|
{
|
||||||
public readonly string Text;
|
public readonly string Text;
|
||||||
public readonly string Key;
|
public readonly string Key;
|
||||||
|
public readonly string Category;
|
||||||
public readonly bool Available;
|
public readonly bool Available;
|
||||||
|
|
||||||
public VerbData(string text, string key, bool available)
|
public VerbData(string text, string key, string category, bool available)
|
||||||
{
|
{
|
||||||
Text = text;
|
Text = text;
|
||||||
Key = key;
|
Key = key;
|
||||||
|
Category = category;
|
||||||
Available = available;
|
Available = available;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -27,6 +27,13 @@ namespace Content.Shared.GameObjects
|
|||||||
/// <returns>The text string that is shown in the right click menu for this verb.</returns>
|
/// <returns>The text string that is shown in the right click menu for this verb.</returns>
|
||||||
public abstract string GetText(IEntity user, IEntity target);
|
public abstract string GetText(IEntity user, IEntity target);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the category of this verb.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="user">The entity of the user opening this menu.</param>
|
||||||
|
/// <returns>The category of this verb.</returns>
|
||||||
|
public virtual string GetCategory(IEntity user, IEntity target) => "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the visibility level of this verb in the right click menu.
|
/// Gets the visibility level of this verb in the right click menu.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|||||||
@@ -31,6 +31,14 @@ namespace Content.Shared.GameObjects
|
|||||||
/// <returns>The text string that is shown in the right click menu for this verb.</returns>
|
/// <returns>The text string that is shown in the right click menu for this verb.</returns>
|
||||||
public abstract string GetText(IEntity user, IComponent component);
|
public abstract string GetText(IEntity user, IComponent component);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the category of this verb.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="user">The entity of the user opening this menu.</param>
|
||||||
|
/// <param name="component">The component instance for which this verb is being loaded.</param>
|
||||||
|
/// <returns>The category of this verb.</returns>
|
||||||
|
public virtual string GetCategory(IEntity user, IComponent component) => "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the visibility level of this verb in the right click menu.
|
/// Gets the visibility level of this verb in the right click menu.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -63,6 +71,14 @@ namespace Content.Shared.GameObjects
|
|||||||
/// <returns>The text string that is shown in the right click menu for this verb.</returns>
|
/// <returns>The text string that is shown in the right click menu for this verb.</returns>
|
||||||
protected abstract string GetText(IEntity user, T component);
|
protected abstract string GetText(IEntity user, T component);
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Gets the category of this verb.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="user">The entity of the user opening this menu.</param>
|
||||||
|
/// <param name="component">The component instance for which this verb is being loaded.</param>
|
||||||
|
/// <returns>The category of this verb.</returns>
|
||||||
|
protected virtual string GetCategory(IEntity user, T component) => "";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the visibility level of this verb in the right click menu.
|
/// Gets the visibility level of this verb in the right click menu.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@@ -84,6 +100,12 @@ namespace Content.Shared.GameObjects
|
|||||||
return GetText(user, (T) component);
|
return GetText(user, (T) component);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <inheritdoc />
|
||||||
|
public sealed override string GetCategory(IEntity user, IComponent component)
|
||||||
|
{
|
||||||
|
return GetCategory(user, (T) component);
|
||||||
|
}
|
||||||
|
|
||||||
/// <inheritdoc />
|
/// <inheritdoc />
|
||||||
public sealed override VerbVisibility GetVisibility(IEntity user, IComponent component)
|
public sealed override VerbVisibility GetVisibility(IEntity user, IComponent component)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
category: Machines
|
category: Machines
|
||||||
description: A simple wall-mounted light fixture.
|
description: A simple wall-mounted light fixture.
|
||||||
placementmode: SnapgridBorder
|
placementmode: SnapgridBorder
|
||||||
|
canbuildinimpassable: true
|
||||||
icon:
|
icon:
|
||||||
sprite: Objects/Lighting/lighting.rsi
|
sprite: Objects/Lighting/lighting.rsi
|
||||||
state: on
|
state: on
|
||||||
@@ -17,6 +18,7 @@
|
|||||||
sprite: Objects/Lighting/lighting.rsi
|
sprite: Objects/Lighting/lighting.rsi
|
||||||
state: construct
|
state: construct
|
||||||
|
|
||||||
|
|
||||||
- material: Cable
|
- material: Cable
|
||||||
amount: 1
|
amount: 1
|
||||||
icon:
|
icon:
|
||||||
|
|||||||
@@ -41,6 +41,7 @@
|
|||||||
category: Machines/Power
|
category: Machines/Power
|
||||||
placementmode: SnapgridCenter
|
placementmode: SnapgridCenter
|
||||||
description: Provides power from the grid wirelessly to other machines in the area.
|
description: Provides power from the grid wirelessly to other machines in the area.
|
||||||
|
canbuildinimpassable: true
|
||||||
icon:
|
icon:
|
||||||
sprite: Buildings/apc.rsi
|
sprite: Buildings/apc.rsi
|
||||||
state: apc0
|
state: apc0
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
- material: Metal
|
- material: Metal
|
||||||
amount: 2
|
amount: 2
|
||||||
reverse:
|
reverse:
|
||||||
tool: Welder
|
tool: Wrench
|
||||||
|
|
||||||
- type: construction
|
- type: construction
|
||||||
name: Table
|
name: Table
|
||||||
@@ -33,3 +33,65 @@
|
|||||||
steps:
|
steps:
|
||||||
- material: Metal
|
- material: Metal
|
||||||
amount: 2
|
amount: 2
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
name: Window
|
||||||
|
id: window
|
||||||
|
category: Structures
|
||||||
|
description: Clear.
|
||||||
|
icon:
|
||||||
|
sprite: Buildings/window.rsi
|
||||||
|
state: full
|
||||||
|
objecttype: Structure
|
||||||
|
result: window
|
||||||
|
placementmode: SnapgridCenter
|
||||||
|
steps:
|
||||||
|
- material: Glass
|
||||||
|
amount: 2
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
name: Low Wall
|
||||||
|
id: low_wall
|
||||||
|
category: Structures
|
||||||
|
description: A low wall used for mounting windows.
|
||||||
|
icon:
|
||||||
|
sprite: Buildings/low_wall.rsi
|
||||||
|
state: metal
|
||||||
|
objecttype: Structure
|
||||||
|
result: low_wall
|
||||||
|
placementmode: SnapgridCenter
|
||||||
|
steps:
|
||||||
|
- material: Metal
|
||||||
|
amount: 2
|
||||||
|
icon: Buildings/wall_girder.png
|
||||||
|
reverse:
|
||||||
|
tool: Wrench
|
||||||
|
|
||||||
|
- material: Metal
|
||||||
|
amount: 2
|
||||||
|
reverse:
|
||||||
|
tool: Wrench
|
||||||
|
|
||||||
|
- type: construction
|
||||||
|
name: Rein Window
|
||||||
|
id: rwindow
|
||||||
|
category: Structures
|
||||||
|
description: Clear but tough.
|
||||||
|
icon:
|
||||||
|
sprite: Buildings/rwindow.rsi
|
||||||
|
state: full
|
||||||
|
objecttype: Structure
|
||||||
|
result: rwindow
|
||||||
|
placementmode: SnapgridCenter
|
||||||
|
steps:
|
||||||
|
- material: Glass
|
||||||
|
amount: 2
|
||||||
|
reverse:
|
||||||
|
tool: Wrench
|
||||||
|
|
||||||
|
# Should be replaced with Metal Rods when someone puts them in.
|
||||||
|
- material: Metal
|
||||||
|
amount: 2
|
||||||
|
reverse:
|
||||||
|
# Should be replaced with Wirecutter when someone makes it work.
|
||||||
|
tool: Wrench
|
||||||
|
|||||||
@@ -25,9 +25,10 @@
|
|||||||
sprite: Buildings/autolathe.rsi
|
sprite: Buildings/autolathe.rsi
|
||||||
layers:
|
layers:
|
||||||
- state: autolathe
|
- state: autolathe
|
||||||
|
map: ["enum.AutolatheVisualLayers.Base"]
|
||||||
- state: autolathe_unlit
|
- state: autolathe_unlit
|
||||||
shader: unshaded
|
shader: unshaded
|
||||||
map: ["enum.PowerDeviceVisualLayers.Powered"]
|
map: ["enum.AutolatheVisualLayers.BaseUnlit"]
|
||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Buildings/autolathe.rsi
|
sprite: Buildings/autolathe.rsi
|
||||||
state: autolathe
|
state: autolathe
|
||||||
@@ -56,7 +57,7 @@
|
|||||||
- Multitool
|
- Multitool
|
||||||
- type: Appearance
|
- type: Appearance
|
||||||
visuals:
|
visuals:
|
||||||
- type: PowerDeviceVisualizer2D
|
- type: AutolatheVisualizer2D
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: BaseLathe
|
parent: BaseLathe
|
||||||
@@ -67,9 +68,12 @@
|
|||||||
sprite: Buildings/research.rsi
|
sprite: Buildings/research.rsi
|
||||||
layers:
|
layers:
|
||||||
- state: protolathe
|
- state: protolathe
|
||||||
|
map: ["enum.ProtolatheVisualLayers.Base"]
|
||||||
- state: protolathe_unlit
|
- state: protolathe_unlit
|
||||||
shader: unshaded
|
shader: unshaded
|
||||||
map: ["enum.PowerDeviceVisualLayers.Powered"]
|
map: ["enum.ProtolatheVisualLayers.BaseUnlit"]
|
||||||
|
- state: protolathe
|
||||||
|
map: ["enum.ProtolatheVisualLayers.AnimationLayer"]
|
||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Buildings/research.rsi
|
sprite: Buildings/research.rsi
|
||||||
state: protolathe
|
state: protolathe
|
||||||
@@ -104,4 +108,4 @@
|
|||||||
type: ResearchClientBoundUserInterface
|
type: ResearchClientBoundUserInterface
|
||||||
- type: Appearance
|
- type: Appearance
|
||||||
visuals:
|
visuals:
|
||||||
- type: PowerDeviceVisualizer2D
|
- type: ProtolatheVisualizer2D
|
||||||
|
|||||||
@@ -13,8 +13,10 @@
|
|||||||
- type: Sprite
|
- type: Sprite
|
||||||
netsync: false
|
netsync: false
|
||||||
drawdepth: Walls
|
drawdepth: Walls
|
||||||
|
|
||||||
- type: Icon
|
- type: Icon
|
||||||
state: full
|
state: full
|
||||||
|
|
||||||
- type: Collidable
|
- type: Collidable
|
||||||
shapes:
|
shapes:
|
||||||
- !type:PhysShapeAabb
|
- !type:PhysShapeAabb
|
||||||
@@ -26,6 +28,7 @@
|
|||||||
- type: Occluder
|
- type: Occluder
|
||||||
sizeX: 32
|
sizeX: 32
|
||||||
sizeY: 32
|
sizeY: 32
|
||||||
|
|
||||||
- type: SnapGrid
|
- type: SnapGrid
|
||||||
offset: Center
|
offset: Center
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,10 @@
|
|||||||
id: window
|
id: window
|
||||||
name: Window
|
name: Window
|
||||||
description: Don't smudge up the glass down there.
|
description: Don't smudge up the glass down there.
|
||||||
|
placement:
|
||||||
|
mode: SnapgridCenter
|
||||||
|
snap:
|
||||||
|
- Window
|
||||||
components:
|
components:
|
||||||
- type: Clickable
|
- type: Clickable
|
||||||
- type: InteractionOutline
|
- type: InteractionOutline
|
||||||
@@ -13,7 +17,7 @@
|
|||||||
|
|
||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Buildings/window.rsi
|
sprite: Buildings/window.rsi
|
||||||
state: window0
|
state: full
|
||||||
|
|
||||||
- type: Collidable
|
- type: Collidable
|
||||||
shapes:
|
shapes:
|
||||||
@@ -30,10 +34,6 @@
|
|||||||
- type: Window
|
- type: Window
|
||||||
base: window
|
base: window
|
||||||
|
|
||||||
placement:
|
|
||||||
snap:
|
|
||||||
- Wall
|
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
id: rwindow
|
id: rwindow
|
||||||
name: Reinforced Window
|
name: Reinforced Window
|
||||||
@@ -48,4 +48,4 @@
|
|||||||
|
|
||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Buildings/rwindow.rsi
|
sprite: Buildings/rwindow.rsi
|
||||||
state: rwindow0
|
state: full
|
||||||
|
|||||||
@@ -456,8 +456,8 @@
|
|||||||
- type: entity
|
- type: entity
|
||||||
parent: GlovesBase
|
parent: GlovesBase
|
||||||
id: GlovesLeather
|
id: GlovesLeather
|
||||||
name: Leather gloves
|
name: 'Botanist''s leather gloves'
|
||||||
description: ''
|
description: 'These leather gloves protect against thorns, barbs, prickles, spikes and other harmful objects of floral origin. They''re also quite warm.'
|
||||||
components:
|
components:
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Clothing/Gloves/leather.rsi
|
sprite: Clothing/Gloves/leather.rsi
|
||||||
@@ -465,6 +465,7 @@
|
|||||||
sprite: Clothing/Gloves/leather.rsi
|
sprite: Clothing/Gloves/leather.rsi
|
||||||
- type: Clothing
|
- type: Clothing
|
||||||
sprite: Clothing/Gloves/leather.rsi
|
sprite: Clothing/Gloves/leather.rsi
|
||||||
|
HeatResistance: 1400
|
||||||
|
|
||||||
- type: entity
|
- type: entity
|
||||||
parent: GlovesBase
|
parent: GlovesBase
|
||||||
@@ -776,5 +777,4 @@
|
|||||||
- type: Icon
|
- type: Icon
|
||||||
sprite: Clothing/Gloves/yellow.rsi
|
sprite: Clothing/Gloves/yellow.rsi
|
||||||
- type: Clothing
|
- type: Clothing
|
||||||
HeatResistance: 1500
|
|
||||||
sprite: Clothing/Gloves/yellow.rsi
|
sprite: Clothing/Gloves/yellow.rsi
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
shapes:
|
shapes:
|
||||||
- !type:PhysShapeAabb
|
- !type:PhysShapeAabb
|
||||||
bounds: "-0.25,-0.25,0.25,0.25"
|
bounds: "-0.25,-0.25,0.25,0.25"
|
||||||
mask: 26
|
mask: 0
|
||||||
layer: 32
|
layer: 32
|
||||||
IsScrapingFloor: true
|
IsScrapingFloor: true
|
||||||
- type: Physics
|
- type: Physics
|
||||||
|
|||||||
@@ -26,7 +26,7 @@
|
|||||||
- type: InteractionOutline
|
- type: InteractionOutline
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
netsync: false
|
netsync: false
|
||||||
|
drawdepth: Mobs
|
||||||
layers:
|
layers:
|
||||||
- map: ["enum.HumanoidVisualLayers.Chest"]
|
- map: ["enum.HumanoidVisualLayers.Chest"]
|
||||||
color: "#e8b59b"
|
color: "#e8b59b"
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -28,15 +28,15 @@
|
|||||||
"directions": 1,
|
"directions": 1,
|
||||||
"delays": [
|
"delays": [
|
||||||
[
|
[
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15
|
0.055
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
@@ -45,20 +45,37 @@
|
|||||||
"directions": 1,
|
"directions": 1,
|
||||||
"delays": [
|
"delays": [
|
||||||
[
|
[
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15,
|
0.055,
|
||||||
0.15
|
0.055
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "autolathe_inserting",
|
"name": "autolathe_inserting_metal_plate",
|
||||||
|
"directions": 1,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
0.1,
|
||||||
|
0.1,
|
||||||
|
0.1,
|
||||||
|
0.1,
|
||||||
|
0.1,
|
||||||
|
0.1,
|
||||||
|
0.1,
|
||||||
|
0.1,
|
||||||
|
0.1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "autolathe_inserting_glass_plate",
|
||||||
"directions": 1,
|
"directions": 1,
|
||||||
"delays": [
|
"delays": [
|
||||||
[
|
[
|
||||||
@@ -99,23 +116,6 @@
|
|||||||
1.0
|
1.0
|
||||||
]
|
]
|
||||||
]
|
]
|
||||||
},
|
|
||||||
{
|
|
||||||
"name": "autolathe_r",
|
|
||||||
"directions": 1,
|
|
||||||
"delays": [
|
|
||||||
[
|
|
||||||
0.1,
|
|
||||||
0.1,
|
|
||||||
0.1,
|
|
||||||
0.1,
|
|
||||||
0.1,
|
|
||||||
0.1,
|
|
||||||
0.1,
|
|
||||||
0.1,
|
|
||||||
0.1
|
|
||||||
]
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -259,7 +259,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "protolathe_n",
|
"name": "protolathe_building",
|
||||||
"directions": 1,
|
"directions": 1,
|
||||||
"delays": [
|
"delays": [
|
||||||
[
|
[
|
||||||
@@ -314,7 +314,7 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"name": "protolathe_t",
|
"name": "protolathe_open",
|
||||||
"directions": 1,
|
"directions": 1,
|
||||||
"delays": [
|
"delays": [
|
||||||
[
|
[
|
||||||
|
|||||||
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
BIN
Resources/Textures/Buildings/rwindow.rsi/full.png
Normal file
|
After Width: | Height: | Size: 575 B |
@@ -1 +1,164 @@
|
|||||||
{"version": 1, "size": {"x": 32, "y": 32}, "license": "CC-BY-SA-3.0", "copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/c0293684320e7b70cbcac932b8dddeee35f3a51f/icons/obj/structures/windows.dmi", "states": [{"name": "rwindow0", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "rwindow1", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "rwindow2", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "rwindow3", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "rwindow4", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "rwindow5", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "rwindow6", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "rwindow7", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}]}
|
{
|
||||||
|
"version": 1,
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"license": "CC-BY-SA-3.0",
|
||||||
|
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/c0293684320e7b70cbcac932b8dddeee35f3a51f/icons/obj/structures/windows.dmi",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "full",
|
||||||
|
"directions": 1,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rwindow0",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rwindow1",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rwindow2",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rwindow3",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rwindow4",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rwindow5",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rwindow6",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rwindow7",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||
BIN
Resources/Textures/Buildings/window.rsi/full.png
Normal file
|
After Width: | Height: | Size: 366 B |
@@ -1 +1,164 @@
|
|||||||
{"version": 1, "size": {"x": 32, "y": 32}, "license": "CC-BY-SA-3.0", "copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/c0293684320e7b70cbcac932b8dddeee35f3a51f/icons/obj/structures/windows.dmi", "states": [{"name": "window0", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "window1", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "window2", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "window3", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "window4", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "window5", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "window6", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "window7", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}]}
|
{
|
||||||
|
"version": 1,
|
||||||
|
"size": {
|
||||||
|
"x": 32,
|
||||||
|
"y": 32
|
||||||
|
},
|
||||||
|
"license": "CC-BY-SA-3.0",
|
||||||
|
"copyright": "Taken from https://github.com/discordia-space/CEV-Eris/blob/c0293684320e7b70cbcac932b8dddeee35f3a51f/icons/obj/structures/windows.dmi",
|
||||||
|
"states": [
|
||||||
|
{
|
||||||
|
"name": "full",
|
||||||
|
"directions": 1,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "window0",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "window1",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "window2",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "window3",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "window4",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "window5",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "window6",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "window7",
|
||||||
|
"directions": 4,
|
||||||
|
"delays": [
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
],
|
||||||
|
[
|
||||||
|
1
|
||||||
|
]
|
||||||
|
]
|
||||||
|
}
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|||||||