public AGSStringItem(IFont font = null) { font = font ?? AGSGame.Game.Settings.Defaults.SpeechFont; IdleTextConfig = new AGSTextConfig(autoFit: AutoFit.LabelShouldFitText, font: font); HoverTextConfig = AGSTextConfig.ChangeColor(IdleTextConfig, Colors.Yellow, Colors.Black, 0f); Properties = new AGSCustomProperties(); }
public ICustomProperties ToItem(AGSSerializationContext context) { AGSCustomProperties props = new AGSCustomProperties(); if (Strings != null) { foreach (var x in Strings) { props.Strings.SetValue(x.Key, x.Value); } } if (Ints != null) { foreach (var x in Ints) { props.Ints.SetValue(x.Key, x.Value); } } if (Bools != null) { foreach (var x in Bools) { props.Bools.SetValue(x.Key, x.Value); } } if (Floats != null) { foreach (var x in Floats) { props.Floats.SetValue(x.Key, x.Value); } } return(props); }
public AGSStringItem() { IdleTextConfig = new AGSTextConfig(autoFit: AutoFit.LabelShouldFitText, font: AGSGameSettings.DefaultSpeechFont); HoverTextConfig = AGSTextConfig.ChangeColor(IdleTextConfig, Colors.Yellow, Colors.Black, 1f); Properties = new AGSCustomProperties(); }