diff options
author | Phillip <pacardon@u.washington.edu> | 2011-02-23 08:19:21 +0000 |
---|---|---|
committer | Phillip <pacardon@u.washington.edu> | 2011-02-23 08:19:21 +0000 |
commit | d65550e3a82364d6c5048ac4628143dcd2168ea7 (patch) | |
tree | f23266371a36bdaec13cac927d19a388402ca076 /src/tesseract/newmenu/NewParticleEmitterMenuItem.java | |
parent | 943d399633381d5a7138d7276eb13372288189d0 (diff) |
Added Color Button to qualifying shapes (planar polygon param window did NOT receive color button).
Added new constructor to MenuItem to prevent or allow color button (bool value, false to turn off button), use two parameter constructor or true in three param to turn on color button.
Removed color chooser after clicking enter button on both particle emitter and particle as this function is now handled by the color button.
Diffstat (limited to 'src/tesseract/newmenu/NewParticleEmitterMenuItem.java')
-rw-r--r-- | src/tesseract/newmenu/NewParticleEmitterMenuItem.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tesseract/newmenu/NewParticleEmitterMenuItem.java b/src/tesseract/newmenu/NewParticleEmitterMenuItem.java index dc0b1fc..04a6ca6 100644 --- a/src/tesseract/newmenu/NewParticleEmitterMenuItem.java +++ b/src/tesseract/newmenu/NewParticleEmitterMenuItem.java @@ -90,11 +90,11 @@ public class NewParticleEmitterMenuItem extends MenuItem { }
if (event.getSource() == enterButton) {
params.dispose();
- Color c = JColorChooser.showDialog(null, "Particle Color",
- Color.RED);
+ //Color c = JColorChooser.showDialog(null, "Particle Color",
+ // Color.RED);
myWorld.addObject(new ParticleEmitter(getPosition(),
((Float) myParameters.get("Frequency")).floatValue(),
- new Color3f(c)));
+ new Color3f(myColor)));
}
}
|