public override List <ElementProperty> GetElementPropertiesSnapshot(List <ElementProperty> list = null) { list = base.GetElementPropertiesSnapshot(); list.Add(new ElementProperty("Gump Link", OnGumpLinkEntryUpdate, GumpLink.ToString(), ElementProperty.InputType.TextEntry)); list.Add(new ElementProperty("Normal ID", OnNormalIdTextEntryUpdate, NormalId.ToString(), ElementProperty.InputType.TextEntry)); list.Add(new ElementProperty("Pressed ID", OnPressedIdTextEntryUpdate, PressedId.ToString(), ElementProperty.InputType.TextEntry)); return(list); }
public override object Clone() { var link = new ButtonElement { ElementType = ElementType.Clone() as string, Name = Name.Clone() as string, X = X, Y = Y, Z = Z, GumpLink = (string)GumpLink.Clone(), NormalId = NormalId, PressedId = PressedId }; return(link); }
public override List <ElementProperty> GetElementPropertiesSnapshot(List <ElementProperty> list = null) { list = base.GetElementPropertiesSnapshot(); list.Add(new ElementProperty("Gump Link", OnGumpLinkEntryUpdate, GumpLink.ToString(), ElementProperty.InputType.TextEntry)); list.Add(new ElementProperty("Web Color", OnWebColorEntryUpdate, WebColor.ToString(), ElementProperty.InputType.TextEntry)); list.Add(new ElementProperty("Text", OnTextEntryUpdate, Text.ToString(), ElementProperty.InputType.TextEntry)); list.Add(new ElementProperty("Font Size", null, GumpLink.ToString(), ElementProperty.InputType.Blank)); list.Add(new ElementProperty(" Large", OnFontLargeRadioButtonUpdate, string.Empty, ElementProperty.InputType.RadioButton, FontSize == FontHandling.FontSize.Large ? true : false)); list.Add(new ElementProperty(" Medium", OnFontMediumRadioButtonUpdate, string.Empty, ElementProperty.InputType.RadioButton, FontSize == FontHandling.FontSize.Medium ? true : false)); list.Add(new ElementProperty(" Small", OnFontSmallRadioButtonUpdate, string.Empty, ElementProperty.InputType.RadioButton, FontSize == FontHandling.FontSize.Small ? true : false)); list.Add(new ElementProperty("Underlined", OnUnderlinedCheckboxUpdate, string.Empty, ElementProperty.InputType.Checkbox, Underlined)); list.Add(new ElementProperty("Italicized", OnItalicizedCheckboxUpdate, string.Empty, ElementProperty.InputType.Checkbox, Italicized)); list.Add(new ElementProperty("Bold", OnBoldCheckboxUpdate, string.Empty, ElementProperty.InputType.Checkbox, Bold)); return(list); }
public override object Clone() { var link = new HyperLinkElement { ElementType = ElementType.Clone() as string, Name = Name.Clone() as string, X = X, Y = Y, Z = Z, GumpLink = (string)GumpLink.Clone(), WebColor = (string)WebColor.Clone(), Text = (string)Text.Clone(), Underlined = Underlined, Italicized = Italicized, Bold = Bold, FontSize = FontSize }; return(link); }