public UIPanel(float x, float y, int w, int h, bool hastitle = false, string title = "", string titlefont = "", int titlesize = 0, eUIOrientation autoorientation = eUIOrientation.VERTICAL, bool hasscrolling = false, int scrollw = 0, int scrollh = 0, bool hasclose = false) { this.x = x; this.y = y; Width = w; Height = h; HasTitle = hastitle; Title = title; TitleFontSettings.FontName = titlefont; TitleFontSettings.FontSize = titlesize; if (hasscrolling) { HasScrolling = hasscrolling; ScrollWidth = scrollw; ScrollHeight = scrollh; } AutoOrientation = autoorientation; if (hasclose) { HasCloseButton = true; CloseButton = new UIButton(Width - BorderWidth - TitleMargin - 2, TitleMargin + BorderWidth + 2, 30, 30, "X", font: titlefont, fontsize: titlesize); CloseButton.SkipBaseRender = true; Add(CloseButton); } }
public UIAutoList(eUIOrientation orientation, int width, int height, int fixedindexwidth = 0, int fixedindexheight = 0, bool alternatesBackground = false) { AutoOrientation = orientation; MaxWidth = width; MaxHeight = height; FixedWidthPerIndex = fixedindexwidth; FixedHeightPerIndex = fixedindexheight; AlternateBackgrounds = alternatesBackground; }
public UITabView(float x, float y, int w, int h, bool hastitle = false, string title = "", string titlefont = "", int titlesize = 0, eUIOrientation autoorientation = eUIOrientation.VERTICAL, bool hasscrolling = false, int scrollw = 0, int scrollh = 0, bool hasclose = false, int buttonwidth = 0, int buttonheight = 30) : base(x, y, w, h, hastitle, title, titlefont, titlesize, autoorientation, hasscrolling, scrollw, scrollh, hasclose) { TabPanel = new UIPanel(0, 0, w, buttonheight, autoorientation: eUIOrientation.HORIZONTAL, hasscrolling: true); Add(TabPanel); DisplayPanel = new UIPanel(0, buttonheight, w, h - buttonheight, hasscrolling: true); Add(DisplayPanel); }