* THE RETURN OF ITEM STATUS Item status is now inline with the hands again. You can now see item status for both hands at once. If you have more than 2 hands, the last active hand of that side is displayed in the respective item status. The item status for the active hand is also highlighted. Item status has been given a new look so it looks unique and matches every UI theme. * Shrink item status to 125px This is going to require fixing the existing controls. Do that later. * New bullet item status rendering sex * Make gun item status look just a little bit nicer. Avoid only one or two bullets ending up on a single row of an item status. * Delete Eris theme files * More improvements Fixed the fact that left/right were flipped around when assigning status panel locations. Involved renaming all the UI textures. Redid how content margins are set from the theme. Less complex and cleaner now. Made the item name always left-aligned, just looks better since other UI elements don't adapt anyways. * Compact down item status text Now it fits 3 lines of text on one line. Yay. This is achieved by compacting RichTextLabels by reducing their line height and giving them a negative bottom margin. * Add item status sprites for Ashen theme. * Add status control to show beaker/bucket/jug solution/transfer volumes Also PollingItemStatusControl I'll be using that more. * Fix welder item status, clean up welder code The item status control implementation was ancient and bad. That's why it was buggy. Removed all the complex dated networking stuff for welders, we just sync the solution contents now anyways so none of that is needed anymore. This moves a buncha stuff to shared and just removes code. Cleanup. The code was doing some really dumb stuff. * Spray bottles show contents in item status. * cowtools * Fix plasmafire and clockwork themes. Actual git gaslighting wtf. --------- Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com>
59 lines
1.7 KiB
C#
59 lines
1.7 KiB
C#
using Content.Shared.Chemistry.Components;
|
|
using Content.Shared.Chemistry.Reagent;
|
|
using Content.Shared.FixedPoint;
|
|
using Content.Shared.Tools.Systems;
|
|
using Robust.Shared.Audio;
|
|
using Robust.Shared.GameStates;
|
|
using Robust.Shared.Prototypes;
|
|
|
|
namespace Content.Shared.Tools.Components;
|
|
|
|
[RegisterComponent, NetworkedComponent, AutoGenerateComponentState(true), Access(typeof(SharedToolSystem))]
|
|
public sealed partial class WelderComponent : Component
|
|
{
|
|
[DataField, AutoNetworkedField]
|
|
public bool Enabled;
|
|
|
|
[DataField]
|
|
public float WelderTimer;
|
|
|
|
/// <summary>
|
|
/// Name of <see cref="FuelSolution"/>.
|
|
/// </summary>
|
|
[DataField]
|
|
public string FuelSolutionName = "Welder";
|
|
|
|
/// <summary>
|
|
/// Reagent that will be used as fuel for welding.
|
|
/// </summary>
|
|
[DataField]
|
|
public ProtoId<ReagentPrototype> FuelReagent = "WeldingFuel";
|
|
|
|
/// <summary>
|
|
/// Fuel consumption per second while the welder is active.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public FixedPoint2 FuelConsumption = FixedPoint2.New(1.0f);
|
|
|
|
/// <summary>
|
|
/// A fuel amount to be consumed when the welder goes from being unlit to being lit.
|
|
/// </summary>
|
|
[DataField, AutoNetworkedField]
|
|
public FixedPoint2 FuelLitCost = FixedPoint2.New(0.5f);
|
|
|
|
/// <summary>
|
|
/// Sound played when refilling the welder.
|
|
/// </summary>
|
|
[DataField]
|
|
public SoundSpecifier WelderRefill = new SoundPathSpecifier("/Audio/Effects/refill.ogg");
|
|
|
|
/// <summary>
|
|
/// Whether the item is safe to refill while lit without exploding the tank.
|
|
/// </summary>
|
|
[DataField]
|
|
public bool TankSafe;
|
|
|
|
[DataField]
|
|
public float WelderUpdateTimer = 1f;
|
|
}
|