mirror of
https://github.com/dcronqvist/DotTiled.git
synced 2025-05-08 18:36:02 +03:00
Fix incorrect .tmj default TextObject color
This commit is contained in:
parent
26a179efb7
commit
40f0591271
1 changed files with 1 additions and 1 deletions
|
@ -255,7 +255,7 @@ public abstract partial class TmjReaderBase
|
||||||
internal static TextObject ReadText(JsonElement element)
|
internal static TextObject ReadText(JsonElement element)
|
||||||
{
|
{
|
||||||
var bold = element.GetOptionalProperty<bool>("bold").GetValueOr(false);
|
var bold = element.GetOptionalProperty<bool>("bold").GetValueOr(false);
|
||||||
var color = element.GetOptionalPropertyParseable<TiledColor>("color").GetValueOr(TiledColor.Parse("#00000000", CultureInfo.InvariantCulture));
|
var color = element.GetOptionalPropertyParseable<TiledColor>("color").GetValueOr(TiledColor.Parse("#000000", CultureInfo.InvariantCulture));
|
||||||
var fontfamily = element.GetOptionalProperty<string>("fontfamily").GetValueOr("sans-serif");
|
var fontfamily = element.GetOptionalProperty<string>("fontfamily").GetValueOr("sans-serif");
|
||||||
var halign = element.GetOptionalPropertyParseable<TextHorizontalAlignment>("halign", s => s switch
|
var halign = element.GetOptionalPropertyParseable<TextHorizontalAlignment>("halign", s => s switch
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue