]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
ExaminableDamage now puts its message at the bottom and in color (#32820)
authorMoomoobeef <62638182+Moomoobeef@users.noreply.github.com>
Fri, 1 Nov 2024 00:21:05 +0000 (17:21 -0700)
committerGitHub <noreply@github.com>
Fri, 1 Nov 2024 00:21:05 +0000 (01:21 +0100)
* the examineableDamage component now puts its messages at the bottom, and in color

* god help us if something is priority -100 :godo:

Content.Server/Damage/Systems/ExaminableDamageSystem.cs
Resources/Locale/en-US/window/window-component.ftl

index dd7c4b12e84136903dd54f8f6f665348a36b53b8..c80e19a53d6ce27332de6933ba46702ce179a8a9 100644 (file)
@@ -39,7 +39,7 @@ public sealed class ExaminableDamageSystem : EntitySystem
 
         var level = GetDamageLevel(uid, component);
         var msg = Loc.GetString(messages[level]);
-        args.PushMarkup(msg);
+        args.PushMarkup(msg,-99);
     }
 
     private int GetDamageLevel(EntityUid uid, ExaminableDamageComponent? component = null,
index 3ecceb8a94ed7b162f6f63e69a69fadbaa412c24..62e9c46f1be1d6bc97ea120084cd15ba4d96cb9b 100644 (file)
@@ -2,13 +2,14 @@
 
 # Shown when examining the window. Each entry represents the window's health condition
 comp-window-damaged-1 = It looks fully intact.
-comp-window-damaged-2 = It has a few scratches
+comp-window-damaged-2 = It has a few scratches.
 comp-window-damaged-3 = It has a few small cracks.
-comp-window-damaged-4 = It has several big cracks running along its surface.
-comp-window-damaged-5 = It has deep cracks across multiple layers.
-comp-window-damaged-6 = It's extremely cracked and on the verge of shattering.
+comp-window-damaged-4 = [color=yellow]It has several big cracks running along its surface.[/color]
+comp-window-damaged-5 = [color=orange]It has deep cracks across multiple layers.[/color]
+comp-window-damaged-6 = [color=red]It's extremely cracked and on the verge of shattering.[/color]
 
 ### Interaction Messages
 
 # Shown when knocking on a window
 comp-window-knock = *knock knock*
+