Removed stuff

This commit is contained in:
Malboro 2021-10-24 16:47:50 +02:00 committed by GitHub
parent ff9bd5a7ed
commit 5e51fa86c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -464,71 +464,5 @@ local function pp_open_menu()
end
local AboutPanel = vgui.Create( "DPanel", Main )
AboutPanel:SetPos( 190, 51 )
AboutPanel:SetSize( 390, 275 )
AboutPanel.Paint = function( self )
surface.SetDrawColor( 50, 50, 50, 200 )
surface.DrawRect( 0, 0, self:GetWide(), self:GetTall() )
surface.DrawOutlinedRect(0, 15, self:GetWide(), 40)
end
AboutPanel:Hide()
local AboutLabel = vgui.Create("DLabel", AboutPanel)
AboutLabel:SetFont("pp_font")
AboutLabel:SetPos(140, 25)
AboutLabel:SetColor(Color(50, 50, 50, 255))
AboutLabel:SetText("PermaProps 4.0")
AboutLabel:SizeToContents()
local AboutLabel2 = vgui.Create("DLabel", AboutPanel)
AboutLabel2:SetFont("pp_font")
AboutLabel2:SetPos(30, 80)
AboutLabel2:SetColor(Color(50, 50, 50, 255))
AboutLabel2:SetText("Author: Malboro\n\nContributor: Entoros | ARitz Cracker\n\n\n Special thanks to all donors !")
AboutLabel2:SizeToContents()
local DonationsTxT = vgui.Create( "DButton", AboutPanel )
DonationsTxT:SetText( " Donate " )
DonationsTxT:SetFont("pp_font")
DonationsTxT:SetSize( 370, 30)
DonationsTxT:SetPos( 10, 240 )
DonationsTxT:SetTextColor( Color( 50, 50, 50, 255 ) )
DonationsTxT.DoClick = function() gui.OpenURL("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CJ5EUHFAQ7NLN") end
DonationsTxT.Paint = function(self)
surface.SetDrawColor(50, 50, 50, 255)
surface.DrawOutlinedRect(0, 0, self:GetWide(), self:GetTall())
end
local BAbout = vgui.Create("DButton", Main)
BAbout:SetText("About")
BAbout:SetFont("pp_font")
BAbout:SetSize(160, 50)
BAbout:SetPos(15, 159 + 115)
BAbout:SetTextColor( Color( 255, 255, 255, 255 ) )
BAbout.PaintColor = Color(0, 0, 0, 0)
BAbout.Paint = function(self)
draw.RoundedBox(0, 0, 0, self:GetWide(), self:GetTall(), self.PaintColor)
surface.SetDrawColor(17, 148, 240, 255)
surface.DrawOutlinedRect(0, 0, self:GetWide(), self:GetTall())
end
BAbout.DoClick = function( self )
if BSelect then BSelect.PaintColor = Color(0, 0, 0, 0) end
BSelect = self
self.PaintColor = Color(17, 148, 240, 100)
if PSelect then PSelect:Hide() end
AboutPanel:Show()
PSelect = AboutPanel
end
if !file.Exists("permaprops_donate.txt", "DATA") then
Derma_Query("Please don't Forget to Donate", "PermaProps 4.0", "Donate", function() gui.OpenURL("https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CJ5EUHFAQ7NLN") end, "Cancel", function() file.Write("permaprops_donate.txt") end)
end
end
net.Receive("pp_open_menu", pp_open_menu)
net.Receive("pp_open_menu", pp_open_menu)