$ underrow $
-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
my discord: Dutu # 5071
C++:
void ESP::show_key()
{
g_pSurface->FilledRect(10, 200 + 200, 30, 35, Color(0, 0, 0, 155));
g_pSurface->FilledRect(10 + 32, 200 + 200, 30, 35, Color(0, 0, 0, 155));
g_pSurface->FilledRect(10 + 32 + 32, 200 + 200, 30, 35, Color(0, 0, 0, 155));
g_pSurface->FilledRect(10 + 32, 200 - 37 + 200, 30, 35, Color(0, 0, 0, 155));
g_pSurface->FilledRect(10, 100 + 160 + 177, 95, 35, Color(0, 0, 0, 155));
//draw key a -> filed rect
if (g_InputSystem->IsButtonDown(KEY_A)) {
g_pSurface->FilledRect(10, 200 + 200, 30, 35, Color(0, 0, 0, 155));
}
//draw key s -> filed rect
if (g_InputSystem->IsButtonDown(KEY_S)) {
g_pSurface->FilledRect(10 + 32, 200 + 200, 30, 35, Color(0, 0, 0, 155));
}
//draw key d -> filed rect
if (g_InputSystem->IsButtonDown(KEY_D)) {
g_pSurface->FilledRect(10 + 32 + 32, 200 + 200, 30, 35, Color(0, 0, 0, 155));
}
//draw key w -> filed rect
if (g_InputSystem->IsButtonDown(KEY_W)) {
g_pSurface->FilledRect(10 + 32, 200 - 37 + 200, 30, 35, Color(0, 0, 0, 155));
}
//draw key space -> filed rect
if (g_InputSystem->IsButtonDown(KEY_SPACE))
{
g_pSurface->FilledRect(10, 100 + 160 + 177, 95, 35, Color(0, 0, 0, 155));
}
//draw key a -> text -- pressed
if (g_InputSystem->IsButtonDown(KEY_A)) {
g_pSurface->DrawT(18, 205 + 200, Color(g_Menu.Config.menu_r, g_Menu.Config.menu_g, g_Menu.Config.menu_b, 255), g::key_font, false, "a");
}
else
{
g_pSurface->DrawT(18, 205 + 200, Color(255, 255, 255, 255), g::key_font, false, "a");
}
//draw key s -> text -- pressed
if (g_InputSystem->IsButtonDown(KEY_S)) {
g_pSurface->DrawT(17 + 35, 205 + 200, Color(g_Menu.Config.menu_r, g_Menu.Config.menu_g, g_Menu.Config.menu_b, 255), g::key_font, false, "s");
}
else
{
g_pSurface->DrawT(17 + 35, 205 + 200, Color(255, 255, 255, 255), g::key_font, false, "s");
}
//draw key d -> text -- pressed
if (g_InputSystem->IsButtonDown(KEY_D)) {
g_pSurface->DrawT(17 + 35 + 32, 205 + 200, Color(g_Menu.Config.menu_r, g_Menu.Config.menu_g, g_Menu.Config.menu_b, 255), g::key_font, false, "d");
}
else
{
g_pSurface->DrawT(17 + 35 + 32, 205 + 200, Color(255, 255, 255, 255), g::key_font, false, "d");
}
//draw key w -> text -- pressed
if (g_InputSystem->IsButtonDown(KEY_W)) {
g_pSurface->DrawT(18 + 31, 205 - 35 + 200, Color(g_Menu.Config.menu_r, g_Menu.Config.menu_g, g_Menu.Config.menu_b, 255), g::key_font, false, "w");
}
else
{
g_pSurface->DrawT(18 + 31, 205 - 35 + 200, Color(255, 255, 255, 255), g::key_font, false, "w");
}
//draw key space -> text -- pressed
if (g_InputSystem->IsButtonDown(KEY_SPACE))
{
g_pSurface->DrawT(30, 385 - 120 + 177, Color(g_Menu.Config.menu_r, g_Menu.Config.menu_g, g_Menu.Config.menu_b, 255), g::key_font, false, "space");
}
else
{
g_pSurface->DrawT(30, 385 - 120 + 177, Color(255, 255, 255, 255), g::key_font, false, "space");
}
}
Вложения
-
32.5 KB Просмотры: 60