void DrawTexx(char *text,int x,int y,DWORD color,ID3DXFont* pFont)
{
RECT rect;
SetRect( &rect, x, y, x, y );
pFont->DrawTextA(NULL, text, -1, &rect, DT_NOCLIP, color);
}
if(WHC_MapColor==1)
{
DrawBox((int)x+ExTra_VerschiebungX+460,(int)y+ExTr a_VerschiebungY+180,(int)350,(int)150,BlackTrans,p Device);
DrawRectangle((int)x+ExTra_VerschiebungX+460,(int) y+ExTra_VerschiebungY+180,(int)350,(int)150,1,Yell ow,pDevice);
DrawTexx("--- ][ Color Box ][ ---",x+ExTra_VerschiebungX+570,y+ExTra_VerschiebungY+ 183,RED,pFont);
DrawRectangle((int)x+ExTra_VerschiebungX+474,(int) y+ExTra_VerschiebungY+205,(int)311,(int)100,2,Whit e,pDevice);
DrawTexx("Red:",x+ExTra_VerschiebungX+480,y+ExTra_ VerschiebungY+215,RED,pFont);
DrawRectangle((int)x+ExTra_VerschiebungX+520,(int) y+ExTra_VerschiebungY+215,(int)256,(int)15,1,White ,pDevice);
DrawBox((int)x+ExTra_VerschiebungX+521,(int)y+ExTr a_VerschiebungY+217,(int)WHC_mAFillRed,(int)12,Red ,pDevice);
DrawTexx("Blue:",x+ExTra_VerschiebungX+480,y+ExTra _VerschiebungY+245,Blue,pFont);
DrawRectangle((int)x+ExTra_VerschiebungX+520,(int) y+ExTra_VerschiebungY+245,(int)256,(int)15,1,White ,pDevice);
DrawBox((int)x+ExTra_VerschiebungX+521,(int)y+ExTr a_VerschiebungY+247,(int)WHC_mAFillBlue,(int)12,Bl ue,pDevice);
DrawTexx("Green:",x+ExTra_VerschiebungX+480,y+ExTr a_VerschiebungY+275,Green,pFont);
DrawRectangle((int)x+ExTra_VerschiebungX+520,(int) y+ExTra_VerschiebungY+275,(int)256,(int)15,1,White ,pDevice);
DrawBox((int)x+ExTra_VerschiebungX+521,(int)y+ExTr a_VerschiebungY+277,(int)WHC_mAFillGreen,(int)13,G reen,pDevice);
DrawTexx("Selected Color:",x+ExTra_VerschiebungX+465,y+ExTra_Verschie bungY+311,White,pFont);
if(GetAsyncKeyState(0x21) &1)
{
if(WHC_MaPcoSel > 1)
{
WHC_MaPcoSel--;
}
}
if(GetAsyncKeyState(0x22) &1)
{
if(WHC_MaPcoSel < 3)
{
WHC_MaPcoSel++;
}
}
if(WHC_MaPcoSel==1)
{
if(WHC_mAFillRed < 255)
{
if(GetAsyncKeyState(VK_ADD) &1)
{
WHC_mAFillRed++;
}
}
if(WHC_mAFillRed > 0)
{
if(GetAsyncKeyState(0x6D) &1)
{
WHC_mAFillRed--;
}
}
DrawTexx("Red",x+560,y+311,Red,pFont);
}
if(WHC_MaPcoSel==2)
{
if(WHC_mAFillBlue < 255)
{
if(GetAsyncKeyState(VK_ADD) &1)
{
WHC_mAFillBlue++;
}
}
if(WHC_mAFillBlue > 0)
{
if(GetAsyncKeyState(0x6D) &1)
{
WHC_mAFillBlue--;
}
}
DrawTexx("Blue",x+560,y+311,Blue,pFont);
}
if(WHC_MaPcoSel==3)
{
if(WHC_mAFillGreen < 255)
{
if(GetAsyncKeyState(VK_ADD) &1)
{
WHC_mAFillGreen++;
}
}
if(WHC_mAFillGreen > 0)
{
if(GetAsyncKeyState(0x6D) &1)
{
WHC_mAFillGreen--;
}
}
DrawTexx("Green",x+560,y+311,Green,pFont);
}
}