yes
This commit is contained in:
parent
52e2627871
commit
1baaa856ec
@ -20,7 +20,6 @@
|
|||||||
* THE SOFTWARE.
|
* THE SOFTWARE.
|
||||||
*/
|
*/
|
||||||
using FDK;
|
using FDK;
|
||||||
using ImGuiNET;
|
|
||||||
using Silk.NET.Core;
|
using Silk.NET.Core;
|
||||||
using Silk.NET.GLFW;
|
using Silk.NET.GLFW;
|
||||||
using Silk.NET.Input;
|
using Silk.NET.Input;
|
||||||
@ -438,6 +437,7 @@ namespace SampleFramework {
|
|||||||
ViewPortOffset.X = (size.X - ViewPortSize.X) / 2;
|
ViewPortOffset.X = (size.X - ViewPortSize.X) / 2;
|
||||||
ViewPortOffset.Y = (size.Y - ViewPortSize.Y) / 2;
|
ViewPortOffset.Y = (size.Y - ViewPortSize.Y) / 2;
|
||||||
|
|
||||||
|
|
||||||
Gl.Viewport(ViewPortOffset.X, ViewPortOffset.Y, (uint)ViewPortSize.X, (uint)ViewPortSize.Y);
|
Gl.Viewport(ViewPortOffset.X, ViewPortOffset.Y, (uint)ViewPortSize.X, (uint)ViewPortSize.Y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,3 +15,4 @@
|
|||||||
#BGTYPE:6
|
#BGTYPE:6
|
||||||
#BOXCOLOR:#999999
|
#BOXCOLOR:#999999
|
||||||
#BACKCOLOR:#444444
|
#BACKCOLOR:#444444
|
||||||
|
#SCENEPRESET:Headquarters1
|
@ -5,48 +5,56 @@
|
|||||||
"DOWN": [ "0","1","2" ],
|
"DOWN": [ "0","1","2" ],
|
||||||
"DANCER": [ "0" ],
|
"DANCER": [ "0" ],
|
||||||
"FOOTER": [ "0" ],
|
"FOOTER": [ "0" ],
|
||||||
"MOB": [ "0" ],
|
"MOB": [ ],
|
||||||
"RUNNER": [ "0" ]
|
"RUNNER": [ ]
|
||||||
},
|
},
|
||||||
"Dango": {
|
"Dango": {
|
||||||
"UP": [ "0" ],
|
"UP": [ "0" ],
|
||||||
"DOWN": [ "0" ],
|
"DOWN": [ "0" ],
|
||||||
"DANCER": [ "0" ],
|
"DANCER": [ "0" ],
|
||||||
"FOOTER": [ "0" ],
|
"FOOTER": [ "0" ],
|
||||||
"MOB": [ "0" ],
|
"MOB": [ ],
|
||||||
"RUNNER": [ "0" ]
|
"RUNNER": [ ]
|
||||||
},
|
},
|
||||||
"Clouds": {
|
"Clouds": {
|
||||||
"UP": [ "1" ],
|
"UP": [ "1" ],
|
||||||
"DOWN": [ "1" ],
|
"DOWN": [ "1" ],
|
||||||
"DANCER": [ "0" ],
|
"DANCER": [ "0" ],
|
||||||
"FOOTER": [ "0" ],
|
"FOOTER": [ "0" ],
|
||||||
"MOB": [ "0" ],
|
"MOB": [ ],
|
||||||
"RUNNER": [ "0" ]
|
"RUNNER": [ ]
|
||||||
},
|
},
|
||||||
"Forest": {
|
"Forest": {
|
||||||
"UP": [ "1" ],
|
"UP": [ "1" ],
|
||||||
"DOWN": [ "2" ],
|
"DOWN": [ "2" ],
|
||||||
"DANCER": [ "0" ],
|
"DANCER": [ "0" ],
|
||||||
"FOOTER": [ "0" ],
|
"FOOTER": [ "0" ],
|
||||||
"MOB": [ "0" ],
|
"MOB": [ ],
|
||||||
"RUNNER": [ "0" ]
|
"RUNNER": [ ]
|
||||||
},
|
},
|
||||||
"Dashy": {
|
"Dashy": {
|
||||||
"UP": [ "8" ],
|
"UP": [ "8" ],
|
||||||
"DOWN": [ "8" ],
|
"DOWN": [ "8" ],
|
||||||
"DANCER": [ "Dashy" ],
|
"DANCER": [ "Dashy" ],
|
||||||
"FOOTER": [ "8" ],
|
"FOOTER": [ "8" ],
|
||||||
"MOB": [ "0" ],
|
"MOB": [ ],
|
||||||
"RUNNER": [ "0" ]
|
"RUNNER": [ ]
|
||||||
},
|
},
|
||||||
"Outfox": {
|
"Outfox": {
|
||||||
"UP": [ "Outfox" ],
|
"UP": [ "Outfox" ],
|
||||||
"DOWN": [ "Outfox" ],
|
"DOWN": [ "Outfox" ],
|
||||||
"DANCER": [ "0" ],
|
"DANCER": [ "0" ],
|
||||||
"FOOTER": [ "Outfox" ],
|
"FOOTER": [ "Outfox" ],
|
||||||
|
"MOB": [ ],
|
||||||
|
"RUNNER": [ ]
|
||||||
|
},
|
||||||
|
"Headquarters1": {
|
||||||
|
"UP": [ "0","1" ],
|
||||||
|
"DOWN": [ "0","1","2" ],
|
||||||
|
"DANCER": [ "0" ],
|
||||||
|
"FOOTER": [ "0" ],
|
||||||
"MOB": [ "0" ],
|
"MOB": [ "0" ],
|
||||||
"RUNNER": [ "0" ]
|
"RUNNER": [ ]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"Dan": {
|
"Dan": {
|
||||||
|
@ -32,7 +32,7 @@ namespace OpenTaiko {
|
|||||||
var dancerOrigindir = CSkin.Path($"{TextureLoader.BASE}{TextureLoader.GAME}{TextureLoader.DANCER}");
|
var dancerOrigindir = CSkin.Path($"{TextureLoader.BASE}{TextureLoader.GAME}{TextureLoader.DANCER}");
|
||||||
if (System.IO.Directory.Exists($@"{dancerOrigindir}")) {
|
if (System.IO.Directory.Exists($@"{dancerOrigindir}")) {
|
||||||
var dirs = System.IO.Directory.GetDirectories($@"{dancerOrigindir}");
|
var dirs = System.IO.Directory.GetDirectories($@"{dancerOrigindir}");
|
||||||
if (dirs.Length > 0) {
|
if (dirs.Length > 0 && preset.DancerSet.Length > 0) {
|
||||||
var _presetPath = (preset != null && preset.DancerSet != null) ? $@"{dancerOrigindir}" + preset.DancerSet[random.Next(0, preset.DancerSet.Length)] : "";
|
var _presetPath = (preset != null && preset.DancerSet != null) ? $@"{dancerOrigindir}" + preset.DancerSet[random.Next(0, preset.DancerSet.Length)] : "";
|
||||||
var path = (preset != null && System.IO.Directory.Exists(_presetPath))
|
var path = (preset != null && System.IO.Directory.Exists(_presetPath))
|
||||||
? _presetPath
|
? _presetPath
|
||||||
|
@ -17,7 +17,7 @@ namespace OpenTaiko {
|
|||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
|
|
||||||
var upDirs = System.IO.Directory.GetFiles(footerDir);
|
var upDirs = System.IO.Directory.GetFiles(footerDir);
|
||||||
if (upDirs.Length > 0) {
|
if (upDirs.Length > 0 && preset.FooterSet.Length > 0) {
|
||||||
var _presetPath = (preset != null && preset.FooterSet != null) ? $@"{footerDir}" + preset.FooterSet[random.Next(0, preset.FooterSet.Length)] + ".png" : "";
|
var _presetPath = (preset != null && preset.FooterSet != null) ? $@"{footerDir}" + preset.FooterSet[random.Next(0, preset.FooterSet.Length)] + ".png" : "";
|
||||||
var path = (preset != null && System.IO.File.Exists(_presetPath))
|
var path = (preset != null && System.IO.File.Exists(_presetPath))
|
||||||
? _presetPath
|
? _presetPath
|
||||||
|
@ -17,7 +17,7 @@ namespace OpenTaiko {
|
|||||||
Random random = new Random();
|
Random random = new Random();
|
||||||
|
|
||||||
var upDirs = System.IO.Directory.GetDirectories(mobDir);
|
var upDirs = System.IO.Directory.GetDirectories(mobDir);
|
||||||
if (upDirs.Length > 0) {
|
if (upDirs.Length > 0 && preset.MobSet.Length > 0) {
|
||||||
var _presetPath = (preset != null && preset.MobSet != null) ? $@"{mobDir}" + preset.MobSet[random.Next(0, preset.MobSet.Length)] : "";
|
var _presetPath = (preset != null && preset.MobSet != null) ? $@"{mobDir}" + preset.MobSet[random.Next(0, preset.MobSet.Length)] : "";
|
||||||
var path = (preset != null && System.IO.Directory.Exists(_presetPath))
|
var path = (preset != null && System.IO.Directory.Exists(_presetPath))
|
||||||
? _presetPath
|
? _presetPath
|
||||||
|
@ -59,7 +59,7 @@ namespace OpenTaiko {
|
|||||||
var dancerOrigindir = CSkin.Path($"{TextureLoader.BASE}{TextureLoader.GAME}{TextureLoader.RUNNER}");
|
var dancerOrigindir = CSkin.Path($"{TextureLoader.BASE}{TextureLoader.GAME}{TextureLoader.RUNNER}");
|
||||||
if (System.IO.Directory.Exists($@"{dancerOrigindir}")) {
|
if (System.IO.Directory.Exists($@"{dancerOrigindir}")) {
|
||||||
var dirs = System.IO.Directory.GetDirectories($@"{dancerOrigindir}");
|
var dirs = System.IO.Directory.GetDirectories($@"{dancerOrigindir}");
|
||||||
if (dirs.Length > 0) {
|
if (dirs.Length > 0 && preset.RunnerSet.Length > 0) {
|
||||||
var _presetPath = (preset != null && preset.RunnerSet != null) ? $@"{dancerOrigindir}" + preset.RunnerSet[random.Next(0, preset.RunnerSet.Length)] : "";
|
var _presetPath = (preset != null && preset.RunnerSet != null) ? $@"{dancerOrigindir}" + preset.RunnerSet[random.Next(0, preset.RunnerSet.Length)] : "";
|
||||||
var path = (preset != null && System.IO.Directory.Exists(_presetPath))
|
var path = (preset != null && System.IO.Directory.Exists(_presetPath))
|
||||||
? _presetPath
|
? _presetPath
|
||||||
|
Loading…
Reference in New Issue
Block a user