Exemplo n.º 1
0
        public void LoadGameInterfaceGraphics(string Zone)
        {
            XMLLoader xml = new XMLLoader(IOManager.GameInterfaceXML);

            graphicsCollection.AddCollectionFromXml(xml.Document, IOOperation.GameInterface_Graphics, IOContent.Graphics);

            CurrentZone = Zone;
            DisplayManager.GameInterfaceLoaded = true;
        }
Exemplo n.º 2
0
        void CreateAndShowMainMenu()
        {
            CameraFreeze();
            XMLLoader xmlLoader = new XMLLoader();
            xmlLoader.Load("Profiles\\profiles.xml");
            userList = new UsersList(xmlLoader.Document);

            mainMenu = new MainMenu(this.Game, ref userList);
            mainMenu.OnNewGameStartClick += new EventHandler<MainMenuEventArgs>(mainMenu_OnNewGameStartClick);
            mainMenu.OnExitClick += new EventHandler(mainMenu_OnExitClick);
            mainMenu.OnDeleteUserClick += new EventHandler<MainMenuEventArgs>(mainMenu_OnDeleteUSerClick);
            mainMenu.OnLoadGameClick += new EventHandler<MainMenuEventArgs>(mainMenu_OnLoadGameClick);

            pointer = new Sprite(this.Game, GraphicsCollection.GetPack("pointer"));
            pointer.XRelative = 0;
            pointer.YRelative = 0;
            pointer.DrawOrder = 10000;
        }
Exemplo n.º 3
0
 public void LoadGameMapGraphics()
 {
     XMLLoader xml = new XMLLoader(IOManager.GameMapXML);
     graphicsCollection.AddCollectionFromXml(xml.Document, IOOperation.GameMap_Graphics, IOContent.Graphics);
 }
Exemplo n.º 4
0
        public void LoadGameInterfaceGraphics(string Zone)
        {
            XMLLoader xml = new XMLLoader(IOManager.GameInterfaceXML);
            graphicsCollection.AddCollectionFromXml(xml.Document, IOOperation.GameInterface_Graphics, IOContent.Graphics);

            CurrentZone = Zone;
            DisplayManager.GameInterfaceLoaded = true;
        }
Exemplo n.º 5
0
 public void LoadCommandCenterGraphics()
 {
     XMLLoader command_centerXml = new XMLLoader(IOManager.CommandCenterXML);
     graphicsCollection.AddCollectionFromXml(command_centerXml.Document, IOOperation.CommandCenter, IOContent.Graphics);
 }
Exemplo n.º 6
0
 public void LoadMainMenuGraphics()
 {
     XMLLoader main_menuXml = new XMLLoader(IOManager.MainMenuXML);
     graphicsCollection.AddCollectionFromXml(main_menuXml.Document, IOOperation.MainMenu, IOContent.Graphics);
 }
Exemplo n.º 7
0
 public void LoadFonts()
 {
     XMLLoader fontsXml = new XMLLoader(IOManager.FontsXML);
     fontsCollection.AddFontsFromXml(fontsXml.Document, IOOperation.MainMenu, IOContent.Fonts);
 }
Exemplo n.º 8
0
        public void LoadGameMapGraphics()
        {
            XMLLoader xml = new XMLLoader(IOManager.GameMapXML);

            graphicsCollection.AddCollectionFromXml(xml.Document, IOOperation.GameMap_Graphics, IOContent.Graphics);
        }
Exemplo n.º 9
0
        public void LoadCommandCenterGraphics()
        {
            XMLLoader command_centerXml = new XMLLoader(IOManager.CommandCenterXML);

            graphicsCollection.AddCollectionFromXml(command_centerXml.Document, IOOperation.CommandCenter, IOContent.Graphics);
        }
Exemplo n.º 10
0
        public void LoadMainMenuGraphics()
        {
            XMLLoader main_menuXml = new XMLLoader(IOManager.MainMenuXML);

            graphicsCollection.AddCollectionFromXml(main_menuXml.Document, IOOperation.MainMenu, IOContent.Graphics);
        }
Exemplo n.º 11
0
        public void LoadFonts()
        {
            XMLLoader fontsXml = new XMLLoader(IOManager.FontsXML);

            fontsCollection.AddFontsFromXml(fontsXml.Document, IOOperation.MainMenu, IOContent.Fonts);
        }