Exemple #1
0
 public TextArea(int x, int y, DelegateOrValue<string> text)
         : base(x, y)
 {
     Text = text;
     Font = UIManager.TextFont;
     Color = "black";
     oldText = "";
 }
Exemple #2
0
        public TextBox(int x, int y, int width, int height, DelegateOrValue<string> text)
                : base(x, y)
        {
            Text = text;
            Width = width;
            Height = height;
            Font = UIManager.TextFont;

            DragPosition = -1;
        }
Exemple #3
0
        public ShuffButton(int x, int y, Number width, Number height, DelegateOrValue<string> text, ShuffUIEvent<ButtonClickedEvent> click)
        {
            Element = jQuery.Select("<div></div>");
            Element.CSS("position", "absolute");

            Text = text;

            Text.StaticValueChanges += (value) => { Element.Text(value); };

            Element.Text(Text);
            X = x;
            Y = y;
            Width = width;
            Height = height;
            Visible = true;
            WidgetExtensions.Button(Element);
            Element.Click(a => click(new ButtonClickedEvent(a.ClientX, a.ClientY)));

            ImportedExtensionMethods.DisableSelection(Element);
        }