Browse Source

Merge pull request #409 from neph1/normal_view_fix

Normal view fix
Rickard Edén 2 years ago
parent
commit
9c8db43ea3

+ 2 - 0
jme3-core/src/com/jme3/gde/core/sceneviewer/Bundle.properties

@@ -15,3 +15,5 @@ SceneViewerTopComponent.enablePBREnv.toolTipText=Toggle a PBR Environment
 SceneViewerTopComponent.enablePBREnv.text=
 SceneViewerTopComponent.enablePBRSky.toolTipText=Toggle the Skybox matching the PBR Environment (stay patient)
 SceneViewerTopComponent.enablePBRSky.text=
+SceneViewerTopComponent.enableNormalView.text=
+SceneViewerTopComponent.enableNormalView.toolTipText=Display Normals

+ 2 - 2
jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.form

@@ -199,7 +199,7 @@
         <Component class="javax.swing.JToggleButton" name="enableNormalView">
           <Properties>
             <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
-              <Connection code="IconList.chimpMad" type="code"/>
+              <Connection code="IconList.normalView" type="code"/>
             </Property>
             <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
               <ResourceString bundle="com/jme3/gde/core/sceneviewer/Bundle.properties" key="SceneViewerTopComponent.enableNormalView.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
@@ -210,7 +210,7 @@
             <Property name="focusable" type="boolean" value="false"/>
             <Property name="horizontalTextPosition" type="int" value="0"/>
             <Property name="selectedIcon" type="javax.swing.Icon" editor="org.netbeans.modules.form.RADConnectionPropertyEditor">
-              <Connection code="IconList.chimpMad" type="code"/>
+              <Connection code="IconList.normalView" type="code"/>
             </Property>
             <Property name="verticalTextPosition" type="int" value="3"/>
           </Properties>

+ 2 - 2
jme3-core/src/com/jme3/gde/core/sceneviewer/SceneViewerTopComponent.java

@@ -270,12 +270,12 @@ public final class SceneViewerTopComponent extends TopComponent {
         });
         jToolBar1.add(enablePBRSky);
 
-        enableNormalView.setIcon(IconList.chimpMad);
+        enableNormalView.setIcon(IconList.normalView);
         org.openide.awt.Mnemonics.setLocalizedText(enableNormalView, org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableNormalView.text")); // NOI18N
         enableNormalView.setToolTipText(org.openide.util.NbBundle.getMessage(SceneViewerTopComponent.class, "SceneViewerTopComponent.enableNormalView.toolTipText")); // NOI18N
         enableNormalView.setFocusable(false);
         enableNormalView.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
-        enableNormalView.setSelectedIcon(IconList.chimpMad);
+        enableNormalView.setSelectedIcon(IconList.normalView);
         enableNormalView.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
         enableNormalView.addActionListener(new java.awt.event.ActionListener() {
             public void actionPerformed(java.awt.event.ActionEvent evt) {

+ 11 - 0
jme3-scenecomposer/src/com/jme3/gde/scenecomposer/Bundle.properties

@@ -74,3 +74,14 @@ SceneComposerTopComponent.jLabel13.text=Field of View
 SceneComposerTopComponent.sceneInfoLabel.text_1=..
 SceneComposerTopComponent.sceneInfoLabel1.text=..
 SceneComposerTopComponent.jSlider1.toolTipText=
+SceneComposerTopComponent.moveToCursorButton.toolTipText=Move selected item to cursor
+SceneComposerTopComponent.showSelectionToggleButton.toolTipText=Display selection
+SceneComposerTopComponent.showSelectionToggleButton.text=Selection
+SceneComposerTopComponent.showGridToggleButton.toolTipText=Display grid
+SceneComposerTopComponent.showGridToggleButton.text=Grid
+SceneComposerTopComponent.Selection.text=Selection
+SceneComposerTopComponent.Selection.toolTipText=Display selection
+SceneComposerTopComponent.Grid.text=Grid
+SceneComposerTopComponent.Grid.toolTipText=Display grid
+SceneComposerTopComponent.text=Scene Composer
+SceneComposerTopComponent.toolTipText=Scene Composer