Re-organize all projects (#4166)
This commit is contained in:
19
Content.Client/Chat/ChatHelper.cs
Normal file
19
Content.Client/Chat/ChatHelper.cs
Normal file
@@ -0,0 +1,19 @@
|
||||
using Content.Shared.Chat;
|
||||
using Robust.Shared.Maths;
|
||||
|
||||
namespace Content.Client.Chat
|
||||
{
|
||||
public class ChatHelper
|
||||
{
|
||||
public static Color ChatColor(ChatChannel channel) =>
|
||||
channel switch
|
||||
{
|
||||
ChatChannel.Server => Color.Orange,
|
||||
ChatChannel.Radio => Color.Green,
|
||||
ChatChannel.OOC => Color.LightSkyBlue,
|
||||
ChatChannel.Dead => Color.MediumPurple,
|
||||
ChatChannel.AdminChat => Color.Red,
|
||||
_ => Color.DarkGray
|
||||
};
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Content.Client.Administration;
|
||||
using Content.Client.GameObjects.Components.Observer;
|
||||
using Content.Client.Interfaces.Chat;
|
||||
using Content.Client.Utility;
|
||||
using Content.Client.Administration.Managers;
|
||||
using Content.Client.Chat.UI;
|
||||
using Content.Client.Ghost;
|
||||
using Content.Shared.Administration;
|
||||
using Content.Shared.Chat;
|
||||
using Robust.Client.Console;
|
||||
@@ -20,7 +19,7 @@ using Robust.Shared.Network;
|
||||
using Robust.Shared.Timing;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Client.Chat
|
||||
namespace Content.Client.Chat.Managers
|
||||
{
|
||||
internal sealed class ChatManager : IChatManager, IPostInjectInit
|
||||
{
|
||||
28
Content.Client/Chat/Managers/IChatManager.cs
Normal file
28
Content.Client/Chat/Managers/IChatManager.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System;
|
||||
using Content.Client.Chat.UI;
|
||||
using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
namespace Content.Client.Chat.Managers
|
||||
{
|
||||
public interface IChatManager
|
||||
{
|
||||
void Initialize();
|
||||
|
||||
void FrameUpdate(FrameEventArgs delta);
|
||||
|
||||
void SetChatBox(ChatBox chatBox);
|
||||
|
||||
void RemoveSpeechBubble(EntityUid entityUid, SpeechBubble bubble);
|
||||
|
||||
/// <summary>
|
||||
/// Current chat box control. This can be modified, so do not depend on saving a reference to this.
|
||||
/// </summary>
|
||||
ChatBox? CurrentChatBox { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Invoked when CurrentChatBox is resized (including after setting initial default size)
|
||||
/// </summary>
|
||||
event Action<ChatResizedEventArgs>? OnChatBoxResized;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Immutable;
|
||||
using System.Linq;
|
||||
using Content.Client.State;
|
||||
using Content.Client.UserInterface;
|
||||
using Content.Client.UserInterface.Stylesheets;
|
||||
using Content.Client.Utility;
|
||||
using Content.Client.Alerts.UI;
|
||||
using Content.Client.Chat.Managers;
|
||||
using Content.Client.Lobby;
|
||||
using Content.Client.Resources;
|
||||
using Content.Client.Stylesheets;
|
||||
using Content.Shared.Chat;
|
||||
using Content.Shared.Input;
|
||||
using Robust.Client.Graphics;
|
||||
@@ -20,7 +20,7 @@ using Robust.Shared.Maths;
|
||||
using Robust.Shared.Timing;
|
||||
using Robust.Shared.Utility;
|
||||
|
||||
namespace Content.Client.Chat
|
||||
namespace Content.Client.Chat.UI
|
||||
{
|
||||
public class ChatBox : Control
|
||||
{
|
||||
@@ -1,5 +1,5 @@
|
||||
using System;
|
||||
using Content.Client.Interfaces.Chat;
|
||||
using Content.Client.Chat.Managers;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
@@ -7,7 +7,7 @@ using Robust.Shared.GameObjects;
|
||||
using Robust.Shared.Maths;
|
||||
using Robust.Shared.Timing;
|
||||
|
||||
namespace Content.Client.Chat
|
||||
namespace Content.Client.Chat.UI
|
||||
{
|
||||
public abstract class SpeechBubble : Control
|
||||
{
|
||||
Reference in New Issue
Block a user