//Marker
if (byTypeCode == MarkerType) {
Log.info("Spawn marker");
IImage assignImage = Detonator.INSTANCE.imageProvider.getImage(setImage);
result = new Marker(assignImage, assignImage, setX, setY);
}
//AnimationMarker
if (byTypeCode == AnimationMarkerType) {
Log.notImplemented();
//AnimationMarker preresult = new AnimationMarker(setX, setY, Animations.getAnimationByID(setImage));
//preresult.animation = Animations.getAnimationByID(setImage).animation;
//result = preresult;
}
//ButtonGroup
if (byTypeCode == ButtonGroupType) {
IImage assignImage;
if (setImage != -1) {
assignImage = Detonator.INSTANCE.imageProvider.getImage(setImage);
} else {
assignImage = null;
}
}
//TextMarker
if (byTypeCode == TextMarkerType) {
Log.info("Spawn textmarker");
IImage assignImage;
if (setImage != -1) {
assignImage = Detonator.INSTANCE.imageProvider.getImage(setImage);
} else {
assignImage = null;
}
IImage assignHoveredImage;
if (setHoveredImage != -1) {
assignHoveredImage = Detonator.INSTANCE.imageProvider.getImage(setHoveredImage);
} else {
assignHoveredImage = assignImage;
}