Colorable logo

This commit is contained in:
Haodong Mo 2022-12-28 14:51:34 +10:00
parent c3c821e80d
commit a203075968
6 changed files with 23 additions and 3 deletions

View File

@ -203,6 +203,24 @@ function ARC9.GetHUDColor(part, alpha)
return col
end
local arc9logo_layer1 = Material("arc9/logo/logo_bottom.png", "mips smooth")
local arc9logo_layer2 = Material("arc9/logo/logo_middle.png", "mips smooth")
local arc9logo_layer3 = Material("arc9/logo/logo_top.png", "mips smooth")
function ARC9.DrawColoredARC9Logo(x, y, s, col)
surface.SetDrawColor(Color(255, 255, 255))
surface.SetMaterial(arc9logo_layer1)
surface.DrawTexturedRect(x, y, s, s)
surface.SetDrawColor(col)
surface.SetMaterial(arc9logo_layer2)
surface.DrawTexturedRect(x, y, s, s)
surface.SetDrawColor(Color(255, 255, 255))
surface.SetMaterial(arc9logo_layer3)
surface.DrawTexturedRect(x, y, s, s)
end
local rackrisetime = 0
local lastrow = 0
local lastweapon = NULL

View File

@ -482,9 +482,11 @@ local function DrawSettings(bg, page)
surface.DrawPoly({{x = cornercut, y = h-cornercut*.5}, {x = w-cornercut, y = h-cornercut*.5}, {x = w-cornercut, y = h}, {x = cornercut, y = h}, })
surface.SetDrawColor(ARC9.GetHUDColor("fg"))
surface.SetMaterial(mat_icon)
surface.DrawTexturedRect(ARC9ScreenScale(4), ARC9ScreenScale(2), ARC9ScreenScale(20), ARC9ScreenScale(20))
// surface.SetDrawColor(ARC9.GetHUDColor("fg"))
// surface.SetMaterial(mat_icon)
// surface.DrawTexturedRect(ARC9ScreenScale(4), ARC9ScreenScale(2), ARC9ScreenScale(20), ARC9ScreenScale(20))
ARC9.DrawColoredARC9Logo(ARC9ScreenScale(4), ARC9ScreenScale(2), ARC9ScreenScale(20), ARC9.GetHUDColor("hi"))
surface.SetFont("ARC9_8_Slim")
surface.SetTextColor(ARC9.GetHUDColor("fg"))

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 41 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 525 KiB

BIN
materials/stickers/arc9.vtf Normal file

Binary file not shown.