mirror of
https://github.com/Armored-Dragon/overte.git
synced 2025-03-11 16:13:16 +01:00
fix missing color for text overlays
This commit is contained in:
parent
e77cdfc0d2
commit
927e824610
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