//public ToggleWidget PublishHead { get; private set; } //public ToggleWidget PublishPlanes { get; private set; } //public SenderWidget HeadSender { get; private set; } //public SenderWidget MarkersSender { get; private set; } void Awake() { DataPanelWidgets p = GetComponent<DataPanelWidgets>(); p.AddHeadTitleWidget("GUI Dialogs"); CloseButton = p.AddTrashButton(); HideButton = p.AddHideButton(); Listener = p.AddListener(); Frame = p.AddFrame(); FeedbackSender = p.AddSender(); p.UpdateSize(); gameObject.SetActive(false); }
void Awake() { DataPanelWidgets p = GetComponent <DataPanelWidgets>(); p.AddHeadTitleWidget("AR"); CloseButton = p.AddTrashButton(); HideButton = p.AddHideButton(); ResetButton = p.AddResetButton(); Frame = p.AddFrame(); Description = p.AddDataLabel("").SetHasRichText(true).SetAlignment(TextAnchor.MiddleCenter); WorldScale = p.AddSlider("World Scale").SetMinValue(0.01f).SetMaxValue(1f); AutoFocus = p.AddToggle("Enable AutoFocus"); PublishFrequency = p.AddDropdown("Publish AR camera images"); PublishFrequency.Options = new[] { "Off", "5 FPS", "10 FPS", "15 FPS", "20 FPS", "30 FPS" }; OcclusionQuality = p.AddDropdown("Occlusion Quality"); OcclusionQuality.Options = new[] { "Off", "Fastest", "Medium", "Best", }; ARMarkers = p.AddARMarker(); MarkerSender = p.AddSender(); ColorSender = p.AddSender(); DepthSender = p.AddSender(); DepthConfidenceSender = p.AddSender(); p.AddCollapsibleWidget("Publishers") .Attach(MarkerSender) .Attach(ColorSender) .Attach(DepthSender) .Attach(DepthConfidenceSender) .UpdateSize(); p.UpdateSize(); gameObject.SetActive(false); }