Normand Briere
2019-05-01 d1e1417edc8a6ccf195b6da3270f22234dda61e4
GroupEditor.java
....@@ -239,16 +239,16 @@
239239 ungroupItem = menu.add(new MenuItem("Ungroup"));
240240 ungroupItem.addActionListener(this);
241241 menu.add("-");
242
- randomItem = menu.add(new MenuItem("Random"));
242
+ randomItem = menu.add(new MenuItem("Switch node"));
243243 randomItem.addActionListener(this);
244
- physicsItem = menu.add(new MenuItem("Physics"));
245
- physicsItem.addActionListener(this);
246
- frameselectorItem = menu.add(new MenuItem("Frame Selector"));
247
- frameselectorItem.addActionListener(this);
248244 switchGeoItem = menu.add(new MenuItem("Switch Geometry"));
249245 switchGeoItem.addActionListener(this);
250246 switchTransfoItem = menu.add(new MenuItem("Switch Transform"));
251247 switchTransfoItem.addActionListener(this);
248
+ physicsItem = menu.add(new MenuItem("Physics"));
249
+ physicsItem.addActionListener(this);
250
+ frameselectorItem = menu.add(new MenuItem("Frame Selector"));
251
+ frameselectorItem.addActionListener(this);
252252 morphItem = menu.add(new MenuItem("Morph"));
253253 morphItem.addActionListener(this);
254254 scriptNodeItem = menu.add(new MenuItem("Script Node"));
....@@ -454,17 +454,14 @@
454454
455455 // oe.toolbarPanel.add(screenfitpointButton = new cButton(" @+ ")); //, oe.aConstraints);
456456 // screenfitpointButton.addActionListener(this);
457
-// oe.aConstraints.gridx += 1;
458
- oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
459
- snapobjectButton.addActionListener(this);
460
- snapobjectButton.setToolTipText("Snap Object");
461
- oe.aConstraints.gridx += 1;
462457
463
- //aConstraints.gridx = 0;
464
- //aConstraints.gridy += 1;
465
- oe.aConstraints.weighty = 0;
466
- oe.aConstraints.gridwidth = 1;
467
-
458
+ if (Globals.ADVANCED)
459
+ {
460
+ oe.toolbarPanel.add(snapobjectButton = new cButton("O+", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
461
+ snapobjectButton.addActionListener(this);
462
+ snapobjectButton.setToolTipText("Snap Object");
463
+ }
464
+
468465 oe.toolbarPanel.add(flashSelectionButton = new cButton("?", !GrafreeD.NIMBUSLAF)); //, oe.aConstraints);
469466 flashSelectionButton.setToolTipText("Show selection");
470467 flashSelectionButton.addActionListener(this);
....@@ -2238,7 +2235,7 @@
22382235 RandomNode random = new RandomNode();
22392236 group(random);
22402237 if (random.size() > 0)
2241
- random.name = random.get(0).name + "Rnd";
2238
+ random.name = random.get(0).name + "Switch";
22422239 } else
22432240 if (source == physicsItem)
22442241 {