slt voila g prit une source d'un menu et je voudrai mettre une image en background o lieu d'une couleur ,voila la zone specifie:
int x=cvar.menu_x, y=cvar.menu_y, w=cvar.menu_w;
enum{ TEXT_H = 20 };
int title_h = TEXT_H+5;
int frame_y = cvar.menu_y - title_h;
int frame_h = items.size()*TEXT_H + title_h;
// title background
tintArea(x,frame_y,w,title_h,colorList.get(21));
// upper background
int h1 = curMenu->selection*TEXT_H;
if(h1)
{
tintArea(x,y,w,h1,colorList.get(21));
y+=h1;
}
// selection background
tintArea(x,y,w,TEXT_H,colorList.get(22));
y+=TEXT_H;
// lower background
int numItemsLeft = items.size() - curMenu->selection - 1;
if(numItemsLeft>0)
{
tintArea(x,y,w,numItemsLeft*TEXT_H,colorList.get(21));
}
// draw frame
// title text
gEngfuncs.pfnDrawSetTextColor (255,255,0);
gEngfuncs.pfnDrawConsoleString(cvar.menu_x+10,frame_y+5, const_cast<char*>(curMenu->name.c_str()));
Merci D'avance