Add warsmash ini, change model test file to load night elf campaign screen instead of arthas illidan fight

This commit is contained in:
Retera 2020-08-12 04:17:42 -04:00
parent dcb68ba6c9
commit 5abb9e3fd9
2 changed files with 17 additions and 3 deletions

13
core/assets/warsmash.ini Normal file
View File

@ -0,0 +1,13 @@
[DataSources]
Count=4
Type00=Folder
Path00="E:\Backups\Warcraft\Data\127"
Type01=Folder
Path01="..\..\resources"
Type02=Folder
Path02="E:\Backups\Warsmash\Data"
Type03=Folder
Path03="."
[Map]
FilePath="RuinedGround.w3x"

View File

@ -74,7 +74,8 @@ public class WarsmashGdxGame extends ApplicationAdapter implements CanvasProvide
this.cameraManager = new CameraManager();
this.cameraManager.setupCamera(scene);
this.mainModel = (MdxModel) this.viewer.load("Doodads\\Cinematic\\ArthasIllidanFight\\ArthasIllidanFight.mdx",
// this.mainModel = (MdxModel) this.viewer.load("Doodads\\Cinematic\\ArthasIllidanFight\\ArthasIllidanFight.mdx",
this.mainModel = (MdxModel) this.viewer.load("UI\\Glues\\SinglePlayer\\NightElf_Exp\\NightElf_Exp.mdx",
// this.mainModel = (MdxModel) this.viewer.load("Abilities\\Spells\\Orc\\FeralSpirit\\feralspirittarget.mdx",
new PathSolver() {
@Override
@ -94,7 +95,7 @@ public class WarsmashGdxGame extends ApplicationAdapter implements CanvasProvide
this.mainInstance.setScene(scene);
final int animIndex = 1;
final int animIndex = 0;
this.modelCamera = this.mainModel.cameras.get(animIndex);
this.mainInstance.setSequence(animIndex);
@ -363,7 +364,7 @@ public class WarsmashGdxGame extends ApplicationAdapter implements CanvasProvide
this.cameraManager.horizontalAngle = 0;
}
}
this.modelCamera = this.mainModel.cameras.get(this.mainInstance.sequence);
// this.modelCamera = this.mainModel.cameras.get(this.mainInstance.sequence);
this.cameraManager.updateCamera();
this.viewer.updateAndRender();