示例#1
0
        public EleInput CreateInput(string starting, bool multiline)
        {
            if (this.head.rect == null)
            {
                return(null);
            }

            EleInput input = this.uiFactory.CreateInput(this.head.rect, multiline);

            return(input);
        }
示例#2
0
        public EleInput CreateInput(EleBaseRect parent, bool multiline = false)
        {
            EleInput inp =
                new EleInput(
                    parent,
                    "",
                    this.inputFont.font,
                    this.inputFont.color,
                    this.inputFont.fontSize,
                    multiline,
                    this.inputSprite,
                    this.inputPadding,
                    new Vector2(-1.0f, -1.0f));

            return(inp);
        }
示例#3
0
        public EleInput AddInput(string starting, bool multiline, float proportion, LFlag flags)
        {
            EleBaseSizer szr = this.head.GetSizer();

            if (szr == null)
            {
                return(null);
            }

            EleInput input = this.uiFactory.CreateInput(this.head.rect, multiline);

            if (string.IsNullOrEmpty(starting) == false)
            {
                input.input.text = starting;
            }

            szr.Add(input, proportion, flags);
            return(input);
        }