mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-23 22:37:55 +02:00
xBRZ-upscaled images now support common palette-transform effects:
- Player coloring - Flag color for map - Glue selection for combat
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#pragma once
|
||||
|
||||
#include "../../lib/filesystem/ResourcePath.h"
|
||||
#include "../../lib/constants/EntityIdentifiers.h"
|
||||
|
||||
struct ImageLocator
|
||||
{
|
||||
@@ -20,6 +21,11 @@ struct ImageLocator
|
||||
|
||||
bool verticalFlip = false;
|
||||
bool horizontalFlip = false;
|
||||
int8_t scalingFactor = 1;
|
||||
PlayerColor playerColored = PlayerColor::CANNOT_DETERMINE;
|
||||
bool layerShadow = false;
|
||||
bool layerBody = true;
|
||||
bool layerOverlay = false;
|
||||
|
||||
ImageLocator() = default;
|
||||
ImageLocator(const AnimationPath & path, int frame, int group);
|
||||
@@ -28,4 +34,8 @@ struct ImageLocator
|
||||
|
||||
bool operator < (const ImageLocator & other) const;
|
||||
bool empty() const;
|
||||
|
||||
ImageLocator copyFile() const;
|
||||
ImageLocator copyFileTransform() const;
|
||||
ImageLocator copyFileTransformScale() const;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user