Ejemplo n.º 1
0
        public override void    OnGUIOptions(NGReplayWindow window)
        {
            EditorGUI.BeginChangeCheck();
            Utility.content.text    = "       ";
            Utility.content.tooltip = "Keep Aspect Ratio";
            GUILayout.Toggle(this.keepAspectRatio, Utility.content, GeneralStyles.ToolbarButton);
            Utility.content.tooltip = null;
            if (EditorGUI.EndChangeCheck() == true)
            {
                this.keepAspectRatio = !this.keepAspectRatio;
            }

            Rect r2 = GUILayoutUtility.GetLastRect();

            r2.xMin += 6F;
            r2.xMax -= 5F;
            r2.yMin += 2F;
            r2.yMax -= 2F;
            Utility.DrawUnfillRect(r2, EditorStyles.label.normal.textColor);

            r2.xMin += 5F;
            r2.xMax -= 5F;
            r2.yMin += 1F;
            r2.yMax -= 2F;
            Utility.DrawRectDotted(r2, window.position, Color.blue, 0.001F);
        }
Ejemplo n.º 2
0
 public virtual void     OnGUIOptions(NGReplayWindow window)
 {
 }