- separate jar files for engine components - resolve dependencies between code parts - remove Nifty dependency from Cinematics - remove Physics dependency from TerrainGrid - add public accessors to Natives Extraction - remove RenderHint serialization from networking git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8839 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
38 lines
717 B
Java
38 lines
717 B
Java
/*
|
|
* To change this template, choose Tools | Templates
|
|
* and open the template in the editor.
|
|
*/
|
|
|
|
package jme3test.animation;
|
|
|
|
import com.jme3.cinematic.events.GuiTrack;
|
|
import de.lessvoid.nifty.Nifty;
|
|
import de.lessvoid.nifty.elements.render.TextRenderer;
|
|
|
|
/**
|
|
*
|
|
* @author Nehon
|
|
*/
|
|
public class SubtitleTrack extends GuiTrack{
|
|
private String text="";
|
|
|
|
public SubtitleTrack(Nifty nifty, String screen,float initialDuration, String text) {
|
|
super(nifty, screen, initialDuration);
|
|
this.text=text;
|
|
}
|
|
|
|
@Override
|
|
public void onPlay() {
|
|
super.onPlay();
|
|
nifty.getScreen(screen).findElementByName("text").getRenderer(TextRenderer.class).setText(text);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|