From b2a24f50dd7dff965a44ebeea3e7f67bf5a86976 Mon Sep 17 00:00:00 2001 From: tosatur <63034378+tosatur@users.noreply.github.com> Date: Tue, 20 Aug 2024 03:51:54 +1000 Subject: [PATCH] Change text for ghost visibility button (#30998) * add new text * changed loc names * fixes --- Content.Client/Ghost/GhostSystem.cs | 4 ++-- Resources/Locale/en-US/ghost/ghost-gui.ftl | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Content.Client/Ghost/GhostSystem.cs b/Content.Client/Ghost/GhostSystem.cs index 94872a58ef..f4f7e3459f 100644 --- a/Content.Client/Ghost/GhostSystem.cs +++ b/Content.Client/Ghost/GhostSystem.cs @@ -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(); diff --git a/Resources/Locale/en-US/ghost/ghost-gui.ftl b/Resources/Locale/en-US/ghost/ghost-gui.ftl index cd6c2f0270..cd4559e148 100644 --- a/Resources/Locale/en-US/ghost/ghost-gui.ftl +++ b/Resources/Locale/en-US/ghost/ghost-gui.ftl @@ -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.