Skip to content

Commit ffb61c4

Browse files
committed
Improve missed messages counter
1 parent 917b1e1 commit ffb61c4

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

lua/custom_chat/client/vgui/chat_channel_button.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,12 @@ function PANEL:PaintOver( w, h )
5757
local x = w - size - 2
5858
local y = h - size - 2
5959

60+
local label = self.notificationCount < 99 and self.notificationCount or "99+"
61+
62+
DisableClipping( true )
6063
draw.RoundedBox( size * 0.5, x, y, size, size, self.colorIndicator )
61-
draw.SimpleText( self.notificationCount, "TargetIDSmall", x + size * 0.5, y + size * 0.5, self.colorText, 1, 1 )
64+
draw.SimpleText( label, "DebugOverlay", x + size * 0.5, y + size * 0.5, self.colorText, 1, 1 )
65+
DisableClipping( false )
6266
end
6367
end
6468

0 commit comments

Comments
 (0)