protected override void ResetFromInstance(UIComponent component) { base.ResetFromInstance(component); var source = (Dropdown)component; TextStyle = new TextStyleSet(source.TextStyle); ItemTextStyle = new TextStyleSet(source.ItemTextStyle); Background = new ImageAndColorSet(source.Background); ItemBackground = new ImageAndColorSet(source.ItemBackground); ArrowImage = new ImageAndColorSet(source.ArrowImage); PopupBackground = new ImageAndColor(source.PopupBackground); }
protected override void ResetFromInstance(UIComponent component) { base.ResetFromInstance(component); var source = (Button)component; _text.Value = new TranslatableText(source.Text); PeerText.text = source.Text.Text; TextStyle = new TextStyleSet(source.TextStyle); Background = new ImageAndColorSet(source.Background); Icon = new ImageAndColorSet(source.Icon); IconSize = new Vector2(source.IconSize.x, source.IconSize.y); }
protected override void ResetFromInstance(UIComponent component) { base.ResetFromInstance(component); var source = (ToggleButton)component; _text.Value = new TranslatableText(source.Text); PeerText.text = source.Text.Text; TextStyle = new TextStyleSet(source.TextStyle); Checkmark = new ImageAndColorSet(source.Checkmark); Checkbox = new ImageAndColorSet(source.Checkbox); ToggleGroup = null; }
protected override void ResetFromInstance(UIComponent component) { base.ResetFromInstance(component); var source = (InputText)component; Value = source.Value; PlaceholderText = source.PlaceholderText; ReadOnly = source.ReadOnly; CharacterLimit = source.CharacterLimit; CaretWidth = source.CaretWidth; TextStyle = new TextStyleSet(source.TextStyle); PlaceholderTextStyle = new TextStyleSet(source.PlaceholderTextStyle); Background = new ImageAndColorSet(source.Background); }