/// <summary> /// The button is centered on the position; /// </summary> /// <param name="_parent"></param> public UiMainMenuButton(int _x, int _y, MenuButtonType _type, NxOverlay _parent) : base(_parent) { x = _x; y = _y; m_Type = _type; //background Color = EDColors.getColor(EDColors.ORANGE, 0.2f); m_originRec = new Rectangle(x - (WIDTH / 2), y - (HEIGHT / 2), WIDTH, HEIGHT); m_background = new NxRectangle(m_originRec.X, m_originRec.Y, m_originRec.Width, m_originRec.Height, Color); Add(m_background); //Title m_TopText = new NxSimpleText(x, m_background.y + 5, getMenuTitle(), EDColors.ORANGE, 34, NxFonts.EuroCapital); m_TopText.centerHorizontal = true; Add(m_TopText); //Icon m_Icon = new NxImage(m_background.x + (WIDTH - ICON_SIZE) / 2, m_background.y + 50, ResHelper.GetResourceImage(Assembly.GetExecutingAssembly(), getIconPath())); Add(m_Icon); //Bottom Text int _botHeight = 80; int _padding = 5; m_BottomText = new NxTextbox(m_background.x + _padding, m_background.y + (HEIGHT - _botHeight) - _padding, WIDTH - _padding * 2, _botHeight, getBottomText(), EDColors.ORANGE, 19); m_BottomText.showBounds = true; m_BottomText.boundColors = EDColors.getColor(EDColors.ORANGE, .5f); Add(m_BottomText); }
public UiSearchBookmarkCard(NxOverlay _parent) : base(_parent) { RelativeChildPos = true; width = 250; height = 120; m_type = new NxSimpleText(2, 2, "", EDColors.YELLOW, 18, NxFonts.EuroCapital); m_content = new NxSimpleText[10]; for (int i = 0; i < m_content.Length; i++) { m_content[i] = new NxSimpleText(2, 20 + i * 20, "content", EDColors.ORANGE); m_content[i].Color = EDColors.LIGHTBLUE; Add(m_content[i]); m_content[i].isVisible = false; } Add(m_type); }
public NxGroupAutoCursor(NxOverlay _parent) : base(_parent) { m_VirtualCursor = new Rectangle(0, 0, 30, 30); }
public NxGroupOrganized(NxOverlay _parent) : base(_parent) { }