|
|
@ -5,7 +5,7 @@ using UnityEngine; |
|
|
|
|
|
|
|
|
public class Bootstrap : MonoBehaviour |
|
|
public class Bootstrap : MonoBehaviour |
|
|
{ |
|
|
{ |
|
|
private string mod; |
|
|
|
|
|
|
|
|
private string mod, args; |
|
|
private float speed = 1.0f; |
|
|
private float speed = 1.0f; |
|
|
|
|
|
|
|
|
private UniQuake uq; |
|
|
private UniQuake uq; |
|
|
@ -22,6 +22,7 @@ public class Bootstrap : MonoBehaviour |
|
|
uq = gameObject.AddComponent<UniQuake>(); |
|
|
uq = gameObject.AddComponent<UniQuake>(); |
|
|
uq.BaseGame = MissionPack.Quake; |
|
|
uq.BaseGame = MissionPack.Quake; |
|
|
uq.ModDirectory = mod; |
|
|
uq.ModDirectory = mod; |
|
|
|
|
|
uq.AdditionalArguments = ParseArgs(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (GUILayout.Button("Start Scourge of Armagon!")) |
|
|
if (GUILayout.Button("Start Scourge of Armagon!")) |
|
|
@ -29,6 +30,7 @@ public class Bootstrap : MonoBehaviour |
|
|
uq = gameObject.AddComponent<UniQuake>(); |
|
|
uq = gameObject.AddComponent<UniQuake>(); |
|
|
uq.BaseGame = MissionPack.Hipnotic; |
|
|
uq.BaseGame = MissionPack.Hipnotic; |
|
|
uq.ModDirectory = mod; |
|
|
uq.ModDirectory = mod; |
|
|
|
|
|
uq.AdditionalArguments = ParseArgs(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
if (GUILayout.Button("Start Dissolution of Eternity!")) |
|
|
if (GUILayout.Button("Start Dissolution of Eternity!")) |
|
|
@ -36,10 +38,14 @@ public class Bootstrap : MonoBehaviour |
|
|
uq = gameObject.AddComponent<UniQuake>(); |
|
|
uq = gameObject.AddComponent<UniQuake>(); |
|
|
uq.BaseGame = MissionPack.Rogue; |
|
|
uq.BaseGame = MissionPack.Rogue; |
|
|
uq.ModDirectory = mod; |
|
|
uq.ModDirectory = mod; |
|
|
|
|
|
uq.AdditionalArguments = ParseArgs(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
GUILayout.Label("Mod directory:"); |
|
|
GUILayout.Label("Mod directory:"); |
|
|
mod = GUILayout.TextField(mod); |
|
|
mod = GUILayout.TextField(mod); |
|
|
|
|
|
|
|
|
|
|
|
GUILayout.Label("Additional arguments:"); |
|
|
|
|
|
args = GUILayout.TextField(args); |
|
|
|
|
|
|
|
|
GUILayout.Label("Time scale:"); |
|
|
GUILayout.Label("Time scale:"); |
|
|
speed = GUILayout.HorizontalSlider(speed, 0.1f, 5.0f, GUILayout.Width(250)); |
|
|
speed = GUILayout.HorizontalSlider(speed, 0.1f, 5.0f, GUILayout.Width(250)); |
|
|
@ -55,4 +61,9 @@ public class Bootstrap : MonoBehaviour |
|
|
uq = null; |
|
|
uq = null; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private string[] ParseArgs() |
|
|
|
|
|
{ |
|
|
|
|
|
return args.Split(new[] {' ', '\t', '\r', '\n'}, StringSplitOptions.RemoveEmptyEntries); |
|
|
|
|
|
} |
|
|
} |
|
|
} |