πŸ™ Rainbow bar

Posts 1–7 of 7 Β· Page 1 of 1
πŸ™ Rainbow bar
Hi guys,
Can somebody help me with this rainbow bar it should be linked to tabs but it cant get over the menu to the left however i change m_x.
The rainbow should be linked to the tabs.

The left side i need it to be full rainbow rect over the menu thanks.
Code:
bool CGUI::DrawWindow(CWindow* window)
{
	static float rainbow;
	// Main Window
	Render::GradientV(window->m_x + 2, window->m_y + 2, window->m_iWidth - 4, 26, Color(24, 24, 24, 255), Color(24, 24, 24, 255));//ramka u gory menu gdzie nazwa
	Render::Clear(window->m_x + 2, window->m_y + 2 + 26, window->m_iWidth - 4, window->m_iHeight - 4 - 26, Color(24, 24, 24, 255));//menu
	Render::Text(window->m_x + 350, window->m_y + 8, Color(255, 255, 255, 255), Render::Fonts::MenuBold, window->Title.c_str());

	//Inner
	Render::Outline(window->m_x + 7, window->m_y + 1 + 26, window->m_iWidth - 4 - 10, window->m_iHeight - 2 - 6 - 26, Color(24, 24, 24, 255));
	Render::Clear(window->m_x + 8, window->m_y + 1 + 27, window->m_iWidth - 4 - 12, window->m_iHeight - 2 - 8 - 26, Color(255, 255, 255, 0));

	int TabCount = window->Tabs.size();
	if (TabCount) // If there are some tabs
	{
		for (int i = 0; i < TabCount; i++)
		{
			RECT TabArea = { window->m_x, window->m_y + UI_WIN_TITLEHEIGHT + UI_WIN_TOPHEIGHT + (i*UI_TAB_HEIGHT) , UI_TAB_WIDTH, UI_TAB_HEIGHT };
			CTab *tab = window->Tabs[i];

			Color txtColor = Color(229, 229, 229, 255);

			if (window->SelectedTab == tab)
			{
				// Selected
				txtColor = Color(255, 0, 0, 255);
			}
			else if (IsMouseInRegion(TabArea))
			{
				// Hover
				txtColor = Color(0, 83, 0, 255);
			}

			Render::Text(TabArea.left + 32, TabArea.top + 8, txtColor, Render::Fonts::MenuBold, tab->Title.c_str());
			Render::DrawRectRainbow(window->m_x + 13.5, window->m_y + 1 + 27, window->m_iWidth - 4 - 12, 2, 0.003f, rainbow);
		}
	}
maybe this will help

#define UI_TAB_WIDTH 150
#define UI_TAB_HEIGHT 32
just press delete, if you cant fix anything in ayyware then you clearly dont deserve anything
Quote Originally Posted by certmemer View Post
just press delete, if you cant fix anything in ayyware then you clearly dont deserve anything
Don't bully him all he wants is a shitty looking rainbow bar on his menu.
Quote Originally Posted by Joplin View Post
Don't bully him all he wants is a shitty looking rainbow bar on his menu.
he wants 'pasted' shitty looking rainbow bar...
Quote Originally Posted by certmemer View Post
just press delete, if you cant fix anything in ayyware then you clearly dont deserve anything
I can't even look at the source of gayyware, it hurts my eyes. I suggest the OP to move that sauce into the trash can where it belongs to and leave it there forever + http://www.learncpp.com/
Quote Originally Posted by Zaczero View Post


he wants 'pasted' shitty looking rainbow bar...
Hehe
// to short
Render:rawRectRainbow(window->m_x + 13.5, window->m_y + 1 + 27, window->m_iWidth - 4 - 12, 2, 0.003f, rainbow);

Gl with math
Posts 1–7 of 7 Β· Page 1 of 1

Post a Reply

Similar Threads

Tags for this Thread

None

Talk with us