public QuickActionMenu(HudParentBase parent = null) : base(parent) { propertyList = new PropertyListMenu(this) { Visible = false }; propertyWheel = new PropertyWheelMenu(this) { Visible = false }; propertyWheel.RegisterShortcut(new PropertyWheelShortcutEntry() { Text = "Open List Menu", ShortcutAction = () => OpenPropertyList(true) }); debugText = new Label(this) { Visible = false, AutoResize = true, BuilderMode = TextBuilderModes.Lined, ParentAlignment = ParentAlignments.Left }; notifText = new StringBuilder(); }
public PropertyWheelMenuBody(PropertyWheelMenu parent) : base(parent) { this.propertyWheelMenu = parent; background = new TexturedBox(this) { Material = Material.CircleMat, Color = headerColor, Size = Vector2.Zero, }; summaryLabel = new Label(this) { AutoResize = false, BuilderMode = TextBuilderModes.Wrapped, Width = 200f, }; notificationText = new Label(this) { AutoResize = true, ParentAlignment = ParentAlignments.Bottom | ParentAlignments.Inner, BuilderMode = TextBuilderModes.Wrapped, Width = 150f, Offset = new Vector2(0f, 30f), }; colorWidget = new ColorWidget(this) { Visible = false }; colorWidgetHSV = new ColorWidgetHSV(this) { Visible = false }; comboWidget = new ComboWidget(this) { Visible = false }; floatWidget = new FloatWidget(this) { Visible = false }; textWidget = new TextWidget(this) { Visible = false }; summaryBuilder = new RichText(); CloseWidgetCallback = CloseWidget; textBuf = new StringBuilder(); notificationTimer = new Stopwatch(); Padding = new Vector2(wheelBodyPeekPadding); Size = new Vector2(maxPeekWrapWidth); }