Debug information:
Possible Stack Overflow Exception in C:\xxxxxxxx\application\com\game\Game.hx
Please contact the developers via https://github.com/fdorg/flashdevelop/issues/new
Debug information:
CodeComplete.InferType({20: var marginX = 10;})
The code:
packagecom.game;
importcom.ui.buttons.PrimaryButton;
importflambe.Entity;
importflambe.util.Value;
importtemple.components.display.ValueTextComponent;
importtemple.components.pointer.PointerTap;
/** * @author Mark Knol*/classGameextendsAbstractGame {
privatevar_data:Array<Value<Int>>;
functioncreateUI() {
_data= [for (idxin0...4) {
varvalue=newValue(0);
varmarginY=200;
varmarginX=10;
varsize=75;
vardistance=125;
containers.ui.add(newEntity().add([
newPrimaryButton("<", size, size)
.setXY(marginX, marginY+idx*distance),
newPointerTap(e->value._--),
]));
containers.ui.add(newEntity().add([
newPrimaryButton("<", size, size)
.setXY(marginX, marginY+idx*distance),
newPointerTap(e->value._--),
]));
containers.ui.add(newEntity().add([
newValueTextComponent(value)
.setXY(marginX+size+marginX, marginY+idx*distance),
]));
value;
}];
}
}
I'm using HaxeDevelop from this build http://www.github.com/fdorg/flashdevelop/commit/0592402cd4
Debug information:
The code:
I'm using HaxeDevelop from this build http://www.github.com/fdorg/flashdevelop/commit/0592402cd4