fix a BUG
This commit is contained in:
@@ -34,6 +34,7 @@ class CharterEventTypeSelection extends UISubstateWindow {
|
||||
close();
|
||||
callback(eventName);
|
||||
}, w);
|
||||
button.autoAlpha = false;
|
||||
button.cameras = [buttonCameras];
|
||||
buttons.push(cast add(button));
|
||||
|
||||
@@ -60,6 +61,10 @@ class CharterEventTypeSelection extends UISubstateWindow {
|
||||
|
||||
override function update(elapsed:Float) {
|
||||
super.update(elapsed);
|
||||
|
||||
for (button in buttons)
|
||||
button.selectable = buttonsBG.hovered;
|
||||
|
||||
buttonCameras.zoom = subCam.zoom;
|
||||
|
||||
buttonCameras.x = -subCam.scroll.x + Std.int(windowSpr.x+10);
|
||||
|
||||
@@ -38,7 +38,6 @@ class CharterStrumline extends UISprite {
|
||||
healthIcons = new FlxSpriteGroup(x, y);
|
||||
|
||||
for (i=>icon in icons) {
|
||||
trace(i);
|
||||
var healthIcon = new HealthIcon(icon);
|
||||
healthIcon.scale.x = healthIcon.scale.y = 0.6 - (icons.length / 20);
|
||||
healthIcon.updateHitbox();
|
||||
|
||||
Reference in New Issue
Block a user