Normand Briere
2019-08-22 0c7b833be7d86598a6813cd1c6db0ca9e1b17966
ObjEditor.java
....@@ -383,14 +383,6 @@
383383 client = inClient;
384384 copy = client;
385385
386
- if (copy.versionlist == null)
387
- {
388
- copy.versionlist = new Object3D[100];
389
- copy.versionindex = -1;
390
-
391
-// Save(true);
392
- }
393
-
394386 SetupUI2(callee.GetEditor());
395387 }
396388
....@@ -1884,9 +1876,9 @@
18841876
18851877 if (Globals.ADVANCED)
18861878 {
1887
- tabbedPane.add(infoPanel);
1888
- tabbedPane.setIconAt(4, GetIcon("icons/info.png"));
1889
- tabbedPane.setToolTipTextAt(4, "Information");
1879
+ objectPanel.add(infoPanel);
1880
+ objectPanel.setIconAt(5, GetIcon("icons/info.png"));
1881
+ objectPanel.setToolTipTextAt(4, "Information");
18901882 }
18911883
18921884 /*
....@@ -2370,7 +2362,7 @@
23702362 {
23712363 public void mouseClicked(MouseEvent e)
23722364 {
2373
- borderfadeField.setFloat(0.5);
2365
+ borderfadeField.setFloat(0.4);
23742366 opacityField.setFloat(0.75);
23752367
23762368 materialtouched = true;
....@@ -2443,7 +2435,7 @@
24432435 {
24442436 public void mouseClicked(MouseEvent e)
24452437 {
2446
- parallaxField.setFloat(0.25);
2438
+ parallaxField.setFloat(0.125);
24472439
24482440 materialtouched = true;
24492441 applySelf();
....@@ -2457,7 +2449,7 @@
24572449 {
24582450 public void mouseClicked(MouseEvent e)
24592451 {
2460
- parallaxField.setFloat(0.255);
2452
+ parallaxField.setFloat(0.13);
24612453
24622454 materialtouched = true;
24632455 applySelf();
....@@ -2471,7 +2463,7 @@
24712463 {
24722464 public void mouseClicked(MouseEvent e)
24732465 {
2474
- parallaxField.setFloat(0.265);
2466
+ parallaxField.setFloat(0.14);
24752467
24762468 materialtouched = true;
24772469 applySelf();
....@@ -2727,7 +2719,7 @@
27272719 cGridBag parallax = new cGridBag();
27282720 parallax.add(parallaxLabel = new JLabel("Parallax")); // , aConstraints);
27292721 parallaxLabel.setHorizontalAlignment(SwingConstants.TRAILING);
2730
- parallax.add(parallaxField = new cNumberSlider(this, 0.001, 0.5, -0.25)); // , aConstraints);
2722
+ parallax.add(parallaxField = new cNumberSlider(this, 0.001, 0.25, -0.125)); // , aConstraints);
27312723 colorSection.add(parallax);
27322724
27332725 //panel.add(new JSeparator());
....@@ -3781,7 +3773,7 @@
37813773 shadowField.setFloat(mat.shadow);
37823774 textureField.setFloat(mat.texture);
37833775 opacityField.setFloat(mat.opacity);
3784
- parallaxField.setFloat(mat.parallax + 0.25f);
3776
+ parallaxField.setFloat(mat.parallax + 0.125f);
37853777 fakedepthField.setFloat(mat.fakedepth);
37863778 shadowbiasField.setFloat(mat.shadowbias);
37873779 bumpField.setInteger(1); // dec 2013
....@@ -4475,7 +4467,11 @@
44754467 System.err.println("Save");
44764468 Replace();
44774469
4478
- //cRadio tab = GetCurrentTab();
4470
+ if (copy.versionlist == null)
4471
+ {
4472
+ copy.versionlist = new Object3D[100];
4473
+ copy.versionindex = -1;
4474
+ }
44794475
44804476 Object3D compress = Duplicate(copy); // Saved version. No need for "Replace"?
44814477
....@@ -4649,7 +4645,7 @@
46494645
46504646 //cRadio tab = GetCurrentTab();
46514647
4652
- if (copy.versionlist == null)
4648
+ if (copy.versionindex == -2)
46534649 {
46544650 saveVersionButton.setEnabled(false);
46554651 restoreButton.setEnabled(false);
....@@ -5006,7 +5002,7 @@
50065002 current.shadow = (float) shadowField.getFloat();
50075003 current.texture = (float) textureField.getFloat();
50085004 current.opacity = (float) opacityField.getFloat();
5009
- current.parallax = (float) parallaxField.getFloat() - 0.25f;
5005
+ current.parallax = (float) parallaxField.getFloat() - 0.125f;
50105006 current.fakedepth = (float) fakedepthField.getFloat();
50115007 current.shadowbias = (float) shadowbiasField.getFloat();
50125008