Reagent container visualizer (#3529)
* Started working on beakers * Working sprite change * Fixed large beaker * Add bluepsace beaker * Add cryostasis beaker * Removed old rsi * Fixed dropper * No dropper problems * Working on syrigine * Better syr visualizer * Add dropper inhand * Syringe in-hands * Add base empty bottle for chemistry * Deleted old fillings * Simplified beaker in hand * Moved chemical bottles to seperate .yml * Fixed chem master * Serv3 when * Fixed grammar * Removed delays Co-authored-by: Alex Evgrashin <evgrashin.adl@gmail.com> Co-authored-by: Metal Gear Sloth <metalgearsloth@gmail.com>
This commit is contained in:
@@ -290,6 +290,9 @@ namespace Content.Shared.GameObjects.Components.Chemistry
|
||||
/// </summary>
|
||||
public readonly byte FilledVolumeFraction;
|
||||
|
||||
// do we really need this just to save three bytes?
|
||||
public float FilledVolumePercent => (float) FilledVolumeFraction / byte.MaxValue;
|
||||
|
||||
/// <param name="filledVolumeFraction">The fraction of the container's volume that is filled.</param>
|
||||
public SolutionContainerVisualState(Color color, float filledVolumeFraction)
|
||||
{
|
||||
@@ -298,6 +301,12 @@ namespace Content.Shared.GameObjects.Components.Chemistry
|
||||
}
|
||||
}
|
||||
|
||||
public enum SolutionContainerLayers : byte
|
||||
{
|
||||
Fill,
|
||||
Base
|
||||
}
|
||||
|
||||
[Serializable, NetSerializable]
|
||||
public class SolutionContainerComponentState : ComponentState
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user