фикс OOC чата для админов

This commit is contained in:
Vigers Ray 2025-04-06 01:59:18 +03:00
parent 9a0324c2b7
commit 0e043b2a67
5 changed files with 9 additions and 8 deletions

View file

@ -22,7 +22,7 @@ public sealed partial class MainMenuControl : Control
LayoutContainer.SetMarginTop(VBox, 30);
LayoutContainer.SetGrowHorizontal(VBox, LayoutContainer.GrowDirection.Begin);
var logoTexture = resCache.GetResource<TextureResource>("/Textures/_Sunrise/Logo/logo-sunrise.png"); // Sunrise-Edit
var logoTexture = resCache.GetResource<TextureResource>("/Textures/_Sunrise/Logo/logo-sunrise-slim.png"); // Sunrise-Edit
Logo.Texture = logoTexture;
var currentUserName = configMan.GetCVar(CVars.PlayerName);

View file

@ -238,17 +238,18 @@ internal sealed partial class ChatManager : IChatManager
private void SendOOC(ICommonSession player, string message)
{
if (_adminManager.IsAdmin(player))
if (!_oocEnabled)
{
if (!_adminOocEnabled)
if (_adminManager.IsAdmin(player))
{
if (!_adminOocEnabled)
return;
}
else
{
return;
}
}
else if (!_oocEnabled)
{
return;
}
Color? colorOverride = null;
var wrappedMessage = Loc.GetString("chat-manager-send-ooc-wrap-message", ("playerName",player.Name), ("message", FormattedMessage.EscapeText(message)));

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

View file

Before

Width:  |  Height:  |  Size: 34 KiB

After

Width:  |  Height:  |  Size: 34 KiB

View file

@ -1,5 +1,5 @@
defaultWindowTitle: Sunrise Station
windowIconSet: /Textures/Logo/icon
splashLogo: /Textures/_Sunrise/Logo/logo-sunrise.png # Sunrise-Edit
splashLogo: /Textures/_Sunrise/Logo/logo-sunrise-splash.png # Sunrise-Edit
# PJB PLEASE