esta assim
if(Menu && Directx_Font) {
pDevice->SetRenderState(D3DRS_ZENABLE, D3DZB_FALSE);
GetTimeFormat(NULL, NULL, NULL, NULL, Timestruct, 15);
DrawBox(PosX - 10, PosY - 22, 162, 20, Black, Red, pDevice);//Draw box do titulo.
DrawBorder(PosX - 10, PosY - 22, 162, 20, 1, Red, pDevice);//Borda da box do titulo.
DrawText(pDevice, PosX , PosY - 20, Red, MenuTitle);// Titulo do hack. MenuTitle declaração, então deve mudar la em cima.
sprintf_s(TimeString, "%s", Timestruct);// Relogio.
DrawText(pDevice, PosX + 100, PosY - 20, Red, TimeString);// Texto do Relogio.
DrawBox(PosX - 10, PosY, 162, 660, Black, Red, pDevice);// Draw Box Principal //Cada vez que for adicionar uma nova função aumente o INT h (50) em 20 em 20 por exemplo, 50 + 20 = 70, 70 + 20 = 100, Espero queenda.
DrawBorder(PosX - 10, PosY, 162, 660, 1, Red, pDevice); //Borda da box principal.
DrawBorder(PosX - 10, Posy + 2 + (MenuSelection * 15), 162, 13, 1, Red, pDevice); // Selection
Current = 1;
if(GetAsyncKeyState(VK_UP)&1)
---------- Post added at 05:50 PM ---------- Previous post was at 05:49 PM ----------
e assim
void Additem(char* Text, int MaxValue, int &Value, int Kind, char** Opt, LPDIRECT3DDEVICE9 pDevice)
{
extern int MenuSelection, PosX, PosY, Posy, Current;
extern bool Menu;
if(Menu) {
if(MenuSelection == Current)
{
if(GetAsyncKeyState(VK_RIGHT)&1) {
if(Value < MaxValue)
Value++;
} else if(GetAsyncKeyState(VK_LEFT)&1) {
if(Value > 0)
Value--;
}
}
if(MenuSelection == Current) {
DrawText(pDevice, PosX - 5, Posy + (Current * 15), Blue,Text);
DrawText(pDevice, PosX + 120, Posy + (Current * 15), Blue,Opt[Value]);
} else if(Value > 0) {
if(Kind == 1) {
} else {
DrawText(pDevice, PosX - 5, Posy + (Current * 15), Blue, Text); // Cor da Letra da Função Quando Ativada
DrawText(pDevice, PosX + 120, Posy + (Current * 15), Blue, Opt[Value]); // Cor da Letra da Função Quando Ativada
}
} else {
if(Kind == 1) {
} else {
DrawText(pDevice, PosX - 5, Posy + (Current * 15), Blue, Text); // Cor da Letra da Função Quando Desativada
DrawText(pDevice, PosX + 120, Posy + (Current * 15), Blue, Opt[Value]); // Cor da Letra da Função Quando Desativada
}
}
Current++;
}
}
---------- Post added at 05:51 PM ---------- Previous post was at 05:50 PM ----------
@
Coder.Anonymous