Normand Briere
2019-08-07 59de607850161a26863f92961d53caae7a2dabc8
GroupEditor.java
....@@ -16,6 +16,7 @@
1616 //import buoy.widget.BFileChooser;
1717
1818 class GroupEditor extends ObjEditor implements //iParse, //iCallBack,
19
+ Grafreed.iResourceCallBack,
1920 ObjectUI,
2021 Runnable,
2122 ActionListener,
....@@ -311,12 +312,24 @@
311312 }
312313 }
313314
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)
315326 {
316327 //cameraView.envyoff = false;
317
- group.skyboxname = name;
328
+ group.skyboxname = skybox;
318329 group.skyboxext = "jpg";
319330 cameraView.repaint();
331
+
332
+ Grafreed.ParseResources("textures", this);
320333 }
321334
322335 //ObjEditor objEditor;
....@@ -1098,7 +1111,7 @@
10981111 cGridBag skyboxpane = new cGridBag();
10991112 skyboxpane.preferredHeight = 100;
11001113
1101
- oe.toolboxPanel.add(skyboxpane);
1114
+ oe.skyboxPanel.add(skyboxpane);
11021115
11031116 JTabbedPane skyboxpanel = new JTabbedPane();
11041117 skyboxpane.add(skyboxpanel);
....@@ -1125,9 +1138,9 @@
11251138 clearPanelButton.setToolTipText("Clear edit panel");
11261139 clearPanelButton.addActionListener(this);
11271140
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);
11311144
11321145 editCommandsPanel.add(flashSelectionButton = GetButton("icons/flash-light.png", !Grafreed.NIMBUSLAF)); //, oe.aConstraints);
11331146 flashSelectionButton.setToolTipText("Highlight selection");
....@@ -5169,7 +5182,7 @@
51695182 {
51705183 editButton.setEnabled(enabled);
51715184 uneditButton.setEnabled(enabled);
5172
- unselectButton.setEnabled(enabled);
5185
+ //unselectButton.setEnabled(enabled);
51735186 flashSelectionButton.setEnabled(enabled);
51745187
51755188 clearPanelButton.setEnabled(!listUI.isEmpty());
....@@ -5177,7 +5190,7 @@
51775190
51785191 void refreshContents(boolean cp)
51795192 {
5180
- if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info"))
5193
+ //if (objectPanel.getSelectedIndex() == 2) // objectPanel.indexOfTab("Info"))
51815194 if (!Globals.MOUSEDRAGGED && group.selection != null) // && !Globals.TIMERRUNNING)
51825195 {
51835196 objEditor.ClearInfo(); // .GetMaterial());