trackeditor: check background image

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8512 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: e2826bad576a5247625c25fff9009d52d84e7e25
Former-commit-id: 5c3ec4fb38444b5384807f2482bcac4a059ad716
This commit is contained in:
iobyte 2022-09-15 20:29:38 +00:00
parent 460e52fc41
commit 030a5ac53c

View file

@ -79,6 +79,7 @@ public class CheckDialog extends JDialog
checkTerrainGeneration(); checkTerrainGeneration();
checkEnvironmentMapping(); checkEnvironmentMapping();
checkTrackLights(); checkTrackLights();
checkGraphic();
textArea.append("Checking complete!"); textArea.append("Checking complete!");
} }
@ -86,6 +87,13 @@ public class CheckDialog extends JDialog
this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE); this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
} }
private void checkGraphic()
{
String image = editorFrame.getTrackData().getGraphic().getBackgroundImage();
if (hasText(image))
checkTexture("Graphic Background Image ", image);
}
private void checkTrackLights() private void checkTrackLights()
{ {
Vector<TrackLight> lightData = editorFrame.getTrackData().getTrackLights(); Vector<TrackLight> lightData = editorFrame.getTrackData().getTrackLights();