Ejemplo n.º 1
0
        /// <summary>
        /// Loads in textures to be used by the mod.
        /// </summary>
        private void loadInTextures()
        {
            TextureManager.AddTextureManager(Manifest, "Furniture");
            TextureManager.GetTextureManager(Manifest, "Furniture").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Objects", "Furniture"));
            TextureManager.AddTextureManager(Manifest, "Machines");
            TextureManager.GetTextureManager(Manifest, "Machines").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Objects", "Machines"));
            TextureManager.AddTextureManager(Manifest, "InventoryMenu");
            TextureManager.GetTextureManager(Manifest, "InventoryMenu").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Menus", "InventoryMenu"));
            TextureManager.AddTextureManager(Manifest, "Resources.Ore");
            TextureManager.GetTextureManager(Manifest, "Resources.Ore").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Objects", "Resources", "Ore"));
            TextureManager.AddTextureManager(Manifest, "Items.Resources.Misc");
            TextureManager.GetTextureManager(Manifest, "Items.Resources.Misc").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Items", "Resources", "Misc"));
            TextureManager.AddTextureManager(Manifest, "Items.Resources.Ore");
            TextureManager.GetTextureManager(Manifest, "Items.Resources.Ore").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Items", "Resources", "Ore"));
            TextureManager.AddTextureManager(Manifest, "Tools");
            TextureManager.GetTextureManager(Manifest, "Tools").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Items", "Tools"));

            TextureManager.AddTextureManager(Manifest, "Menus");
            TextureManager.GetTextureManager(Manifest, "Menus").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Menus", "Misc"));

            TextureManager.AddTextureManager(Manifest, "Menus.EnergyMenu");
            TextureManager.GetTextureManager(Manifest, "Menus.EnergyMenu").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Menus", "EnergyMenu"));

            TextureManager.AddTextureManager(Manifest, "CraftingMenu");
            TextureManager.GetTextureManager(Manifest, "CraftingMenu").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Menus", "CraftingMenu"));

            TextureManager.AddTextureManager(Manifest, "HUD");
            TextureManager.GetTextureManager(Manifest, "HUD").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "HUD"));

            TextureManager.AddTextureManager(Manifest, "Objects.Crafting");
            TextureManager.GetTextureManager(Manifest, "Objects.Crafting").searchForTextures(ModHelper, this.ModManifest, Path.Combine("Content", "Graphics", "Objects", "Crafting"));
        }