Fixed Role Anchor
This commit is contained in:
parent
bfb9012574
commit
29d425b555
@ -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());
|
||||
}
|
||||
}
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user