Normand Briere
2019-08-01 7d02eaffc02895a01d95d8fd7e089044449e1d6d
GroupEditor.java
....@@ -932,7 +932,7 @@
932932 restoreCameraButton.addActionListener(this);
933933
934934 copyOptionsPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
935
- saveButton.setToolTipText("New version");
935
+ saveButton.setToolTipText("Duplicate current version");
936936 saveButton.addActionListener(this);
937937
938938 copyOptionsPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
....@@ -942,12 +942,12 @@
942942
943943 cGridBag updown = new cGridBag().setVertical(true);
944944 updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
945
- restoreButton.setToolTipText("Restore current");
945
+ restoreButton.setToolTipText("Restore current version (undo latest change)");
946946 restoreButton.addActionListener(this);
947947 restoreButton.setEnabled(false);
948948
949949 updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
950
- replaceButton.setToolTipText("Replace current");
950
+ replaceButton.setToolTipText("Replace current version (save latest change)");
951951 replaceButton.addActionListener(this);
952952 replaceButton.setEnabled(false);
953953
....@@ -1183,7 +1183,7 @@
11831183 dgr.addDragGestureListener(this);
11841184 }catch(Exception e) {}
11851185 */
1186
- radio.layout = sixButton; // sevenButton;
1186
+ radio.layout = threeButton; // sixButton;
11871187 oe.toolbarPanel.add(radioPanel); //, oe.aConstraints);
11881188 }
11891189
....@@ -1234,9 +1234,12 @@
12341234 smoothCB.setToolTipText("Snapping delay");
12351235 smoothCB.addItemListener(this);
12361236
1237
- panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints);
1238
- slowCB.setToolTipText("Smooth interpolation");
1239
- slowCB.addItemListener(this);
1237
+// panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints);
1238
+// slowCB.setToolTipText("Smooth interpolation");
1239
+// slowCB.addItemListener(this);
1240
+ panel.add(minshaderCB = new cCheckBox("Min shader", Globals.MINSHADER)); //, constraints);
1241
+ minshaderCB.setToolTipText("Minimal fast shader");
1242
+ minshaderCB.addItemListener(this);
12401243
12411244 // constraints.gridy += 1;
12421245 // panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints);
....@@ -1325,7 +1328,7 @@
13251328 }
13261329
13271330 radioButton.SetObject(obj);
1328
- radioButton.layout = sixButton; // sevenButton;
1331
+ radioButton.layout = threeButton; // sixButton;
13291332 radioButton.SetCamera(cameraView.renderCamera, false);
13301333 radioButton.addActionListener(this);
13311334 radioPanel.add(radioButton);
....@@ -1350,6 +1353,8 @@
13501353 cCheckBox localCB;
13511354 cCheckBox crowdCB;
13521355 cCheckBox smoothCB;
1356
+ cCheckBox minshaderCB;
1357
+
13531358 cToggleButton fastCB;
13541359 cCheckBox slowCB;
13551360 cCheckBox boxCB;
....@@ -1420,6 +1425,12 @@
14201425 {
14211426 cameraView.ToggleInertia();
14221427 cameraView.repaint();
1428
+ }
1429
+ else if(e.getSource() == minshaderCB)
1430
+ {
1431
+ Globals.MINSHADER ^= true;
1432
+ cameraView.programInitialized = false;
1433
+ cameraView.repaint();
14231434 }
14241435 else if(e.getSource() == localCB)
14251436 {
....@@ -3933,11 +3944,13 @@
39333944 } else if (event.getSource() == editCameraItem)
39343945 {
39353946 cameraView.ProtectCamera();
3947
+ cameraView.requestFocusInWindow();
39363948 cameraView.repaint();
39373949 return;
39383950 } else if (event.getSource() == restoreCameraItem || event.getSource() == restoreCameraButton)
39393951 {
39403952 cameraView.RevertCamera();
3953
+ cameraView.requestFocusInWindow();
39413954 cameraView.repaint();
39423955 return;
39433956 // } else if (event.getSource() == textureButton)