|
@@ -33,10 +33,12 @@ package com.jme3.gde.terraineditor.sky;
|
|
|
|
|
|
import com.jme3.gde.core.assets.ProjectAssetManager;
|
|
|
import com.jme3.gde.core.properties.TexturePropertyEditor;
|
|
|
-import com.jme3.gde.core.properties.preview.DDSPreview;
|
|
|
+import com.jme3.gde.core.properties.preview.TexturePreview;
|
|
|
import com.jme3.gde.core.scene.SceneApplication;
|
|
|
import com.jme3.texture.Texture;
|
|
|
+import com.jme3.util.SkyFactory;
|
|
|
import java.awt.Component;
|
|
|
+import javax.swing.DefaultComboBoxModel;
|
|
|
import javax.swing.Icon;
|
|
|
import javax.swing.JCheckBox;
|
|
|
import javax.swing.JPanel;
|
|
@@ -46,11 +48,17 @@ import org.openide.util.ImageUtilities;
|
|
|
|
|
|
public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
|
|
|
- private DDSPreview ddsPreview;
|
|
|
+ private TexturePreview texPreview;
|
|
|
|
|
|
/** Creates new form SkyboxVisualPanel2 */
|
|
|
public SkyboxVisualPanel2() {
|
|
|
initComponents();
|
|
|
+
|
|
|
+ DefaultComboBoxModel<SkyFactory.EnvMapType> model = new DefaultComboBoxModel<SkyFactory.EnvMapType>();
|
|
|
+ for (SkyFactory.EnvMapType value : SkyFactory.EnvMapType.values()) {
|
|
|
+ model.addElement(value);
|
|
|
+ }
|
|
|
+ mapTypeCombo.setModel(model);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -101,6 +109,14 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
return editorWest;
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ private TexturePreview getTexturePreview(){
|
|
|
+ if (texPreview == null) {
|
|
|
+ texPreview = new TexturePreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
|
|
+ }
|
|
|
+ return texPreview;
|
|
|
+ }
|
|
|
+
|
|
|
/** This method is called from within the constructor to
|
|
|
* initialize the form.
|
|
|
* WARNING: Do NOT modify this code. The content of this method is
|
|
@@ -140,11 +156,12 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
normal2X = new javax.swing.JTextField();
|
|
|
normal2Y = new javax.swing.JTextField();
|
|
|
normal2Z = new javax.swing.JTextField();
|
|
|
- spheremapCheckBox = new javax.swing.JCheckBox();
|
|
|
singlePic = new javax.swing.JLabel();
|
|
|
flipYcheckBox = new javax.swing.JCheckBox();
|
|
|
+ mapTypeCombo = new javax.swing.JComboBox();
|
|
|
+ jLabel10 = new javax.swing.JLabel();
|
|
|
|
|
|
- titleLabel.setFont(new java.awt.Font("Tahoma", 1, 14));
|
|
|
+ titleLabel.setFont(new java.awt.Font("Tahoma", 1, 14)); // NOI18N
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(titleLabel, org.openide.util.NbBundle.getMessage(SkyboxVisualPanel2.class, "SkyboxVisualPanel2.titleLabel.text")); // NOI18N
|
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(SkyboxVisualPanel2.class, "SkyboxVisualPanel2.jLabel1.text")); // NOI18N
|
|
@@ -279,7 +296,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
.addComponent(multipleTexTopLoadButton)
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
.addComponent(topPic, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)))))
|
|
|
- .addContainerGap(27, Short.MAX_VALUE))
|
|
|
+ .addContainerGap(29, Short.MAX_VALUE))
|
|
|
);
|
|
|
multipleTexturePanelLayout.setVerticalGroup(
|
|
|
multipleTexturePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
@@ -315,7 +332,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
.addGroup(multipleTexturePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
|
.addComponent(jLabel5)
|
|
|
.addComponent(multipleTexTopLoadButton))
|
|
|
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
|
|
|
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
|
.addGroup(multipleTexturePanelLayout.createSequentialGroup()
|
|
|
.addComponent(westPic, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
@@ -346,12 +363,19 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
|
|
|
normal2Z.setText(org.openide.util.NbBundle.getMessage(SkyboxVisualPanel2.class, "SkyboxVisualPanel2.normal2Z.text")); // NOI18N
|
|
|
|
|
|
- org.openide.awt.Mnemonics.setLocalizedText(spheremapCheckBox, org.openide.util.NbBundle.getMessage(SkyboxVisualPanel2.class, "SkyboxVisualPanel2.spheremapCheckBox.text")); // NOI18N
|
|
|
-
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(singlePic, org.openide.util.NbBundle.getMessage(SkyboxVisualPanel2.class, "SkyboxVisualPanel2.singlePic.text")); // NOI18N
|
|
|
|
|
|
org.openide.awt.Mnemonics.setLocalizedText(flipYcheckBox, org.openide.util.NbBundle.getMessage(SkyboxVisualPanel2.class, "SkyboxVisualPanel2.flipYcheckBox.text")); // NOI18N
|
|
|
|
|
|
+ mapTypeCombo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
|
|
|
+ mapTypeCombo.addActionListener(new java.awt.event.ActionListener() {
|
|
|
+ public void actionPerformed(java.awt.event.ActionEvent evt) {
|
|
|
+ mapTypeComboActionPerformed(evt);
|
|
|
+ }
|
|
|
+ });
|
|
|
+
|
|
|
+ org.openide.awt.Mnemonics.setLocalizedText(jLabel10, org.openide.util.NbBundle.getMessage(SkyboxVisualPanel2.class, "SkyboxVisualPanel2.jLabel10.text")); // NOI18N
|
|
|
+
|
|
|
javax.swing.GroupLayout singleTexturePanelLayout = new javax.swing.GroupLayout(singleTexturePanel);
|
|
|
singleTexturePanel.setLayout(singleTexturePanelLayout);
|
|
|
singleTexturePanelLayout.setHorizontalGroup(
|
|
@@ -359,11 +383,16 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
.addGroup(singleTexturePanelLayout.createSequentialGroup()
|
|
|
.addContainerGap()
|
|
|
.addGroup(singleTexturePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
|
+ .addComponent(flipYcheckBox, javax.swing.GroupLayout.PREFERRED_SIZE, 100, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
.addGroup(singleTexturePanelLayout.createSequentialGroup()
|
|
|
- .addComponent(jLabel8)
|
|
|
+ .addComponent(jLabel10)
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
+ .addComponent(mapTypeCombo, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
|
+ .addGroup(singleTexturePanelLayout.createSequentialGroup()
|
|
|
+ .addComponent(jLabel8)
|
|
|
+ .addGap(21, 21, 21)
|
|
|
.addComponent(singleTexLoadButton)
|
|
|
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
+ .addGap(2, 2, 2)
|
|
|
.addComponent(singlePic, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
.addGap(39, 39, 39)
|
|
|
.addComponent(jLabel9)
|
|
@@ -372,11 +401,8 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
.addComponent(normal2Y, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
.addGap(6, 6, 6)
|
|
|
- .addComponent(normal2Z, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE))
|
|
|
- .addGroup(singleTexturePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
|
|
|
- .addComponent(flipYcheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
|
|
|
- .addComponent(spheremapCheckBox, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
|
|
|
- .addContainerGap(31, Short.MAX_VALUE))
|
|
|
+ .addComponent(normal2Z, javax.swing.GroupLayout.PREFERRED_SIZE, 21, javax.swing.GroupLayout.PREFERRED_SIZE)))
|
|
|
+ .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
|
|
|
);
|
|
|
singleTexturePanelLayout.setVerticalGroup(
|
|
|
singleTexturePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
|
|
@@ -394,7 +420,9 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
.addComponent(normal2Z, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
.addComponent(jLabel9))))
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
|
|
|
- .addComponent(spheremapCheckBox)
|
|
|
+ .addGroup(singleTexturePanelLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
|
|
|
+ .addComponent(mapTypeCombo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
|
|
|
+ .addComponent(jLabel10))
|
|
|
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
|
|
|
.addComponent(flipYcheckBox)
|
|
|
.addContainerGap(75, Short.MAX_VALUE))
|
|
@@ -428,148 +456,76 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
private void multipleTexSouthLoadButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_multipleTexSouthLoadButtonActionPerformed
|
|
|
Component view = editorSouth.getCustomEditor();
|
|
|
view.setVisible(true);
|
|
|
- if (editorSouth.getValue() != null) {
|
|
|
- Texture tex = (Texture) editorSouth.getValue();
|
|
|
- String selected = tex.getKey().getName();
|
|
|
-
|
|
|
- if (selected.toLowerCase().endsWith(".dds")) {
|
|
|
- if (ddsPreview == null) {
|
|
|
- ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
|
|
- }
|
|
|
- ddsPreview.requestPreview(selected, "", 80, 80, southPic, null);
|
|
|
-
|
|
|
- } else {
|
|
|
- Icon newicon = ImageUtilities.image2Icon(ImageToAwt.convert(tex.getImage(), false, true, 0));
|
|
|
- southPic.setIcon(newicon);
|
|
|
- }
|
|
|
+ if (editorSouth.getAsText()!= null) {
|
|
|
+ String selected = editorSouth.getAsText();
|
|
|
+ getTexturePreview().requestPreview(selected, "", 80, 80, southPic, null);
|
|
|
}
|
|
|
}//GEN-LAST:event_multipleTexSouthLoadButtonActionPerformed
|
|
|
|
|
|
private void multipleTexNorthLoadButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_multipleTexNorthLoadButtonActionPerformed
|
|
|
Component view = editorNorth.getCustomEditor();
|
|
|
view.setVisible(true);
|
|
|
- if (editorNorth.getValue() != null) {
|
|
|
- Texture tex = (Texture) editorNorth.getValue();
|
|
|
- String selected = tex.getKey().getName();
|
|
|
-
|
|
|
- if (selected.toLowerCase().endsWith(".dds")) {
|
|
|
- if (ddsPreview == null) {
|
|
|
- ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
|
|
- }
|
|
|
- ddsPreview.requestPreview(selected, "", 80, 80, northPic, null);
|
|
|
-
|
|
|
- } else {
|
|
|
- Icon newicon = ImageUtilities.image2Icon(ImageToAwt.convert(tex.getImage(), false, true, 0));
|
|
|
- northPic.setIcon(newicon);
|
|
|
- }
|
|
|
+ if (editorNorth.getAsText() != null) {
|
|
|
+ String selected = editorNorth.getAsText();
|
|
|
+ getTexturePreview().requestPreview(selected, "", 80, 80, northPic, null);
|
|
|
}
|
|
|
}//GEN-LAST:event_multipleTexNorthLoadButtonActionPerformed
|
|
|
|
|
|
private void multipleTexEastLoadButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_multipleTexEastLoadButtonActionPerformed
|
|
|
Component view = editorEast.getCustomEditor();
|
|
|
view.setVisible(true);
|
|
|
- if (editorEast.getValue() != null) {
|
|
|
- Texture tex = (Texture) editorEast.getValue();
|
|
|
- String selected = tex.getKey().getName();
|
|
|
-
|
|
|
- if (selected.toLowerCase().endsWith(".dds")) {
|
|
|
- if (ddsPreview == null) {
|
|
|
- ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
|
|
- }
|
|
|
- ddsPreview.requestPreview(selected, "", 80, 80, eastPic, null);
|
|
|
-
|
|
|
- } else {
|
|
|
- Icon newicon = ImageUtilities.image2Icon(ImageToAwt.convert(tex.getImage(), false, true, 0));
|
|
|
- eastPic.setIcon(newicon);
|
|
|
- }
|
|
|
+ if (editorEast.getAsText() != null) {
|
|
|
+ String selected = editorEast.getAsText();
|
|
|
+ getTexturePreview().requestPreview(selected, "", 80, 80, eastPic, null);
|
|
|
}
|
|
|
}//GEN-LAST:event_multipleTexEastLoadButtonActionPerformed
|
|
|
|
|
|
private void multipleTexWestLoadButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_multipleTexWestLoadButtonActionPerformed
|
|
|
Component view = editorWest.getCustomEditor();
|
|
|
view.setVisible(true);
|
|
|
- if (editorWest.getValue() != null) {
|
|
|
- Texture tex = (Texture) editorWest.getValue();
|
|
|
- String selected = tex.getKey().getName();
|
|
|
-
|
|
|
- if (selected.toLowerCase().endsWith(".dds")) {
|
|
|
- if (ddsPreview == null) {
|
|
|
- ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
|
|
- }
|
|
|
- ddsPreview.requestPreview(selected, "", 80, 80, westPic, null);
|
|
|
-
|
|
|
- } else {
|
|
|
- Icon newicon = ImageUtilities.image2Icon(ImageToAwt.convert(tex.getImage(), false, true, 0));
|
|
|
- westPic.setIcon(newicon);
|
|
|
- }
|
|
|
+ if (editorWest.getAsText() != null) {
|
|
|
+ String selected = editorWest.getAsText();
|
|
|
+ getTexturePreview().requestPreview(selected, "", 80, 80, westPic, null);
|
|
|
}
|
|
|
}//GEN-LAST:event_multipleTexWestLoadButtonActionPerformed
|
|
|
|
|
|
private void multipleTexTopLoadButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_multipleTexTopLoadButtonActionPerformed
|
|
|
Component view = editorTop.getCustomEditor();
|
|
|
view.setVisible(true);
|
|
|
- if (editorTop.getValue() != null) {
|
|
|
- Texture tex = (Texture) editorTop.getValue();
|
|
|
- String selected = tex.getKey().getName();
|
|
|
-
|
|
|
- if (selected.toLowerCase().endsWith(".dds")) {
|
|
|
- if (ddsPreview == null) {
|
|
|
- ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
|
|
- }
|
|
|
- ddsPreview.requestPreview(selected, "", 80, 80, topPic, null);
|
|
|
-
|
|
|
- } else {
|
|
|
- Icon newicon = ImageUtilities.image2Icon(ImageToAwt.convert(tex.getImage(), false, true, 0));
|
|
|
- topPic.setIcon(newicon);
|
|
|
- }
|
|
|
+ if (editorTop.getAsText() != null) {
|
|
|
+ String selected = editorTop.getAsText();
|
|
|
+ getTexturePreview().requestPreview(selected, "", 80, 80, topPic, null);
|
|
|
}
|
|
|
}//GEN-LAST:event_multipleTexTopLoadButtonActionPerformed
|
|
|
|
|
|
private void multipleTexBottomLoadButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_multipleTexBottomLoadButtonActionPerformed
|
|
|
Component view = editorBottom.getCustomEditor();
|
|
|
view.setVisible(true);
|
|
|
- if (editorBottom.getValue() != null) {
|
|
|
- Texture tex = (Texture) editorBottom.getValue();
|
|
|
- String selected = tex.getKey().getName();
|
|
|
-
|
|
|
- if (selected.toLowerCase().endsWith(".dds")) {
|
|
|
- if (ddsPreview == null) {
|
|
|
- ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
|
|
- }
|
|
|
- ddsPreview.requestPreview(selected, "", 80, 80, bottomPic, null);
|
|
|
-
|
|
|
- } else {
|
|
|
- Icon newicon = ImageUtilities.image2Icon(ImageToAwt.convert(tex.getImage(), false, true, 0));
|
|
|
- bottomPic.setIcon(newicon);
|
|
|
- }
|
|
|
+ if (editorBottom.getAsText() != null) {
|
|
|
+ String selected = editorBottom.getAsText();
|
|
|
+ getTexturePreview().requestPreview(selected, "", 80, 80, bottomPic, null);
|
|
|
}
|
|
|
}//GEN-LAST:event_multipleTexBottomLoadButtonActionPerformed
|
|
|
|
|
|
private void singleTexLoadButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_singleTexLoadButtonActionPerformed
|
|
|
Component view = editorSingle.getCustomEditor();
|
|
|
view.setVisible(true);
|
|
|
- if (editorSingle.getValue() != null) {
|
|
|
- Texture tex = (Texture) editorSingle.getValue();
|
|
|
- String selected = tex.getKey().getName();
|
|
|
-
|
|
|
- if (selected.toLowerCase().endsWith(".dds")) {
|
|
|
- if (ddsPreview == null) {
|
|
|
- ddsPreview = new DDSPreview((ProjectAssetManager) SceneApplication.getApplication().getAssetManager());
|
|
|
- }
|
|
|
- ddsPreview.requestPreview(selected, "", 80, 80, singlePic, null);
|
|
|
-
|
|
|
- } else {
|
|
|
-
|
|
|
- Icon newicon = ImageUtilities.image2Icon(ImageToAwt.convert(tex.getImage(), false, true, 0));
|
|
|
- singlePic.setIcon(newicon);
|
|
|
- }
|
|
|
+ if (editorSingle.getAsText()!= null) {
|
|
|
+ String selected = editorSingle.getAsText();
|
|
|
+ getTexturePreview().requestPreview(selected, "", 80, 80, singlePic, null);
|
|
|
}
|
|
|
}//GEN-LAST:event_singleTexLoadButtonActionPerformed
|
|
|
+
|
|
|
+ private void mapTypeComboActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_mapTypeComboActionPerformed
|
|
|
+ // TODO add your handling code here:
|
|
|
+ }//GEN-LAST:event_mapTypeComboActionPerformed
|
|
|
+
|
|
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
|
|
private javax.swing.JLabel bottomPic;
|
|
|
private javax.swing.JLabel eastPic;
|
|
|
private javax.swing.JCheckBox flipYcheckBox;
|
|
|
private javax.swing.JLabel jLabel1;
|
|
|
+ private javax.swing.JLabel jLabel10;
|
|
|
private javax.swing.JLabel jLabel2;
|
|
|
private javax.swing.JLabel jLabel3;
|
|
|
private javax.swing.JLabel jLabel4;
|
|
@@ -578,6 +534,7 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
private javax.swing.JLabel jLabel7;
|
|
|
private javax.swing.JLabel jLabel8;
|
|
|
private javax.swing.JLabel jLabel9;
|
|
|
+ private javax.swing.JComboBox mapTypeCombo;
|
|
|
private javax.swing.JButton multipleTexBottomLoadButton;
|
|
|
private javax.swing.JButton multipleTexEastLoadButton;
|
|
|
private javax.swing.JButton multipleTexNorthLoadButton;
|
|
@@ -596,7 +553,6 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
private javax.swing.JButton singleTexLoadButton;
|
|
|
private javax.swing.JPanel singleTexturePanel;
|
|
|
private javax.swing.JLabel southPic;
|
|
|
- private javax.swing.JCheckBox spheremapCheckBox;
|
|
|
private javax.swing.JLabel titleLabel;
|
|
|
private javax.swing.JLabel topPic;
|
|
|
private javax.swing.JLabel westPic;
|
|
@@ -626,10 +582,11 @@ public final class SkyboxVisualPanel2 extends JPanel {
|
|
|
return normal2Z;
|
|
|
}
|
|
|
|
|
|
- public JCheckBox getSpheremapCheckBox() {
|
|
|
- return spheremapCheckBox;
|
|
|
+ public SkyFactory.EnvMapType getEnvMapType(){
|
|
|
+ return (SkyFactory.EnvMapType)mapTypeCombo.getSelectedItem();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
public JCheckBox getFlipYCheckBox() {
|
|
|
return flipYcheckBox;
|
|
|
}
|