Exemplo n.º 1
0
 private static void DoDegreeField <T>(string name, EditableGUIField <T> field)
 {
     GUILayout.BeginHorizontal();
     {
         GUILayout.Label(name + ":");
         field.LayoutTextField();
         GUILayout.Label("°");
     }
     GUILayout.EndHorizontal();
 }
Exemplo n.º 2
0
        public void OnGui(int windowID)
        {
            if (!_guiInitialized)
            {
                _glideslopeField          = new EditableGUIField <double>(_initialGlideslopeValue, DoubleConvertDelegate);
                _glideslopeToleranceField = new EditableGUIField <double>(_initialTargetGlideslopeValue, DoubleConvertDelegate);

                _guiInitialized = true;
            }

            DoDegreeField("Glideslope", _glideslopeField);
            DoDegreeField("Glideslope tolerance", _glideslopeToleranceField);

            ApplyValues();
        }