From cf7945d0459b8b8d998646f34686f24ccd34b2a5 Mon Sep 17 00:00:00 2001 From: amylizzle Date: Mon, 27 May 2024 12:15:39 +0100 Subject: [PATCH] shush linter --- .../Descriptors/ControlDescriptors.cs | 234 +++++++++--------- 1 file changed, 117 insertions(+), 117 deletions(-) diff --git a/OpenDreamClient/Interface/Descriptors/ControlDescriptors.cs b/OpenDreamClient/Interface/Descriptors/ControlDescriptors.cs index 55c02293a6..b3b62c300f 100644 --- a/OpenDreamClient/Interface/Descriptors/ControlDescriptors.cs +++ b/OpenDreamClient/Interface/Descriptors/ControlDescriptors.cs @@ -8,88 +8,88 @@ namespace OpenDreamClient.Interface.Descriptors; [Virtual] public partial class ControlDescriptor : ElementDescriptor { [DataField("pos")] - public DMFPropertyVec2 Pos = new DMFPropertyVec2(0, 0); + public DMFPropertyVec2 Pos = new(0, 0); [DataField("size")] - public DMFPropertyVec2 Size = new DMFPropertyVec2(0, 0); + public DMFPropertyVec2 Size = new(0, 0); [DataField("anchor1")] public DMFPropertyVec2? Anchor1; [DataField("anchor2")] public DMFPropertyVec2? Anchor2; [DataField("is-visible")] - public DMFPropertyBool IsVisible = new DMFPropertyBool(true); + public DMFPropertyBool IsVisible = new(true); [DataField("is-transparent")] - public DMFPropertyBool IsTransparent = new DMFPropertyBool(false); + public DMFPropertyBool IsTransparent = new(false); [DataField("border")] - public DMFPropertyString Border = new DMFPropertyString("none"); + public DMFPropertyString Border = new("none"); [DataField("flash")] - public DMFPropertyNum Flash = new DMFPropertyNum(0); + public DMFPropertyNum Flash = new(0); [DataField("saved-params")] public DMFPropertyString SavedParams; //default varies [DataField("text-color")] - public DMFPropertyColor TextColor = new DMFPropertyColor(Color.Black); + public DMFPropertyColor TextColor = new(Color.Black); [DataField("background-color")] - public DMFPropertyColor BackgroundColor = new DMFPropertyColor(Color.White); + public DMFPropertyColor BackgroundColor = new(Color.White); [DataField("is-default")] - public DMFPropertyBool IsDefault = new DMFPropertyBool(false); + public DMFPropertyBool IsDefault = new(false); [DataField("is-disabled")] - public DMFPropertyBool IsDisabled = new DMFPropertyBool(false); + public DMFPropertyBool IsDisabled = new(false); [DataField("focus")] - public DMFPropertyBool Focus = new DMFPropertyBool(false); + public DMFPropertyBool Focus = new(false); [DataField("drop-zone")] public DMFPropertyBool DropZone; //default varies [DataField("right-click")] - public DMFPropertyBool RightClick = new DMFPropertyBool(false); + public DMFPropertyBool RightClick = new(false); [DataField("font-family")] - public DMFPropertyString FontFamily = new DMFPropertyString(""); + public DMFPropertyString FontFamily = new(""); [DataField("font-size")] - public DMFPropertyNum FontSize = new DMFPropertyNum(0); + public DMFPropertyNum FontSize = new(0); [DataField("font-style")] - public DMFPropertyString FontStyle = new DMFPropertyString(""); + public DMFPropertyString FontStyle = new(""); [DataField("on-size")] - public DMFPropertyString OnSize = new DMFPropertyString(""); + public DMFPropertyString OnSize = new(""); } public sealed partial class WindowDescriptor : ControlDescriptor { [DataField("can-minimize")] - public DMFPropertyBool CanMinimize = new DMFPropertyBool(true); + public DMFPropertyBool CanMinimize = new(true); [DataField("can-resize")] - public DMFPropertyBool CanResize = new DMFPropertyBool(true); + public DMFPropertyBool CanResize = new(true); [DataField("is-minimized")] - public DMFPropertyBool IsMinimized = new DMFPropertyBool(false); + public DMFPropertyBool IsMinimized = new(false); [DataField("is-maximized")] - public DMFPropertyBool IsMaximized = new DMFPropertyBool(false); + public DMFPropertyBool IsMaximized = new(false); [DataField("alpha")] - public DMFPropertyNum Alpha = new DMFPropertyNum(255); + public DMFPropertyNum Alpha = new(255); [DataField("statusbar")] - public DMFPropertyBool StatusBar = new DMFPropertyBool(false); + public DMFPropertyBool StatusBar = new(false); [DataField("transparent-color")] public DMFPropertyColor? TransparentColor = null; [DataField("can-close")] - public DMFPropertyBool CanClose = new DMFPropertyBool(true); + public DMFPropertyBool CanClose = new(true); [DataField("title")] - public DMFPropertyString Title = new DMFPropertyString(""); + public DMFPropertyString Title = new(""); [DataField("titlebar")] - public DMFPropertyBool TitleBar = new DMFPropertyBool(true); + public DMFPropertyBool TitleBar = new(true); [DataField("icon")] - public DMFPropertyString Icon = new DMFPropertyString(""); + public DMFPropertyString Icon = new(""); [DataField("image")] - public DMFPropertyString Image = new DMFPropertyString(""); + public DMFPropertyString Image = new(""); [DataField("image-mode")] - public DMFPropertyString ImageMode = new DMFPropertyString("stretch"); + public DMFPropertyString ImageMode = new("stretch"); [DataField("keep-aspect")] - public DMFPropertyBool KeepAspect = new DMFPropertyBool(false); + public DMFPropertyBool KeepAspect = new(false); [DataField("macro")] - public DMFPropertyString Macro = new DMFPropertyString(""); + public DMFPropertyString Macro = new(""); [DataField("menu")] - public DMFPropertyString Menu = new DMFPropertyString(""); + public DMFPropertyString Menu = new(""); [DataField("on-close")] - public DMFPropertyString OnClose = new DMFPropertyString(""); + public DMFPropertyString OnClose = new(""); [DataField("can-scroll")] - public DMFPropertyString CanScroll = new DMFPropertyString("none"); + public DMFPropertyString CanScroll = new("none"); [DataField("is-pane")] - public DMFPropertyBool IsPane = new DMFPropertyBool(false); + public DMFPropertyBool IsPane = new(false); public readonly List ControlDescriptors; @@ -162,207 +162,207 @@ public WindowDescriptor WithVisible(ISerializationManager serializationManager, public sealed partial class ControlDescriptorChild : ControlDescriptor { [DataField("lock")] - public DMFPropertyString Lock = new DMFPropertyString("none"); + public DMFPropertyString Lock = new("none"); [DataField("is-vert")] - public DMFPropertyBool IsVert = new DMFPropertyBool(false); + public DMFPropertyBool IsVert = new(false); [DataField("splitter")] - public DMFPropertyNum Splitter = new DMFPropertyNum(50f); + public DMFPropertyNum Splitter = new(50f); [DataField("show-splitter")] - public DMFPropertyBool ShowSplitter = new DMFPropertyBool(true); + public DMFPropertyBool ShowSplitter = new(true); [DataField("left")] - public DMFPropertyString Left = new DMFPropertyString(""); + public DMFPropertyString Left = new(""); [DataField("right")] - public DMFPropertyString Right = new DMFPropertyString(""); + public DMFPropertyString Right = new(""); } public sealed partial class ControlDescriptorInput : ControlDescriptor { [DataField("multi-line")] - public DMFPropertyBool MultiLine = new DMFPropertyBool(false); + public DMFPropertyBool MultiLine = new(false); [DataField("is-password")] - public DMFPropertyBool IsPassword = new DMFPropertyBool(false); + public DMFPropertyBool IsPassword = new(false); [DataField("no-command")] - public DMFPropertyBool NoCommand = new DMFPropertyBool(false); + public DMFPropertyBool NoCommand = new(false); [DataField("text")] - public DMFPropertyString Text = new DMFPropertyString(""); + public DMFPropertyString Text = new(""); [DataField("command")] - public DMFPropertyString Command = new DMFPropertyString(""); + public DMFPropertyString Command = new(""); } public sealed partial class ControlDescriptorButton : ControlDescriptor { [DataField("is-flat")] - public DMFPropertyBool IsFlat = new DMFPropertyBool(false); + public DMFPropertyBool IsFlat = new(false); [DataField("is-checked")] - public DMFPropertyBool IsChecked = new DMFPropertyBool(false); + public DMFPropertyBool IsChecked = new(false); [DataField("group")] - public DMFPropertyString Group = new DMFPropertyString(""); + public DMFPropertyString Group = new(""); [DataField("button-type")] - public DMFPropertyString ButtonType = new DMFPropertyString("pushbutton"); + public DMFPropertyString ButtonType = new("pushbutton"); [DataField("text")] - public DMFPropertyString Text = new DMFPropertyString(""); + public DMFPropertyString Text = new(""); [DataField("image")] - public DMFPropertyString Image = new DMFPropertyString(""); + public DMFPropertyString Image = new(""); [DataField("command")] - public DMFPropertyString Command = new DMFPropertyString(""); + public DMFPropertyString Command = new(""); } public sealed partial class ControlDescriptorOutput : ControlDescriptor { [DataField("legacy-size")] - public DMFPropertyBool LegacySize = new DMFPropertyBool(false); + public DMFPropertyBool LegacySize = new(false); [DataField("style")] - public DMFPropertyString Style = new DMFPropertyString(""); + public DMFPropertyString Style = new(""); [DataField("max-lines")] - public DMFPropertyNum MaxLines = new DMFPropertyNum(1000); + public DMFPropertyNum MaxLines = new(1000); [DataField("link-color")] - public DMFPropertyColor LinkColor = new DMFPropertyColor(Color.Blue); + public DMFPropertyColor LinkColor = new(Color.Blue); [DataField("visited-color")] - public DMFPropertyColor VisitedColor = new DMFPropertyColor(Color.Purple); + public DMFPropertyColor VisitedColor = new(Color.Purple); [DataField("image")] - public DMFPropertyString Image = new DMFPropertyString(""); + public DMFPropertyString Image = new(""); [DataField("enable-http-images")] - public DMFPropertyBool EnableHTTPImages = new DMFPropertyBool(false); + public DMFPropertyBool EnableHTTPImages = new(false); } public sealed partial class ControlDescriptorInfo : ControlDescriptor { [DataField("multi-line")] - public DMFPropertyBool MultiLine = new DMFPropertyBool(true); + public DMFPropertyBool MultiLine = new(true); [DataField("highlight-color")] - public DMFPropertyColor HighlightColor = new DMFPropertyColor(Color.Green); + public DMFPropertyColor HighlightColor = new(Color.Green); [DataField("tab-text-color")] - public DMFPropertyColor TabTextColor = new DMFPropertyColor(Color.Transparent); + public DMFPropertyColor TabTextColor = new(Color.Transparent); [DataField("tab-background-color")] - public DMFPropertyColor TabBackgroundColor = new DMFPropertyColor(Color.Transparent); + public DMFPropertyColor TabBackgroundColor = new(Color.Transparent); [DataField("prefix-color")] - public DMFPropertyColor PrefixColor = new DMFPropertyColor(Color.Transparent); + public DMFPropertyColor PrefixColor = new(Color.Transparent); [DataField("suffix-color")] - public DMFPropertyColor SuffixColor = new DMFPropertyColor(Color.Transparent); + public DMFPropertyColor SuffixColor = new(Color.Transparent); [DataField("allow-html")] - public DMFPropertyBool AllowHtml = new DMFPropertyBool(true); // Supposedly false by default, but it isn't if you're not using BYOND's default skin + public DMFPropertyBool AllowHtml = new(true); // Supposedly false by default, but it isn't if you're not using BYOND's default skin [DataField("tab-font-family")] - public DMFPropertyString TabFontFamily = new DMFPropertyString(""); + public DMFPropertyString TabFontFamily = new(""); [DataField("tab-font-size")] - public DMFPropertyNum TabFontSize = new DMFPropertyNum(0); + public DMFPropertyNum TabFontSize = new(0); [DataField("tab-font-style")] - public DMFPropertyString TabFontStyle = new DMFPropertyString(""); + public DMFPropertyString TabFontStyle = new(""); [DataField("on-show")] - public DMFPropertyString OnShowCommand = new DMFPropertyString(""); + public DMFPropertyString OnShowCommand = new(""); [DataField("on-hide")] - public DMFPropertyString OnHideCommand = new DMFPropertyString(""); + public DMFPropertyString OnHideCommand = new(""); } public sealed partial class ControlDescriptorMap : ControlDescriptor { [DataField("view-size")] - public DMFPropertyNum ViewSize = new DMFPropertyNum(0); + public DMFPropertyNum ViewSize = new(0); [DataField("style")] - public DMFPropertyString Style = new DMFPropertyString(""); + public DMFPropertyString Style = new(""); [DataField("text-mode")] - public DMFPropertyBool TextMode = new DMFPropertyBool(false); + public DMFPropertyBool TextMode = new(false); [DataField("icon-size")] - public DMFPropertyNum IconSize = new DMFPropertyNum(0); + public DMFPropertyNum IconSize = new(0); [DataField("letterbox")] - public DMFPropertyBool Letterbox = new DMFPropertyBool(true); + public DMFPropertyBool Letterbox = new(true); [DataField("zoom")] - public DMFPropertyNum Zoom = new DMFPropertyNum(0); + public DMFPropertyNum Zoom = new(0); [DataField("zoom-mode")] - public DMFPropertyString ZoomMode = new DMFPropertyString("normal"); + public DMFPropertyString ZoomMode = new("normal"); [DataField("on-show")] - public DMFPropertyString OnShowCommand = new DMFPropertyString(""); + public DMFPropertyString OnShowCommand = new(""); [DataField("on-hide")] - public DMFPropertyString OnHideCommand = new DMFPropertyString(""); + public DMFPropertyString OnHideCommand = new(""); } public sealed partial class ControlDescriptorBrowser : ControlDescriptor { [DataField("show-history")] - public DMFPropertyBool ShowHistory = new DMFPropertyBool(false); + public DMFPropertyBool ShowHistory = new(false); [DataField("show-url")] - public DMFPropertyBool ShowURL = new DMFPropertyBool(false); + public DMFPropertyBool ShowURL = new(false); [DataField("use-title")] - public DMFPropertyBool UseTitle = new DMFPropertyBool(false); + public DMFPropertyBool UseTitle = new(false); [DataField("auto-format")] - public DMFPropertyBool AutoFormat = new DMFPropertyBool(true); + public DMFPropertyBool AutoFormat = new(true); [DataField("on-show")] - public DMFPropertyString OnShowCommand = new DMFPropertyString(""); + public DMFPropertyString OnShowCommand = new(""); [DataField("on-hide")] - public DMFPropertyString OnHideCommand = new DMFPropertyString(""); + public DMFPropertyString OnHideCommand = new(""); } public sealed partial class ControlDescriptorLabel : ControlDescriptor { [DataField("text")] - public DMFPropertyString Text = new DMFPropertyString(""); + public DMFPropertyString Text = new(""); [DataField("align")] - public DMFPropertyString Align = new DMFPropertyString("center"); + public DMFPropertyString Align = new("center"); [DataField("text-wrap")] - public DMFPropertyBool TextWrap = new DMFPropertyBool(false); + public DMFPropertyBool TextWrap = new(false); [DataField("image")] - public DMFPropertyString Image = new DMFPropertyString(""); + public DMFPropertyString Image = new(""); [DataField("image-mode")] - public DMFPropertyString ImageMode = new DMFPropertyString("stretch"); + public DMFPropertyString ImageMode = new("stretch"); [DataField("keep-aspect")] - public DMFPropertyBool KeepAspect = new DMFPropertyBool(false); + public DMFPropertyBool KeepAspect = new(false); } public sealed partial class ControlDescriptorGrid : ControlDescriptor { [DataField("cells")] - public DMFPropertyVec2 Cells = new DMFPropertyVec2(0,0); + public DMFPropertyVec2 Cells = new(0,0); [DataField("cell-span")] - public DMFPropertyVec2 CellSpan = new DMFPropertyVec2(1,1); + public DMFPropertyVec2 CellSpan = new(1,1); [DataField("is-list")] - public DMFPropertyBool IsList = new DMFPropertyBool(false); + public DMFPropertyBool IsList = new(false); [DataField("show-lines")] - public DMFPropertyString ShowLines = new DMFPropertyString("both"); + public DMFPropertyString ShowLines = new("both"); [DataField("style")] - public DMFPropertyString Style = new DMFPropertyString(""); + public DMFPropertyString Style = new(""); [DataField("highlight-color")] - public DMFPropertyColor HighlightColor = new DMFPropertyColor(Color.Green); + public DMFPropertyColor HighlightColor = new(Color.Green); [DataField("line-color")] - public DMFPropertyColor LineColor = new DMFPropertyColor("#c0c0c0"); + public DMFPropertyColor LineColor = new("#c0c0c0"); [DataField("link-color")] - public DMFPropertyColor LinkColor = new DMFPropertyColor(Color.Blue); + public DMFPropertyColor LinkColor = new(Color.Blue); [DataField("visited-color")] - public DMFPropertyColor VisitedCOlor = new DMFPropertyColor(Color.Purple); + public DMFPropertyColor VisitedCOlor = new(Color.Purple); [DataField("current-cell")] - public DMFPropertyVec2 CurrentCell = new DMFPropertyVec2(0,0); + public DMFPropertyVec2 CurrentCell = new(0,0); [DataField("show-names")] - public DMFPropertyBool ShowNames = new DMFPropertyBool(true); + public DMFPropertyBool ShowNames = new(true); [DataField("small-icons")] - public DMFPropertyBool SmallIcons = new DMFPropertyBool(false); + public DMFPropertyBool SmallIcons = new(false); [DataField("enable-http-images")] - public DMFPropertyBool EnableHTTPImages = new DMFPropertyBool(false); + public DMFPropertyBool EnableHTTPImages = new(false); } public sealed partial class ControlDescriptorTab : ControlDescriptor { [DataField("multi-line")] - public DMFPropertyBool MultiLine = new DMFPropertyBool(true); + public DMFPropertyBool MultiLine = new(true); [DataField("current-tab")] - public DMFPropertyString CurrentTab = new DMFPropertyString(""); + public DMFPropertyString CurrentTab = new(""); [DataField("on-tab")] - public DMFPropertyString OnTab = new DMFPropertyString(""); + public DMFPropertyString OnTab = new(""); [DataField("tabs")] - public DMFPropertyString Tabs = new DMFPropertyString(""); + public DMFPropertyString Tabs = new(""); } public sealed partial class ControlDescriptorBar : ControlDescriptor { [DataField("width")] - public DMFPropertyNum Width = new DMFPropertyNum(10); //width of the progress bar in pixels. In the default EAST dir, this is more accurately thought of as "height" + public DMFPropertyNum Width = new(10); //width of the progress bar in pixels. In the default EAST dir, this is more accurately thought of as "height" [DataField("dir")] - public DMFPropertyString Dir = new DMFPropertyString("east"); //valid values: north/east/south/west/clockwise/cw/counterclockwise/ccw + public DMFPropertyString Dir = new("east"); //valid values: north/east/south/west/clockwise/cw/counterclockwise/ccw [DataField("angle1")] - public DMFPropertyNum Angle1 = new DMFPropertyNum(0); //start angle + public DMFPropertyNum Angle1 = new(0); //start angle [DataField("angle2")] - public DMFPropertyNum Angle2 = new DMFPropertyNum(180); //end angle + public DMFPropertyNum Angle2 = new(180); //end angle [DataField("bar-color")] - public DMFPropertyColor BarColor = new DMFPropertyColor(Color.Transparent); //insanely, the default causes the bar not to render regardless of value + public DMFPropertyColor BarColor = new(Color.Transparent); //insanely, the default causes the bar not to render regardless of value [DataField("is-slider")] - public DMFPropertyBool IsSlider = new DMFPropertyBool(false); + public DMFPropertyBool IsSlider = new(false); [DataField("value")] - public DMFPropertyNum Value = new DMFPropertyNum(0f); //position of the progress bar + public DMFPropertyNum Value = new(0f); //position of the progress bar [DataField("on-change")] - public DMFPropertyString OnChange = new DMFPropertyString(""); + public DMFPropertyString OnChange = new(""); }