Browse Source

Add animationCheckBox to MaterialEditorTopComponent.form file

Co-authored-by: neph1 <[email protected]>
copilot-swe-agent[bot] 2 days ago
parent
commit
22e163a12f

+ 13 - 0
jme3-materialeditor/src/com/jme3/gde/materials/multiview/MaterialEditorTopComponent.form

@@ -99,6 +99,8 @@
                                   </Group>
                                   <EmptySpace max="-2" attributes="0"/>
                                   <Component id="jCheckBox1" min="-2" pref="148" max="-2" attributes="0"/>
+                                  <EmptySpace max="-2" attributes="0"/>
+                                  <Component id="animationCheckBox" min="-2" pref="148" max="-2" attributes="0"/>
                                   <EmptySpace min="-2" pref="39" max="-2" attributes="0"/>
                               </Group>
                           </Group>
@@ -114,6 +116,7 @@
                                   <Group type="103" groupAlignment="1" attributes="0">
                                       <Component id="jToolBar3" min="-2" pref="25" max="-2" attributes="0"/>
                                       <Component id="jCheckBox1" min="-2" max="-2" attributes="0"/>
+                                      <Component id="animationCheckBox" min="-2" max="-2" attributes="0"/>
                                   </Group>
                                   <EmptySpace max="-2" attributes="0"/>
                                   <Component id="jToolBar2" min="-2" pref="25" max="-2" attributes="0"/>
@@ -363,6 +366,16 @@
                     <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="jCheckBox1ActionPerformed"/>
                   </Events>
                 </Component>
+                <Component class="javax.swing.JCheckBox" name="animationCheckBox">
+                  <Properties>
+                    <Property name="selected" type="boolean" value="false"/>
+                    <Property name="text" type="java.lang.String" value="Enable Animation"/>
+                    <Property name="toolTipText" type="java.lang.String" value="Enable continuous rendering for animated materials"/>
+                  </Properties>
+                  <Events>
+                    <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="animationCheckBoxActionPerformed"/>
+                  </Events>
+                </Component>
                 <Component class="com.jme3.gde.materials.multiview.widgets.MaterialPreviewWidget" name="materialPreviewWidget1">
                 </Component>
                 <Container class="javax.swing.JTabbedPane" name="additionalRenderStatePane">

+ 1 - 1
jme3-materialeditor/src/com/jme3/gde/materials/multiview/MaterialEditorTopComponent.java

@@ -296,7 +296,7 @@ public final class MaterialEditorTopComponent extends CloneableTopComponent impl
         });
 
         animationCheckBox.setSelected(false);
-        org.openide.awt.Mnemonics.setLocalizedText(animationCheckBox, "Enable Animation");
+        animationCheckBox.setText("Enable Animation"); // NOI18N
         animationCheckBox.setToolTipText("Enable continuous rendering for animated materials");
         animationCheckBox.addActionListener(new java.awt.event.ActionListener() {
             public void actionPerformed(java.awt.event.ActionEvent evt) {