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: