forked from speed-dreams/speed-dreams-code
trackeditor: check track lights
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8510 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 39d7a55375b330febcac63db4751717c4fd6b0f3 Former-commit-id: 8d71a3e257dc392a7d3be1ea60552d50eb1ce4b3
This commit is contained in:
parent
e75c417c1f
commit
23697ed831
1 changed files with 17 additions and 0 deletions
|
@ -19,6 +19,7 @@ import utils.TrackData;
|
|||
import utils.circuit.EnvironmentMapping;
|
||||
import utils.circuit.Segment;
|
||||
import utils.circuit.Surface;
|
||||
import utils.circuit.TrackLight;
|
||||
import utils.circuit.TrackObject;
|
||||
|
||||
public class CheckDialog extends JDialog
|
||||
|
@ -77,6 +78,7 @@ public class CheckDialog extends JDialog
|
|||
checkObjects();
|
||||
checkTerrainGeneration();
|
||||
checkEnvironmentMapping();
|
||||
checkTrackLights();
|
||||
|
||||
textArea.append("Checking complete!");
|
||||
}
|
||||
|
@ -84,6 +86,21 @@ public class CheckDialog extends JDialog
|
|||
this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
|
||||
}
|
||||
|
||||
private void checkTrackLights()
|
||||
{
|
||||
Vector<TrackLight> lightData = editorFrame.getTrackData().getTrackLights();
|
||||
|
||||
for (int i = 0; i < lightData.size(); i++)
|
||||
{
|
||||
TrackLight light = lightData.get(i);
|
||||
|
||||
String texture = light.getTextureOn();
|
||||
checkTexture("Track Lights " + light.getName() + " Texture On ", texture);
|
||||
|
||||
texture = light.getTextureOff();
|
||||
checkTexture("Track Lights " + light.getName() + " Texture Off ", texture);
|
||||
}
|
||||
}
|
||||
private void checkEnvironmentMapping()
|
||||
{
|
||||
Vector<EnvironmentMapping> envMaps = trackData.getGraphic().getEnvironmentMapping();
|
||||
|
|
Loading…
Reference in a new issue