use of com.l2fprod.common.util.ResourceManager in project JWildfire by thargor6.
the class GradientOverlay method gradientMarker_selectColor.
public boolean gradientMarker_selectColor(int marker, RGBPalette pGradient) {
if (marker >= 0) {
ResourceManager rm = ResourceManager.all(FilePropertyEditor.class);
String title = rm.getString("ColorPropertyEditor.title");
RGBColor color = pGradient.getColor(markerPos[marker]);
Color selectedColor = JColorChooser.showDialog(parent, title, new Color(color.getRed(), color.getGreen(), color.getBlue()));
if (selectedColor != null) {
pGradient.setColor(markerPos[marker], selectedColor.getRed(), selectedColor.getGreen(), selectedColor.getBlue());
return true;
}
}
return false;
}
use of com.l2fprod.common.util.ResourceManager in project JWildfire by thargor6.
the class FlameControlsDelegate method solidRenderingLightColorBtn_clicked.
public void solidRenderingLightColorBtn_clicked() {
DistantLight light = getSolidRenderingSelectedLight();
if (light != null) {
owner.undoManager.saveUndoPoint(getCurrFlame());
ResourceManager rm = ResourceManager.all(FilePropertyEditor.class);
String title = rm.getString("ColorPropertyEditor.title");
Color selectedColor = JColorChooser.showDialog(rootPanel, title, new Color(Tools.roundColor(light.getRed() * GammaCorrectionFilter.COLORSCL), Tools.roundColor(light.getGreen() * GammaCorrectionFilter.COLORSCL), Tools.roundColor(light.getBlue() * GammaCorrectionFilter.COLORSCL)));
setLightColor(light, selectedColor);
}
}
use of com.l2fprod.common.util.ResourceManager in project JWildfire by thargor6.
the class ColorPropertyEditor method selectColor.
protected void selectColor() {
ResourceManager rm = ResourceManager.all(FilePropertyEditor.class);
String title = rm.getString("ColorPropertyEditor.title");
Color selectedColor = JColorChooser.showDialog(editor, title, color);
if (selectedColor != null) {
Color oldColor = color;
Color newColor = selectedColor;
label.setValue(newColor);
color = newColor;
firePropertyChange(oldColor, newColor);
}
}
use of com.l2fprod.common.util.ResourceManager in project JWildfire by thargor6.
the class TinaController method backgroundColorLRBtn_clicked.
public void backgroundColorLRBtn_clicked() {
if (getCurrFlame() != null) {
undoManager.saveUndoPoint(getCurrFlame());
ResourceManager rm = ResourceManager.all(FilePropertyEditor.class);
String title = rm.getString("ColorPropertyEditor.title");
Color selectedColor = JColorChooser.showDialog(rootPanel, title, new Color(getCurrFlame().getBgColorLRRed(), getCurrFlame().getBgColorLRGreen(), getCurrFlame().getBgColorLRBlue()));
if (selectedColor != null) {
getCurrFlame().setBgColorLRRed(selectedColor.getRed());
getCurrFlame().setBgColorLRGreen(selectedColor.getGreen());
getCurrFlame().setBgColorLRBlue(selectedColor.getBlue());
refreshFlameImage(true, false, 1, true, true);
refreshBGColorLRIndicator();
}
}
}
use of com.l2fprod.common.util.ResourceManager in project JWildfire by thargor6.
the class TinaController method backgroundColorURBtn_clicked.
public void backgroundColorURBtn_clicked() {
if (getCurrFlame() != null) {
undoManager.saveUndoPoint(getCurrFlame());
ResourceManager rm = ResourceManager.all(FilePropertyEditor.class);
String title = rm.getString("ColorPropertyEditor.title");
Color selectedColor = JColorChooser.showDialog(rootPanel, title, new Color(getCurrFlame().getBgColorURRed(), getCurrFlame().getBgColorURGreen(), getCurrFlame().getBgColorURBlue()));
if (selectedColor != null) {
getCurrFlame().setBgColorURRed(selectedColor.getRed());
getCurrFlame().setBgColorURGreen(selectedColor.getGreen());
getCurrFlame().setBgColorURBlue(selectedColor.getBlue());
refreshFlameImage(true, false, 1, true, true);
refreshBGColorURIndicator();
}
}
}
Aggregations