1
0
mirror of synced 2024-11-28 01:10:53 +01:00
This commit is contained in:
0auBSQ 2024-10-17 04:38:13 +09:00
parent 52e2627871
commit 1baaa856ec
7 changed files with 776 additions and 767 deletions

View File

@ -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);
} }

View File

@ -15,3 +15,4 @@
#BGTYPE:6 #BGTYPE:6
#BOXCOLOR:#999999 #BOXCOLOR:#999999
#BACKCOLOR:#444444 #BACKCOLOR:#444444
#SCENEPRESET:Headquarters1

View File

@ -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": {

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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