Skip to content

Commit 1d4f7fb

Browse files
committed
change touch editor colors
1 parent b5d6051 commit 1d4f7fb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

game/client/touch.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -313,7 +313,7 @@ void CTouchControls::ResetToDefaults()
313313
{
314314
rgba_t color(255, 255, 255, 155);
315315
char buf[MAX_PATH];
316-
gridcolor = rgba_t(255, 0, 0, 50);
316+
gridcolor = rgba_t(255, 0, 0, 30);
317317

318318
RemoveButtons();
319319

@@ -372,7 +372,7 @@ void CTouchControls::Init()
372372
mouse_events = 0;
373373
move_start_x = move_start_y = 0.0f;
374374
m_flPreviousYaw = m_flPreviousPitch = 0.f;
375-
gridcolor = rgba_t(255, 0, 0, 50);
375+
gridcolor = rgba_t(255, 0, 0, 30);
376376

377377
m_bCutScene = false;
378378
showtexture = hidetexture = resettexture = closetexture = joytexture = 0;
@@ -659,6 +659,8 @@ void CTouchControls::Paint()
659659

660660
CUtlLinkedList<CTouchButton*>::iterator it;
661661

662+
const rgba_t buttonEditClr = rgba_t( 61, 153, 0, 40 );
663+
662664
if( state == state_edit )
663665
{
664666
vgui::surface()->DrawSetColor(gridcolor.r, gridcolor.g, gridcolor.b, gridcolor.a*3); // 255, 0, 0, 200 <- default here
@@ -685,7 +687,7 @@ void CTouchControls::Paint()
685687
g_pMatSystemSurface->DrawColoredText( 2, btn->x1*screen_w, btn->y1*screen_h+40, 255, 255, 255, 255, "RGBA: %d %d %d %d", btn->color.r, btn->color.g, btn->color.b, btn->color.a );// color
686688
}
687689

688-
vgui::surface()->DrawSetColor(gridcolor.r, gridcolor.g, gridcolor.b, gridcolor.a); // 255, 0, 0, 50 <- default here
690+
vgui::surface()->DrawSetColor(buttonEditClr.r, buttonEditClr.g, buttonEditClr.b, buttonEditClr.a); // 255, 0, 0, 50 <- default here
689691
vgui::surface()->DrawFilledRect( btn->x1*screen_w, btn->y1*screen_h, btn->x2*screen_w, btn->y2*screen_h );
690692
}
691693
}

0 commit comments

Comments
 (0)