This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using ColossalFramework.Plugins; | |
using ColossalFramework.UI; | |
using ICities; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Reflection; | |
using System.Xml.Serialization; | |
using UnityEngine; | |
namespace ThemeDecals |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.IO; | |
using ICities; | |
using UnityEngine; | |
using ColossalFramework.IO; | |
using ObjUnity3D; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text.RegularExpressions; | |
using System.Linq; | |
using System.Text; | |
using System.Reflection; | |
using ICities; | |
using UnityEngine; | |
namespace LightEffects |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Custom Light Effects Scripts | |
// Adds custom light effects to props. | |
// Multiple effects can be added, including vanilla ones. | |
// The mod is not required to run the scripts or save the asset. | |
// It's only required for loading them. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unlimited Money | |
Unlimited Oil And Ore | |
Unlock All | |
ModTools | |
Asset Prefab AI Changer | |
Toggle Asset Properties Panel | |
Asset Item Class Changer | |
Asset UICategory Changer | |
More Network Stuff | |
Prefab Hook |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as BuildingInfo; // BuildingInfo PropInfo VehicleInfo | |
var color1 = new Color32(255, 255, 255, 255); | |
var color2 = new Color32(255, 255, 255, 255); | |
var color3 = new Color32(255, 255, 255, 255); | |
var color4 = new Color32(255, 255, 255, 255); | |
asset.m_material.SetColor("_ColorV0", color1); | |
asset.m_material.SetColor("_ColorV1", color2); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ploppable Apshalt + (RoadBridge) used for asphalt and pavement. | |
// Automatic normal editing, mesh scaling and vertex painting for main and LOD meshes. | |
// Also removes ruining, and tags as ploppable asphalt prop. | |
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as PropInfo; | |
asset.m_UIPriority = 0; // Set your UI priority! | |
var triangles = asset.m_mesh.triangles; | |
int[] triangleArray = new int[triangles.Length]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as VehicleInfo; | |
var vec = new Vector4(0.0f, 5.0f, 0.0f, 0.0f); // (foundation, floor height, width, length) | |
asset.m_material.SetVector("_FloorParams", vec); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var asset = ToolsModifierControl.toolController.m_editPrefabInfo as NetInfo; | |
// change half width | |
asset.m_halfWidth = 22.0f; | |
// enable create pavement | |
asset.m_createPavement = true; | |
// change the color of basic segment 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Natural Resource Texture Importer | |
// Imports a natural resource texture and applies the resource values to all cells on the map. | |
// Texture name and location must be gamefolder/textures/res.png | |
// Resolution is 512x512 | |
// | |
// Channel explanation: | |
// Default value for all channels is 128. | |
// | |
// Red (128-0) Oil (inverted) |