]> git.smokeofanarchy.ru Git - space-station-14.git/commitdiff
Change text for ghost visibility button (#30998)
authortosatur <63034378+tosatur@users.noreply.github.com>
Mon, 19 Aug 2024 17:51:54 +0000 (03:51 +1000)
committerGitHub <noreply@github.com>
Mon, 19 Aug 2024 17:51:54 +0000 (19:51 +0200)
* add new text

* changed loc names

* fixes

Content.Client/Ghost/GhostSystem.cs
Resources/Locale/en-US/ghost/ghost-gui.ftl

index 94872a58ef9772247b801287df0b3195bcbe1bd7..f4f7e3459fb9810418bc9ba9c7da89e97f952724 100644 (file)
@@ -99,8 +99,8 @@ namespace Content.Client.Ghost
             if (args.Handled)
                 return;
 
-            Popup.PopupEntity(Loc.GetString("ghost-gui-toggle-ghost-visibility-popup"), args.Performer);
-
+            var locId = GhostVisibility ? "ghost-gui-toggle-ghost-visibility-popup-off" : "ghost-gui-toggle-ghost-visibility-popup-on";
+            Popup.PopupEntity(Loc.GetString(locId), args.Performer);
             if (uid == _playerManager.LocalEntity)
                 ToggleGhostVisibility();
 
index cd6c2f027069a065b4d640fd8006b2728abeec3c..cd4559e1482ea59d94d9b669bc2bb13b3f0ee4a6 100644 (file)
@@ -1,7 +1,8 @@
 ghost-gui-return-to-body-button = Return to body
 ghost-gui-ghost-warp-button = Ghost Warp
 ghost-gui-ghost-roles-button = Ghost Roles ({$count})
-ghost-gui-toggle-ghost-visibility-popup = Toggled visibility of ghosts.
+ghost-gui-toggle-ghost-visibility-popup-on = Enabled visibility of ghosts.
+ghost-gui-toggle-ghost-visibility-popup-off = Disabled visibility of ghosts.
 ghost-gui-toggle-lighting-manager-popup = Toggled all lighting.
 ghost-gui-toggle-fov-popup = Toggled field-of-view.