Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 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]));
   }
 }
Example #4
0
  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);
  }