mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2025-10-30 08:11:25 +00:00
finish backport
This commit is contained in:
parent
6a4e93ba94
commit
d7fa0869d7
4 changed files with 3 additions and 4 deletions
|
|
@ -53,7 +53,6 @@ class EndGameGui extends GuiControl {
|
|||
restartButton.pressedAction = restartFunc;
|
||||
|
||||
function setButtonStates(enabled:Bool) {
|
||||
nextLevelBtn.disabled = !enabled;
|
||||
continueButton.disabled = !enabled;
|
||||
restartButton.disabled = !enabled;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -71,7 +71,7 @@ class GuiButton extends GuiAnim {
|
|||
}
|
||||
if (!disabled && accelerator != 0 && hxd.Key.isReleased(accelerator)) {
|
||||
if (this.pressedAction != null) {
|
||||
this.pressedAction(new GuiEvent(this));
|
||||
this.pressedAction(this);
|
||||
}
|
||||
}
|
||||
super.update(dt, mouseState);
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ class GuiSlider extends GuiImage {
|
|||
sliderValue = Util.clamp(sliderValue, 0, 1);
|
||||
|
||||
if (this.pressedAction != null)
|
||||
this.pressedAction(new GuiEvent(this));
|
||||
this.pressedAction(this);
|
||||
|
||||
if (slidingSound != null)
|
||||
slidingSound.pause = false;
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@ class MainMenuGui extends GuiImage {
|
|||
versionText.vertSizing = Top;
|
||||
versionText.position = new Vector(289, 457);
|
||||
versionText.extent = new Vector(62, 18);
|
||||
versionText.text.text = "1.1.3";
|
||||
versionText.text.text = "1.1.4";
|
||||
this.addChild(versionText);
|
||||
|
||||
var homebase = new GuiImage(ResourceLoader.getResource("data/ui/home/homegui.png", ResourceLoader.getImage, this.imageResources).toTile());
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue