コード例 #1
0
ファイル: Program.cs プロジェクト: ebrucucen/MonoAGS
        private static 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");

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

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

            return(topPanel);
        }
コード例 #2
0
ファイル: TopBar.cs プロジェクト: tzachshabtay/MonoAGS
		public TopBar(RotatingCursorScheme scheme, InventoryPanel invPanel, OptionsPanel optionsPanel)
		{
			_scheme = scheme;
			_invPanel = invPanel;
			_optionsPanel = optionsPanel;
		}
コード例 #3
0
ファイル: TopBar.cs プロジェクト: ebrucucen/MonoAGS
 public TopBar(RotatingCursorScheme scheme, InventoryPanel invPanel, OptionsPanel optionsPanel)
 {
     _scheme       = scheme;
     _invPanel     = invPanel;
     _optionsPanel = optionsPanel;
 }
コード例 #4
0
ファイル: Program.cs プロジェクト: tzachshabtay/MonoAGS
		private static 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");

			TopBar topBar = new TopBar(cursors.Scheme, inventory, options);
			var topPanel = await topBar.LoadAsync(game);
            Debug.WriteLine("Startup: Loaded Top Bar");

			return topPanel;
		}