.. | .. |
---|
16 | 16 | //import buoy.widget.BFileChooser; |
---|
17 | 17 | |
---|
18 | 18 | class GroupEditor extends ObjEditor implements //iParse, //iCallBack, |
---|
| 19 | + Grafreed.iResourceCallBack, |
---|
19 | 20 | ObjectUI, |
---|
20 | 21 | Runnable, |
---|
21 | 22 | ActionListener, |
---|
.. | .. |
---|
311 | 312 | } |
---|
312 | 313 | } |
---|
313 | 314 | |
---|
314 | | - public void ChangeSkybox(String name) |
---|
| 315 | + public void CallBack(String[] path) |
---|
| 316 | + { |
---|
| 317 | + for (int i = 0; i < path.length; i++) |
---|
| 318 | + { |
---|
| 319 | + System.out.print(path[i] + "/"); |
---|
| 320 | + } |
---|
| 321 | + |
---|
| 322 | + System.out.println(); |
---|
| 323 | + } |
---|
| 324 | + |
---|
| 325 | + public void ChangeSkybox(String skybox) |
---|
315 | 326 | { |
---|
316 | 327 | //cameraView.envyoff = false; |
---|
317 | | - group.skyboxname = name; |
---|
| 328 | + group.skyboxname = skybox; |
---|
318 | 329 | group.skyboxext = "jpg"; |
---|
319 | 330 | cameraView.repaint(); |
---|
| 331 | + |
---|
| 332 | + Grafreed.ParseResources("textures", this); |
---|
320 | 333 | } |
---|
321 | 334 | |
---|
322 | 335 | //ObjEditor objEditor; |
---|
.. | .. |
---|
948 | 961 | updown.add(restoreButton = GetButton("icons/restore.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
949 | 962 | restoreButton.setToolTipText("Undo (restore current version)"); |
---|
950 | 963 | restoreButton.addActionListener(this); |
---|
951 | | - restoreButton.setEnabled(false); |
---|
| 964 | + //restoreButton.setEnabled(false); |
---|
952 | 965 | |
---|
953 | 966 | updown.add(replaceButton = GetButton("icons/replace.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
954 | 967 | replaceButton.setToolTipText("Save (replace current version)"); |
---|
955 | 968 | replaceButton.addActionListener(this); |
---|
956 | | - replaceButton.setEnabled(false); |
---|
| 969 | + //replaceButton.setEnabled(false); |
---|
957 | 970 | |
---|
958 | 971 | copyOptionsPanel.add(updown); |
---|
959 | 972 | |
---|
.. | .. |
---|
2617 | 2630 | { |
---|
2618 | 2631 | // Restore current version |
---|
2619 | 2632 | Restore(); |
---|
2620 | | - restoreButton.setEnabled(false); |
---|
| 2633 | + //restoreButton.setEnabled(false); |
---|
2621 | 2634 | } else |
---|
2622 | 2635 | if (source == replaceButton) |
---|
2623 | 2636 | { |
---|
2624 | 2637 | // Overwrite current version |
---|
2625 | 2638 | Replace(); |
---|
2626 | | - replaceButton.setEnabled(false); |
---|
| 2639 | + //replaceButton.setEnabled(false); |
---|
2627 | 2640 | } else |
---|
2628 | 2641 | if (source == nextVersionButton) |
---|
2629 | 2642 | { |
---|