trackeditor: widen properties dialog
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8361 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 29d065cf5bee1e30fae5103dac0a42208ada2696 Former-commit-id: fd5302270645d65db7566a128ca7c22bf8171ad4
This commit is contained in:
parent
036fc7124c
commit
f3329f116f
11 changed files with 32 additions and 32 deletions
|
@ -133,7 +133,7 @@ public class CameraProperties extends PropertyPanel
|
|||
{
|
||||
tabbedPane = new JTabbedPane();
|
||||
tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
||||
tabbedPane.setBounds(10, 10, 460, 230);
|
||||
tabbedPane.setBounds(10, 10, 510, 230);
|
||||
|
||||
Vector<Camera> cameras = getEditorFrame().getTrackData().getCameras();
|
||||
|
||||
|
|
|
@ -134,7 +134,7 @@ public class EnvMapProperties extends PropertyPanel
|
|||
{
|
||||
tabbedPane = new JTabbedPane();
|
||||
tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
||||
tabbedPane.setBounds(10, 10, 460, 100);
|
||||
tabbedPane.setBounds(10, 10, 510, 100);
|
||||
|
||||
Vector<EnvironmentMapping> envMaps = getEditorFrame().getTrackData().getGraphic().getEnvironmentMapping();
|
||||
|
||||
|
@ -177,7 +177,7 @@ public class EnvMapProperties extends PropertyPanel
|
|||
addLabel(this, 1, envMapLabel, "Environment Map", 120);
|
||||
|
||||
addTextField(this, 0, nameTextField, name, 130, 60);
|
||||
addTextField(this, 1, envMapTextField, environmentMap, 130, 230);
|
||||
addTextField(this, 1, envMapTextField, environmentMap, 130, 280);
|
||||
|
||||
add(getEnvMapButton(), null);
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ public class EnvMapProperties extends PropertyPanel
|
|||
if (envMapButton == null)
|
||||
{
|
||||
envMapButton = new JButton();
|
||||
envMapButton.setBounds(370, 36, 80, 25);
|
||||
envMapButton.setBounds(420, 36, 80, 25);
|
||||
envMapButton.setText("Browse");
|
||||
envMapButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
|
|
@ -86,8 +86,8 @@ public class GeneralProperties extends PropertyPanel
|
|||
add(getVersionComboBox(), null);
|
||||
add(getSkyVersionComboBox(), null);
|
||||
|
||||
addTextField(this, 5, authorTextField, getEditorFrame().getTrackData().getHeader().getAuthor(), 85, 385);
|
||||
addTextField(this, 6, descriptionTextField, getEditorFrame().getTrackData().getHeader().getDescription(), 85, 385);
|
||||
addTextField(this, 5, authorTextField, getEditorFrame().getTrackData().getHeader().getAuthor(), 85, 435);
|
||||
addTextField(this, 6, descriptionTextField, getEditorFrame().getTrackData().getHeader().getDescription(), 85, 435);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -135,7 +135,7 @@ public class GraphicProperties extends PropertyPanel
|
|||
addTextField(this, 0, descriptionTextField, getEditorFrame().getTrackData().getGraphic().getDescription(), 160, 150);
|
||||
addTextField(this, 1, descriptionNightTextField, getEditorFrame().getTrackData().getGraphic().getDescriptionNight(), 160, 150);
|
||||
addTextField(this, 2, descriptionRainNightTextField, getEditorFrame().getTrackData().getGraphic().getDescriptionRainNight(), 160, 150);
|
||||
addTextField(this, 3, backgroundImageTextField, getEditorFrame().getTrackData().getGraphic().getBackgroundImage(), 160, 225);
|
||||
addTextField(this, 3, backgroundImageTextField, getEditorFrame().getTrackData().getGraphic().getBackgroundImage(), 160, 275);
|
||||
|
||||
add(getBackgroundTypeComboBox(), null);
|
||||
|
||||
|
@ -190,7 +190,7 @@ public class GraphicProperties extends PropertyPanel
|
|||
if (backgroundImageButton == null)
|
||||
{
|
||||
backgroundImageButton = new JButton();
|
||||
backgroundImageButton.setBounds(390, 90, 80, 25);
|
||||
backgroundImageButton.setBounds(440, 90, 80, 25);
|
||||
backgroundImageButton.setText("Browse");
|
||||
backgroundImageButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
|
|
@ -68,7 +68,7 @@ public class ImageProperties extends PropertyPanel
|
|||
addLabel(this, 0, imageScaleLabel, "Path", 80);
|
||||
addLabel(this, 1, pathLabel, "Image scale", 80);
|
||||
|
||||
addTextField(this, 0, pathTextField, Editor.getProperties().getImage(), 100, 285);
|
||||
addTextField(this, 0, pathTextField, Editor.getProperties().getImage(), 100, 335);
|
||||
addTextField(this, 1, imageScaleTextField, Editor.getProperties().getImageScale(), 100, 50);
|
||||
|
||||
this.add(getPathButton(), null);
|
||||
|
@ -84,7 +84,7 @@ public class ImageProperties extends PropertyPanel
|
|||
if (pathButton == null)
|
||||
{
|
||||
pathButton = new JButton();
|
||||
pathButton.setBounds(390, 9, 80, 25);
|
||||
pathButton.setBounds(440, 9, 80, 25);
|
||||
pathButton.setText("Browse");
|
||||
pathButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
|
|
@ -138,7 +138,7 @@ public class ObjectProperties extends PropertyPanel
|
|||
{
|
||||
tabbedPane = new JTabbedPane();
|
||||
tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
||||
tabbedPane.setBounds(10, 10, 460, 230);
|
||||
tabbedPane.setBounds(10, 10, 510, 230);
|
||||
|
||||
Vector<TrackObject> objects = getEditorFrame().getTrackData().getObjects();
|
||||
|
||||
|
@ -196,7 +196,7 @@ public class ObjectProperties extends PropertyPanel
|
|||
addLabel(this, 6, deltaVertLabel, "Delta Vert", 160);
|
||||
|
||||
addTextField(this, 0, nameTextField, object.getName(), 120, 100);
|
||||
addTextField(this, 1, objectTextField, object.getObject(), 120, 240);
|
||||
addTextField(this, 1, objectTextField, object.getObject(), 120, 290);
|
||||
addTextField(this, 2, colorTextField, getString(object.getColor()), 120, 100);
|
||||
|
||||
add(getOrientationTypeComboBox(), null);
|
||||
|
@ -252,7 +252,7 @@ public class ObjectProperties extends PropertyPanel
|
|||
if (objectButton == null)
|
||||
{
|
||||
objectButton = new JButton();
|
||||
objectButton.setBounds(370, 36, 80, 25);
|
||||
objectButton.setBounds(420, 36, 80, 25);
|
||||
objectButton.setText("Browse");
|
||||
objectButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
|
|
@ -79,7 +79,7 @@ public class PropertiesDialog extends JDialog
|
|||
private void initialize()
|
||||
{
|
||||
this.setContentPane(getPane());
|
||||
this.setSize(500, 780);
|
||||
this.setSize(550, 780);
|
||||
Point p = editorFrame.getLocation();
|
||||
p.x = editorFrame.getProject().getPropertiesEditorX();
|
||||
p.y = editorFrame.getProject().getPropertiesEditorY();
|
||||
|
|
|
@ -138,7 +138,7 @@ public class SurfaceProperties extends PropertyPanel
|
|||
{
|
||||
tabbedPane = new JTabbedPane();
|
||||
tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
||||
tabbedPane.setBounds(10, 10, 460, 630);
|
||||
tabbedPane.setBounds(10, 10, 510, 630);
|
||||
|
||||
Vector<Surface> surfaces = getEditorFrame().getTrackData().getSurfaces();
|
||||
|
||||
|
@ -248,7 +248,7 @@ public class SurfaceProperties extends PropertyPanel
|
|||
addTextField(this, 4, colorR2TextField, getString(surface.getColorR2()), 190, 100);
|
||||
addTextField(this, 5, colorG2TextField, getString(surface.getColorG2()), 190, 100);
|
||||
addTextField(this, 6, colorB2TextField, getString(surface.getColorB2()), 190, 100);
|
||||
addTextField(this, 7, textureNameTextField, surface.getTextureName(), 190, 170);
|
||||
addTextField(this, 7, textureNameTextField, surface.getTextureName(), 190, 220);
|
||||
|
||||
add(getTextureTypeComboBox(), null);
|
||||
getTextureTypeComboBox().setSelectedItem(getString(surface.getTextureType()));
|
||||
|
@ -267,7 +267,7 @@ public class SurfaceProperties extends PropertyPanel
|
|||
addTextField(this, 16, bumpSizeTextField, getString(surface.getBumpSize()), 190, 100);
|
||||
addTextField(this, 17, roughnessTextField, getString(surface.getRoughness()), 190, 100);
|
||||
addTextField(this, 18, roughnessWavelengthTextField, getString(surface.getRoughnessWavelength()), 190, 100);
|
||||
addTextField(this, 19, racelineNameTextField, surface.getRacelineName(), 190, 170);
|
||||
addTextField(this, 19, racelineNameTextField, surface.getRacelineName(), 190, 220);
|
||||
addTextField(this, 20, damageTextField, surface.getDammage(), 190, 100);
|
||||
addTextField(this, 21, reboundTextField, getString(surface.getRebound()), 190, 100);
|
||||
|
||||
|
@ -333,7 +333,7 @@ public class SurfaceProperties extends PropertyPanel
|
|||
if (textureNameButton == null)
|
||||
{
|
||||
textureNameButton = new JButton();
|
||||
textureNameButton.setBounds(370, 198, 80, 25);
|
||||
textureNameButton.setBounds(420, 198, 80, 25);
|
||||
textureNameButton.setText("Browse");
|
||||
textureNameButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
@ -384,7 +384,7 @@ public class SurfaceProperties extends PropertyPanel
|
|||
if (racelineNameButton == null)
|
||||
{
|
||||
racelineNameButton = new JButton();
|
||||
racelineNameButton.setBounds(370, 522, 80, 25);
|
||||
racelineNameButton.setBounds(420, 522, 80, 25);
|
||||
racelineNameButton.setText("Browse");
|
||||
racelineNameButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
|
|
@ -135,8 +135,8 @@ public class TerrainProperties extends PropertyPanel
|
|||
addTextField(this, 5, maximumAltitudeTextField, getEditorFrame().getTrackData().getGraphic().getTerrainGeneration().getMaximumAltitude(), 140, 100);
|
||||
addTextField(this, 6, minimumAltitudeTextField, getEditorFrame().getTrackData().getGraphic().getTerrainGeneration().getMinimumAltitude(), 140, 100);
|
||||
addTextField(this, 7, groupSizeTextField, getEditorFrame().getTrackData().getGraphic().getTerrainGeneration().getGroupSize(), 140, 100);
|
||||
addTextField(this, 8, elevationMapTextField, getEditorFrame().getTrackData().getGraphic().getTerrainGeneration().getElevationMap(), 140, 245);
|
||||
addTextField(this, 9, reliefFileTextField, getEditorFrame().getTrackData().getGraphic().getTerrainGeneration().getReliefFile(), 140, 245);
|
||||
addTextField(this, 8, elevationMapTextField, getEditorFrame().getTrackData().getGraphic().getTerrainGeneration().getElevationMap(), 140, 295);
|
||||
addTextField(this, 9, reliefFileTextField, getEditorFrame().getTrackData().getGraphic().getTerrainGeneration().getReliefFile(), 140, 295);
|
||||
|
||||
this.add(getSurfaceComboBox(), null);
|
||||
this.add(getDefaultButton(), null);
|
||||
|
@ -233,7 +233,7 @@ public class TerrainProperties extends PropertyPanel
|
|||
if (elevationMapButton == null)
|
||||
{
|
||||
elevationMapButton = new JButton();
|
||||
elevationMapButton.setBounds(390, 225, 80, 25);
|
||||
elevationMapButton.setBounds(440, 225, 80, 25);
|
||||
elevationMapButton.setText("Browse");
|
||||
elevationMapButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
@ -256,7 +256,7 @@ public class TerrainProperties extends PropertyPanel
|
|||
if (reliefFileButton == null)
|
||||
{
|
||||
reliefFileButton = new JButton();
|
||||
reliefFileButton.setBounds(390, 252, 80, 25);
|
||||
reliefFileButton.setBounds(440, 252, 80, 25);
|
||||
reliefFileButton.setText("Browse");
|
||||
reliefFileButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
@ -454,7 +454,7 @@ public class TerrainProperties extends PropertyPanel
|
|||
{
|
||||
tabbedPane = new JTabbedPane();
|
||||
tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
||||
tabbedPane.setBounds(10, 312, 460, 100);
|
||||
tabbedPane.setBounds(10, 312, 510, 100);
|
||||
|
||||
Vector<ObjectMap> objectMaps = getEditorFrame().getTrackData().getGraphic().getTerrainGeneration().getObjectMaps();
|
||||
|
||||
|
@ -495,7 +495,7 @@ public class TerrainProperties extends PropertyPanel
|
|||
addLabel(this, 1, objectMapLabel, "Environment Map", 120);
|
||||
|
||||
addTextField(this, 0, nameTextField, name, 130, 100);
|
||||
addTextField(this, 1, objectMapTextField, objectMap, 130, 235);
|
||||
addTextField(this, 1, objectMapTextField, objectMap, 130, 285);
|
||||
|
||||
add(getObjectMapButton(), null);
|
||||
}
|
||||
|
@ -510,7 +510,7 @@ public class TerrainProperties extends PropertyPanel
|
|||
if (objectMapButton == null)
|
||||
{
|
||||
objectMapButton = new JButton();
|
||||
objectMapButton.setBounds(370, 36, 80, 25);
|
||||
objectMapButton.setBounds(420, 36, 80, 25);
|
||||
objectMapButton.setText("Browse");
|
||||
objectMapButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
|
|
@ -137,7 +137,7 @@ public class TrackLightProperties extends PropertyPanel
|
|||
{
|
||||
tabbedPane = new JTabbedPane();
|
||||
tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
||||
tabbedPane.setBounds(10, 10, 460, 415);
|
||||
tabbedPane.setBounds(10, 10, 510, 415);
|
||||
|
||||
Vector<TrackLight> lights = getEditorFrame().getTrackData().getTrackLights();
|
||||
|
||||
|
@ -224,8 +224,8 @@ public class TrackLightProperties extends PropertyPanel
|
|||
addTextField(this, 5, bottomRightXTextField, getString(light.getBottomRightX()), 120, 100);
|
||||
addTextField(this, 6, bottomRightYTextField, getString(light.getBottomRightY()), 120, 100);
|
||||
addTextField(this, 7, bottomRightZTextField, getString(light.getBottomRightZ()), 120, 100);
|
||||
addTextField(this, 8, textureOnTextField, light.getTextureOn(), 120, 240);
|
||||
addTextField(this, 9, textureOffTextField, light.getTextureOff(), 120, 240);
|
||||
addTextField(this, 8, textureOnTextField, light.getTextureOn(), 120, 290);
|
||||
addTextField(this, 9, textureOffTextField, light.getTextureOff(), 120, 290);
|
||||
addTextField(this, 10, indexTextField, getString(light.getIndex()), 120, 100);
|
||||
addTextField(this, 11, redTextField, getString(light.getRed()), 120, 100);
|
||||
addTextField(this, 12, greenTextField, getString(light.getGreen()), 120, 100);
|
||||
|
@ -255,7 +255,7 @@ public class TrackLightProperties extends PropertyPanel
|
|||
if (textureOnButton == null)
|
||||
{
|
||||
textureOnButton = new JButton();
|
||||
textureOnButton.setBounds(370, 225, 80, 25);
|
||||
textureOnButton.setBounds(420, 225, 80, 25);
|
||||
textureOnButton.setText("Browse");
|
||||
textureOnButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
@ -273,7 +273,7 @@ public class TrackLightProperties extends PropertyPanel
|
|||
if (textureOffButton == null)
|
||||
{
|
||||
textureOffButton = new JButton();
|
||||
textureOffButton.setBounds(370, 252, 80, 25);
|
||||
textureOffButton.setBounds(420, 252, 80, 25);
|
||||
textureOffButton.setText("Browse");
|
||||
textureOffButton.addActionListener(new java.awt.event.ActionListener()
|
||||
{
|
||||
|
|
|
@ -228,7 +228,7 @@ public class TrackProperties extends PropertyPanel
|
|||
{
|
||||
tabbedPane = new JTabbedPane();
|
||||
tabbedPane.setTabLayoutPolicy(JTabbedPane.SCROLL_TAB_LAYOUT);
|
||||
tabbedPane.setBounds(10, 172, 460, 370);
|
||||
tabbedPane.setBounds(10, 172, 510, 370);
|
||||
|
||||
tabbedPane.addTab("Left", null, new SidePanel(getEditorFrame().getTrackData().getMainTrack().getLeft()), null);
|
||||
tabbedPane.addTab("Right", null, new SidePanel(getEditorFrame().getTrackData().getMainTrack().getRight()), null);
|
||||
|
|
Loading…
Reference in a new issue