Skip to content

Commit af70491

Browse files
committed
Prettify bot join/leave messages checkbox
1 parent bc2bee4 commit af70491

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

lua/custom_chat/client/tags.lua

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -281,13 +281,22 @@ function Tags:OpenEditor()
281281
panelConnectionTags:SetPaintBackground( false )
282282
sheet:AddSheet( L"tab.conn_disconn", panelConnectionTags, "icon16/group_go.png" )
283283

284-
local checkBotJoinLeave = vgui.Create( "DCheckBoxLabel", panelConnectionTags )
284+
local panelBots = vgui.Create( "DPanel", panelConnectionTags )
285+
panelBots:Dock( TOP )
286+
panelBots:SetTall( 28 )
287+
panelBots:DockMargin( 0, 0, 0, 4 )
288+
289+
panelBots.Paint = function( s, w, h )
290+
derma.SkinHook( "Paint", "Frame", s, w, h )
291+
return true
292+
end
293+
294+
local checkBotJoinLeave = vgui.Create( "DCheckBoxLabel", panelBots )
285295
checkBotJoinLeave:SetText( L"tags.show_bot_joinleave_messages" )
286296
checkBotJoinLeave:SetTextColor( Color( 255, 255, 255 ) )
287297
checkBotJoinLeave:SetValue( byConnection.botConnectDisconnect )
288-
checkBotJoinLeave:SizeToContents()
289-
checkBotJoinLeave:Dock( TOP )
290-
checkBotJoinLeave:DockPadding( 6, 6, 6, 6 )
298+
checkBotJoinLeave:Dock( FILL )
299+
checkBotJoinLeave:DockMargin( 6, 0, 0, 0 )
291300

292301
checkBotJoinLeave.OnChange = function( _, val )
293302
byConnection.botConnectDisconnect = val

0 commit comments

Comments
 (0)