mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
add 'fill_image' script function, rename 'offset' combine mode to 'lightmap'
This commit is contained in:
@@ -188,6 +188,19 @@ bool SetCombineImage::operator == (const GeneratedImage& that) const {
|
||||
&& image_combine == that2->image_combine;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : FillImage
|
||||
|
||||
Image FillImage::generate(const Options& opt) {
|
||||
Image img = image->generate(opt);
|
||||
fill_image(img, color);
|
||||
return img;
|
||||
}
|
||||
bool FillImage::operator == (const GeneratedImage& that) const {
|
||||
const FillImage* that2 = dynamic_cast<const FillImage*>(&that);
|
||||
return that2 && *image == *that2->image
|
||||
&& color == that2->color;
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : SaturateImage
|
||||
|
||||
Image SaturateImage::generate(const Options& opt) {
|
||||
|
||||
Reference in New Issue
Block a user