mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-02-09 07:46:02 +00:00
Merge pull request #8 from thearst3rd/mbp-small-fixes
MBP - Small Fixes
This commit is contained in:
commit
ef3d698996
3 changed files with 10 additions and 7 deletions
|
|
@ -1480,7 +1480,7 @@ class MarbleWorld extends Scheduler {
|
|||
|
||||
// Show a notification (and play a sound) based on the gems remaining
|
||||
if (this.gemCount == this.totalGems) {
|
||||
string = "You have all the gems, head for the finish!";
|
||||
string = "You have all the diamonds, head for the finish!";
|
||||
// if (!this.rewinding)
|
||||
AudioManager.playSound(ResourceLoader.getResource('data/sound/gotallgems.wav', ResourceLoader.getAudio, this.soundResources));
|
||||
|
||||
|
|
@ -1491,13 +1491,13 @@ class MarbleWorld extends Scheduler {
|
|||
// this.touchFinish(completionOfImpact);
|
||||
// }
|
||||
} else {
|
||||
string = "You picked up a gem. ";
|
||||
string = "You picked up a diamond. ";
|
||||
|
||||
var remaining = this.totalGems - this.gemCount;
|
||||
if (remaining == 1) {
|
||||
string += "Only one gem to go!";
|
||||
string += "Only one diamond to go!";
|
||||
} else {
|
||||
string += '${remaining} gems to go!';
|
||||
string += '${remaining} diamonds to go!';
|
||||
}
|
||||
|
||||
// if (!this.rewinding)
|
||||
|
|
@ -1634,7 +1634,7 @@ class MarbleWorld extends Scheduler {
|
|||
|
||||
if (this.gemCount < this.totalGems) {
|
||||
AudioManager.playSound(ResourceLoader.getResource('data/sound/missinggems.wav', ResourceLoader.getAudio, this.soundResources));
|
||||
displayAlert("You can't finish without all the gems!!");
|
||||
displayAlert("You can't finish without all the diamonds!!");
|
||||
} else {
|
||||
this.endPad.spawnFirework(this.timeState);
|
||||
this.finishTime = this.timeState.clone();
|
||||
|
|
|
|||
|
|
@ -328,6 +328,9 @@ class OptionsDlg extends GuiImage {
|
|||
remapDlg.remapCallback = (key) -> {
|
||||
MarbleGame.canvas.popDialog(remapDlg);
|
||||
|
||||
if (key == Key.ESCAPE)
|
||||
return;
|
||||
|
||||
var conflicting = getConflictingBinding(bindingName, key);
|
||||
if (conflicting == null) {
|
||||
ctrl.txtCtrl.text.text = Util.getKeyForButton2(key);
|
||||
|
|
|
|||
|
|
@ -43,9 +43,9 @@ class RemapDlg extends GuiControl {
|
|||
public override function update(dt:Float, mouseState:MouseState) {
|
||||
super.update(dt, mouseState);
|
||||
for (i in 0...1024) {
|
||||
if (i == 5)
|
||||
if (i == Key.MOUSE_WHEEL_DOWN || i == Key.MOUSE_WHEEL_UP)
|
||||
continue;
|
||||
if (Key.isDown(i)) {
|
||||
if (Key.isPressed(i)) {
|
||||
remapCallback(i);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue