SHOW:
|
|
- or go back to the newest paste.
1 | function test() | |
2 | local DermaPanel = vgui.Create( "DFrame" ) | |
3 | DermaPanel:SetPos( ScrW() / 2, ScrH() / 2 ) | |
4 | DermaPanel:SetSize( 2000, 1500 ) | |
5 | DermaPanel:SetTitle( "New server" ) | |
6 | DermaPanel:SetVisible( true ) | |
7 | DermaPanel:MakePopup() | |
8 | DermaPanel.Paint = function() | |
9 | draw.RoundedBox(0, 0, 0, DButton:GetWide(), DButton:GetTall(), Color(65, 120, 65)) | |
10 | end | |
11 | ||
12 | - | local DButton = vgui.Create( "DButton" ) |
12 | + | local DButton = vgui.Create( "DButton", Dermapanel ) |
13 | - | DButton:SetPos( 40, 40 ) |
13 | + | DButton:SetPos( ScrW() / 2, ScrH() / 2 ) |
14 | DButton:SetText( " " ) | |
15 | DButton:SetSize( 120, 60 ) | |
16 | DButton.DoClick = function() | |
17 | LocalPlayer():ConCommand("connect 5.231.196.72:27015") | |
18 | end | |
19 | DButton.Paint = function() | |
20 | draw.RoundedBox(0, 0, 0, DButton:GetWide(), DButton:GetTall(), Color(70, 120, 70)) | |
21 | draw.SimpleText("We have moved to a new ip. Press this button to connect.", "HUDNumber5", DButton:GetWide() / 2, 25, color_white, TEXT_ALIGN_CENTER ) | |
22 | end | |
23 | end | |
24 | net.Receive("joinnewip", test) |