コード例 #1
0
ファイル: EditorWindow.cs プロジェクト: akumetsuv/flood
        public void Init(Gwen.Renderer.Base renderer, string textureName)
        {
            this.renderer = renderer;
            skin = new Gwen.Skin.TexturedBase(renderer, textureName);
            Canvas = new Gwen.Control.Canvas(skin);

            ToolBar = new ToolBar(Canvas);
            DocumentTab = new DocumentTab(Canvas);

            if (GUIInitiated != null)
                GUIInitiated.Invoke();
        }
コード例 #2
0
ファイル: EditorGUI.cs プロジェクト: akumetsuv/flood
        public void Init(Gwen.Renderer.Base renderer, string textureName)
        {
            this.renderer = renderer;

            skin = new Gwen.Skin.TexturedBase(renderer, textureName);
            skin = new Gwen.Skin.Simple(renderer);
            skin.DefaultFont = new Font(renderer, "Courier", 10);
            canvas = new Gwen.Control.Canvas(skin);

            ToolBar = new ToolBar(canvas);

            DocumentTab = new DocumentTab(canvas);

            var label = new Gwen.Control.Label(canvas);
            canvas.AddChild(label);
            label.SetText("YOLO!");

            if (Initiated != null)
                Initiated.Invoke();
        }