* Backing up local repo before upgrading OS, minor work on chat UI * Cleaned out unnecessary modded files * Got a working version of filter toggles based on flag enums * Added localization to chatbox buttons * Should actually fix modified proj files, thanks PJB * Fixed enum operators to unset instead of toggle * Added a local client class for storing net message details * Reworked RepopulateChat to pull from a StoredChatMessage list * Fixed messages dissapearing * Re-ordered logic to be a bit more efficient with re-drawing chat
64 lines
1.7 KiB
C#
64 lines
1.7 KiB
C#
using Robust.Client.Graphics;
|
|
using Robust.Client.Graphics.Drawing;
|
|
using Robust.Client.Interfaces.Graphics;
|
|
using Robust.Client.UserInterface.Controls;
|
|
using Robust.Client.UserInterface.CustomControls;
|
|
using Robust.Client.Utility;
|
|
using Robust.Shared.IoC;
|
|
using Robust.Shared.Log;
|
|
using Robust.Shared.Maths;
|
|
using Robust.Shared.ViewVariables;
|
|
|
|
using Content.Client.Chat;
|
|
|
|
namespace Content.Client.Chat
|
|
{
|
|
public class ChatFilterUI : SS14Window
|
|
{
|
|
protected override void Initialize()
|
|
{
|
|
base.Initialize();
|
|
|
|
HideOnClose = true;
|
|
Title = "Filter Channels";
|
|
Visible = false;
|
|
|
|
var margin = new MarginContainer()
|
|
{
|
|
MarginTop = 5f,
|
|
MarginLeft = 5f,
|
|
MarginRight = -5f,
|
|
MarginBottom = -5f,
|
|
};
|
|
|
|
margin.SetAnchorAndMarginPreset(LayoutPreset.TopRight);
|
|
|
|
var vbox = new VBoxContainer();
|
|
|
|
vbox.SetAnchorAndMarginPreset(LayoutPreset.TopRight);
|
|
|
|
var descMargin = new MarginContainer()
|
|
{
|
|
MarginTop = 5f,
|
|
MarginLeft = 5f,
|
|
MarginRight = -5f,
|
|
MarginBottom = -5f,
|
|
SizeFlagsHorizontal = SizeFlags.Fill,
|
|
SizeFlagsStretchRatio = 2,
|
|
};
|
|
|
|
var hbox = new HBoxContainer()
|
|
{
|
|
SizeFlagsHorizontal = SizeFlags.FillExpand,
|
|
};
|
|
|
|
var vboxInfo = new VBoxContainer()
|
|
{
|
|
SizeFlagsVertical = SizeFlags.FillExpand,
|
|
SizeFlagsStretchRatio = 3,
|
|
};
|
|
|
|
|
|
}
|
|
}
|
|
} |