Code:
void ExperTHackArrowList(int xxx,int yyy,char* Text,int MaxOpt,int &VariavelNome,char** Opt,LPDIRECT3DDEVICE9 pDevice)
{
DrawBorder(xxx - 4,yyy - 3,12,10,1,White,pDevice);
DrawBorder(xxx + 187,yyy - 3,12,10,1,White,pDevice);
PrintText(Directx_Font,xxx + 12,yyy - 5,Red,Text);
PrintText(Directx_Font,xxx,yyy - 5,Red,"<");
PrintText(Directx_Font,xxx + 190,yyy - 5,Red,">");
if(MouseIsOver(xxx,yyy - 5,10,10)&& GetAsyncKeyState(VK_LBUTTON)&1)
{
if(VariavelNome > 0)
VariavelNome--;
}
if(MouseIsOver(xxx + 190,yyy,10,10) && GetAsyncKeyState(VK_LBUTTON)&1)
{
if(VariavelNome < MaxOpt)
VariavelNome++;
}
if(VariavelNome > 0)
{
DrawFunction(pDevice,xxx + 170, yyy - 5,Green,Opt[VariavelNome]);
} else {
DrawFunction(pDevice,xxx + 170,yyy - 5,Red,Opt[VariavelNome]);
}
} Creditos :