Giter Site home page Giter Site logo

Comments (3)

bloodypenguin avatar bloodypenguin commented on August 16, 2024

I'll see if it's possible to use Improved Assets Panel as theme manager.

from buildingthemes.

SamsamTS avatar SamsamTS commented on August 16, 2024

I was think about it and I had the idea to use collections. Basically the users enter the collection steam ID or url and the theme is automatically created. I'll help implementing that when I have the time.

from buildingthemes.

boformer avatar boformer commented on August 16, 2024

An update on this:

Theme Mods are now supported. To create a theme mod, just create a very simple mod with a name and description:

using ICities;

namespace BuildingThemes
{
    public class BuildingThemeTrailerHome : IUserMod
    {
        public string Name
        {
            get
            {
                return "Building Theme: American Trailer Homes";
            }
        }

        public string Description
        {
            get { return "Adds a theme containing 9 low-density residential buildings."; }
        }
    }
}

The theme definition is done by bundling an XML file with the mod. The schema is similar to the Building Themes Main configuration. One mod can also add multiple themes.

<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Themes>
    <Theme name="American Trailer Homes">
      <Buildings>
        <Building name="432246045.DK-L1 1x2 American House 1_Data" />
        <Building name="432246308.DK-L1 2x2 American House 1_Data" />
        <Building name="432289854.DK-L1 3x3 American House 1_Data" />
        <Building name="437038660.DK-L1 1x2 Trailer House 2_Data" />
        <Building name="437039049.DK-L1 2x2 Trailer House 2_Data" />
        <Building name="437039368.DK-L1 3x3 Trailer House 2_Data" />
        <Building name="444132040.DK-L1 1x2 USA Trailer House 3_Data" />
        <Building name="444132141.DK-L1 2x2 USA Trailer House 3_Data" />
        <Building name="444132239.DK-L1 3x3 USA Trailer House 3_Data" />
      </Buildings>
    </Theme>
  </Themes>
</Configuration>

A mod like ImprovedModsPanel could detect Building Theme Mods and display them separately (like Color Corrections). Maybe it would even be possible that when you enable a theme in the Content Manager, all contained buildings are also enabled.

from buildingthemes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.