Adds Gas Analyzer (#1591)
* -Started Gas Analyzer -TemperatureHelpers * Formatting * Adds PopupTooltip to NotifyManager * Revert Tooltip fuckery * Gas Analyzer gives proper error messages * Localization * Added a very wip gas analyzer ui * UI works, doesn't look good but hey * Safety checks * Fancy WIP gas mix bar * Gas Color * Gas Amount shows only 2 decimal places * -Made bar full width -Moved gas list into a table -Some gas bar things * IDropped something * Description * -Percentage -Padding * ItemStatus * -Proper Danger Warnings -Added Warning danger state * Pressure unit Co-authored-by: Víctor Aguilera Puerto <6766154+Zumorica@users.noreply.github.com>
This commit is contained in:
@@ -69,6 +69,8 @@ namespace Content.Shared.Atmos
|
||||
/// </summary>
|
||||
public string OverlayPath { get; private set; }
|
||||
|
||||
public string Color { get; private set; }
|
||||
|
||||
public void LoadFrom(YamlMappingNode mapping)
|
||||
{
|
||||
var serializer = YamlObjectSerializer.NewReader(mapping);
|
||||
@@ -81,6 +83,7 @@ namespace Content.Shared.Atmos
|
||||
serializer.DataField(this, x => GasOverlayTexture, "gasOverlayTexture", string.Empty);
|
||||
serializer.DataField(this, x => GasOverlaySprite, "gasOverlaySprite", string.Empty);
|
||||
serializer.DataField(this, x => GasOverlayState, "gasOverlayState", string.Empty);
|
||||
serializer.DataField(this, x => Color, "color", string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user