ph-enhanced/gamemodes/prop_hunt/gamemode/cl_credits.lua
2019-05-28 09:16:53 +02:00

66 lines
2.5 KiB
Lua

hook.Add("PH_CustomTabMenu", "PHE.About", function(tab, pVgui)
surface.CreateFont("PHE.TitleFont",
{
font = "Roboto",
size = 40,
weight = 700,
antialias = true,
shadow = true
})
local panel = vgui.Create("DPanel", tab)
panel:SetBackgroundColor(Color(40,40,40,120))
local scroll = vgui.Create( "DScrollPanel", panel )
scroll:Dock(FILL)
local grid = vgui.Create("DGrid", scroll)
grid:Dock(NODOCK)
grid:SetPos(10,10)
grid:SetCols(1)
grid:SetColWide(800)
grid:SetRowHeight(50)
local label = {
title = "Prop Hunt: Enhanced",
author = "Enhanced by: Wolvindra-Vinzuerio & D4UNKN0WNM4N.",
version = GAMEMODE._VERSION,
rev = GAMEMODE.REVISION,
credits = "Yam, Godfather, adk, Lucas2107, Jonpopnycorn, Thundernerd",
lgit = "https://github.com/Vinzuerio/ph-enhanced/",
lhome = "https://prophunt.wolvindra.net/",
ldonate = GAMEMODE.DONATEURL,
lwiki = "https://prophunt.wolvindra.net/?go=phe_faq",
lklog = "https://prophunt.wolvindra.net/?go=changelog",
lplugins = "https://prophunt.wolvindra.net/?go=plugins"
}
pVgui("","label","PHE.TitleFont",grid, label.title )
pVgui("","label","Trebuchet24",grid, "Current Version: "..label.version.." | Current Revision: "..label.rev)
pVgui("","label","Trebuchet24",grid, "If you are enjoyed with the gamemode, Please support by Donating!" )
pVgui("spacer0","spacer",nil,grid,"" )
pVgui("","label",false,grid, "Changelog & Updates" )
pVgui("","btn",{max = 2,textdata = {
[1] = {"See Changelog", function() gui.OpenURL(label.lklog); tab:GetParent():Close() end},
[2] = {"Check for Updates",
function()
LocalPlayer():ConCommand("ph_check_update")
Derma_Message("Check on your console by pressing [~] or F10 key!","Checking Updates","OK, Got it!")
end},
}},grid,"")
pVgui("spacer1","spacer",nil,grid,"" )
pVgui("","label",false,grid, "Helpful External Links & Credits" )
pVgui("","btn",{max = 4,textdata = {
[1] = {"DONATE to PH:E Project", function() gui.OpenURL(label.ldonate) end},
[2] = {"PH:E Official Homepage", function() gui.OpenURL(label.lhome) end},
[3] = {"GitHub Repository", function() gui.OpenURL(label.lgit) end},
[4] = {"PH:E Manuals & Wiki", function() gui.OpenURL(label.lwiki) end},
[4] = {"PH:E Addons/Plugins", function() gui.OpenURL(label.lplugins) end}
}},grid,"")
pVgui("spacer1","spacer",nil,grid,"" )
pVgui("","label","Trebuchet24",grid, "Special Thanks for the support, suggestion & contributing:\n"..label.credits )
tab:AddSheet("About & Credits",panel,"icon16/information.png")
end)