Esempio n. 1
0
        /// <summary>
        ///If you simply want one text line, use this. GUCVisualText object will be vis.Texts[0]
        /// </summary>
        public static GUCVisual Create(string text, int x, int y, bool virtuals)
        {
            GUCVisual vis = new GUCVisual();

            vis.CreateText(text, x, y, virtuals);
            return(vis);
        }
Esempio n. 2
0
        public GUCTextBox(int x, int y, int w, bool fixedBorders)
        {
            pos               = new int[] { x, y };
            width             = w;
            this.fixedBorders = fixedBorders;

            inputVis = new GUCVisual(x, y, w, height);
            inputVis.CreateText("", 0, 0);

            cursorVis = new GUCVisual(x + cursorOffsetX, y + cursorOffsetY, cursorSize, cursorSize);
            cursorVis.SetBackTexture("CURSOR.TGA");

            leftArrow = new GUCVisual(x, y + (height - arrowSize) / 2, arrowSize, arrowSize);
            leftArrow.SetBackTexture("L.TGA");

            rightArrow = new GUCVisual(x + w - arrowSize, y + (height - arrowSize) / 2, arrowSize, arrowSize);
            rightArrow.SetBackTexture("R.TGA");
        }