Remove v0.1 version number from local main menu screen (#20617)
This commit is contained in:
@@ -41,6 +41,5 @@
|
|||||||
Name="ChangelogButton"
|
Name="ChangelogButton"
|
||||||
Access="Public"/>
|
Access="Public"/>
|
||||||
</BoxContainer>
|
</BoxContainer>
|
||||||
<Label Name="VersionLabel" Text="v0.1" />
|
|
||||||
</LayoutContainer>
|
</LayoutContainer>
|
||||||
</Control>
|
</Control>
|
||||||
|
|||||||
@@ -6,31 +6,26 @@ using Robust.Client.UserInterface.XAML;
|
|||||||
using Robust.Shared;
|
using Robust.Shared;
|
||||||
using Robust.Shared.Configuration;
|
using Robust.Shared.Configuration;
|
||||||
|
|
||||||
namespace Content.Client.MainMenu.UI
|
namespace Content.Client.MainMenu.UI;
|
||||||
|
|
||||||
|
[GenerateTypedNameReferences]
|
||||||
|
public sealed partial class MainMenuControl : Control
|
||||||
{
|
{
|
||||||
[GenerateTypedNameReferences]
|
public MainMenuControl(IResourceCache resCache, IConfigurationManager configMan)
|
||||||
public sealed partial class MainMenuControl : Control
|
{
|
||||||
{
|
RobustXamlLoader.Load(this);
|
||||||
public MainMenuControl(IResourceCache resCache, IConfigurationManager configMan)
|
|
||||||
{
|
|
||||||
RobustXamlLoader.Load(this);
|
|
||||||
|
|
||||||
LayoutContainer.SetAnchorPreset(this, LayoutContainer.LayoutPreset.Wide);
|
LayoutContainer.SetAnchorPreset(this, LayoutContainer.LayoutPreset.Wide);
|
||||||
|
|
||||||
LayoutContainer.SetAnchorPreset(VBox, LayoutContainer.LayoutPreset.TopRight);
|
LayoutContainer.SetAnchorPreset(VBox, LayoutContainer.LayoutPreset.TopRight);
|
||||||
LayoutContainer.SetMarginRight(VBox, -25);
|
LayoutContainer.SetMarginRight(VBox, -25);
|
||||||
LayoutContainer.SetMarginTop(VBox, 30);
|
LayoutContainer.SetMarginTop(VBox, 30);
|
||||||
LayoutContainer.SetGrowHorizontal(VBox, LayoutContainer.GrowDirection.Begin);
|
LayoutContainer.SetGrowHorizontal(VBox, LayoutContainer.GrowDirection.Begin);
|
||||||
|
|
||||||
var logoTexture = resCache.GetResource<TextureResource>("/Textures/Logo/logo.png");
|
var logoTexture = resCache.GetResource<TextureResource>("/Textures/Logo/logo.png");
|
||||||
Logo.Texture = logoTexture;
|
Logo.Texture = logoTexture;
|
||||||
|
|
||||||
var currentUserName = configMan.GetCVar(CVars.PlayerName);
|
var currentUserName = configMan.GetCVar(CVars.PlayerName);
|
||||||
UsernameBox.Text = currentUserName;
|
UsernameBox.Text = currentUserName;
|
||||||
|
}
|
||||||
LayoutContainer.SetAnchorPreset(VersionLabel, LayoutContainer.LayoutPreset.BottomRight);
|
|
||||||
LayoutContainer.SetGrowHorizontal(VersionLabel, LayoutContainer.GrowDirection.Begin);
|
|
||||||
LayoutContainer.SetGrowVertical(VersionLabel, LayoutContainer.GrowDirection.Begin);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user