darts when you choose a function
I can give the code to put the darts when you choose the function?
as this

as this



void D3DMenu::MenuShow(float x, float y, ID3DXFont* pFont1, LPDIRECT3DDEVICE9 pDevice)
{
int i, val;
DWORD color;
char text[100];
if (!Mvisible) return;
Boarders(pDevice,pFont1);
if (Mtitle[0]) {
y+=(Mysize+8);
}
for (i=0; i<Mmax; i++) {
val=(MENU[i]->var)?(*MENU[i]->var):0;
sprintf(text, "%s", MENU[i]->txt);
if (i==Mpos){
color=MCOLOR_CURRENT;
sprintf(text, "->%s", MENU[i]->txt);}
else if (MENU[i]->typ==MENUFOLDER)
color=MCOLOR_FOLDER;
else if (MENU[i]->typ==MENUTEXT)
color=MCOLOR_TEXT;
else
color=(val)?MCOLOR_ACTIVE:MCOLOR_INACTIVE;
if (MENU[i]->opt)
{
if (MENU[i]->typ==MENUFOLDER){
DrawTextL(x+3, y, color,text, pFont1);
y = y + 2;
}else{
DrawTextL(x+3, y, color,text, pFont1);
}
}
if (MENU[i]->opt) {
if (MENU[i]->typ==MENUTEXT)
DrawTextR((x+Mxofs), y, color,(char *)MENU[i]->opt, pFont1);
else
DrawTextR((x+Mxofs), y, color,(char *)MENU[i]->opt[val], pFont1);
}
y+=Mysize;
}
YPOS=y;
}
void D3DMenu::MenuNav(void)
{
if (GetAsyncKeyState(VK_INSERT)&1) Mvisible=(!Mvisible);
if (!Mvisible) return;
if (GetAsyncKeyState(VK_UP)&1) {
do {
Mpos--;
if (Mpos<0) Mpos=Mmax-1;
} while (MENU[Mpos]->typ==MENUTEXT);
} else if (GetAsyncKeyState(VK_DOWN)&1) {
do {
Mpos++;
if (Mpos==Mmax) Mpos=0;
} while (MENU[Mpos]->typ==MENUTEXT);
} else if (MENU[Mpos]->var) {
int dir=0;
if (GetAsyncKeyState(VK_LEFT )&1 && *MENU[Mpos]->var > 0 ) dir=-1;
if (GetAsyncKeyState(VK_RIGHT)&1 && *MENU[Mpos]->var < (MENU[Mpos]->maxvalue-1)) dir=1;
if (dir) {
*MENU[Mpos]->var += dir;
if (MENU[Mpos]->typ==MENUFOLDER) Mmax=0;
if (MENU[Mpos]->typ==MENUCAT) Mmax=0;
}
}
}