Improved top menu (#2949)
* #272 proper open sides in menu buttons * #272 WIP, good starting point for making the top menu work well at different UI scales * #272 WIP top menu looking better, but inconsistent size * #272 WIP esc nice and big * #272 consistently sized top buttons * #272 proper highlighting of top menu elements * #272 proper highlighting of top menu elements * #272 nice shiny red tutorial button * #272 better tutorial icon * #272 missed svg changes * #272 consistently sized top menu * #272 better padding / alignment of top bar with other UI sections * #272 fix hamburger menu height to match others * #272 top menu name set based on keybind, use shortened names if possible * #272 top menu name set based on keybind, use shortened names if possible * #272 add top menu actions button * #272 add top menu admin button * #272 fix sandbox top button down status * #272 remove todo
This commit is contained in:
@@ -31,6 +31,7 @@ namespace Content.Client.UserInterface.AdminMenu
|
||||
public readonly TabContainer MasterTabContainer;
|
||||
public readonly VBoxContainer PlayerList;
|
||||
public readonly Label PlayerCount;
|
||||
private readonly IGameHud _gameHud;
|
||||
|
||||
protected override Vector2? CustomSize => (500, 250);
|
||||
|
||||
@@ -207,6 +208,7 @@ namespace Content.Client.UserInterface.AdminMenu
|
||||
|
||||
public AdminMenuWindow() //TODO: search for buttons?
|
||||
{
|
||||
_gameHud = IoCManager.Resolve<IGameHud>();
|
||||
Title = Loc.GetString("Admin Menu");
|
||||
|
||||
#region PlayerList
|
||||
@@ -377,6 +379,19 @@ namespace Content.Client.UserInterface.AdminMenu
|
||||
IoCManager.Resolve<IStationEventManager>().RequestEvents();
|
||||
}
|
||||
|
||||
protected override void ExitedTree()
|
||||
{
|
||||
base.ExitedTree();
|
||||
_gameHud.AdminButtonDown = false;
|
||||
|
||||
}
|
||||
|
||||
protected override void EnteredTree()
|
||||
{
|
||||
base.EnteredTree();
|
||||
_gameHud.AdminButtonDown = true;
|
||||
}
|
||||
|
||||
#region CommandButtonBaseClass
|
||||
private abstract class CommandButton
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user