Thread: Rainbow bar

Results 1 to 7 of 7
  1. #1
    KingJsi123's Avatar
    Join Date
    Jun 2016
    Gender
    male
    Posts
    66
    Reputation
    10
    Thanks
    0
    My Mood
    Inspired

    Unhappy 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
    Last edited by KingJsi123; 04-21-2017 at 10:07 AM.

  2. #2
    certmemer's Avatar
    Join Date
    Feb 2016
    Gender
    female
    Location
    Southampton
    Posts
    2,511
    Reputation
    104
    Thanks
    25,994
    just press delete, if you cant fix anything in ayyware then you clearly dont deserve anything

  3. The Following 2 Users Say Thank You to certmemer For This Useful Post:

    gigagiga (04-24-2017),Zaczero (04-21-2017)

  4. #3
    Joplin's Avatar
    Join Date
    Nov 2016
    Gender
    male
    Location
    NaziLand
    Posts
    467
    Reputation
    10
    Thanks
    1,753
    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.

  5. The Following User Says Thank You to Joplin For This Useful Post:

    Gallanis (12-07-2017)

  6. #4
    Zaczero's Avatar
    Join Date
    Oct 2013
    Gender
    male
    Location
    localhost
    Posts
    3,288
    Reputation
    1517
    Thanks
    14,262
    My Mood
    Angelic
    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...
    . . . malsignature.com . . .



    [ global rules ] [ scam report ] [ image title ] [ name change ] [ anime force ]
    [ league of legends marketplace rules ] [ battlefield marketplace rules ]

    "because everytime you post a picture of anime in here
    your virginity's time increases by 1 month"
    ~Smoke 2/18/2018


    Former Staff 09-29-2018
    Battlefield Minion 07-21-2018
    Premium Seller 03-04-2018
    Publicist 12-10-2017
    League of Legends Minion 05-31-2017
    Premium 02-05-2017
    Member 10-13-2013

  7. The Following 3 Users Say Thank You to Zaczero For This Useful Post:

    gigagiga (04-24-2017),gspartn (05-02-2017),KMWTW (04-22-2017)

  8. #5
    Don Coderleone's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Hungary
    Posts
    465
    Reputation
    17
    Thanks
    134
    My Mood
    Relaxed
    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 + https://www.learncpp.com/
    Last edited by Don Coderleone; 04-21-2017 at 05:22 PM.

  9. The Following 2 Users Say Thank You to Don Coderleone For This Useful Post:

    certmemer (04-21-2017),gigagiga (04-24-2017)

  10. #6
    Joplin's Avatar
    Join Date
    Nov 2016
    Gender
    male
    Location
    NaziLand
    Posts
    467
    Reputation
    10
    Thanks
    1,753
    Quote Originally Posted by Zaczero View Post


    he wants 'pasted' shitty looking rainbow bar...
    Hehe
    // to short

  11. #7
    Joplin's Avatar
    Join Date
    Nov 2016
    Gender
    male
    Location
    NaziLand
    Posts
    467
    Reputation
    10
    Thanks
    1,753
    Render:rawRectRainbow(window->m_x + 13.5, window->m_y + 1 + 27, window->m_iWidth - 4 - 12, 2, 0.003f, rainbow);

    Gl with math

Similar Threads

  1. How to Change the Start-Bar in Windows XP
    By Jackal in forum General
    Replies: 31
    Last Post: 05-31-2015, 08:29 PM
  2. User bars
    By mostwanted in forum Spammers Corner
    Replies: 4
    Last Post: 08-21-2009, 05:28 PM
  3. i-Bar
    By Dave84311 in forum General
    Replies: 8
    Last Post: 06-10-2006, 08:12 PM
  4. User bar
    By jadedfrog in forum Help & Requests
    Replies: 1
    Last Post: 02-21-2006, 10:16 AM
  5. MPGH's User Bar
    By mostwanted in forum General
    Replies: 17
    Last Post: 02-20-2006, 12:34 AM