Level based theme

In this example we will show you how we can have different theme on different level.

First we will start by creating theme override file. Since we can create any object type, we will create it using level id and default object type. For example, any object "Unit" on level 2131 will be updated to type "2131_Unit". In theme.js file we have created few object types for all 4 levels.

Once we override a theme, we need to capture level change event so that we can change the type of an object using inlay.

Just change the levels in following example and see the different themes.