public virtual void Recalculate() { CalculatedStyle calculatedStyle = Parent?.InnerDimensions ?? UserInterface.ActiveInstance.Dimensions; CalculatedStyle calculatedStyle2 = default; calculatedStyle2.X = Left.GetValue(calculatedStyle.Width) + calculatedStyle.X; calculatedStyle2.Y = Top.GetValue(calculatedStyle.Height) + calculatedStyle.Y; float value = MinWidth.GetValue(calculatedStyle.Width); float value2 = MaxWidth.GetValue(calculatedStyle.Width); float value3 = MinHeight.GetValue(calculatedStyle.Height); float value4 = MaxHeight.GetValue(calculatedStyle.Height); calculatedStyle2.Width = MathHelper.Clamp(Width.GetValue(calculatedStyle.Width), value, value2); calculatedStyle2.Height = MathHelper.Clamp(Height.GetValue(calculatedStyle.Height), value3, value4); calculatedStyle2.Width += MarginLeft + MarginRight; calculatedStyle2.Height += MarginTop + MarginBottom; calculatedStyle2.X += calculatedStyle.Width * HAlign - calculatedStyle2.Width * HAlign; calculatedStyle2.Y += calculatedStyle.Height * VAlign - calculatedStyle2.Height * VAlign; OuterDimensions = calculatedStyle2; calculatedStyle2.X += MarginLeft; calculatedStyle2.Y += MarginTop; calculatedStyle2.Width -= MarginLeft + MarginRight; calculatedStyle2.Height -= MarginTop + MarginBottom; Dimensions = calculatedStyle2; calculatedStyle2.X += PaddingLeft; calculatedStyle2.Y += PaddingTop; calculatedStyle2.Width -= PaddingLeft + PaddingRight; calculatedStyle2.Height -= PaddingTop + PaddingBottom; InnerDimensions = calculatedStyle2; RecalculateChildren(); }
public override int GetHashCode() { var hashCode = 459946268; hashCode = hashCode * -1521134295 + EqualityComparer <InfoboxAction[]> .Default.GetHashCode(Actions); hashCode = hashCode * -1521134295 + CloseDelayTime.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Description); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(HtmlContent); hashCode = hashCode * -1521134295 + EqualityComparer <Location> .Default.GetHashCode(Location); hashCode = hashCode * -1521134295 + MaxHeight.GetHashCode(); hashCode = hashCode * -1521134295 + MaxWidth.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <GeolocatonPoint> .Default.GetHashCode(Offset); hashCode = hashCode * -1521134295 + ShowCloseButton.GetHashCode(); hashCode = hashCode * -1521134295 + ShowPointer.GetHashCode(); hashCode = hashCode * -1521134295 + EqualityComparer <string> .Default.GetHashCode(Title); hashCode = hashCode * -1521134295 + Visible.GetHashCode(); hashCode = hashCode * -1521134295 + ZIndex.GetHashCode(); return(hashCode); }
public override int GetHashCode() { int hash = 1; if (PointCloudRange != 0F) { hash ^= PointCloudRange.GetHashCode(); } if (Width != 0) { hash ^= Width.GetHashCode(); } if (Height != 0) { hash ^= Height.GetHashCode(); } if (MinHeight != 0F) { hash ^= MinHeight.GetHashCode(); } if (MaxHeight != 0F) { hash ^= MaxHeight.GetHashCode(); } if (UseIntensityFeature != false) { hash ^= UseIntensityFeature.GetHashCode(); } if (UseConstantFeature != false) { hash ^= UseConstantFeature.GetHashCode(); } return(hash); }
public override int GetHashCode() { int hc = Id.GetHashCode(); foreach (var i in Images) { hc ^= i.GetHashCode(); } hc ^= (int)Stretch << 14; hc ^= (int)StretchDirection << 17; hc ^= Opacity.GetHashCode(); hc ^= HorizontalOffset.GetHashCode(); hc ^= VerticalOffset.GetHashCode(); hc ^= LeftMarginWidthPercent.GetHashCode(); hc ^= RightMarginWidthPercent.GetHashCode(); hc ^= TopMarginHeightPercent.GetHashCode(); hc ^= BottomMarginHeightPercent.GetHashCode(); hc ^= MaxHeight.GetHashCode(); hc ^= MaxWidth.GetHashCode(); hc ^= Zoom.GetHashCode(); hc ^= (int)ImagePlacement; hc ^= IsRandom ? int.MinValue : 0; hc ^= IsEnabled ? 0x40000000 : 0; hc ^= Interval.GetHashCode(); return(hc); }
/// <summary> /// Raises the <see cref = "E:System.Web.UI.Control.Load" /> event. /// </summary> /// <param name = "e">The <see cref = "T:System.EventArgs" /> object that contains the event data.</param> protected override void OnLoad(EventArgs e) { base.OnLoad(e); PropertyAliasTextBox.Text = PropertyAlias; MaxHeightTextBox.Text = MaxHeight.ToString(CultureInfo.InvariantCulture); MaxWidthTextBox.Text = MaxWidth.ToString(CultureInfo.InvariantCulture); }
public UIState() { Width.Percent = 1f; Height.Percent = 1f; MaxWidth.Set(Main.Graphics.PreferredBackBufferWidth, 1f); MaxHeight.Set(Main.Graphics.PreferredBackBufferHeight, 1f); Recalculate(); }
/// <inheritdoc /> public int CompareTo(VideoQuality other) { var maxHeightComparison = MaxHeight.CompareTo(other.MaxHeight); var framerateComparison = Framerate.CompareTo(other.Framerate); return(maxHeightComparison != 0 ? maxHeightComparison : framerateComparison); }
public UISlider(float min = 0, float max = 1) { MinValue = min; MaxValue = max; Height.Set(20, 0); MaxHeight.Set(20, 0); Width.Set(100, 0); PaddingTop = 5f; PaddingBottom = 5f; }
protected override IEnumerator ProcessPayload(VisualPayload payload) { var label = VisualizerFactory.InstantiateLabelVisualizerPrefab(); label.Initialize(this, payload); var meshRenderer = label.TextComponent.GetComponent <MeshRenderer>(); var targetFont = FontFactory.GetFontPair(FontName.GetFirstValue(payload.Data)); var newMaterial = FontFactory.GenerateNewSpatialMaterial(targetFont.FontTexture); label.TextComponent.font = targetFont.Font; label.TextComponent.fontSize = Mathf.FloorToInt(FontSize.GetFirstValue(payload.Data) * targetFont.FontScale); label.transform.localPosition = new Vector3(0f, label.TextComponent.fontSize * targetFont.VerticalOffset, 0f); label.CharactersPerLine = CharactersPerLine.GetFirstValue(payload.Data); label.MaxLines = MaxLines.GetFirstValue(payload.Data); newMaterial.color = FontColor.GetFirstValue(payload.Data); meshRenderer.material = newMaterial; label.BackgroundPadding = BackgroundPadding.GetFirstValue(payload.Data); label.BackgroundDepth = BackgroundDepth.GetFirstValue(payload.Data); label.LateralJustification = Justification.GetFirstValue(payload.Data); label.VerticalJustification = VerticalJustification.GetFirstValue(payload.Data); label.MinHeight = MinHeight.GetFirstValue(payload.Data); label.MaxHeight = MaxHeight.GetFirstValue(payload.Data); label.Orientation = Orientation.GetFirstValue(payload.Data); label.SetClickState(ClickState); label.RemoveBackground = !ShowBackground.GetFirstValue(payload.Data); label.Text = LabelText.GetFirstValue(payload.Data); var newPayload = new VisualPayload(payload.Data, new VisualDescription(label.Bound)); var iterator = DefaultState.Transmit(newPayload); while (iterator.MoveNext()) { yield return(null); } }
/// <inheritdoc /> public override void Process(TagHelperContext context, TagHelperOutput output) { if (context == null) { throw new ArgumentNullException(nameof(context)); } if (output == null) { throw new ArgumentNullException(nameof(output)); } // Return if not enabled if (!Enabled) { output.TagName = null; return; } // Format properties var alwaysShowNavOnTouchDevicesFormatted = AlwaysShowNavOnTouchDevices.ToString().ToLower(); var albumLabelFormatted = AlbumLabel; var disableScrollingFormatted = DisableScrolling.ToString().ToLower(); var fadeDurationFormatted = ((int)FadeDuration.TotalMilliseconds).ToString(); var fitImagesInViewportFormatted = FitImagesInViewport.ToString().ToLower(); var imageFadeDurationFormatted = ((int)ImageFadeDuration.TotalMilliseconds).ToString(); var maxWidthFormatted = MaxWidth?.ToString() ?? "null"; var maxHeightFormatted = MaxHeight?.ToString() ?? "null"; var positionFromTopFormatted = PositionFromTop.ToString(); var resizeDurationFormatted = ((int)ResizeDuration.TotalMilliseconds).ToString(); var showImageNumberLabelFormatted = ShowImageNumberLabel.ToString().ToLower(); var wrapAroundFormatted = WrapAround.ToString().ToLower(); // Format the content var content = TemplateHtml; content = content.Replace("__AlwaysShowNavOnTouchDevices__", alwaysShowNavOnTouchDevicesFormatted); content = content.Replace("__AlbumLabel__", albumLabelFormatted); content = content.Replace("__DisableScrolling__", disableScrollingFormatted); content = content.Replace("__FadeDuration__", fadeDurationFormatted); content = content.Replace("__FitImagesInViewport__", fitImagesInViewportFormatted); content = content.Replace("__ImageFadeDuration__", imageFadeDurationFormatted); content = content.Replace("__MaxWidth__", maxWidthFormatted); content = content.Replace("__MaxHeight__", maxHeightFormatted); content = content.Replace("__PositionFromTop__", positionFromTopFormatted); content = content.Replace("__ResizeDuration__", resizeDurationFormatted); content = content.Replace("__ShowImageNumberLabel__", showImageNumberLabelFormatted); content = content.Replace("__WrapAround__", wrapAroundFormatted); // Output output.TagName = null; output.Content.SetHtmlContent(content); base.Process(context, output); }
public Menu(float width, float height) { MaxWidth.Set(width, 0f); MaxHeight.Set(height, 0f); SetPadding(7); buttonGrid = new UIGrid(7); buttonGrid.Width.Set(-20, 1); buttonGrid.Height.Set(0, 1); buttonGrid.ListPadding = 7f; Append(buttonGrid); AppendButtons(); }
public override void Recalculate() { base.Recalculate(); float defaultHeight = 30; float h = dataListElement.Parent != null?dataList.GetTotalHeight() + defaultHeight : defaultHeight; // 24 for UIElement h = Utils.Clamp(h, 30, 300 * scale); MaxHeight.Set(300 * scale, 0f); Height.Set(h, 0f); if (Parent != null && Parent is UISortableElement) { Parent.Height.Set(h, 0f); } }
/// <summary> /// Gets raw html response body for a URL /// </summary> /// <param name="url"></param> /// <returns></returns> public string GetEmbedResponse(string url) { StringBuilder output = new StringBuilder(); NameValueCollection queryString = System.Web.HttpUtility.ParseQueryString(string.Empty); queryString["url"] = url; queryString["format"] = "json"; if (MaxHeight > 0) { queryString["maxheight"] = MaxHeight.ToString(); } if (MaxWidth > 0) { queryString["maxwidth"] = MaxWidth.ToString(); } string fullURL = String.Format("{0}?{1}", EndpointURL, queryString.ToString()); WebRequest embedReq; embedReq = WebRequest.Create(fullURL); Stream objStream; objStream = embedReq.GetResponse().GetResponseStream(); StreamReader objReader = new StreamReader(objStream); string sLine = ""; int i = 0; while (sLine != null) { i++; sLine = objReader.ReadLine(); if (sLine != null) { output.AppendLine(sLine); } } return(output.ToString()); }
public override void ResizeThis(Rectangle parentRectangle) { //scale all relative values to parent rectangle Margin.Resize(parentRectangle.Size); FlexWidth.Resize(parentRectangle.Width); FlexHeight.Resize(parentRectangle.Height); MaxWidth.Resize(parentRectangle.Width); MinWidth.Resize(parentRectangle.Width); MaxHeight.Resize(parentRectangle.Height); MinHeight.Resize(parentRectangle.Height); //clamp size to min and max Width = MathHelper.Clamp(FlexWidth.Absolute / SEGMENT_WIDTH, MinWidth.Absolute, MaxWidth.Absolute) * SEGMENT_WIDTH; Height = MathHelper.Clamp(FlexHeight.Absolute, MinHeight.Absolute, MaxHeight.Absolute); //if control is square, conform both width and height to the larger of the two if (IsSquare) { Width = Height = Math.Min(Width, Height); } X = HorizontalAlign switch { HorizontalAlign.Center => (parentRectangle.X + (parentRectangle.Width / 2) - (Width / 2)), HorizontalAlign.Left => parentRectangle.Left + Margin.Left, _ => parentRectangle.Right - Width - Margin.Right }; Y = VerticalAlign switch { VerticalAlign.Center => (parentRectangle.Top + parentRectangle.Height / 2 - Height / 2), VerticalAlign.Top => parentRectangle.Top + Margin.Top, _ => parentRectangle.Bottom - Height - Margin.Bottom }; Padding.Resize(Size); //calculate internal rectangle ContentRectangle = new Rectangle(X + Margin.Left + Padding.Left, Y + Margin.Top + Padding.Top, Width - Padding.Horizontal, Height - Padding.Vertical); }
protected override void WriteDataXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("Width/Min", true, out subEle); subEle.Value = MinWidth.ToString("G15"); ele.TryPathTo("Width/Max", true, out subEle); subEle.Value = MaxWidth.ToString("G15"); ele.TryPathTo("Height/Min", true, out subEle); subEle.Value = MinHeight.ToString("G15"); ele.TryPathTo("Height/Max", true, out subEle); subEle.Value = MaxHeight.ToString("G15"); ele.TryPathTo("Depth", true, out subEle); subEle.Value = Depth.ToString("G15"); ele.TryPathTo("Shininess", true, out subEle); subEle.Value = Shininess.ToString("G15"); ele.TryPathTo("Parallax/Scale", true, out subEle); subEle.Value = ParallaxScale.ToString("G15"); ele.TryPathTo("Parallax/Passes", true, out subEle); subEle.Value = ParallaxPasses.ToString(); ele.TryPathTo("Flags", true, out subEle); subEle.Value = DecalFlags.ToString(); WriteUnusedXML(ele, master); ele.TryPathTo("Color", true, out subEle); Color.WriteXML(subEle, master); }
/* //For if we ever want to make this into a DB that can be updated * public event PropertyChangedEventHandler PropertyChanged; * * private void OnPropertyChanged(string propertyName) * { * this.PropertyChanged?.Invoke(this, * new PropertyChangedEventArgs(propertyName)); * } */ public override string ToString() { return(string.Format("[Plant: {0}, {1}, {2}, {3}]", PlantName, ScientificName, Sun, MaxHeight.ToString())); }
public override void OnBind() { base.OnBind(); data = memberInfo.GetValue(item); defaultListValueAttribute = ConfigManager.GetCustomAttribute <DefaultListValueAttribute>(memberInfo, null, null); MaxHeight.Set(300, 0f); dataListElement = new UIElement(); dataListElement.Width.Set(-10f, 1f); dataListElement.Left.Set(10f, 0f); dataListElement.Height.Set(-30, 1f); dataListElement.Top.Set(30f, 0f); //panel.SetPadding(0); //panel.BackgroundColor = Microsoft.Xna.Framework.Color.Transparent; //panel.BorderColor = Microsoft.Xna.Framework.Color.Transparent; if (data != null) { Append(dataListElement); } dataListElement.OverflowHidden = true; dataList = new NestedUIList(); dataList.Width.Set(-20, 1f); dataList.Left.Set(0, 0f); dataList.Height.Set(0, 1f); dataList.ListPadding = 5f; dataListElement.Append(dataList); UIScrollbar scrollbar = new UIScrollbar(); scrollbar.SetView(100f, 1000f); scrollbar.Height.Set(-16f, 1f); scrollbar.Top.Set(6f, 0f); scrollbar.Left.Pixels -= 3; scrollbar.HAlign = 1f; dataList.SetScrollbar(scrollbar); dataListElement.Append(scrollbar); PrepareTypes(); // allow null collections to simplify modder code for OnDeserialize and allow null and empty lists to have different meanings, etc. SetupList(); if (CanAdd) { initializeButton = new UIModConfigHoverImage(playTexture, "Initialize"); initializeButton.Top.Pixels += 4; initializeButton.Left.Pixels -= 3; initializeButton.HAlign = 1f; initializeButton.OnClick += (a, b) => { Main.PlaySound(SoundID.Tink); InitializeCollection(); SetupList(); Interface.modConfig.RecalculateChildren(); // not needed? Interface.modConfig.SetPendingChanges(); expanded = true; pendingChanges = true; }; addButton = new UIModConfigHoverImage(plusTexture, "Add"); addButton.Top.Set(4, 0f); addButton.Left.Set(-52, 1f); addButton.OnClick += (a, b) => { Main.PlaySound(SoundID.Tink); AddItem(); SetupList(); Interface.modConfig.RecalculateChildren(); Interface.modConfig.SetPendingChanges(); expanded = true; pendingChanges = true; }; deleteButton = new UIModConfigHoverImage(deleteTexture, "Clear"); deleteButton.Top.Set(4, 0f); deleteButton.Left.Set(-25, 1f); deleteButton.OnClick += (a, b) => { Main.PlaySound(SoundID.Tink); if (nullAllowed) { NullCollection(); } else { ClearCollection(); } SetupList(); Interface.modConfig.RecalculateChildren(); Interface.modConfig.SetPendingChanges(); pendingChanges = true; }; } expandButton = new UIModConfigHoverImage(collapsedTexture, "Expand"); expandButton.Top.Set(4, 0f); // 10, -25: 4, -52 expandButton.Left.Set(-79, 1f); expandButton.OnClick += (a, b) => { expanded = !expanded; pendingChanges = true; }; upDownButton = new UIModConfigHoverImageSplit(upDownTexture, "Scale Up", "Scale Down"); upDownButton.Top.Set(4, 0f); upDownButton.Left.Set(-106, 1f); upDownButton.OnClick += (a, b) => { Rectangle r = b.GetDimensions().ToRectangle(); if (a.MousePosition.Y < r.Y + r.Height / 2) { scale = Math.Min(2f, scale + 0.5f); } else { scale = Math.Max(1f, scale - 0.5f); } //dataListPanel.RecalculateChildren(); ////dataList.RecalculateChildren(); //float h = dataList.GetTotalHeight(); //MinHeight.Set(Math.Min(Math.Max(h + 84, 100), 300) * scale, 0f); //Recalculate(); //if (Parent != null && Parent is UISortableElement) { // Parent.Height.Pixels = GetOuterDimensions().Height; //} }; //Append(upButton); //var aasdf = Texture2D.FromStream(Main.instance.GraphicsDevice, Assembly.GetExecutingAssembly().GetManifestResourceStream("Terraria.ModLoader.Config.UI.ButtonDecrement.png")); //for (int i = 0; i < 100; i++) { // var vb = Texture2D.FromStream(Main.instance.GraphicsDevice, Assembly.GetExecutingAssembly().GetManifestResourceStream("Terraria.ModLoader.Config.UI.ButtonDecrement.png")); //} pendingChanges = true; Recalculate(); // Needed? }
private void SaveWindowSettings() { LBConfiguration.Config.instancegui_windowsettings = String.Join(";", new string[] { Left.ToString(), Top.ToString(), MaxWidth.ToString(), MaxHeight.ToString() }); LBConfiguration.Config.instancegui_ispinned = ispinned; LBConfiguration.Save(); }
public override void Save(string fileName) { for (int leg = 0; leg < 2; leg++) { //Averaging XDevice.SetRenderTarget(SingleTargetTick ? SingleTargetB : SingleTargetA); XDevice.Clear(Color.Black); DepthSampler.SetValue(ExCoreTick[leg] ? ExCoreTargetA[leg] : ExCoreTargetB[leg]); XEffect.CurrentTechnique = PolarAvgTechnique; XEffect.CurrentTechnique.Passes[0].Apply(); MiniPlane.Draw(); //Gauss-filtering :D for (int i = 0; i < 16; i++) { XDevice.SetRenderTarget(SingleTargetTick ? SingleTargetA : SingleTargetB); DepthSampler.SetValue(SingleTargetTick ? SingleTargetB : SingleTargetA); XEffect.CurrentTechnique = VGaussTechnique; XEffect.CurrentTechnique.Passes[0].Apply(); MiniPlane.Draw(); SingleTargetTick = !SingleTargetTick; XDevice.SetRenderTarget(SingleTargetTick ? SingleTargetA : SingleTargetB); DepthSampler.SetValue(SingleTargetTick ? SingleTargetB : SingleTargetA); XEffect.CurrentTechnique = HGaussTechnique; XEffect.CurrentTechnique.Passes[0].Apply(); MiniPlane.Draw(); SingleTargetTick = !SingleTargetTick; } XDevice.SetRenderTarget(null); STLScreenshot(SingleTargetTick ? SingleTargetB : SingleTargetA, Path.ChangeExtension(fileName, leg + ".stl"), "Created by KinectScan.", MinY.GetValueSingle(), MaxHeight.GetValueSingle()); } }
/// <summary> /// Save Features.Charts settings to the settings file /// </summary> /// <param name="generalNode">XML-node for the Features.Charts settings</param> public void Save(XmlNode chartsNode) { string xpath; XmlNode node; xpath = "./height"; SettingsHelper.SetSettingValue(xpath, chartsNode, Height.ToString()); xpath = "./maxHeight"; SettingsHelper.SetSettingValue(xpath, chartsNode, MaxHeight.ToString()); xpath = "./width"; SettingsHelper.SetSettingValue(xpath, chartsNode, Width.ToString()); xpath = "./maxWidth"; SettingsHelper.SetSettingValue(xpath, chartsNode, MaxWidth.ToString()); xpath = "./colors"; SettingsHelper.SetSettingValue(xpath, chartsNode, "color", Colors); xpath = "./lineThickness"; SettingsHelper.SetSettingValue(xpath, chartsNode, LineThickness.ToString()); xpath = "./maxLineThickness"; SettingsHelper.SetSettingValue(xpath, chartsNode, MaxLineThickness.ToString()); xpath = "./logotype"; SettingsHelper.SetSettingValue(xpath, chartsNode, Logotype); xpath = "./maxValues"; SettingsHelper.SetSettingValue(xpath, chartsNode, MaxValues.ToString()); xpath = "./timeSortOrder"; SettingsHelper.SetSettingValue(xpath, chartsNode, TimeSortOrder.ToString()); xpath = "./labelOrientation"; SettingsHelper.SetSettingValue(xpath, chartsNode, LabelOrientation.ToString()); xpath = "./font"; node = SettingsHelper.GetNode(chartsNode, xpath); _fontSettings.Save(node); xpath = "./legend"; node = SettingsHelper.GetNode(chartsNode, xpath); _legendSettings.Save(node); xpath = "./guidelines"; node = SettingsHelper.GetNode(chartsNode, xpath); _guidelinesSettings.Save(node); xpath = "./showSourse"; SettingsHelper.SetSettingValue(xpath, chartsNode, ShowSource.ToString()); xpath = "./showLogo"; SettingsHelper.SetSettingValue(xpath, chartsNode, ShowLogo.ToString()); xpath = "./lineThicknessPhrame"; SettingsHelper.SetSettingValue(xpath, chartsNode, LineThicknessPhrame.ToString()); xpath = "./lineColorPhrame"; SettingsHelper.SetSettingValue(xpath, chartsNode, LineColorPhrame.ToString()); xpath = "./backgroundColorGraphs"; SettingsHelper.SetSettingValue(xpath, chartsNode, BackgroundColorGraphs.ToString()); }
private void SaveWindowSettings() { Properties.Settings.Default.instancegui_windowsettings = String.Join(";", new string[] { Left.ToString(), Top.ToString(), MaxWidth.ToString(), MaxHeight.ToString() }); Properties.Settings.Default.instancegui_ispinned = ispinned; Properties.Settings.Default.Save(); }
public bool Equals(ContentTypeProperty input) { if (input == null) { return(false); } return (( Name == input.Name || (Name != null && Name.Equals(input.Name)) ) && ( RootPropertyName == input.RootPropertyName || (RootPropertyName != null && RootPropertyName.Equals(input.RootPropertyName)) ) && ( ReadableName == input.ReadableName || (ReadableName != null && ReadableName.Equals(input.ReadableName)) ) && ( Value == input.Value || (Value != null && Value.Equals(input.Value)) ) && ( PropertyDescription == input.PropertyDescription || (PropertyDescription != null && PropertyDescription.Equals(input.PropertyDescription)) ) && ( Localizable == input.Localizable || (Localizable != null && Localizable.Equals(input.Localizable)) ) && ( Fallback == input.Fallback || (Fallback != null && Fallback.Equals(input.Fallback)) ) && ( Enabled == input.Enabled || (Enabled != null && Enabled.Equals(input.Enabled)) ) && ( Order == input.Order || (Order.Equals(input.Order)) ) && ( Visible == input.Visible || (Visible != null && Visible.Equals(input.Visible)) ) && ( IsTitle == input.IsTitle || (IsTitle != null && IsTitle.Equals(input.IsTitle)) ) && ( Required == input.Required || (Required != null && Required.Equals(input.Required)) ) && ( MaxLength == input.MaxLength || (MaxLength.Equals(input.MaxLength)) ) && ( MaxByteLength == input.MaxByteLength || (MaxByteLength.Equals(input.MaxByteLength)) ) && ( MaxFileSize == input.MaxFileSize || (MaxFileSize.Equals(input.MaxFileSize)) ) && ( Regexp == input.Regexp || (Regexp != null && Regexp.Equals(input.Regexp)) ) && ( ValidateAs == input.ValidateAs || (ValidateAs != null && ValidateAs.Equals(input.ValidateAs)) ) && ( RssAttribute == input.RssAttribute || (RssAttribute != null && RssAttribute.Equals(input.RssAttribute)) ) && ( VisibleDependency == input.VisibleDependency || (VisibleDependency != null && VisibleDependency.Equals(input.VisibleDependency)) ) && ( VisibleOn == input.VisibleOn || (VisibleOn != null && VisibleOn.Equals(input.VisibleOn)) ) && ( Datatype == input.Datatype || (Datatype != null && Datatype.Equals(input.Datatype)) ) && ( Attributes == input.Attributes || (Attributes != null && Attributes.SequenceEqual(input.Attributes)) ) && ( ChildProperties == input.ChildProperties || (ChildProperties != null && ChildProperties.SequenceEqual(input.ChildProperties)) ) && ( ContentTypeAllowed == input.ContentTypeAllowed || (ContentTypeAllowed != null && ContentTypeAllowed.Equals(input.ContentTypeAllowed)) ) && ( BindToProperty == input.BindToProperty || (BindToProperty != null && BindToProperty.Equals(input.BindToProperty)) ) && ( BoundRegex == input.BoundRegex || (BoundRegex != null && BoundRegex.Equals(input.BoundRegex)) ) && ( RepresentationSelection == input.RepresentationSelection || (RepresentationSelection != null && RepresentationSelection.SequenceEqual(input.RepresentationSelection)) ) && ( DefaultValues == input.DefaultValues || (DefaultValues != null && DefaultValues.SequenceEqual(input.DefaultValues)) ) && ( IsExternalAllowed == input.IsExternalAllowed || (IsExternalAllowed != null && IsExternalAllowed.Equals(input.IsExternalAllowed)) ) && ( PropertySection == input.PropertySection || (PropertySection != null && PropertySection.Equals(input.PropertySection)) ) && ( Weight == input.Weight || (Weight.Equals(input.Weight)) ) && ( Entitytype == input.Entitytype || (Entitytype != null && Entitytype.Equals(input.Entitytype)) ) && ( IsCombo == input.IsCombo || (IsCombo != null && IsCombo.Equals(input.IsCombo)) ) && ( SuppressProperty == input.SuppressProperty || (SuppressProperty != null && SuppressProperty.Equals(input.SuppressProperty)) ) && ( LegalContentTypes == input.LegalContentTypes || (LegalContentTypes != null && LegalContentTypes.SequenceEqual(input.LegalContentTypes)) ) && ( RepresentationValidationString == input.RepresentationValidationString || (RepresentationValidationString != null && RepresentationValidationString.Equals(input.RepresentationValidationString)) ) && ( MinWidth == input.MinWidth || (MinWidth.Equals(input.MinWidth)) ) && ( MaxWidth == input.MaxWidth || (MaxWidth.Equals(input.MaxWidth)) ) && ( MinHeight == input.MinHeight || (MinHeight.Equals(input.MinHeight)) ) && ( MaxHeight == input.MaxHeight || (MaxHeight.Equals(input.MaxHeight)) ) && ( IsVideo == input.IsVideo || (IsVideo != null && IsVideo.Equals(input.IsVideo)) ) && ( IsImage == input.IsImage || (IsImage != null && IsImage.Equals(input.IsImage)) )); }
public void WriteXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("Object", true, out subEle); Object.WriteXML(subEle, master); ele.TryPathTo("ParentIndex", true, out subEle); subEle.Value = ParentIndex.ToString(); ele.TryPathTo("Unused", true, out subEle); subEle.Value = Unused.ToHex(); ele.TryPathTo("Density", true, out subEle); subEle.Value = Density.ToString("G15"); ele.TryPathTo("Clustering", true, out subEle); subEle.Value = Clustering.ToString(); ele.TryPathTo("Slope/Min", true, out subEle); subEle.Value = MinSlope.ToString(); ele.TryPathTo("Slope/Max", true, out subEle); subEle.Value = MaxSlope.ToString(); ele.TryPathTo("Flags", true, out subEle); subEle.Value = Flags.ToString(); ele.TryPathTo("RadiusWithRespectToParent", true, out subEle); subEle.Value = RadiusWithRespectToParent.ToString(); ele.TryPathTo("Radius", true, out subEle); subEle.Value = Radius.ToString(); ele.TryPathTo("Unknown1", true, out subEle); subEle.Value = Unknown1.ToHex(); ele.TryPathTo("MaxHeight", true, out subEle); subEle.Value = MaxHeight.ToString("G15"); ele.TryPathTo("Sink", true, out subEle); subEle.Value = Sink.ToString("G15"); ele.TryPathTo("SinkVariance", true, out subEle); subEle.Value = SinkVariance.ToString("G15"); ele.TryPathTo("SizeVariance", true, out subEle); subEle.Value = SizeVariance.ToString("G15"); ele.TryPathTo("XAngleVariance", true, out subEle); subEle.Value = XAngleVariance.ToString(); ele.TryPathTo("YAngleVariance", true, out subEle); subEle.Value = YAngleVariance.ToString(); ele.TryPathTo("ZAngleVariance", true, out subEle); subEle.Value = ZAngleVariance.ToString(); ele.TryPathTo("Unknown2", true, out subEle); subEle.Value = Unknown2.ToHex(); }