ID card console (#324)

* ID card console

* Container -> ContainerSlot
This commit is contained in:
DamianX
2019-09-06 08:12:44 +02:00
committed by Pieter-Jan Briers
parent ba8b495ec0
commit 6e2799f048
54 changed files with 661 additions and 10 deletions

View File

@@ -106,6 +106,7 @@ namespace Content.Client
"IdCard",
"Access",
"AccessReader",
"IdCardConsole",
};
foreach (var ignoreName in registerIgnore)

View File

@@ -0,0 +1,52 @@
using System.Collections.Generic;
using Robust.Client.GameObjects.Components.UserInterface;
using Robust.Shared.GameObjects.Components.UserInterface;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using static Content.Shared.GameObjects.Components.Access.SharedIdCardConsoleComponent;
namespace Content.Client.GameObjects.Components.Access
{
public class IdCardConsoleBoundUserInterface : BoundUserInterface
{
#pragma warning disable 649
[Dependency] private readonly ILocalizationManager _localizationManager;
#pragma warning restore 649
public IdCardConsoleBoundUserInterface(ClientUserInterfaceComponent owner, object uiKey) : base(owner, uiKey)
{
}
private IdCardConsoleWindow _window;
protected override void Open()
{
IoCManager.InjectDependencies(this);
base.Open();
_window = new IdCardConsoleWindow(this, _localizationManager);
_window.Title = Owner.Owner.Name;
_window.OnClose += Close;
_window.OpenCentered();
}
protected override void UpdateState(BoundUserInterfaceState state)
{
base.UpdateState(state);
var castState = (IdCardConsoleBoundUserInterfaceState) state;
_window.UpdateState(castState);
}
public void ButtonPressed(UiButton button)
{
SendMessage(new IdButtonPressedMessage(button));
}
public void SubmitData(string newFullName, string newJobTitle, List<string> newAccessList)
{
SendMessage(new WriteToTargetIdMessage(
newFullName,
newJobTitle,
newAccessList));
}
}
}

View File

@@ -0,0 +1,143 @@
using System.Collections.Generic;
using System.Linq;
using Content.Shared.Access;
using Robust.Client.UserInterface.Controls;
using Robust.Client.UserInterface.CustomControls;
using Robust.Shared.Localization;
using Robust.Shared.Maths;
using Robust.Shared.Utility;
using static Content.Shared.GameObjects.Components.Access.SharedIdCardConsoleComponent;
namespace Content.Client.GameObjects.Components.Access
{
public class IdCardConsoleWindow : SS14Window
{
private readonly Label _fullNameLabel;
private readonly LineEdit _fullNameLineEdit;
private readonly Label _jobTitleLabel;
private readonly LineEdit _jobTitleLineEdit;
private readonly IdCardConsoleBoundUserInterface _owner;
private readonly Button _privilegedIdButton;
private readonly Button _targetIdButton;
private readonly Button _submitButton;
private readonly ILocalizationManager _localizationManager;
private Dictionary<string, Button> _accessButtons = new Dictionary<string, Button>();
public IdCardConsoleWindow(IdCardConsoleBoundUserInterface owner, ILocalizationManager localizationManager)
{
_localizationManager = localizationManager;
_owner = owner;
var vBox = new VBoxContainer();
{
var hBox = new HBoxContainer();
vBox.AddChild(hBox);
_privilegedIdButton = new Button();
_privilegedIdButton.OnPressed += _ => _owner.ButtonPressed(UiButton.PrivilegedId);
hBox.AddChild(_privilegedIdButton);
_targetIdButton = new Button();
_targetIdButton.OnPressed += _ => _owner.ButtonPressed(UiButton.TargetId);
hBox.AddChild(_targetIdButton);
}
{
var hBox = new HBoxContainer();
vBox.AddChild(hBox);
hBox.AddChild(_fullNameLabel = new Label()
{
Text = localizationManager.GetString("Full name:")
});
_fullNameLineEdit = new LineEdit()
{
SizeFlagsHorizontal = SizeFlags.FillExpand,
};
hBox.AddChild(_fullNameLineEdit);
}
{
var hBox = new HBoxContainer();
vBox.AddChild(hBox);
hBox.AddChild(_jobTitleLabel = new Label()
{
Text = localizationManager.GetString("Job title:")
});
_jobTitleLineEdit = new LineEdit()
{
SizeFlagsHorizontal = SizeFlags.FillExpand
};
hBox.AddChild(_jobTitleLineEdit);
}
{
var hBox = new HBoxContainer();
vBox.AddChild(hBox);
foreach (var accessName in SharedAccess.AllAccess)
{
var newButton = new Button()
{
Text = accessName,
ToggleMode = true,
};
hBox.AddChild(newButton);
_accessButtons.Add(accessName, newButton);
}
}
{
var hBox = new HBoxContainer();
vBox.AddChild(hBox);
_submitButton = new Button()
{
Text = localizationManager.GetString("Submit")
};
_submitButton.OnPressed += _ => owner.SubmitData(
_fullNameLineEdit.Text,
_jobTitleLineEdit.Text,
// Iterate over the buttons dictionary, filter by `Pressed`, only get key from the key/value pair
_accessButtons.Where(x => x.Value.Pressed).Select(x => x.Key).ToList());
hBox.AddChild(_submitButton);
}
Contents.AddChild(vBox);
}
public void UpdateState(IdCardConsoleBoundUserInterfaceState state)
{
_privilegedIdButton.Text = state.IsPrivilegedIdPresent
? _localizationManager.GetString("Remove privileged ID card")
: _localizationManager.GetString("Insert privileged ID card");
_targetIdButton.Text = state.IsTargetIdPresent
? _localizationManager.GetString("Remove target ID card")
: _localizationManager.GetString("Insert target ID card");
var interfaceEnabled = state.IsPrivilegedIdPresent && state.IsPrivilegedIdAuthorized && state.IsTargetIdPresent;
_fullNameLabel.Modulate = interfaceEnabled ? Color.White : Color.Gray;
_fullNameLineEdit.Editable = interfaceEnabled;
_fullNameLineEdit.Text = state.TargetIdFullName;
_jobTitleLabel.Modulate = interfaceEnabled ? Color.White : Color.Gray;
_jobTitleLineEdit.Editable = interfaceEnabled;
_jobTitleLineEdit.Text = state.TargetIdJobTitle;
foreach (var (accessName, button) in _accessButtons)
{
button.Disabled = !interfaceEnabled;
if (interfaceEnabled)
{
button.Pressed = state.TargetIdAccessList.Contains(accessName);
}
}
_submitButton.Disabled = !interfaceEnabled;
}
}
}

View File

@@ -9,14 +9,13 @@ namespace Content.Server.GameObjects.Components.Access
public class AccessComponent : Component
{
public override string Name => "Access";
private List<string> _tags;
[ViewVariables]
public List<string> Tags => _tags;
public List<string> Tags;
public override void ExposeData(ObjectSerializer serializer)
{
base.ExposeData(serializer);
serializer.DataField(ref _tags, "tags", new List<string>());
serializer.DataField(ref Tags, "tags", new List<string>());
}
}
}

View File

@@ -13,9 +13,17 @@ namespace Content.Server.GameObjects.Components.Access
public class AccessReader : Component
{
public override string Name => "AccessReader";
[ViewVariables]
private List<string> _necessaryTags;
[ViewVariables]
private List<string> _sufficientTags;
/// <summary>
/// Searches an <see cref="AccessComponent"/> in the entity itself, in its active hand or in its ID slot.
/// Returns true if an <see cref="AccessComponent"/> is found and its tags list contains
/// at least one of <see cref="_sufficientTags"/> or all of <see cref="_necessaryTags"/>.
/// </summary>
/// <param name="entity">The entity to be searched for access.</param>
public bool IsAllowed(IEntity entity)
{
var accessProvider = FindAccessProvider(entity);

View File

@@ -1,4 +1,3 @@
using System.Security.Cryptography;
using Robust.Shared.GameObjects;
using Robust.Shared.Serialization;
using Robust.Shared.ViewVariables;
@@ -9,10 +8,61 @@ namespace Content.Server.GameObjects.Components.Access
public class IdCardComponent : Component
{
public override string Name => "IdCard";
[ViewVariables(VVAccess.ReadWrite)]
/// See <see cref="UpdateEntityName"/>.
private string _ownerOriginalName;
private string _fullName;
[ViewVariables(VVAccess.ReadWrite)]
public string FullName
{
get => _fullName;
set
{
_fullName = value;
UpdateEntityName();
}
}
private string _jobTitle;
[ViewVariables(VVAccess.ReadWrite)]
public string JobTitle
{
get => _jobTitle;
set
{
_jobTitle = value;
UpdateEntityName();
}
}
/// <summary>
/// Changes the <see cref="Entity.Name"/> of <see cref="Component.Owner"/>.
/// </summary>
/// <remarks>
/// If either <see cref="FullName"/> or <see cref="JobTitle"/> is empty, it's replaced by placeholders.
/// If both are empty, the original entity's name is restored.
/// </remarks>
private void UpdateEntityName()
{
if (string.IsNullOrWhiteSpace(FullName) && string.IsNullOrWhiteSpace(JobTitle))
{
Owner.Name = _ownerOriginalName;
return;
}
var tempFullName = string.IsNullOrWhiteSpace(FullName) ? "Unknown" : FullName;
var tempJobTitle = string.IsNullOrWhiteSpace(JobTitle) ? "N/A" : JobTitle;
Owner.Name = $"{_ownerOriginalName} ({tempFullName}, {tempJobTitle})";
}
public override void Initialize()
{
base.Initialize();
_ownerOriginalName = Owner.Name;
UpdateEntityName();
}
public override void ExposeData(ObjectSerializer serializer)
{

View File

@@ -0,0 +1,192 @@
using System.Collections.Generic;
using System.Linq;
using Content.Server.GameObjects.EntitySystems;
using Content.Server.Interfaces;
using Content.Server.Interfaces.GameObjects;
using Content.Shared.Access;
using Content.Shared.GameObjects.Components.Access;
using Robust.Server.GameObjects.Components.Container;
using Robust.Server.GameObjects.Components.UserInterface;
using Robust.Server.Interfaces.GameObjects;
using Robust.Shared.GameObjects;
using Robust.Shared.Interfaces.GameObjects;
using Robust.Shared.IoC;
using Robust.Shared.Localization;
using Robust.Shared.Log;
namespace Content.Server.GameObjects.Components.Access
{
[RegisterComponent]
[ComponentReference(typeof(IActivate))]
public class IdCardConsoleComponent : SharedIdCardConsoleComponent, IActivate
{
#pragma warning disable 649
[Dependency] private readonly IServerNotifyManager _notifyManager;
[Dependency] private readonly ILocalizationManager _localizationManager;
#pragma warning restore 649
private BoundUserInterface _userInterface;
private ContainerSlot _privilegedIdContainer;
private ContainerSlot _targetIdContainer;
private AccessReader _accessReader;
public override void Initialize()
{
base.Initialize();
_privilegedIdContainer = ContainerManagerComponent.Ensure<ContainerSlot>($"{Name}-privilegedId", Owner);
_targetIdContainer = ContainerManagerComponent.Ensure<ContainerSlot>($"{Name}-targetId", Owner);
_accessReader = Owner.GetComponent<AccessReader>();
_userInterface = Owner.GetComponent<ServerUserInterfaceComponent>()
.GetBoundUserInterface(IdCardConsoleUiKey.Key);
_userInterface.OnReceiveMessage += OnUiReceiveMessage;
UpdateUserInterface();
}
private void OnUiReceiveMessage(ServerBoundUserInterfaceMessage obj)
{
switch (obj.Message)
{
case IdButtonPressedMessage msg:
switch (msg.Button)
{
case UiButton.PrivilegedId:
HandleId(obj.Session.AttachedEntity, _privilegedIdContainer);
break;
case UiButton.TargetId:
HandleId(obj.Session.AttachedEntity, _targetIdContainer);
break;
}
break;
case WriteToTargetIdMessage msg:
TryWriteToTargetId(msg.FullName, msg.JobTitle, msg.AccessList);
break;
}
}
/// <summary>
/// Returns true if there is an ID in <see cref="_privilegedIdContainer"/> and said ID satisfies the requirements of <see cref="_accessReader"/>.
/// </summary>
private bool PrivilegedIdIsAuthorized()
{
var privilegedIdEntity = _privilegedIdContainer.ContainedEntity;
return privilegedIdEntity != null && _accessReader.IsAllowed(privilegedIdEntity);
}
/// <summary>
/// Called when the "Submit" button in the UI gets pressed.
/// Writes data passed from the UI into the ID stored in <see cref="_targetIdContainer"/>, if present.
/// </summary>
private void TryWriteToTargetId(string newFullName, string newJobTitle, List<string> newAccessList)
{
if (!PrivilegedIdIsAuthorized() || _targetIdContainer.ContainedEntity == null)
{
return;
}
var targetIdEntity = _targetIdContainer.ContainedEntity;
var targetIdComponent = targetIdEntity.GetComponent<IdCardComponent>();
targetIdComponent.FullName = newFullName;
targetIdComponent.JobTitle = newJobTitle;
if (!newAccessList.TrueForAll(x => SharedAccess.AllAccess.Contains(x)))
{
Logger.Warning($"Tried to write unknown access tag.");
return;
}
var targetIdAccess = targetIdEntity.GetComponent<AccessComponent>();
targetIdAccess.Tags = newAccessList;
}
/// <summary>
/// Called when one of the insert/remove ID buttons gets pressed.
/// </summary>
private void HandleId(IEntity user, ContainerSlot container)
{
if (!user.TryGetComponent(out IHandsComponent hands))
{
_notifyManager.PopupMessage(Owner.Transform.GridPosition, user, _localizationManager.GetString("You have no hands."));
return;
}
if (container.ContainedEntity == null)
{
InsertIdFromHand(user, container, hands);
}
else
{
PutIdInHand(container, hands);
}
}
private void InsertIdFromHand(IEntity user, ContainerSlot container, IHandsComponent hands)
{
var isId = hands.GetActiveHand?.Owner.HasComponent<IdCardComponent>();
if (isId != true)
{
return;
}
if(!hands.Drop(hands.ActiveIndex, container))
{
_notifyManager.PopupMessage(Owner.Transform.GridPosition, user, _localizationManager.GetString("You can't let go of the ID card!"));
return;
}
UpdateUserInterface();
}
private void PutIdInHand(ContainerSlot container, IHandsComponent hands)
{
var idEntity = container.ContainedEntity;
if (idEntity == null || !container.Remove(idEntity))
{
return;
}
UpdateUserInterface();
hands.PutInHand(idEntity.GetComponent<ItemComponent>());
}
private void UpdateUserInterface()
{
var isPrivilegedIdPresent = _privilegedIdContainer.ContainedEntity != null;
var targetIdEntity = _targetIdContainer.ContainedEntity;
IdCardConsoleBoundUserInterfaceState newState;
// this could be prettier
if (targetIdEntity == null)
{
newState = new IdCardConsoleBoundUserInterfaceState(
isPrivilegedIdPresent,
PrivilegedIdIsAuthorized(),
false,
null,
null,
null);
}
else
{
var targetIdComponent = targetIdEntity.GetComponent<IdCardComponent>();
var targetAccessComponent = targetIdEntity.GetComponent<AccessComponent>();
newState = new IdCardConsoleBoundUserInterfaceState(
isPrivilegedIdPresent,
PrivilegedIdIsAuthorized(),
true,
targetIdComponent.FullName,
targetIdComponent.JobTitle,
targetAccessComponent.Tags);
}
_userInterface.SetState(newState);
}
public void Activate(ActivateEventArgs eventArgs)
{
if(!eventArgs.User.TryGetComponent(out IActorComponent actor))
{
return;
}
_userInterface.Open(actor.playerSession);
}
}
}

View File

@@ -0,0 +1,16 @@
namespace Content.Shared.Access
{
public static class SharedAccess
{
public static readonly string[] AllAccess = {
"command",
"security",
"engineering",
"medical",
"cargo",
"research",
"service",
"maintenance",
};
}
}

View File

@@ -0,0 +1,77 @@
using System;
using System.Collections.Generic;
using Robust.Shared.GameObjects;
using Robust.Shared.GameObjects.Components.UserInterface;
using Robust.Shared.Serialization;
namespace Content.Shared.GameObjects.Components.Access
{
public class SharedIdCardConsoleComponent : Component
{
public override string Name => "IdCardConsole";
public enum UiButton
{
PrivilegedId,
TargetId,
}
[Serializable, NetSerializable]
public class IdButtonPressedMessage : BoundUserInterfaceMessage
{
public readonly UiButton Button;
public IdButtonPressedMessage(UiButton button)
{
Button = button;
}
}
[Serializable, NetSerializable]
public class WriteToTargetIdMessage : BoundUserInterfaceMessage
{
public readonly string FullName;
public readonly string JobTitle;
public readonly List<string> AccessList;
public WriteToTargetIdMessage(string fullName, string jobTitle, List<string> accessList)
{
FullName = fullName;
JobTitle = jobTitle;
AccessList = accessList;
}
}
[Serializable, NetSerializable]
public class IdCardConsoleBoundUserInterfaceState : BoundUserInterfaceState
{
public readonly bool IsPrivilegedIdPresent;
public readonly bool IsPrivilegedIdAuthorized;
public readonly bool IsTargetIdPresent;
public readonly string TargetIdFullName;
public readonly string TargetIdJobTitle;
public readonly List<string> TargetIdAccessList;
public IdCardConsoleBoundUserInterfaceState(bool isPrivilegedIdPresent,
bool isPrivilegedIdAuthorized,
bool isTargetIdPresent,
string targetIdFullName,
string targetIdJobTitle,
List<string> targetIdAccessList)
{
IsPrivilegedIdPresent = isPrivilegedIdPresent;
IsPrivilegedIdAuthorized = isPrivilegedIdAuthorized;
IsTargetIdPresent = isTargetIdPresent;
TargetIdFullName = targetIdFullName;
TargetIdJobTitle = targetIdJobTitle;
TargetIdAccessList = targetIdAccessList;
}
}
[Serializable, NetSerializable]
public enum IdCardConsoleUiKey
{
Key,
}
}
}

View File

@@ -109,6 +109,13 @@
parent: computerBase
name: ID Card Computer
components:
- type: AccessReader
necessary: ["command"]
- type: IdCardConsole
- type: UserInterface
interfaces:
- key: enum.IdCardConsoleUiKey.Key
type: IdCardConsoleBoundUserInterface
- type: Appearance
visuals:
- type: ComputerVisualizer2D

View File

@@ -6,15 +6,121 @@
components:
- type: Sprite
sprite: Clothing/id_cards.rsi
state: assistant
state: civilian
- type: Icon
sprite: Clothing/id_cards.rsi
state: assistant
state: civilian
- type: Clothing
Slots:
- idcard
sprite: Clothing/id_cards.rsi
HeldPrefix: civilian
- type: IdCard
- type: Access
- type: entity
parent: IDCardStandard
id: CommandIDCard
name: Command Identification Card
components:
- type: Clothing
HeldPrefix: gold
- type: Sprite
state: gold
- type: Icon
state: gold
- type: IdCard
jobTitle: Captain
- type: Access
tags: ["command"]
- type: entity
parent: IDCardStandard
id: SecurityIDCard
name: Security Identification Card
components:
- type: Sprite
state: security
- type: Icon
state: security
- type: IdCard
jobTitle: Security Officer
- type: Access
tags: ["security"]
- type: entity
parent: IDCardStandard
id: EngineeringIDCard
name: Engineering Identification Card
components:
- type: Sprite
state: engineering
- type: Icon
state: engineering
- type: IdCard
jobTitle: Engineer
- type: Access
tags: ["engineering"]
- type: entity
parent: IDCardStandard
id: MedicalIDCard
name: Medical Identification Card
components:
- type: Sprite
state: medical
- type: Icon
state: medical
- type: IdCard
jobTitle: Doctor
- type: Access
tags: ["medical"]
- type: entity
parent: IDCardStandard
id: CargoIDCard
name: Cargo Identification Card
components:
- type: Sprite
state: cargo
- type: Icon
state: cargo
- type: IdCard
jobTitle: Cargo Technician
- type: Access
tags: ["cargo"]
- type: entity
parent: IDCardStandard
id: ResearchIDCard
name: Research Identification Card
components:
- type: Sprite
state: research
- type: Icon
state: research
- type: IdCard
jobTitle: Scientist
- type: Access
tags: ["research"]
- type: entity
parent: IDCardStandard
id: ServiceIDCard
name: Service Identification Card
components:
- type: IdCard
jobTitle: Bartender
- type: Access
tags: ["service"]
- type: entity
parent: IDCardStandard
id: AssistantIDCard
name: Assistant Identification Card
components:
- type: IdCard
fullName: John Doe
jobTitle: Assistant
- type: Access
tags: ["civilian", "maintenance", "engineering"]
tags: ["maintenance"]

Binary file not shown.

After

Width:  |  Height:  |  Size: 750 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 836 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 890 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 892 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 913 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 900 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 731 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 752 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 822 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 914 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 389 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 972 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 763 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 966 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 179 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 977 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 696 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 678 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 434 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 525 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 517 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 980 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 281 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 383 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 180 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 491 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 958 B

View File

@@ -1 +1 @@
{"version": 1, "size": {"x": 32, "y": 32}, "states": [{"name": "assistant", "directions": 1, "delays": [[1.0]]}]}
{"version": 1, "size": {"x": 32, "y": 32}, "states": [{"name": "CE", "directions": 1, "delays": [[1.0]]}, {"name": "CMO", "directions": 1, "delays": [[1.0]]}, {"name": "ERT_empty", "directions": 1, "delays": [[1.0]]}, {"name": "ERT_engineering", "directions": 1, "delays": [[1.0]]}, {"name": "ERT_leader", "directions": 1, "delays": [[1.0]]}, {"name": "ERT_medical", "directions": 1, "delays": [[1.0]]}, {"name": "ERT_security", "directions": 1, "delays": [[1.0]]}, {"name": "HoS", "directions": 1, "delays": [[1.0]]}, {"name": "RD", "directions": 1, "delays": [[1.0]]}, {"name": "TDgreen", "directions": 1, "delays": [[1.0]]}, {"name": "TDred", "directions": 1, "delays": [[1.0]]}, {"name": "admin", "directions": 1, "delays": [[1.0]]}, {"name": "cargo", "directions": 1, "delays": [[1.0]]}, {"name": "centcom", "directions": 1, "delays": [[1.0]]}, {"name": "centcom_old", "directions": 1, "delays": [[1.0]]}, {"name": "civilian", "directions": 1, "delays": [[1.0]]}, {"name": "civilian-inhand-left", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "civilian-inhand-right", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "clown", "directions": 1, "delays": [[1.0]]}, {"name": "creed", "directions": 1, "delays": [[1.0]]}, {"name": "deathsquad", "directions": 1, "delays": [[1.0]]}, {"name": "debit", "directions": 1, "delays": [[1.0]]}, {"name": "debit-elite", "directions": 1, "delays": [[1.0]]}, {"name": "debit-preferred", "directions": 1, "delays": [[1.0]]}, {"name": "emag", "directions": 1, "delays": [[1.0]]}, {"name": "engineering", "directions": 1, "delays": [[1.0]]}, {"name": "fingerprint0", "directions": 1, "delays": [[1.0]]}, {"name": "fingerprint1", "directions": 1, "delays": [[1.0]]}, {"name": "gold", "directions": 1, "delays": [[1.0]]}, {"name": "gold-inhand-left", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "gold-inhand-right", "directions": 4, "delays": [[1.0], [1.0], [1.0], [1.0]]}, {"name": "medical", "directions": 1, "delays": [[1.0]]}, {"name": "mime", "directions": 1, "delays": [[1.0]]}, {"name": "old", "directions": 1, "delays": [[1.0]]}, {"name": "research", "directions": 1, "delays": [[1.0]]}, {"name": "robot", "directions": 1, "delays": [[0.5, 0.5]]}, {"name": "security", "directions": 1, "delays": [[1.0]]}, {"name": "silver", "directions": 1, "delays": [[1.0]]}, {"name": "syndie", "directions": 1, "delays": [[1.0]]}, {"name": "trader", "directions": 1, "delays": [[1.0]]}]}

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 905 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 981 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 953 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 667 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 650 B