예제 #1
0
        public void AddItem(string label, GUIComponent item)
        {
            Items[label] = new FormEntry
            {
                Component = item,
                Label     = new Label(GUI, this, label, GUI.DefaultFont)
                {
                    Alignment = Drawer2D.Alignment.Right
                }
            };

            UpdateSizes();
        }
예제 #2
0
        public void AddItem(string label, GUIComponent item)
        {
            Items[label] = new FormEntry
            {
                Component = item,
                Label = new Label(GUI, this, label, GUI.DefaultFont)
                {
                    Alignment = Drawer2D.Alignment.Right
                }
            };

            UpdateSizes();
        }