public RadioList(UDim2 pos, UDim2 size, string label, List <RadioListElement> items)
 {
     this.Position = pos;
     this.Size     = size;
     this.text     = label;
     this.items    = items;
 }
        public RadioList addRadioList(UDim2 pos, UDim2 size, string txt, List <RadioListElement> items)
        {
            RadioList rl = new RadioList(pos, size, txt, items);

            this.elements.Add(rl);
            return(rl);
        }
        public Button addButton(UDim2 pos, UDim2 size, string txt)
        {
            Button b = new Button(pos, size, txt);

            this.elements.Add(b);
            return(b);
        }
        public Screen(UDim2 pos, UDim2 size, bool vis = true)
        {
            this.Position   = pos;
            this.Size       = size;
            this.visible    = vis;
            backgroundColor = Color.Transparent;
            buttonColor     = Color.CornflowerBlue;

            screens.Add(this);
        }
示例#5
0
 public UIElement(UDim2 pos, UDim2 size, string text)
 {
     this.Position = pos;
     this.Size     = size;
     this.text     = text;
 }
 public Button(UDim2 pos, UDim2 size, string txt)
 {
     this.Position = pos;
     this.Size     = size;
     this.text     = txt;
 }