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
// ==UserScript== | |
// @name simpleplanes.com tweaks | |
// @version 0.2 | |
// @include http://simpleplanes.com/* | |
// @include https://simpleplanes.com/* | |
// @include http://www.simpleplanes.com/* | |
// @include https://www.simpleplanes.com/* | |
// @author WNP78 | |
// ==/UserScript== |
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.Linq; | |
using System.Reflection; | |
using System.Collections.Generic; | |
namespace WNP78 | |
{ | |
public static class ReflectionUtils | |
{ | |
public static string ToArrayString(this Array a) |
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 UnityEngine; | |
using System; | |
using System.Collections; | |
using System.Collections.Generic; | |
using System.Threading; | |
public class TerrainGenerator : MonoBehaviour | |
{ | |
#region Parameters | |
public float PosScale = 0.25f; |
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
import sys,os | |
def tryFindSpDir(): | |
if sys.platform.startswith("win"): | |
p = os.path.abspath(os.path.join(os.getenv("APPDATA"),"..\\LocalLow\Jundroo\SimplePlanes\AircraftDesigns")) + "\\" | |
if os.path.isdir(p): return p | |
elif sys.platform.startswith("darwin"): # MacOS - not tested | |
p = os.path.abspath("~/Library/Application Support/Jundroo/SimplePlanes/AircraftDesigns") + "/" | |
if os.path.isdir(p): return p | |
return input("SP aircraft directory> ") # failed to auto detect |