"XL" Tabs

Posts 1–15 of 41 · Page 1 of 3
"XL" Tabs
Well i thought id release something to you people since i havent for a wile.
speedforyou wanted me to make these for him, so i was bored and made them for everybody, who wants to use them (:

heres what it looks like:



and the source:
Code:
bool tabs = false;
bool visuals = false;
bool removals = false;
bool modifier = false;
bool others = false;
Code:
void InitTabs(LPDIRECT3DDEVICE9 pDevice)
{
	if(GetAsyncKeyState(VK_HOME)&1) {
		tabs =! tabs;
	}

	if(tabs)
	{
		DrawBox(0,1,256,50,Black,White,pDevice);
		PrintText(pFont,100,20,White,"[ Visuals ]");

		DrawBox(256,1,256,50,Black,White,pDevice);
		PrintText(pFont,356,20,White,"[ Removals ]");

		DrawBox(512,1,256,50,Black,White,pDevice);
		PrintText(pFont,612,20,White,"[ Modifier ]");

		DrawBox(768,1,254,50,Black,White,pDevice);
		PrintText(pFont,886,20,White,"[ Others ]");

		POINT cPos;
		GetCursorPos(&cPos);

		if(cPos.x > 0 && cPos.x < 256 && cPos.y > 1 && cPos.y < 50) {
			if(GetAsyncKeyState(VK_LBUTTON)<0) {
				visuals = true;
				removals = false;
				modifier = false;
				others = false;
			}
		}

		if(cPos.x > 256 && cPos.x < 512 && cPos.y > 1 && cPos.y < 50) {
			if(GetAsyncKeyState(VK_LBUTTON)<0) {
				visuals = false;;
				removals = true;
				modifier = false;
				others = false;
			}
		}

		if(cPos.x > 512 && cPos.x < 768 && cPos.y > 1 && cPos.y < 50) {
			if(GetAsyncKeyState(VK_LBUTTON)<0) {
				visuals = false;;
				removals = false;
				modifier = true;
				others = false;
			}
		}

		if(cPos.x > 768 && cPos.x < 1024 && cPos.y > 1 && cPos.y < 50) {
			if(GetAsyncKeyState(VK_LBUTTON)<0) {
				visuals = false;;
				removals = false;
				modifier = false;
				others = true;
			}
		}

		if(visuals) {
			DrawBorder(0,1,256,50,1,Green,pDevice);
		}


		if(removals) {
			DrawBorder(256,1,256,50,1,Green,pDevice);
		}

		if(modifier) {
			DrawBorder(512,1,256,50,1,Green,pDevice);
		}

		if(others) {
			DrawBorder(768,1,254,50,1,Green,pDevice);
		}
	}
}
and to use:

Code:
InitTabs(pDevice);
Credit me if you use (:
Not really hard to make but thanks. Looks more neater that i thought it would look.
you said that u use classes >:0
Quote Originally Posted by GodHack2 View Post
you said that u use classes >:0
not in source i release public /
You're fucked if someone has a different screen resolution.
Quote Originally Posted by NOOB View Post
You're fucked if someone has a different screen resolution.
haha yerp. Well most people i know play on 1024x768 so meh.
Quote Originally Posted by ac1d_buRn View Post


haha yerp. Well most people i know play on 1024x768 so meh.
Code:
int ScreenWidth = GetSystemMetrics( 0 )
int NumOfTabs = 4
int TabSize = ScreenWidth / NumOfTabs

DrawBox(0,1,TabSize,50,Black,White,pDevice);

...

DrawBox(TabSize,1,TabSize * 2,50,Black,White,pDevice);
Quote Originally Posted by NOOB View Post


Code:
int ScreenWidth = GetSystemMetrics( 0 )
int NumOfTabs = 4
int TabSize = ScreenWidth / NumOfTabs

DrawBox(0,1,TabSize,50,Black,White,pDevice);

...

DrawBox(TabSize,1,TabSize * 2,50,Black,White,pDevice);
haha yes i was thinking about doing it that wayy.
Well, i d/c'ed xD maybe my PrintText function is a tad different?
Edit: Yep its my printtext (i got rid of it, and the tabs work gr8)
Quote Originally Posted by fvestrgenrl View Post
Well, i d/c'ed xD maybe my PrintText function is a tad different?
Edit: Yep its my printtext (i got rid of it, and the tabs work gr8)
How is it your print text function?
Hehe good job Acid. Looks like my way but clean code mine looks messy( the base i released) but really who cares
Noo acidburn T_T
I was making a menu like that LOL
Quote Originally Posted by flameswor10 View Post
Noo acidburn T_T
I was making a menu like that LOL
///
nice share + rep
but many part give me error
i am stupid ._.
Posts 1–15 of 41 · Page 1 of 3
This thread is closed for replies.

Tags for this Thread

None

Talk with us