From 7d02eaffc02895a01d95d8fd7e089044449e1d6d Mon Sep 17 00:00:00 2001 From: Normand Briere <nbriere@noware.ca> Date: Thu, 01 Aug 2019 00:20:19 -0400 Subject: [PATCH] Switch left/right --- GroupEditor.java | 29 +++++++++++++++++++++-------- 1 files changed, 21 insertions(+), 8 deletions(-) diff --git a/GroupEditor.java b/GroupEditor.java index 05231cb..7ec82e1 100644 --- a/GroupEditor.java +++ b/GroupEditor.java @@ -932,7 +932,7 @@ restoreCameraButton.addActionListener(this); copyOptionsPanel.add(saveButton = GetButton("icons/down_arrow.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); - saveButton.setToolTipText("New version"); + saveButton.setToolTipText("Duplicate current version"); saveButton.addActionListener(this); copyOptionsPanel.add(undoButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); @@ -942,12 +942,12 @@ cGridBag updown = new cGridBag().setVertical(true); updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); - restoreButton.setToolTipText("Restore current"); + restoreButton.setToolTipText("Restore current version (undo latest change)"); restoreButton.addActionListener(this); restoreButton.setEnabled(false); updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); - replaceButton.setToolTipText("Replace current"); + replaceButton.setToolTipText("Replace current version (save latest change)"); replaceButton.addActionListener(this); replaceButton.setEnabled(false); @@ -1183,7 +1183,7 @@ dgr.addDragGestureListener(this); }catch(Exception e) {} */ - radio.layout = sixButton; // sevenButton; + radio.layout = threeButton; // sixButton; oe.toolbarPanel.add(radioPanel); //, oe.aConstraints); } @@ -1234,9 +1234,12 @@ smoothCB.setToolTipText("Snapping delay"); smoothCB.addItemListener(this); - panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints); - slowCB.setToolTipText("Smooth interpolation"); - slowCB.addItemListener(this); +// panel.add(slowCB = new cCheckBox("Slow", CameraPane.SLOWPOSE)); //, constraints); +// slowCB.setToolTipText("Smooth interpolation"); +// slowCB.addItemListener(this); + panel.add(minshaderCB = new cCheckBox("Min shader", Globals.MINSHADER)); //, constraints); + minshaderCB.setToolTipText("Minimal fast shader"); + minshaderCB.addItemListener(this); // constraints.gridy += 1; // panel.add(speakerMocapCB = new cCheckBox("Mocap", CameraPane.SPEAKERMOCAP), constraints); @@ -1325,7 +1328,7 @@ } radioButton.SetObject(obj); - radioButton.layout = sixButton; // sevenButton; + radioButton.layout = threeButton; // sixButton; radioButton.SetCamera(cameraView.renderCamera, false); radioButton.addActionListener(this); radioPanel.add(radioButton); @@ -1350,6 +1353,8 @@ cCheckBox localCB; cCheckBox crowdCB; cCheckBox smoothCB; + cCheckBox minshaderCB; + cToggleButton fastCB; cCheckBox slowCB; cCheckBox boxCB; @@ -1420,6 +1425,12 @@ { cameraView.ToggleInertia(); cameraView.repaint(); + } + else if(e.getSource() == minshaderCB) + { + Globals.MINSHADER ^= true; + cameraView.programInitialized = false; + cameraView.repaint(); } else if(e.getSource() == localCB) { @@ -3933,11 +3944,13 @@ } else if (event.getSource() == editCameraItem) { cameraView.ProtectCamera(); + cameraView.requestFocusInWindow(); cameraView.repaint(); return; } else if (event.getSource() == restoreCameraItem || event.getSource() == restoreCameraButton) { cameraView.RevertCamera(); + cameraView.requestFocusInWindow(); cameraView.repaint(); return; // } else if (event.getSource() == textureButton) -- Gitblit v1.6.2