Skip to content

Instantly share code, notes, and snippets.

View boformer's full-sized avatar

boformer boformer

  • Ruhr-Universität Bochum
  • Bochum, Germany
View GitHub Profile
@boformer
boformer / CatenaryReplacer.cs
Last active September 22, 2016 00:34 — forked from TimTheTerribleCS/CatenaryReplacer.cs
Catenary Replacer
using ICities;
using System.Collections.Generic;
using UnityEngine;
namespace CatenaryReplacer
{
public class CatenaryReplacerMod : LoadingExtensionBase, IUserMod
{
private string[] styles = new string[] { "No Catenary", "Dutch A", "Dutch B", "German A", "PRR A" };
public static void GetTextureName()
{
foreach (KeyValuePair<string, Texture2D> entry in currentPrefabProperties)
{
Texture2D texture2D = entry.Value;
if(texture2D == null) continue; // null-Werte skippen
var filename = ModLoader.currentTexturesPath_default + texture2D.name + ".dds";
@boformer
boformer / defaultTemplateByParentTv.plugin.php
Last active August 29, 2015 14:26 — forked from bfncs/defaultTemplateByParentTv.plugin.php
Default Children Template by Parent TV - modX Revolution Plugin
<?php
/**
* =========================
* defaultTemplateByParentTv
* =========================
*
* Plugin for modX Revolution
* Set default template for children of a ressource
*
* Author: