• Ищем качественного (не новичок) разработчиков Xenforo для этого форума! В идеале, чтобы ты был фулл стек программистом. Если у тебя есть что показать, то свяжись с нами по контактным данным: https://t.me/DREDD

Исходник Op Sliders Ayymeme

Начинающий
Начинающий
Статус
Оффлайн
Регистрация
1 Июн 2017
Сообщения
16
Реакции
28
void CSlider::Draw(bool hover)
{
POINT a = GetAbsolutePos();
FunctionsColor.SetColor(Functions::Every.ColorsTab.MenuR.GetValue(), Every::All.ColorsTab.MenuG.GetValue(), Functions::All.ColorsTab.MenuB.GetValue(), 255);
float Ratio = Value / (Max - Min);
float Location = Ratio*m_iWidth;
Draw::GradientV(a.x, a.y + 5, m_iWidth, 9, Color(12, 12, 12, 255), Color(32, 32, 32, 255));
Draw::GradientV(a.x, a.y + 5, Location, 9, Menu, Menu);
Draw::Outline(a.x, a.y + 5, m_iWidth, 9, Color(0, 0, 0, 255));
char buffer[24];
sprintf_s(buffer, "%.2f", Value);
RECT txtSize = Draw::GetTextSize(Draw::Fonts::Menu, buffer);
Draw::Text(a.x + Location - txtSize.right / 2, a.y + 10, Color(200, 200, 200, 255), Draw::Fonts::Menu, buffer);
}
 
void CSlider::Draw(bool hover)
{
POINT a = GetAbsolutePos();
FunctionsColor.SetColor(Functions::All.ColorsTab.FunctionsR.GetValue(), Functions::All.ColorsTab.FunctionsG.GetValue(), Functions::All.ColorsTab.FunctionsB.GetValue(), 255);
float Ratio = Value / (Max - Min);
float Location = Ratio*m_iWidth;
Draw::GradientV(a.x, a.y + 5, m_iWidth, 9, Color(12, 12, 12, 255), Color(32, 32, 32, 255));
Draw::GradientV(a.x, a.y + 5, Location, 9, FunctionsColor, FunctionsColor);
Draw::Outline(a.x, a.y + 5, m_iWidth, 9, Color(0, 0, 0, 255));
char buffer[24];
sprintf_s(buffer, "%.2f", Value);
RECT txtSize = Draw::GetTextSize(Draw::Fonts::FunctionsBold, buffer);
Draw::Text(a.x + Location - txtSize.right / 2, a.y + 10, Color(200, 200, 200, 255), Draw::Fonts::FunctionsBold, buffer);
}
Fix hide.
 
gay and ugly af
 
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
nothing good about this.
 
Назад
Сверху Снизу