mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
fix minor bugs
This commit is contained in:
parent
b4a2838e75
commit
cadeddf480
4 changed files with 10 additions and 6 deletions
|
|
@ -70,7 +70,7 @@ class EndGameGui extends GuiImage {
|
|||
endGameWnd = new GuiImage(ResourceLoader.getResource("data/ui/xbox/endGameWindow.png", ResourceLoader.getImage, this.imageResources).toTile());
|
||||
endGameWnd.horizSizing = Left;
|
||||
endGameWnd.vertSizing = Top;
|
||||
endGameWnd.position = new Vector(80 - offsetX, 170 - offsetY);
|
||||
endGameWnd.position = new Vector(80 - offsetX, 150 - offsetY);
|
||||
endGameWnd.extent = new Vector(336, 150);
|
||||
innerCtrl.addChild(endGameWnd);
|
||||
|
||||
|
|
|
|||
|
|
@ -147,7 +147,7 @@ class PlayGui {
|
|||
initFPSMeter();
|
||||
|
||||
if (Util.isTouchDevice()) {
|
||||
MarbleGame.instance.touchInput.showControls(this.playGuiCtrl, game == 'ultra');
|
||||
MarbleGame.instance.touchInput.showControls(this.playGuiCtrlOuter, game == 'ultra');
|
||||
}
|
||||
|
||||
playGuiCtrlOuter.render(scene2d);
|
||||
|
|
@ -801,6 +801,9 @@ class PlayGui {
|
|||
for (ch in pgoChildren) {
|
||||
playGuiCtrlOuter.addChild(ch);
|
||||
}
|
||||
if (Util.isTouchDevice()) {
|
||||
MarbleGame.instance.touchInput.showControls(this.playGuiCtrlOuter, true);
|
||||
}
|
||||
playGuiCtrlOuter.render(MarbleGame.canvas.scene2d);
|
||||
pgoChildren = [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -13,7 +13,6 @@ class PauseButton extends TouchButton {
|
|||
|
||||
this.onClick = () -> {
|
||||
if (MarbleGame.instance.world != null) {
|
||||
@:privateAccess MarbleGame.instance.paused = true;
|
||||
MarbleGame.instance.handlePauseGame();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -44,13 +44,15 @@ class Trigger extends GameObject {
|
|||
var p7 = origin.add(d2).add(d3);
|
||||
var p8 = origin.add(d1).add(d2).add(d3);
|
||||
|
||||
var scale = MisParser.parseVector3(element.scale);
|
||||
var mat = new Matrix();
|
||||
mat.identity();
|
||||
mat.scale(scale.x, scale.y, scale.z);
|
||||
var quat = MisParser.parseRotation(element.rotation);
|
||||
quat.x = -quat.x;
|
||||
quat.w = -quat.w;
|
||||
quat.toMatrix(mat);
|
||||
var scale = MisParser.parseVector3(element.scale);
|
||||
mat.scale(scale.x, scale.y, scale.z);
|
||||
mat.multiply(mat, quat.toMatrix());
|
||||
|
||||
var pos = MisParser.parseVector3(element.position);
|
||||
pos.x = -pos.x;
|
||||
// mat.setPosition(pos);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue