.. | .. |
---|
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; |
---|
.. | .. |
---|
1098 | 1111 | cGridBag skyboxpane = new cGridBag(); |
---|
1099 | 1112 | skyboxpane.preferredHeight = 100; |
---|
1100 | 1113 | |
---|
1101 | | - oe.toolboxPanel.add(skyboxpane); |
---|
| 1114 | + oe.skyboxPanel.add(skyboxpane); |
---|
1102 | 1115 | |
---|
1103 | 1116 | JTabbedPane skyboxpanel = new JTabbedPane(); |
---|
1104 | 1117 | skyboxpane.add(skyboxpanel); |
---|
.. | .. |
---|
1125 | 1138 | clearPanelButton.setToolTipText("Clear edit panel"); |
---|
1126 | 1139 | clearPanelButton.addActionListener(this); |
---|
1127 | 1140 | |
---|
1128 | | - editCommandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
1129 | | - unselectButton.setToolTipText("Unselect"); |
---|
1130 | | - unselectButton.addActionListener(this); |
---|
| 1141 | + //editCommandsPanel.add(unselectButton = new cButton("U", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
| 1142 | + //unselectButton.setToolTipText("Unselect"); |
---|
| 1143 | + //unselectButton.addActionListener(this); |
---|
1131 | 1144 | |
---|
1132 | 1145 | editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints); |
---|
1133 | 1146 | flashSelectionButton.setToolTipText("Highlight selection"); |
---|
.. | .. |
---|
5169 | 5182 | { |
---|
5170 | 5183 | editButton.setEnabled(enabled); |
---|
5171 | 5184 | uneditButton.setEnabled(enabled); |
---|
5172 | | - unselectButton.setEnabled(enabled); |
---|
| 5185 | + //unselectButton.setEnabled(enabled); |
---|
5173 | 5186 | flashSelectionButton.setEnabled(enabled); |
---|
5174 | 5187 | |
---|
5175 | 5188 | clearPanelButton.setEnabled(!listUI.isEmpty()); |
---|
.. | .. |
---|
5177 | 5190 | |
---|
5178 | 5191 | void refreshContents(boolean cp) |
---|
5179 | 5192 | { |
---|
5180 | | - if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info")) |
---|
| 5193 | + //if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info")) |
---|
5181 | 5194 | if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING) |
---|
5182 | 5195 | { |
---|
5183 | 5196 | objEditor.ClearInfo(); // .GetMaterial()); |
---|