public void renew() { setX(dataVO.x * this.mulX); setY(dataVO.y * this.mulY); setScaleX(dataVO.scaleX); setScaleY(dataVO.scaleY); setRotation(dataVO.rotation); setColor(dataVO.tint[0], dataVO.tint[1], dataVO.tint[2], dataVO.tint[3]); customVariables.loadFromString(dataVO.customVars); }
public void renew() { setX(dataVO.x * this.mulX); setY(dataVO.y * this.mulY); removeLights(); if (dataVO.type == LightType.POINT) { createPointLight(); } else { createConeLight(); } customVariables.loadFromString(dataVO.customVars); }
public void updateDataVO() { dataVO.x = getX() / this.mulX; dataVO.y = getY() / this.mulY; dataVO.scaleX = getScaleX(); dataVO.scaleY = getScaleY(); dataVO.rotation = getRotation(); if (getZIndex() >= 0) { dataVO.zIndex = getZIndex(); } if (dataVO.layerName == null || dataVO.layerName.equals("")) { dataVO.layerName = "Default"; } dataVO.customVars = customVariables.saveAsString(); }
private void init(SimpleImageVO vo, IResource rm) { dataVO = vo; this.rm = rm; setX(dataVO.x); setY(dataVO.y); setScaleX(dataVO.scaleX); setScaleY(dataVO.scaleY); customVariables.loadFromString(dataVO.customVars); this.setRotation(dataVO.rotation); if (dataVO.zIndex < 0) dataVO.zIndex = 0; if (dataVO.tint == null) { setTint(new Color(1, 1, 1, 1)); } else { setTint(new Color(dataVO.tint[0], dataVO.tint[1], dataVO.tint[2], dataVO.tint[3])); } }
public void updateDataVO() { dataVO.distance = (int) lightObject.getDistance(); dataVO.directionDegree = direction; if (dataVO.type == LightType.CONE) { dataVO.coneDegree = ((ConeLight) lightObject).getConeDegree(); } dataVO.x = getX() / this.mulX; dataVO.y = getY() / this.mulY; if (dataVO.layerName == null || dataVO.layerName.equals("")) { dataVO.layerName = "Default"; } dataVO.customVars = customVariables.saveAsString(); }
public LightActor(LightVO data, Essentials essentials) { rayHandler = essentials.rayHandler; dataVO = data; this.rm = essentials.rm; setX(dataVO.x); setY(dataVO.y); customVariables.loadFromString(dataVO.customVars); if (dataVO.type == LightType.POINT) { createPointLight(); } else { createConeLight(); } setWidth(40); setHeight(40); }