text changes

This commit is contained in:
Jorijn van der Graaf 2025-11-26 03:35:58 +01:00
commit d5ee272290
6 changed files with 135 additions and 54 deletions

View file

@ -23,7 +23,7 @@ import :RenderingElement;
import :Types;
export namespace Crafter {
class ImageElement : public RenderingElement {
class ImageElement : public RenderingElementScaling {
public:
ImageElement();
ImageElement(const std::string_view imagePath, std::int_fast32_t anchorX = FractionalToMapped(0.5), std::int_fast32_t anchorY = FractionalToMapped(0.5), std::uint_fast32_t relativeWidth = FractionalToMapped(1), std::uint_fast32_t relativeHeight = FractionalToMapped(1), std::int_fast32_t anchorOffsetX = FractionalToMapped(0.5), std::int_fast32_t anchorOffsetY = FractionalToMapped(0.5), std::int_fast32_t z = 0, bool ignoreScaling = false);