more ui and bugfixes
BIN
data/ui/backgrounds/gold/1.jpg
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
data/ui/backgrounds/gold/10.jpg
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
data/ui/backgrounds/gold/11.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
data/ui/backgrounds/gold/12.jpg
Normal file
|
After Width: | Height: | Size: 63 KiB |
BIN
data/ui/backgrounds/gold/2.jpg
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
data/ui/backgrounds/gold/3.jpg
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
data/ui/backgrounds/gold/4.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
data/ui/backgrounds/gold/5.jpg
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
data/ui/backgrounds/gold/6.jpg
Normal file
|
After Width: | Height: | Size: 67 KiB |
BIN
data/ui/backgrounds/gold/7.jpg
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
data/ui/backgrounds/gold/8.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
data/ui/backgrounds/gold/9.jpg
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
data/ui/backgrounds/multi/1.jpg
Normal file
|
After Width: | Height: | Size: 318 KiB |
BIN
data/ui/backgrounds/multi/10.jpg
Normal file
|
After Width: | Height: | Size: 367 KiB |
BIN
data/ui/backgrounds/multi/11.jpg
Normal file
|
After Width: | Height: | Size: 365 KiB |
BIN
data/ui/backgrounds/multi/12.jpg
Normal file
|
After Width: | Height: | Size: 371 KiB |
BIN
data/ui/backgrounds/multi/13.jpg
Normal file
|
After Width: | Height: | Size: 421 KiB |
BIN
data/ui/backgrounds/multi/2.jpg
Normal file
|
After Width: | Height: | Size: 409 KiB |
BIN
data/ui/backgrounds/multi/3.jpg
Normal file
|
After Width: | Height: | Size: 338 KiB |
BIN
data/ui/backgrounds/multi/4.jpg
Normal file
|
After Width: | Height: | Size: 299 KiB |
BIN
data/ui/backgrounds/multi/5.jpg
Normal file
|
After Width: | Height: | Size: 396 KiB |
BIN
data/ui/backgrounds/multi/6.jpg
Normal file
|
After Width: | Height: | Size: 385 KiB |
BIN
data/ui/backgrounds/multi/7.jpg
Normal file
|
After Width: | Height: | Size: 404 KiB |
BIN
data/ui/backgrounds/multi/8.jpg
Normal file
|
After Width: | Height: | Size: 308 KiB |
BIN
data/ui/backgrounds/multi/9.jpg
Normal file
|
After Width: | Height: | Size: 323 KiB |
BIN
data/ui/backgrounds/platinum/1.jpg
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
data/ui/backgrounds/platinum/10.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
data/ui/backgrounds/platinum/11.jpg
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
data/ui/backgrounds/platinum/12.jpg
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
data/ui/backgrounds/platinum/13.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
data/ui/backgrounds/platinum/14.jpg
Normal file
|
After Width: | Height: | Size: 26 KiB |
BIN
data/ui/backgrounds/platinum/15.jpg
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
data/ui/backgrounds/platinum/16.jpg
Normal file
|
After Width: | Height: | Size: 46 KiB |
BIN
data/ui/backgrounds/platinum/17.jpg
Normal file
|
After Width: | Height: | Size: 41 KiB |
BIN
data/ui/backgrounds/platinum/18.jpg
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
data/ui/backgrounds/platinum/19.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
data/ui/backgrounds/platinum/2.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
data/ui/backgrounds/platinum/20.jpg
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
data/ui/backgrounds/platinum/21.jpg
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
data/ui/backgrounds/platinum/22.jpg
Normal file
|
After Width: | Height: | Size: 52 KiB |
BIN
data/ui/backgrounds/platinum/23.jpg
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
data/ui/backgrounds/platinum/24.jpg
Normal file
|
After Width: | Height: | Size: 57 KiB |
BIN
data/ui/backgrounds/platinum/25.jpg
Normal file
|
After Width: | Height: | Size: 53 KiB |
BIN
data/ui/backgrounds/platinum/26.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
data/ui/backgrounds/platinum/27.jpg
Normal file
|
After Width: | Height: | Size: 49 KiB |
BIN
data/ui/backgrounds/platinum/28.jpg
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
data/ui/backgrounds/platinum/3.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
data/ui/backgrounds/platinum/4.jpg
Normal file
|
After Width: | Height: | Size: 51 KiB |
BIN
data/ui/backgrounds/platinum/5.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
data/ui/backgrounds/platinum/6.jpg
Normal file
|
After Width: | Height: | Size: 40 KiB |
BIN
data/ui/backgrounds/platinum/7.jpg
Normal file
|
After Width: | Height: | Size: 54 KiB |
BIN
data/ui/backgrounds/platinum/8.jpg
Normal file
|
After Width: | Height: | Size: 61 KiB |
BIN
data/ui/backgrounds/platinum/9.jpg
Normal file
|
After Width: | Height: | Size: 48 KiB |
BIN
data/ui/backgrounds/ultra/1.jpg
Normal file
|
After Width: | Height: | Size: 280 KiB |
BIN
data/ui/backgrounds/ultra/2.jpg
Normal file
|
After Width: | Height: | Size: 207 KiB |
BIN
data/ui/backgrounds/ultra/3.jpg
Normal file
|
After Width: | Height: | Size: 279 KiB |
BIN
data/ui/backgrounds/ultra/4.jpg
Normal file
|
After Width: | Height: | Size: 277 KiB |
BIN
data/ui/backgrounds/ultra/5.jpg
Normal file
|
After Width: | Height: | Size: 209 KiB |
BIN
data/ui/backgrounds/ultra/6.jpg
Normal file
|
After Width: | Height: | Size: 282 KiB |
BIN
data/ui/backgrounds/ultra/7.jpg
Normal file
|
After Width: | Height: | Size: 272 KiB |
BIN
data/ui/backgrounds/ultra/8.jpg
Normal file
|
After Width: | Height: | Size: 216 KiB |
BIN
data/ui/backgrounds/ultra/9.jpg
Normal file
|
After Width: | Height: | Size: 251 KiB |
|
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 7 KiB After Width: | Height: | Size: 3.2 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 7.2 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 7 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 6.9 KiB After Width: | Height: | Size: 4.5 KiB |
BIN
data/ui/common/quitfromthislvl_overlay.png
Normal file
|
After Width: | Height: | Size: 8.5 KiB |
|
Before Width: | Height: | Size: 9 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 9.1 KiB After Width: | Height: | Size: 4.3 KiB |
|
Before Width: | Height: | Size: 8.9 KiB After Width: | Height: | Size: 4.5 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 6.6 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 3.5 KiB |
BIN
data/ui/exit/black.png
Normal file
|
After Width: | Height: | Size: 176 B |
BIN
data/ui/exit/no_d.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
data/ui/exit/no_h.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
data/ui/exit/no_n.png
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
data/ui/exit/restart_d.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
data/ui/exit/restart_h.png
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
data/ui/exit/restart_n.png
Normal file
|
After Width: | Height: | Size: 4.4 KiB |
BIN
data/ui/exit/yes_d.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
data/ui/exit/yes_h.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
data/ui/exit/yes_n.png
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 7.3 KiB After Width: | Height: | Size: 7.4 KiB |
|
Before Width: | Height: | Size: 7.6 KiB After Width: | Height: | Size: 7.2 KiB |
|
Before Width: | Height: | Size: 7.4 KiB After Width: | Height: | Size: 7.5 KiB |
|
Before Width: | Height: | Size: 56 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 3.5 KiB |
|
|
@ -176,6 +176,12 @@ class DtsObject extends GameObject {
|
|||
if (mesh == null)
|
||||
continue;
|
||||
|
||||
if (mesh.parent >= 0)
|
||||
continue; // Fix teleporter being broken
|
||||
|
||||
if (mesh.vertices.length == 0)
|
||||
continue;
|
||||
|
||||
if (!isInstanced) {
|
||||
var vertices = mesh.vertices.map(v -> new Vector(v.x, v.y, v.z));
|
||||
var vertexNormals = mesh.normals.map(v -> new Vector(v.x, v.y, v.z));
|
||||
|
|
|
|||
|
|
@ -774,6 +774,7 @@ class MarbleWorld extends Scheduler {
|
|||
tsShape.useInstancing = true;
|
||||
tsShape.dtsPath = dtsPath;
|
||||
tsShape.identifier = shapeName;
|
||||
tsShape.isCollideable = true;
|
||||
|
||||
var shapePosition = MisParser.parseVector3(element.position);
|
||||
shapePosition.x = -shapePosition.x;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package src;
|
||||
|
||||
import h3d.Matrix;
|
||||
import src.TimeState;
|
||||
import h3d.prim.UV;
|
||||
import h3d.parts.Data.BlendMode;
|
||||
|
|
@ -290,10 +291,11 @@ class ParticleManager {
|
|||
}
|
||||
this.tick(dt);
|
||||
for (batch in particlebatches) {
|
||||
batch.meshBatch.begin(batch.instances.length);
|
||||
for (instance in batch.instances) {
|
||||
var visibleinstances = batch.instances.filter(x -> scene.camera.frustum.hasPoint(x.position.toPoint()));
|
||||
batch.meshBatch.begin(visibleinstances.length);
|
||||
for (instance in visibleinstances) {
|
||||
if (instance.currentAge != 0) {
|
||||
batch.meshBatch.setPosition(instance.position.x, instance.position.y, instance.position.z);
|
||||
batch.meshBatch.worldPosition = Matrix.T(instance.position.x, instance.position.y, instance.position.z);
|
||||
var particleShader = batch.meshBatch.material.mainPass.getShader(Billboard);
|
||||
particleShader.scale = instance.scale;
|
||||
particleShader.rotation = instance.rotation;
|
||||
|
|
@ -303,7 +305,6 @@ class ParticleManager {
|
|||
// batch.meshBatch.material.mainPass.setPassName("overlay");
|
||||
// batch.meshBatch.material.color.load(instance.color);
|
||||
batch.meshBatch.shadersChanged = true;
|
||||
batch.meshBatch.setScale(instance.scale);
|
||||
batch.meshBatch.emitInstance();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -24,45 +24,38 @@ class ExitGameDlg extends GuiControl {
|
|||
var dialogImg = new GuiImage(ResourceLoader.getResource("data/ui/common/dialog.png", ResourceLoader.getImage, this.imageResources).toTile());
|
||||
dialogImg.horizSizing = Center;
|
||||
dialogImg.vertSizing = Center;
|
||||
dialogImg.position = new Vector(134, 148);
|
||||
dialogImg.extent = new Vector(388, 186);
|
||||
dialogImg.position = new Vector(162, 160);
|
||||
dialogImg.extent = new Vector(315, 160);
|
||||
|
||||
var domcasual32fontdata = ResourceLoader.getFileEntry("data/font/DomCasualD.fnt");
|
||||
var domcasual32b = new BitmapFont(domcasual32fontdata.entry);
|
||||
@:privateAccess domcasual32b.loader = ResourceLoader.loader;
|
||||
var domcasual32 = domcasual32b.toSdfFont(cast 26 * Settings.uiScale, MultiChannel);
|
||||
|
||||
var exitGameText = new GuiText(domcasual32);
|
||||
exitGameText.text.textColor = 0x000000;
|
||||
exitGameText.text.text = "Exit from this Level?";
|
||||
exitGameText.justify = Center;
|
||||
exitGameText.position = new Vector(95, 46);
|
||||
exitGameText.extent = new Vector(198, 23);
|
||||
exitGameText.horizSizing = Center;
|
||||
exitGameText.vertSizing = Bottom;
|
||||
var overlay = new GuiImage(ResourceLoader.getResource("data/ui/common/quitfromthislvl_overlay.png", ResourceLoader.getImage, this.imageResources)
|
||||
.toTile());
|
||||
overlay.horizSizing = Right;
|
||||
overlay.vertSizing = Bottom;
|
||||
overlay.position = new Vector(36, 22);
|
||||
overlay.extent = new Vector(235, 42);
|
||||
|
||||
var yesButton = new GuiButton(loadButtonImages("data/ui/common/yes"));
|
||||
yesButton.position = new Vector(47, 107);
|
||||
yesButton.extent = new Vector(88, 52);
|
||||
yesButton.vertSizing = Bottom;
|
||||
yesButton.position = new Vector(19, 103);
|
||||
yesButton.extent = new Vector(86, 40);
|
||||
yesButton.vertSizing = Top;
|
||||
yesButton.horizSizing = Right;
|
||||
yesButton.pressedAction = yesFunc;
|
||||
|
||||
var noButton = new GuiButton(loadButtonImages("data/ui/common/no"));
|
||||
noButton.position = new Vector(151, 107);
|
||||
noButton.extent = new Vector(83, 55);
|
||||
noButton.vertSizing = Bottom;
|
||||
noButton.position = new Vector(105, 102);
|
||||
noButton.extent = new Vector(86, 40);
|
||||
noButton.vertSizing = Top;
|
||||
noButton.horizSizing = Right;
|
||||
noButton.pressedAction = noFunc;
|
||||
|
||||
var restartButton = new GuiButton(loadButtonImages("data/ui/common/restart"));
|
||||
restartButton.position = new Vector(249, 107);
|
||||
restartButton.extent = new Vector(103, 56);
|
||||
restartButton.vertSizing = Bottom;
|
||||
restartButton.position = new Vector(214, 104);
|
||||
restartButton.extent = new Vector(86, 40);
|
||||
restartButton.vertSizing = Top;
|
||||
restartButton.horizSizing = Right;
|
||||
restartButton.pressedAction = restartFunc;
|
||||
|
||||
dialogImg.addChild(exitGameText);
|
||||
dialogImg.addChild(overlay);
|
||||
dialogImg.addChild(yesButton);
|
||||
dialogImg.addChild(noButton);
|
||||
dialogImg.addChild(restartButton);
|
||||
|
|
|
|||
|
|
@ -36,16 +36,16 @@ class LoadingGui extends GuiImage {
|
|||
var domcasual32 = domcasual32b.toSdfFont(cast 26 * Settings.uiScale, MultiChannel);
|
||||
|
||||
var mapName = new GuiText(domcasual32);
|
||||
mapName.position = new Vector(134, 78);
|
||||
mapName.extent = new Vector(323, 32);
|
||||
mapName.position = new Vector(6, 33);
|
||||
mapName.extent = new Vector(456, 14);
|
||||
mapName.text.text = missionName;
|
||||
mapName.text.textColor = 0;
|
||||
mapName.justify = Center;
|
||||
|
||||
var progress = new GuiProgress();
|
||||
progress.vertSizing = Bottom;
|
||||
progress.position = new Vector(153, 133);
|
||||
progress.extent = new Vector(269, 78);
|
||||
progress.vertSizing = Top;
|
||||
progress.position = new Vector(194, 145);
|
||||
progress.extent = new Vector(225, 56);
|
||||
progress.progress = 0.5;
|
||||
|
||||
setProgress = (progressPz) -> {
|
||||
|
|
@ -53,15 +53,15 @@ class LoadingGui extends GuiImage {
|
|||
}
|
||||
|
||||
var cancelButton = new GuiButton(loadButtonImages("data/ui/loading/cancel"));
|
||||
cancelButton.position = new Vector(320, 233);
|
||||
cancelButton.extent = new Vector(88, 50);
|
||||
cancelButton.position = new Vector(333, 243);
|
||||
cancelButton.extent = new Vector(112, 59);
|
||||
cancelButton.pressedAction = (sender) -> {
|
||||
MarbleGame.instance.quitMission();
|
||||
}
|
||||
|
||||
var overlay = new GuiImage(ResourceLoader.getResource("data/ui/loading/overlay.png", ResourceLoader.getImage, this.imageResources).toTile());
|
||||
overlay.position = new Vector(151, 131);
|
||||
overlay.extent = new Vector(278, 86);
|
||||
overlay.position = new Vector(188, 139);
|
||||
overlay.extent = new Vector(242, 75);
|
||||
|
||||
loadingGui.addChild(mapName);
|
||||
loadingGui.addChild(progress);
|
||||
|
|
|
|||