コード例 #1
0
ファイル: ServerMenu.cs プロジェクト: rcheze/HyperAdmin
 public ResourceListMenu(Client client, ServerMenu parent) : base("Resources", parent)
 {
     foreach (var resource in new ResourceList())
     {
         Add(new MenuItemSubMenu(client, this, new ResourceMenu(client, resource, this)));
     }
 }
コード例 #2
0
ファイル: AdminController.cs プロジェクト: rcheze/HyperAdmin
        public AdminMenu(Client client) : base("HyperAdmin")
        {
            _client = client;
            var players = new PlayerListMenu(this, client);

            Add(new MenuItemSubMenu(client, this, players, ace: Constants.AceAdminMonitor));

            // TODO: Fix Overhead Names (Mooshe)
            //var hudMenu = new HudMenu( client, this );
            //Add( new MenuItemSubMenu( client, this, hudMenu, ace: Constants.AceAdminMonitor ) );

            var serverMenu = new ServerMenu(client, this);

            Add(new MenuItemSubMenu(client, this, serverMenu, ace: Constants.AceAdminMonitor));
        }