Draw() public method

public Draw ( XBaseWindow window ) : void
window XBaseWindow
return void
示例#1
0
        public override void OnXGUI()
        {
            if (null != codeObject)
            {
                DoButton <XCodeObject>("SaveTemplate", SaveTemplete, codeObject);
                DoButton("Clean", () => codeObject = null);
                DoButton("Compile", Compile);
                DoButton("Help MemberAttributes", () =>
                {
                    for (int i = 0; i <= 61440; i++)
                    {
                        XLogger.Log(Enum.ToObject(typeof(MemberAttributes), i).ToString());
                    }
                });

                codeObject.Draw(this);
            }
            else
            {
                if (CreateSpaceButton("Create"))
                {
                    GenerateNewCode();
                }
                DoButton("OpenTemplate", () => codeObject = OpenTemplate());
            }
        }
示例#2
0
        public override void OnXGUI()
        {
            if (null != codeObject)
            {
                DoButton <ScriptableObject>("SaveTemplate", SaveTemplete, codeObject);
                DoButton("Clean", () => codeObject = null);
                DoButton("Compile", Compile);

                codeObject.Draw(this);
            }
            else
            {
                if (CreateSpaceButton("Create"))
                {
                    GenerateNewCode();
                }
                DoButton("OpenTemplate", () => codeObject = OpenTemplate());
            }
        }