Esempio n. 1
0
        public void AddTitleBarWidget(PanelWidget widget)
        {
            widget.Scene = Scene;
            widget.Initialize();
            widget.VisualPriority = VisualPriority;
            widget.Alpha = Alpha;

            TitleBarWidgets.Add(widget);

            RecomputePositions = true;
        }
Esempio n. 2
0
        public virtual void AddWidget(string name, PanelWidget widget)
        {
            widget.Name = name;
            widget.Scene = Scene;
            widget.Initialize();
            widget.VisualPriority = VisualPriority;
            widget.Alpha = Alpha;

            Widgets.Add(new KeyValuePair<string, PanelWidget>(name, widget));

            RecomputePositions = true;
        }