Home | History | Annotate | Download | only in flame
      1 package com.badlogic.gdx.tools.flame;
      2 
      3 import com.badlogic.gdx.graphics.g3d.particles.influencers.ScaleInfluencer;
      4 
      5 
      6 /** @author Inferno */
      7 public class ScaleInfluencerPanel extends InfluencerPanel<ScaleInfluencer> {
      8 
      9 	ScaledNumericPanel scalePanel;
     10 
     11 	public ScaleInfluencerPanel (FlameMain editor, ScaleInfluencer influencer) {
     12 		super(editor, influencer, "Scale Influencer", "Particle scale, in world units.");
     13 		setValue(influencer);
     14 	}
     15 
     16 	@Override
     17 	public void setValue (ScaleInfluencer value) {
     18 		super.setValue(value);
     19 		if(value == null) return;
     20 		scalePanel.setValue(value.value);
     21 	}
     22 
     23 	@Override
     24 	protected void initializeComponents () {
     25 		super.initializeComponents();
     26 
     27 		addContent(0, 0, scalePanel = new ScaledNumericPanel(editor, null, "Life", "", ""));
     28 		scalePanel.setIsAlwayShown(true);
     29 	}
     30 
     31 }
     32