protected override void DrawContent(Rect rect) { var vGrid = rect.GetVGrid(GUIPlus.LargePadding, -1f, 70f); var l = new ListingPlus(); l.BeginScrollView(vGrid[1], ref _scrollPosition, ref _scrollView); foreach (var preset in LayoutPreset.UserList) { if (_selected == null) { _selected = preset; } if (l.RadioButton_NewTemp(preset.Label, _selected == preset)) { _selected = preset; } } l.EndScrollView(ref _scrollView); l.Begin(vGrid[2]); var buttonGrid = l.GetButtonGrid(-1f, -1f); if (GUIPlus.DrawButton(buttonGrid[1], Lang.Get("Dialog_Presets.Delete"), enabled: _selected?.IsUserMade ?? false)) { ConfirmDelete(); } if (GUIPlus.DrawButton(buttonGrid[2], Lang.Get("Button.Close"))) { Close(); } l.End(); }