.. | .. |
---|
415 | 415 | this.copy = this.group = group; |
---|
416 | 416 | //selectees = this.group.selectees; |
---|
417 | 417 | |
---|
| 418 | + assert(false); |
---|
| 419 | + |
---|
418 | 420 | if (copy.versionlist == null) |
---|
419 | 421 | { |
---|
420 | 422 | copy.versionlist = new Object3D[100]; |
---|
421 | 423 | copy.versionindex = -1; |
---|
422 | 424 | |
---|
423 | | - Save(true); |
---|
| 425 | + //Save(true); |
---|
424 | 426 | } |
---|
425 | 427 | |
---|
426 | 428 | if(ui) |
---|
.. | .. |
---|
449 | 451 | copy.versionlist = new Object3D[100]; |
---|
450 | 452 | copy.versionindex = -1; |
---|
451 | 453 | |
---|
452 | | - Save(true); |
---|
| 454 | + //Save(true); |
---|
453 | 455 | } |
---|
454 | 456 | } |
---|
455 | 457 | |
---|
.. | .. |
---|
1111 | 1113 | copyOptionsPanel.add(deleteVersionButton = GetButton("icons/trash.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
1112 | 1114 | deleteVersionButton.setToolTipText("Delete current version"); |
---|
1113 | 1115 | deleteVersionButton.addActionListener(this); |
---|
| 1116 | + deleteVersionButton.setEnabled(false); |
---|
1114 | 1117 | |
---|
1115 | 1118 | copyOptionsPanel.add(previousVersionButton = GetButton("icons/undo.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
1116 | 1119 | previousVersionButton.setToolTipText("Previous version"); |
---|
.. | .. |
---|
1121 | 1124 | updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
1122 | 1125 | restoreButton.setToolTipText("Undo (restore current version)"); |
---|
1123 | 1126 | restoreButton.addActionListener(this); |
---|
1124 | | - //restoreButton.setEnabled(false); |
---|
| 1127 | + restoreButton.setEnabled(false); |
---|
1125 | 1128 | |
---|
1126 | 1129 | updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
1127 | 1130 | replaceButton.setToolTipText("Save (replace current version)"); |
---|
1128 | 1131 | replaceButton.addActionListener(this); |
---|
1129 | | - //replaceButton.setEnabled(false); |
---|
| 1132 | + replaceButton.setEnabled(false); |
---|
1130 | 1133 | |
---|
1131 | 1134 | copyOptionsPanel.add(updown); |
---|
1132 | 1135 | |
---|
.. | .. |
---|
1256 | 1259 | |
---|
1257 | 1260 | CreateTexturePanel(textures); |
---|
1258 | 1261 | |
---|
| 1262 | + resourcecontainer.setSelectedIndex((int)(Math.random() * resourcecontainer.getTabCount())); |
---|
| 1263 | + |
---|
1259 | 1264 | oe.toolboxPanel.add(textures); |
---|
1260 | 1265 | |
---|
1261 | 1266 | textures.preferredHeight = 100; |
---|