sdk : added spot light support to scene composer
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@7896 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
parent
53354f5dda
commit
3cd94d776f
@ -247,6 +247,9 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="addObjectButton">
|
<Component class="javax.swing.JButton" name="addObjectButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="cc" green="cc" red="cc" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/scenecomposer/add.gif"/>
|
<Image iconType="3" name="/com/jme3/gde/scenecomposer/add.gif"/>
|
||||||
</Property>
|
</Property>
|
||||||
@ -264,6 +267,9 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="addCursorButton">
|
<Component class="javax.swing.JButton" name="addCursorButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="cc" green="cc" red="cc" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/scenecomposer/add.gif"/>
|
<Image iconType="3" name="/com/jme3/gde/scenecomposer/add.gif"/>
|
||||||
</Property>
|
</Property>
|
||||||
@ -281,6 +287,9 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="moveToCursorButton">
|
<Component class="javax.swing.JButton" name="moveToCursorButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="cc" green="cc" red="cc" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
<Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor">
|
||||||
<Image iconType="3" name="/com/jme3/gde/scenecomposer/move.gif"/>
|
<Image iconType="3" name="/com/jme3/gde/scenecomposer/move.gif"/>
|
||||||
</Property>
|
</Property>
|
||||||
@ -356,6 +365,9 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="resetCursorButton">
|
<Component class="javax.swing.JButton" name="resetCursorButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="cc" green="cc" red="cc" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.resetCursorButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.resetCursorButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
@ -372,6 +384,9 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="cursorToSelectionButton">
|
<Component class="javax.swing.JButton" name="cursorToSelectionButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="cc" green="cc" red="cc" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.cursorToSelectionButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.cursorToSelectionButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
@ -400,6 +415,9 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JButton" name="camToCursorSelectionButton">
|
<Component class="javax.swing.JButton" name="camToCursorSelectionButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="cc" green="cc" red="cc" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.camToCursorSelectionButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.camToCursorSelectionButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
@ -484,6 +502,9 @@
|
|||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="javax.swing.JButton" name="createPhysicsMeshButton">
|
<Component class="javax.swing.JButton" name="createPhysicsMeshButton">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="cc" green="cc" red="cc" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.createPhysicsMeshButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.createPhysicsMeshButton.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
@ -497,6 +518,9 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="jCheckBox1">
|
<Component class="javax.swing.JCheckBox" name="jCheckBox1">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="cc" green="cc" red="cc" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.jCheckBox1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.jCheckBox1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
@ -531,6 +555,9 @@
|
|||||||
<SubComponents>
|
<SubComponents>
|
||||||
<Component class="javax.swing.JButton" name="jButton1">
|
<Component class="javax.swing.JButton" name="jButton1">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="cc" green="cc" red="cc" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.jButton1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.jButton1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
</Property>
|
</Property>
|
||||||
@ -541,6 +568,9 @@
|
|||||||
</Component>
|
</Component>
|
||||||
<Component class="javax.swing.JCheckBox" name="fixedCheckBox">
|
<Component class="javax.swing.JCheckBox" name="fixedCheckBox">
|
||||||
<Properties>
|
<Properties>
|
||||||
|
<Property name="background" type="java.awt.Color" editor="org.netbeans.beaninfo.editors.ColorEditor">
|
||||||
|
<Color blue="cc" green="cc" red="cc" type="rgb"/>
|
||||||
|
</Property>
|
||||||
<Property name="selected" type="boolean" value="true"/>
|
<Property name="selected" type="boolean" value="true"/>
|
||||||
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
|
||||||
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.fixedCheckBox.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
<ResourceString bundle="com/jme3/gde/scenecomposer/Bundle.properties" key="SceneComposerTopComponent.fixedCheckBox.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/>
|
||||||
|
@ -215,6 +215,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
jToolBar1.add(scaleButton);
|
jToolBar1.add(scaleButton);
|
||||||
jToolBar1.add(jSeparator5);
|
jToolBar1.add(jSeparator5);
|
||||||
|
|
||||||
|
addObjectButton.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
addObjectButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/add.gif"))); // NOI18N
|
addObjectButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/add.gif"))); // NOI18N
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(addObjectButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.addObjectButton.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(addObjectButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.addObjectButton.text")); // NOI18N
|
||||||
addObjectButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.addObjectButton.toolTipText")); // NOI18N
|
addObjectButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.addObjectButton.toolTipText")); // NOI18N
|
||||||
@ -226,6 +227,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
});
|
});
|
||||||
jToolBar1.add(addObjectButton);
|
jToolBar1.add(addObjectButton);
|
||||||
|
|
||||||
|
addCursorButton.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
addCursorButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/add.gif"))); // NOI18N
|
addCursorButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/add.gif"))); // NOI18N
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(addCursorButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.addCursorButton.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(addCursorButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.addCursorButton.text")); // NOI18N
|
||||||
addCursorButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.addCursorButton.toolTipText")); // NOI18N
|
addCursorButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.addCursorButton.toolTipText")); // NOI18N
|
||||||
@ -237,6 +239,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
});
|
});
|
||||||
jToolBar1.add(addCursorButton);
|
jToolBar1.add(addCursorButton);
|
||||||
|
|
||||||
|
moveToCursorButton.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
moveToCursorButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/move.gif"))); // NOI18N
|
moveToCursorButton.setIcon(new javax.swing.ImageIcon(getClass().getResource("/com/jme3/gde/scenecomposer/move.gif"))); // NOI18N
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(moveToCursorButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.moveToCursorButton.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(moveToCursorButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.moveToCursorButton.text")); // NOI18N
|
||||||
moveToCursorButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.moveToCursorButton.toolTipText")); // NOI18N
|
moveToCursorButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.moveToCursorButton.toolTipText")); // NOI18N
|
||||||
@ -284,6 +287,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jLabel1.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(jLabel1, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jLabel1.text")); // NOI18N
|
||||||
jToolBar1.add(jLabel1);
|
jToolBar1.add(jLabel1);
|
||||||
|
|
||||||
|
resetCursorButton.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(resetCursorButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.resetCursorButton.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(resetCursorButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.resetCursorButton.text")); // NOI18N
|
||||||
resetCursorButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.resetCursorButton.toolTipText")); // NOI18N
|
resetCursorButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.resetCursorButton.toolTipText")); // NOI18N
|
||||||
resetCursorButton.setFocusable(false);
|
resetCursorButton.setFocusable(false);
|
||||||
@ -296,6 +300,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
});
|
});
|
||||||
jToolBar1.add(resetCursorButton);
|
jToolBar1.add(resetCursorButton);
|
||||||
|
|
||||||
|
cursorToSelectionButton.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(cursorToSelectionButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.cursorToSelectionButton.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(cursorToSelectionButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.cursorToSelectionButton.text")); // NOI18N
|
||||||
cursorToSelectionButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.cursorToSelectionButton.toolTipText")); // NOI18N
|
cursorToSelectionButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.cursorToSelectionButton.toolTipText")); // NOI18N
|
||||||
cursorToSelectionButton.setFocusable(false);
|
cursorToSelectionButton.setFocusable(false);
|
||||||
@ -313,6 +318,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jLabel2.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(jLabel2, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jLabel2.text")); // NOI18N
|
||||||
jToolBar1.add(jLabel2);
|
jToolBar1.add(jLabel2);
|
||||||
|
|
||||||
|
camToCursorSelectionButton.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(camToCursorSelectionButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.camToCursorSelectionButton.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(camToCursorSelectionButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.camToCursorSelectionButton.text")); // NOI18N
|
||||||
camToCursorSelectionButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.camToCursorSelectionButton.toolTipText")); // NOI18N
|
camToCursorSelectionButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.camToCursorSelectionButton.toolTipText")); // NOI18N
|
||||||
camToCursorSelectionButton.setFocusable(false);
|
camToCursorSelectionButton.setFocusable(false);
|
||||||
@ -348,6 +354,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
jToolBar2.setFloatable(false);
|
jToolBar2.setFloatable(false);
|
||||||
jToolBar2.setRollover(true);
|
jToolBar2.setRollover(true);
|
||||||
|
|
||||||
|
createPhysicsMeshButton.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(createPhysicsMeshButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.createPhysicsMeshButton.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(createPhysicsMeshButton, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.createPhysicsMeshButton.text")); // NOI18N
|
||||||
createPhysicsMeshButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.createPhysicsMeshButton.toolTipText")); // NOI18N
|
createPhysicsMeshButton.setToolTipText(org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.createPhysicsMeshButton.toolTipText")); // NOI18N
|
||||||
createPhysicsMeshButton.addActionListener(new java.awt.event.ActionListener() {
|
createPhysicsMeshButton.addActionListener(new java.awt.event.ActionListener() {
|
||||||
@ -357,6 +364,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
});
|
});
|
||||||
jToolBar2.add(createPhysicsMeshButton);
|
jToolBar2.add(createPhysicsMeshButton);
|
||||||
|
|
||||||
|
jCheckBox1.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jCheckBox1.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(jCheckBox1, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jCheckBox1.text")); // NOI18N
|
||||||
jToolBar2.add(jCheckBox1);
|
jToolBar2.add(jCheckBox1);
|
||||||
|
|
||||||
@ -370,6 +378,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
jToolBar3.setFloatable(false);
|
jToolBar3.setFloatable(false);
|
||||||
jToolBar3.setRollover(true);
|
jToolBar3.setRollover(true);
|
||||||
|
|
||||||
|
jButton1.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jButton1.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(jButton1, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.jButton1.text")); // NOI18N
|
||||||
jButton1.addActionListener(new java.awt.event.ActionListener() {
|
jButton1.addActionListener(new java.awt.event.ActionListener() {
|
||||||
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
public void actionPerformed(java.awt.event.ActionEvent evt) {
|
||||||
@ -378,6 +387,7 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
});
|
});
|
||||||
jToolBar3.add(jButton1);
|
jToolBar3.add(jButton1);
|
||||||
|
|
||||||
|
fixedCheckBox.setBackground(new java.awt.Color(204, 204, 204));
|
||||||
fixedCheckBox.setSelected(true);
|
fixedCheckBox.setSelected(true);
|
||||||
org.openide.awt.Mnemonics.setLocalizedText(fixedCheckBox, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.fixedCheckBox.text")); // NOI18N
|
org.openide.awt.Mnemonics.setLocalizedText(fixedCheckBox, org.openide.util.NbBundle.getMessage(SceneComposerTopComponent.class, "SceneComposerTopComponent.fixedCheckBox.text")); // NOI18N
|
||||||
fixedCheckBox.setEnabled(false);
|
fixedCheckBox.setEnabled(false);
|
||||||
@ -511,7 +521,6 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
MoveTool tool = new MoveTool();
|
MoveTool tool = new MoveTool();
|
||||||
toolController.showEditTool(tool);
|
toolController.showEditTool(tool);
|
||||||
}//GEN-LAST:event_moveButtonActionPerformed
|
}//GEN-LAST:event_moveButtonActionPerformed
|
||||||
|
|
||||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||||
private javax.swing.JButton addCursorButton;
|
private javax.swing.JButton addCursorButton;
|
||||||
private javax.swing.JButton addObjectButton;
|
private javax.swing.JButton addObjectButton;
|
||||||
@ -680,9 +689,9 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
if (node == null) {
|
if (node == null) {
|
||||||
jList1.setListData(new String[]{});
|
jList1.setListData(new String[]{});
|
||||||
} else if (node) {
|
} else if (node) {
|
||||||
jList1.setListData(new String[]{"Node", "Particle Emitter", "Audio Node", "Picture", "Point Light", "Directional Light", "Ambient Light"});
|
jList1.setListData(new String[]{"Node", "Particle Emitter", "Audio Node", "Picture", "Point Light" ,"Spot Light", "Directional Light", "Ambient Light"});
|
||||||
} else {
|
} else {
|
||||||
jList1.setListData(new String[]{"Point Light", "Directional Light", "Ambient Light"});
|
jList1.setListData(new String[]{"Point Light", "Spot Light", "Directional Light", "Ambient Light"});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@ -893,30 +902,30 @@ public final class SceneComposerTopComponent extends TopComponent implements Sce
|
|||||||
camController.setToolController(toolController);
|
camController.setToolController(toolController);
|
||||||
camController.setMaster(this);
|
camController.setMaster(this);
|
||||||
camController.enable();
|
camController.enable();
|
||||||
|
|
||||||
toolController.setCameraController(camController);
|
toolController.setCameraController(camController);
|
||||||
SelectTool tool = new SelectTool();
|
SelectTool tool = new SelectTool();
|
||||||
toolController.showEditTool(tool);
|
toolController.showEditTool(tool);
|
||||||
}/* else {
|
}/* else {
|
||||||
SceneApplication.getApplication().removeSceneListener(this);
|
SceneApplication.getApplication().removeSceneListener(this);
|
||||||
currentRequest = null;
|
currentRequest = null;
|
||||||
setSceneInfo(null, false);
|
setSceneInfo(null, false);
|
||||||
cleanupControllers();
|
cleanupControllers();
|
||||||
}*/
|
}*/
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean sceneClose(SceneRequest request) {
|
public boolean sceneClose(SceneRequest request) {
|
||||||
if (request.equals(currentRequest)) {
|
if (request.equals(currentRequest)) {
|
||||||
// if (checkSaved()) {
|
// if (checkSaved()) {
|
||||||
SceneApplication.getApplication().removeSceneListener(this);
|
SceneApplication.getApplication().removeSceneListener(this);
|
||||||
currentRequest = null;
|
currentRequest = null;
|
||||||
setSceneInfo(null, null, false);
|
setSceneInfo(null, null, false);
|
||||||
java.awt.EventQueue.invokeLater(new Runnable() {
|
java.awt.EventQueue.invokeLater(new Runnable() {
|
||||||
|
|
||||||
public void run() {
|
public void run() {
|
||||||
cleanupControllers();
|
cleanupControllers();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// } else {
|
// } else {
|
||||||
// return false;
|
// return false;
|
||||||
// }
|
// }
|
||||||
|
@ -25,6 +25,7 @@ import com.jme3.light.AmbientLight;
|
|||||||
import com.jme3.light.DirectionalLight;
|
import com.jme3.light.DirectionalLight;
|
||||||
import com.jme3.light.Light;
|
import com.jme3.light.Light;
|
||||||
import com.jme3.light.PointLight;
|
import com.jme3.light.PointLight;
|
||||||
|
import com.jme3.light.SpotLight;
|
||||||
import com.jme3.material.Material;
|
import com.jme3.material.Material;
|
||||||
import com.jme3.math.ColorRGBA;
|
import com.jme3.math.ColorRGBA;
|
||||||
import com.jme3.math.Quaternion;
|
import com.jme3.math.Quaternion;
|
||||||
@ -204,6 +205,18 @@ public class SceneEditorController implements PropertyChangeListener, NodeListen
|
|||||||
refreshSelected();
|
refreshSelected();
|
||||||
undoLight = light;
|
undoLight = light;
|
||||||
undoParent = ((Node) selected);
|
undoParent = ((Node) selected);
|
||||||
|
} else if ("Spot Light".equals(name)) {
|
||||||
|
SpotLight light = new SpotLight();
|
||||||
|
if (point != null) {
|
||||||
|
Vector3f localVec = new Vector3f();
|
||||||
|
selected.worldToLocal(point, localVec);
|
||||||
|
light.setPosition(localVec);
|
||||||
|
}
|
||||||
|
light.setColor(ColorRGBA.White);
|
||||||
|
((Node) selected).addLight(light);
|
||||||
|
refreshSelected();
|
||||||
|
undoLight = light;
|
||||||
|
undoParent = ((Node) selected);
|
||||||
} else if ("Directional Light".equals(name)) {
|
} else if ("Directional Light".equals(name)) {
|
||||||
DirectionalLight dl = new DirectionalLight();
|
DirectionalLight dl = new DirectionalLight();
|
||||||
dl.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
|
dl.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
|
||||||
@ -231,7 +244,19 @@ public class SceneEditorController implements PropertyChangeListener, NodeListen
|
|||||||
selected.addLight(light);
|
selected.addLight(light);
|
||||||
refreshSelected();
|
refreshSelected();
|
||||||
undoLight = light;
|
undoLight = light;
|
||||||
undoParent = ((Node) selected);
|
undoSpatial = ((Geometry) selected);
|
||||||
|
} else if ("Spot Light".equals(name)) {
|
||||||
|
SpotLight light = new SpotLight();
|
||||||
|
if (point != null) {
|
||||||
|
Vector3f localVec = new Vector3f();
|
||||||
|
selected.worldToLocal(point, localVec);
|
||||||
|
light.setPosition(localVec);
|
||||||
|
}
|
||||||
|
light.setColor(ColorRGBA.White);
|
||||||
|
selected.addLight(light);
|
||||||
|
refreshSelected();
|
||||||
|
undoLight = light;
|
||||||
|
undoSpatial = ((Geometry) selected);
|
||||||
} else if ("Directional Light".equals(name)) {
|
} else if ("Directional Light".equals(name)) {
|
||||||
DirectionalLight dl = new DirectionalLight();
|
DirectionalLight dl = new DirectionalLight();
|
||||||
dl.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
|
dl.setDirection(new Vector3f(-1, -1, -1).normalizeLocal());
|
||||||
@ -239,14 +264,14 @@ public class SceneEditorController implements PropertyChangeListener, NodeListen
|
|||||||
selected.addLight(dl);
|
selected.addLight(dl);
|
||||||
refreshSelected();
|
refreshSelected();
|
||||||
undoLight = dl;
|
undoLight = dl;
|
||||||
undoParent = ((Node) selected);
|
undoSpatial = ((Geometry) selected);
|
||||||
} else if ("Ambient Light".equals(name)) {
|
} else if ("Ambient Light".equals(name)) {
|
||||||
AmbientLight dl = new AmbientLight();
|
AmbientLight dl = new AmbientLight();
|
||||||
dl.setColor(ColorRGBA.White);
|
dl.setColor(ColorRGBA.White);
|
||||||
selected.addLight(dl);
|
selected.addLight(dl);
|
||||||
refreshSelected();
|
refreshSelected();
|
||||||
undoLight = dl;
|
undoLight = dl;
|
||||||
undoParent = ((Node) selected);
|
undoSpatial = ((Geometry) selected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
AbstractSceneExplorerNode selectedSpat = this.selectedSpat;
|
AbstractSceneExplorerNode selectedSpat = this.selectedSpat;
|
||||||
@ -453,9 +478,9 @@ public class SceneEditorController implements PropertyChangeListener, NodeListen
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void doRotateSpatial(Spatial selected, Quaternion rotation) {
|
public void doRotateSpatial(Spatial selected, Quaternion rotation) {
|
||||||
Quaternion before=new Quaternion(selected.getLocalRotation());
|
Quaternion before = new Quaternion(selected.getLocalRotation());
|
||||||
selected.rotate(rotation);
|
selected.rotate(rotation);
|
||||||
Quaternion after=new Quaternion(selected.getLocalRotation());
|
Quaternion after = new Quaternion(selected.getLocalRotation());
|
||||||
rotateUndo(selected, before, after, selectedSpat);
|
rotateUndo(selected, before, after, selectedSpat);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -925,5 +950,4 @@ public class SceneEditorController implements PropertyChangeListener, NodeListen
|
|||||||
selectedSpat.removePropertyChangeListener(this);
|
selectedSpat.removePropertyChangeListener(this);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user