示例#1
0
        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
        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();
        }