Change text for ghost visibility button (#30998)

* add new text

* changed loc names

* fixes

(cherry picked from commit b2a24f50dd7dff965a44ebeea3e7f67bf5a86976)
This commit is contained in:
tosatur
2024-08-19 20:51:54 +03:00
committed by Spatison
parent b11fee326d
commit c718e5ae9f

View File

@@ -119,8 +119,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();