Ejemplo n.º 1
0
 public static IMGUI.TextboxFlags DrawGenericLabelTextboxPair(RectangleF bounds, float labelWidth, string labelText, ref string textboxText, IMGUI.TextboxType type)
 {
     DrawGenericLabel(new RectangleF(bounds.Position, labelWidth, bounds.height), labelText);
     return(DrawGenericTextbox(new RectangleF(bounds.Position.X + labelWidth, bounds.Position.Y, bounds.width - labelWidth, bounds.height), ref textboxText, type));
 }
Ejemplo n.º 2
0
        public static IMGUI.TextboxFlags DrawGenericTextbox(RectangleF bounds, ref string text, IMGUI.TextboxType type)
        {
            if (ButtonNineslice == null)
            {
                NoRegisterError("ButtonNineSlice");
                return(IMGUI.TextboxFlags.None);
            }

            if (TextboxFont.font == null)
            {
                NoRegisterError("TextboxFont");
                return(IMGUI.TextboxFlags.None);
            }

            if (!LabelColor.HasValue)
            {
                NoRegisterError("LabelColor");
                return(IMGUI.TextboxFlags.None);
            }

            return(IMGUI.Textbox(GetTextPanelContent(bounds, ButtonScale), TextboxFont, type, ref text));
        }