Example #1
0
        public PopOutTextTabWidget(TabPage tabPageControledByTab, string internalTabName, Vector2 minSize, double pointSize)
            : base(internalTabName, new GuiWidget(), new GuiWidget(), new GuiWidget(), tabPageControledByTab)
        {
            RGBA_Bytes selectedTextColor       = ActiveTheme.Instance.PrimaryTextColor;
            RGBA_Bytes selectedBackgroundColor = new RGBA_Bytes();
            RGBA_Bytes normalTextColor         = ActiveTheme.Instance.TabLabelUnselected;
            RGBA_Bytes normalBackgroundColor   = new RGBA_Bytes();

            AddText(tabPageControledByTab.Text, selectedWidget, selectedTextColor, selectedBackgroundColor, pointSize);
            AddText(tabPageControledByTab.Text, normalWidget, normalTextColor, normalBackgroundColor, pointSize);

            tabPageControledByTab.TextChanged += tabPageControledByTab_TextChanged;

            SetBoundsToEncloseChildren();

            popOutManager = new PopOutManager(TabPage, minSize, tabPageControledByTab.Text, internalTabName);
        }