mirror of
https://github.com/overte-org/overte.git
synced 2025-04-18 00:26:33 +02:00
Merge pull request #14952 from SamGondelman/textColor
Case 21305: Fix text overlay color property
This commit is contained in:
commit
0f8c36156b
1 changed files with 4 additions and 0 deletions
|
@ -375,6 +375,8 @@ EntityItemProperties Overlays::convertOverlayToEntityProperties(QVariantMap& ove
|
|||
RENAME_PROP(animationSettings, animation);
|
||||
} else if (type == "Image") {
|
||||
RENAME_PROP(url, imageURL);
|
||||
} else if (type == "Text") {
|
||||
RENAME_PROP(color, textColor);
|
||||
} else if (type == "Web") {
|
||||
RENAME_PROP(url, sourceUrl);
|
||||
RENAME_PROP_CONVERT(inputMode, inputMode, [](const QVariant& v) { return v.toString() == "Mouse" ? "mouse" : "touch"; });
|
||||
|
@ -675,6 +677,8 @@ QVariantMap Overlays::convertEntityToOverlayProperties(const EntityItemPropertie
|
|||
RENAME_PROP(animation, animationSettings);
|
||||
} else if (type == "Image") {
|
||||
RENAME_PROP(imageURL, url);
|
||||
} else if (type == "Text") {
|
||||
RENAME_PROP(textColor, color);
|
||||
} else if (type == "Web") {
|
||||
RENAME_PROP(sourceUrl, url);
|
||||
RENAME_PROP_CONVERT(inputMode, inputMode, [](const QVariant& v) { return v.toString() == "mouse" ? "Mouse" : "Touch"; });
|
||||
|
|
Loading…
Reference in a new issue