Fixed Role Anchor

This commit is contained in:
JacobTech 2024-11-18 10:54:30 -05:00
parent bfb9012574
commit 29d425b555
2 changed files with 39 additions and 1 deletions

View File

@ -0,0 +1,38 @@
using GraphicsManager.Enums;
using GraphicsManager.Objects;
using GraphicsManager.Objects.Core;
namespace Luski.GUI.MainScreen.UI.LuskiControls.SettingsMenuBase.Core;
public class PageUserControl : UserControl, ISettingsPage
{
public string PageName
{
get
{
return pn;
}
set
{
pn = value;
TitleLable.Text = $" \n{value}\n ";
}
}
public FontInteraction TitleFont { get; set; }
public Label TitleLable;
private string pn = "Blank Page";
public PageUserControl()
{
TitleFont = Globals.DefaultFont.Clone();
TitleFont.FontSize = FontSize.Bold;
TitleFont.PixelHeight = (uint)(TitleFont.PixelHeight * 1.4f);
Controls.Add(TitleLable = new Label(TitleFont)
{
Text = $" \nBlank Page\n "
});
base.Visible = false;
base.Size = new(945.ScaleInt(), 896.ScaleInt());
}
}

View File

@ -5,7 +5,7 @@ using OpenTK.Mathematics;
namespace Luski.GUI.MainScreen.UI.PublicServers.ServerSettings.Pages.Server.Roles;
public class Roles : PageFlow
public class Roles : PageUserControl
{
private ServerRoleInteraction Page;