示例#1
0
 protected override void content()
 {
     /* markers toggles */
     GUILayout.BeginVertical();
     {
         GUILayout.BeginHorizontal();
         {
             for (int i = 0; i < 3; i++)
             {
                 MarkerType marker        = (MarkerType)i;
                 bool       visibleBefore = MarkerManager.MarkerVisible(marker);
                 bool       visibleAfter  = GUILayout.Toggle(visibleBefore, marker.ToString());
                 if (visibleBefore != visibleAfter)
                 {
                     MarkerManager.SetMarkerVisibility(marker, visibleAfter);
                 }
             }
         }
         GUILayout.EndHorizontal();
         GUILayout.BeginHorizontal();
         {
             GUILayout.Label("Size", MainWindow.style.sizeLabel);
             Settings.marker_scale = GUILayout.HorizontalSlider(Settings.marker_scale, 0, 1);
         }
         GUILayout.EndHorizontal();
     }
     GUILayout.EndVertical();
 }