like:
hook.m_pNeeded->FillRGBA(x,y,w,h,sliderR.value,sliderG.value.,sliderB.value..)
google-site-verification: googlebaca44933768a824.html
hook.m_pNeeded->FillRGBA(x,y,w,h,sliderR.value,sliderG.value.,sliderB.value..)
void DrawSlider(float PosX, float PosY, float Length, float MinNum, float MaxNum, float &Variable)
{
float Scale = MaxNum/Length;
// Draw Line at PosX, PosY with the width of Length.
// My Amazing Mathematical skills!!!
if ( fMouseX >= ( PosX ) && fMouseX <= ( PosX + Length ) && fMouseY >= ( PosY - 5 ) && fMouseY <= ( PosY + 5 ) && GetAsyncKeyState( VK_LBUTTON ) )
Variable = MinNum + (fMouseX - PosX) * Scale;
// Draw Vertical line (Slider itself at PosX + (Variable/Scale) )
// sprintf(Text, TEXT("%1.0f"),Variable);
// Draw Value of Text where ever you want....
}
We process personal data about users of our site, through the use of cookies and other technologies, to deliver our services, personalize advertising, and to analyze site activity. We may share certain information about our users with our advertising and analytics partners. For additional details, refer to our Privacy Policy.
By clicking "I AGREE" below, you agree to our Privacy Policy and our personal data processing and cookie practices as described therein. You also acknowledge that this forum may be hosted outside your country and you consent to the collection, storage, and processing of your data in the country where this forum is hosted.
Comment