- add: new tiles and another ui tweaks (#11)
* - fix: audio crash * - tweak: main menu * connect gui * some shaders here * tiles
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
using Robust.Client.AutoGenerated;
|
||||
using Robust.Client.ResourceManagement;
|
||||
using Robust.Client.UserInterface;
|
||||
using Robust.Client.UserInterface.Controls;
|
||||
using Robust.Client.UserInterface.XAML;
|
||||
@@ -11,19 +10,15 @@ namespace Content.Client.MainMenu.UI;
|
||||
[GenerateTypedNameReferences]
|
||||
public sealed partial class MainMenuControl : Control
|
||||
{
|
||||
public MainMenuControl(IResourceCache resCache, IConfigurationManager configMan)
|
||||
public MainMenuControl(IConfigurationManager configMan)
|
||||
{
|
||||
RobustXamlLoader.Load(this);
|
||||
|
||||
LayoutContainer.SetAnchorPreset(this, LayoutContainer.LayoutPreset.Wide);
|
||||
|
||||
LayoutContainer.SetAnchorPreset(VBox, LayoutContainer.LayoutPreset.TopRight);
|
||||
LayoutContainer.SetMarginRight(VBox, -25);
|
||||
LayoutContainer.SetMarginTop(VBox, 30);
|
||||
LayoutContainer.SetGrowHorizontal(VBox, LayoutContainer.GrowDirection.Begin);
|
||||
|
||||
var logoTexture = resCache.GetResource<TextureResource>("/Textures/Logo/logo.png");
|
||||
Logo.Texture = logoTexture;
|
||||
LayoutContainer.SetAnchorPreset(VBox, LayoutContainer.LayoutPreset.Center);
|
||||
LayoutContainer.SetGrowHorizontal(VBox, LayoutContainer.GrowDirection.Both);
|
||||
LayoutContainer.SetGrowVertical(VBox, LayoutContainer.GrowDirection.Both);
|
||||
|
||||
var currentUserName = configMan.GetCVar(CVars.PlayerName);
|
||||
UsernameBox.Text = currentUserName;
|
||||
|
||||
Reference in New Issue
Block a user