Пример #1
0
        private async Task <IPanel> loadUi(IGame game)
        {
            MouseCursors cursors = new MouseCursors();
            await cursors.LoadAsync(game);

            Debug.WriteLine("Startup: Loaded Cursors");

            InventoryPanel inventory = new InventoryPanel(cursors.Scheme);
            await inventory.LoadAsync(game);

            Debug.WriteLine("Startup: Loaded Inventory Panel");

            OptionsPanel options = new OptionsPanel(cursors.Scheme);
            await options.LoadAsync(game);

            Debug.WriteLine("Startup: Loaded Options Panel");

            FeaturesTopWindow features = new FeaturesTopWindow(cursors.Scheme);

            features.Load(game);
            Debug.WriteLine("Startup: Loaded Features Panel");

            TopBar topBar   = new TopBar(cursors.Scheme, inventory, options, features);
            var    topPanel = await topBar.LoadAsync(game);

            Debug.WriteLine("Startup: Loaded Top Bar");

            return(topPanel);
        }
Пример #2
0
 public TopBar(RotatingCursorScheme scheme, InventoryPanel invPanel, OptionsPanel optionsPanel,
               FeaturesTopWindow featuresPanel)
 {
     _scheme        = scheme;
     _invPanel      = invPanel;
     _optionsPanel  = optionsPanel;
     _featuresPanel = featuresPanel;
 }