-
-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathChat.lua
34 lines (28 loc) · 1.05 KB
/
Chat.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
--=========== Copyright © 2019, Planimeter, All rights reserved. ===========--
--
-- Purpose: Chat HUD scheme
--
--==========================================================================--
local chat = scheme( "Chat" )
chat.textbox = {
backgroundColor = color( 0, 0, 0, 0 * 255 ),
borderColor = color( 104, 106, 107, 0.66 * 255 ),
textColor = color( 230, 230, 230, 255 ),
mouseover = {
borderColor = color( 163, 126, 71, 0.42 * 255 ),
textColor = color( 163, 167, 168, 255 )
},
focus = {
borderColor = color( 163, 126, 71, 0.27 * 255 ),
textColor = color( 163, 167, 168, 255 )
}
}
-- NOTE: The following arguments to `newFont` are undocumented.
local dpiscale = love.graphics.getDPIScale()
local r_window_highdpi = convar.getConvar( "r_window_highdpi" )
if ( r_window_highdpi:getNumber() == 2 ) then
dpiscale = 1
end
chat.font = love.graphics.newFont(
"fonts/SourceSansPro-Regular.otf", 14, "normal", dpiscale
)