.. | .. |
---|
31 | 31 | boolean timeline; |
---|
32 | 32 | boolean wasFullScreen; |
---|
33 | 33 | |
---|
| 34 | + GroupEditor callee; |
---|
| 35 | + JFrame frame; |
---|
| 36 | + |
---|
34 | 37 | // SCRIPT |
---|
35 | 38 | |
---|
36 | 39 | transient JFrame textpanel = null; |
---|
.. | .. |
---|
121 | 124 | void keyPressed(int key, int modifiers) |
---|
122 | 125 | { |
---|
123 | 126 | System.out.println("KEY PRESSED"); |
---|
124 | | - CameraPane.theRenderer.keyPressed(key, modifiers); |
---|
| 127 | + Globals.theRenderer.keyPressed(key, modifiers); |
---|
125 | 128 | } |
---|
126 | 129 | */ |
---|
127 | 130 | |
---|
128 | 131 | static GridBagConstraints aConstraints; |
---|
129 | 132 | static GridBagConstraints aWindowConstraints; |
---|
130 | | - GroupEditor callee; |
---|
131 | | - JFrame frame; |
---|
| 133 | + |
---|
132 | 134 | static int GRIDWIDTH = 100; // 4; |
---|
133 | 135 | |
---|
134 | 136 | public void closeUI() |
---|
.. | .. |
---|
309 | 311 | toggleTextureItem.setState(CameraPane.textureon); |
---|
310 | 312 | cameraMenu.add(toggleLiveItem = new CheckboxMenuItem("Live")); |
---|
311 | 313 | toggleLiveItem.addItemListener(this); |
---|
312 | | - toggleLiveItem.setState(CameraPane.isLIVE()); |
---|
| 314 | + toggleLiveItem.setState(Globals.isLIVE()); |
---|
313 | 315 | cameraMenu.add(stepItem = new MenuItem("Step")); |
---|
314 | 316 | stepItem.addActionListener(this); |
---|
315 | 317 | // cameraMenu.add(toggleDLItem = new CheckboxMenuItem("Display List")); |
---|
.. | .. |
---|
1290 | 1292 | optionsPanel = new JPanel(new GridBagLayout()); |
---|
1291 | 1293 | |
---|
1292 | 1294 | optionsPanel.setName("Options"); |
---|
| 1295 | + |
---|
| 1296 | + AddOptions(optionsPanel, aConstraints); |
---|
| 1297 | + |
---|
1293 | 1298 | scenePanel.add(optionsPanel); |
---|
1294 | 1299 | |
---|
1295 | 1300 | |
---|
.. | .. |
---|
1369 | 1374 | //worldPane.add(bigPanel); |
---|
1370 | 1375 | //worldPane.add(worldPanel); |
---|
1371 | 1376 | /**/ |
---|
1372 | | - frame.getContentPane().add(/*"Center",*/framePanel); |
---|
| 1377 | + //frame.getContentPane().add(/*"Center",*/framePanel); |
---|
| 1378 | + frame.add(/*"Center",*/framePanel); |
---|
1373 | 1379 | //frame.getContentPane().add(/*"Center",*/ worldPane); |
---|
1374 | 1380 | |
---|
1375 | 1381 | // aConstraints = gbc; // (GridBagConstraints) GrafreeD.clone(gbc); |
---|
.. | .. |
---|
1390 | 1396 | }); |
---|
1391 | 1397 | } |
---|
1392 | 1398 | |
---|
| 1399 | + void AddOptions(JPanel panel, GridBagConstraints constraints) |
---|
| 1400 | + { |
---|
| 1401 | + } |
---|
| 1402 | + |
---|
1393 | 1403 | JTree GetTree() |
---|
1394 | 1404 | { |
---|
1395 | 1405 | return objEditor.jTree; |
---|
.. | .. |
---|
3136 | 3146 | objEditor.refreshContents(); |
---|
3137 | 3147 | } else if (event.getSource() == stepItem) |
---|
3138 | 3148 | { |
---|
3139 | | - cameraView.ONESTEP = true; |
---|
| 3149 | + //cameraView.ONESTEP = true; |
---|
| 3150 | + Globals.ONESTEP = true; |
---|
3140 | 3151 | cameraView.repaint(); |
---|
3141 | 3152 | return; |
---|
3142 | 3153 | } else if (event.getSource() == stepButton) |
---|
.. | .. |
---|
3293 | 3304 | |
---|
3294 | 3305 | void ToggleAnimation() |
---|
3295 | 3306 | { |
---|
3296 | | - if (!CameraPane.ANIMATION) |
---|
| 3307 | + if (!Globals.ANIMATION) |
---|
3297 | 3308 | { |
---|
3298 | 3309 | FileDialog browser = new FileDialog(frame, "Save Animation As...", FileDialog.SAVE); |
---|
3299 | 3310 | browser.show(); |
---|
3300 | 3311 | String filename = browser.getFile(); |
---|
3301 | 3312 | if (filename != null && filename.length() > 0) |
---|
3302 | 3313 | { |
---|
3303 | | - CameraPane.filename = browser.getDirectory() + filename; |
---|
| 3314 | + Globals.filename = browser.getDirectory() + filename; |
---|
3304 | 3315 | //CameraPane.framecount = 0; |
---|
3305 | | - CameraPane.imagecount = 0; |
---|
| 3316 | + Globals.imagecount = 0; |
---|
3306 | 3317 | |
---|
3307 | | - CameraPane.ANIMATION ^= true; |
---|
| 3318 | + Globals.ANIMATION ^= true; |
---|
3308 | 3319 | |
---|
3309 | 3320 | GrafreeD.wav.cursor = 0; |
---|
3310 | 3321 | GrafreeD.wav.loop = 0; |
---|
3311 | 3322 | } |
---|
3312 | 3323 | } else |
---|
3313 | 3324 | { |
---|
3314 | | - CameraPane.ANIMATION ^= true; |
---|
| 3325 | + Globals.ANIMATION ^= true; |
---|
3315 | 3326 | } |
---|
3316 | 3327 | } |
---|
3317 | 3328 | |
---|