- fix: Lobby fixes
This commit is contained in:
@@ -179,8 +179,8 @@ namespace Content.Client.Entry
|
||||
_overlayManager.AddOverlay(new SingularityOverlay());
|
||||
_overlayManager.AddOverlay(new FlashOverlay());
|
||||
_overlayManager.AddOverlay(new RadiationPulseOverlay());
|
||||
_overlayManager.AddOverlay(new GrainOverlay());
|
||||
_overlayManager.AddOverlay(new AtmOverlay());
|
||||
// _overlayManager.AddOverlay(new GrainOverlay());
|
||||
// _overlayManager.AddOverlay(new AtmOverlay());
|
||||
_chatManager.Initialize();
|
||||
_clientPreferencesManager.Initialize();
|
||||
_euiManager.Initialize();
|
||||
|
||||
@@ -57,7 +57,7 @@
|
||||
<!-- Vertical Padding -->
|
||||
<Control VerticalExpand="True" />
|
||||
|
||||
<ui:OhioRichTextLabel Name="LabelName" Access="Public" HorizontalAlignment="Left"
|
||||
<RichTextLabel Name="LabelName" Access="Public" HorizontalAlignment="Left"
|
||||
VerticalAlignment="Center" Margin="0 0 0 350" />
|
||||
|
||||
<!-- Ohio Container -->
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
using System.Numerics;
|
||||
using Robust.Client.Graphics;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
|
||||
namespace Content.Client._Ohio.UI;
|
||||
|
||||
public sealed class OhioRichTextLabel : RichTextLabel
|
||||
{
|
||||
private Texture? _moonTexture;
|
||||
private string? _moonTexturePath = "/Textures/Ohio/Lobby/moon.png";
|
||||
|
||||
public OhioRichTextLabel()
|
||||
{
|
||||
_moonTexture = Theme.ResolveTexture(_moonTexturePath);
|
||||
}
|
||||
|
||||
protected override void Draw(DrawingHandleScreen handle)
|
||||
{
|
||||
base.Draw(handle);
|
||||
|
||||
var moonTexture = _moonTexture;
|
||||
|
||||
if (moonTexture == null)
|
||||
return;
|
||||
|
||||
var moonPosition = new Vector2(SizeBox.Right + 2, SizeBox.Top + (SizeBox.Height - moonTexture.Size.Y) / 2);
|
||||
|
||||
handle.DrawTextureRectRegion(moonTexture, UIBox2.FromDimensions(moonPosition, moonTexture.Size));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user