Initial commit
34
addons/f4/lua/autorun/server/resource.lua
Normal file
@@ -0,0 +1,34 @@
|
||||
/*----------------------------------------------------------------------
|
||||
Leak by Famouse (P.s. Я это не вырезаю для атмосферы ахуенной сервера хуй знает какого года)
|
||||
|
||||
Play good games:↓
|
||||
http://store.steampowered.com/curator/32364216
|
||||
|
||||
Subscribe to the channel:↓
|
||||
www.youtube.com/c/Famouse
|
||||
|
||||
More leaks in the discord:↓
|
||||
https://discord.gg/rFdQwzm
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
resource.AddFile("materials/icons/back.png")
|
||||
resource.AddFile("materials/icons/close.png")
|
||||
resource.AddFile("materials/icons/commands.png")
|
||||
resource.AddFile("materials/icons/database.png")
|
||||
resource.AddFile("materials/icons/donate.png")
|
||||
resource.AddFile("materials/icons/home.png")
|
||||
resource.AddFile("materials/icons/info.png")
|
||||
resource.AddFile("materials/icons/jobs.png")
|
||||
resource.AddFile("materials/icons/menu.png")
|
||||
resource.AddFile("materials/icons/shop.png")
|
||||
resource.AddFile("materials/icons/site.png")
|
||||
resource.AddFile("materials/icons/user.png")
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
Donation for leaks
|
||||
|
||||
Qiwi Wallet 4890494419811120
|
||||
YandexMoney 410013095053302
|
||||
WebMoney(WMR) R235985364414
|
||||
WebMoney(WMZ) Z309855690994
|
||||
------------------------------------------------------------------------*/
|
||||
51
addons/f4/lua/autorun/smooth-f4menu.lua
Normal file
@@ -0,0 +1,51 @@
|
||||
/*----------------------------------------------------------------------
|
||||
Leak by Famouse (P.s. Я это не вырезаю для атмосферы ахуенной сервера хуй знает какого года)
|
||||
|
||||
Play good games:↓
|
||||
store.steampowered.com/curator/32364216
|
||||
|
||||
Subscribe to the channel:↓
|
||||
https://www.youtube.com/c/Famouse
|
||||
|
||||
More leaks in the discord:↓
|
||||
https://discord.gg/rFdQwzm
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
if CLIENT then
|
||||
-- CLIENT MENU
|
||||
include("smooth-f4menu/client/cl_smooth-f4menu.lua")
|
||||
include("smooth-f4menu/client/cl_smooth-f4menu-commands.lua")
|
||||
include("smooth-f4menu/client/cl_smooth-f4menu-jobs.lua")
|
||||
include("smooth-f4menu/client/cl_smooth-f4menu-title.lua")
|
||||
include("smooth-f4menu/client/cl_smooth-f4menu-shop.lua")
|
||||
include("smooth-f4menu/client/cl_smooth-f4menu-site.lua")
|
||||
|
||||
-- CFG
|
||||
include("smooth-f4menu/cfg_smooth-f4menu.lua")
|
||||
end
|
||||
|
||||
if SERVER then
|
||||
-- SERVER MENU
|
||||
include("smooth-f4menu/server/sv_smooth-f4menu.lua")
|
||||
|
||||
-- CLIENT MENU
|
||||
AddCSLuaFile("smooth-f4menu/client/cl_smooth-f4menu.lua")
|
||||
AddCSLuaFile("smooth-f4menu/client/cl_smooth-f4menu-commands.lua")
|
||||
AddCSLuaFile("smooth-f4menu/client/cl_smooth-f4menu-jobs.lua")
|
||||
AddCSLuaFile("smooth-f4menu/client/cl_smooth-f4menu-title.lua")
|
||||
AddCSLuaFile("smooth-f4menu/client/cl_smooth-f4menu-shop.lua")
|
||||
AddCSLuaFile("smooth-f4menu/client/cl_smooth-f4menu-site.lua")
|
||||
|
||||
-- CFG
|
||||
include("smooth-f4menu/cfg_smooth-f4menu.lua")
|
||||
AddCSLuaFile("smooth-f4menu/cfg_smooth-f4menu.lua")
|
||||
end
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
Donation for leaks
|
||||
|
||||
Qiwi Wallet 4890494419811120
|
||||
YandexMoney 410013095053302
|
||||
WebMoney(WMR) R235985364414
|
||||
WebMoney(WMZ) Z309855690994
|
||||
------------------------------------------------------------------------*/
|
||||
135
addons/f4/lua/smooth-f4menu/cfg_smooth-f4menu.lua
Normal file
@@ -0,0 +1,135 @@
|
||||
/*----------------------------------------------------------------------
|
||||
Leak by Famouse (P.s. Я это не вырезаю для атмосферы ахуенной сервера хуй знает какого года)
|
||||
|
||||
Play good games:↓
|
||||
store.steampowered.com/curator/32364216
|
||||
|
||||
Subscribe to the channel:↓
|
||||
https://www.youtube.com/c/Famouse
|
||||
|
||||
More leaks in the discord:↓
|
||||
discord.gg/rFdQwzm
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
-- TITLE NAME SERVER
|
||||
SmoothF4MenuFrame_NameServer = "Мертвая Мама Кост Ича RP | Сенвай украл сапы"
|
||||
|
||||
-- LANGUAGE MENU
|
||||
SmoothF4MenuFrame_NameServer_Home = "Домой"
|
||||
SmoothF4MenuFrame_NameServer_Jobs = "Работы"
|
||||
SmoothF4MenuFrame_NameServer_Shop = "Магазин"
|
||||
SmoothF4MenuFrame_NameServer_Command = "Команды"
|
||||
SmoothF4MenuFrame_NameServer_Site = "Вики"
|
||||
SmoothF4MenuFrame_DescriptionJobs = "Описание"
|
||||
SmoothF4MenuFrame_DescriptionSalary = "Зарплата"
|
||||
SmoothF4MenuFrame_Entities = "Предметы"
|
||||
SmoothF4MenuFrame_Weapon = "Оружия"
|
||||
SmoothF4MenuFrame_Shipments = "Ящики"
|
||||
SmoothF4MenuFrame_Ammo = "Патроны"
|
||||
SmoothF4MenuFrame_TMoney = "Деньги"
|
||||
SmoothF4MenuFrame_Group = "Группа"
|
||||
SmoothF4MenuFrame_OnlinePlayer = "Онлайн игроков"
|
||||
SmoothF4MenuFrame_TStaffOnline = "Админы онлайн"
|
||||
SmoothF4MenuFrame_RulesTitle = "Правила"
|
||||
SmoothF4MenuFrame_Loading = "Загрузка..."
|
||||
SmoothF4MenuFrame_ErrorVip = "Ты не имеешь прав!"
|
||||
|
||||
-- MONEY
|
||||
SmoothF4MenuFrame_Money = "$"
|
||||
|
||||
-- ENABLE WEAPON ?
|
||||
SmoothF4MenuFrame_EnableWeapon = true
|
||||
|
||||
-- ENABLE SHIPMENTS ?
|
||||
SmoothF4MenuFrame_EnableShipments = true
|
||||
|
||||
-- ENABLE AMMO ?
|
||||
SmoothF4MenuFrame_EnableAmmo = true
|
||||
|
||||
-- SITE URL
|
||||
SmoothF4MenuFrame_SiteURL = "https://dev.pavetr.ru/server/senwai-mmk/wiki.html"
|
||||
SmoothF4MenuFrame_DonateURL = "https://forum.pavetr.ru/dbtech-donate/drives/bez-tseli.2/"
|
||||
|
||||
-- STAFF ONLINE
|
||||
SmoothF4MenuFrame_StaffOnline = { "superadmin", "owner", "vip", "admin" }
|
||||
|
||||
-- RULES
|
||||
SmoothF4MenuFrame_TRules = {
|
||||
"Text 1 ...",
|
||||
"Text 2 ...",
|
||||
"Text 3 ...",
|
||||
"Text 4 ...",
|
||||
}
|
||||
|
||||
-- VIP JOBS,WEAPON,SHIPMENTS,ENTITY
|
||||
SmoothF4MenuFrame_VipGroup = { "superadmin", "owner", "vip", "admin" }
|
||||
SmoothF4MenuFrame_VipWeapon = { "superadmin", "owner", "vip", "admin" }
|
||||
SmoothF4MenuFrame_VipShipments = { "superadmin", "owner", "vip", "admin" }
|
||||
SmoothF4MenuFrame_VipEntity = { "superadmin", "owner", "vip", "admin" }
|
||||
|
||||
|
||||
-- COMMAND
|
||||
MONEYCMD_BUTTONS = {}
|
||||
RPCMD_BUTTONS = {}
|
||||
CPCMD_BUTTONS = {}
|
||||
MAYORCMD_BUTTONS = {}
|
||||
Categories = {}
|
||||
table.insert(Categories, { name = "Деньги", Table = MONEYCMD_BUTTONS })
|
||||
table.insert(Categories, { name = "Игрок", Table = RPCMD_BUTTONS })
|
||||
table.insert(Categories, { name = "Полиция", Table = CPCMD_BUTTONS })
|
||||
table.insert(Categories, { name = "Мэр", Table = MAYORCMD_BUTTONS })
|
||||
local function MenuAddMButton(n, f)
|
||||
table.insert(MONEYCMD_BUTTONS, { NAME = n, FUNC = f })
|
||||
end
|
||||
local function MenuAddRPButton(n, f)
|
||||
table.insert(RPCMD_BUTTONS, { NAME = n, FUNC = f })
|
||||
end
|
||||
local function MenuAddCPButton(n, f)
|
||||
table.insert(CPCMD_BUTTONS, { NAME = n, FUNC = f })
|
||||
end
|
||||
local function MenuAddMayorButton(n, f)
|
||||
table.insert(MAYORCMD_BUTTONS, { NAME = n, FUNC = f })
|
||||
end
|
||||
MenuAddMButton("Дать денег игроку", function() OpenTextBox("Дать денег", "Сколько?", "/give") end)
|
||||
MenuAddMButton("Скинуть деньги", function() OpenTextBox("Скинуть деньги", "Сколько?", "/moneydrop") end)
|
||||
MenuAddRPButton("Выбросить оружие", function() RunConsoleCommand("say", "/dropweapon") end)
|
||||
MenuAddRPButton("Запросить лицензию", function() RunConsoleCommand("say", "/requestlicense") end)
|
||||
MenuAddRPButton("Уволить игрока",
|
||||
function() OpenPlyReasonBox("Уволить игрока", "Какого игрока вы хотите уволить?", "Причина увольнения?", "/demote") end)
|
||||
MenuAddRPButton("Продать все двери", function() RunConsoleCommand("say", "/unownalldoors") end)
|
||||
|
||||
MenuAddCPButton("Подать игрока в розыск",
|
||||
function()
|
||||
OpenPlyReasonBox("Подать игрока в розыск", "Какого игрока вы хотите подать в розыск?", "Причина розыска?",
|
||||
"/wanted")
|
||||
end)
|
||||
MenuAddCPButton("Снять с игрока розыск",
|
||||
function() OpenPlyBox("Снять с игрока розыск", "С какого игрока вы хотите снять розыск?", "/unwanted") end)
|
||||
MenuAddCPButton("Ордер на обыск игрока",
|
||||
function() OpenPlyReasonBox("Ордер на обыск игрока", "На кого вы хотите подать ордер?", "Причина ордера?", "/warrant") end)
|
||||
|
||||
MenuAddMayorButton("Розыскивать игрока",
|
||||
function()
|
||||
OpenPlyReasonBox("Розыскивать игрока", "Какого игрока вы хотите подать в розыск?", "Причина розыска?",
|
||||
"/wanted")
|
||||
end)
|
||||
MenuAddMayorButton("Снять с игрока розыск",
|
||||
function() OpenPlyBox("Снять с игрока розыск", "С какого игрока вы хотите снять розыск", "/unwanted") end)
|
||||
MenuAddMayorButton("Ордер на обыск игрока",
|
||||
function() OpenPlyReasonBox("Ордер на обыск игрока", "На кого вы хотите подать ордер?", "Причина ордера?", "/warrant") end)
|
||||
MenuAddMayorButton("Дать лицензию", function() RunConsoleCommand("say", "/givelicense") end)
|
||||
MenuAddMayorButton("Объявить ком.час", function() RunConsoleCommand("say", "/lockdown") end)
|
||||
MenuAddMayorButton("Завершить ком.час", function() RunConsoleCommand("say", "/unlockdown") end)
|
||||
MenuAddMayorButton("Добавить правило",
|
||||
function() OpenTextBox("Добавить правило", "Какое новое правило вы хотите добавить?", "/addlaw") end)
|
||||
MenuAddMayorButton("Убрать правило", function() OpenTextBox("Убрать правило", "Номер правила?", "/removelaw") end)
|
||||
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
Donation for leaks
|
||||
|
||||
Qiwi Wallet 4890494419811120
|
||||
YandexMoney 410013095053302
|
||||
WebMoney(WMR) R235985364414
|
||||
WebMoney(WMZ) Z309855690994
|
||||
------------------------------------------------------------------------*/
|
||||
149
addons/f4/lua/smooth-f4menu/client/cl_smooth-f4menu-commands.lua
Normal file
@@ -0,0 +1,149 @@
|
||||
/*----------------------------------------------------------------------
|
||||
Leak by Famouse
|
||||
|
||||
Play good games:↓
|
||||
http://store.steampowered.com/curator/32364216
|
||||
|
||||
Subscribe to the channel:↓
|
||||
https://www.youtube.com/c/Famouse
|
||||
|
||||
More leaks in the discord:↓
|
||||
discord.gg/rFdQwzm
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
local PANEL = {}
|
||||
function PANEL:Init()
|
||||
|
||||
SmoothCommandDPanel = vgui.Create( "DPanel", SmoothF4MenuFrame )
|
||||
SmoothCommandDPanel:SetPos( 50, 40 )
|
||||
SmoothCommandDPanel:SetSize( 950, 605 )
|
||||
SmoothCommandDPanel.Paint = function() end
|
||||
|
||||
SmoothCommandDPanelScroll = vgui.Create( "DPanel", SmoothCommandDPanel )
|
||||
SmoothCommandDPanelScroll:SetPos( 0, 0 )
|
||||
SmoothCommandDPanelScroll:SetSize( 1000, 605 )
|
||||
SmoothCommandDPanelScroll.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, 685, 660 , Color(255,255,255,0) )
|
||||
end
|
||||
|
||||
local scroll = vgui.Create("DScrollPanel", SmoothCommandDPanelScroll)
|
||||
scroll:SetSize(1000, 605)
|
||||
scroll:SetPos(0, 0)
|
||||
function scroll:Paint(w, h)
|
||||
draw.RoundedBox(0, 0, 0, 0, 0, Color(42, 46, 48, 0))
|
||||
end
|
||||
local scrollbar = scroll:GetVBar()
|
||||
function scrollbar:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(46, 49, 54, 0))
|
||||
end
|
||||
function scrollbar.btnUp:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(36, 39, 44, 0))
|
||||
end
|
||||
function scrollbar.btnDown:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(36, 39, 44, 0))
|
||||
end
|
||||
function scrollbar.btnGrip:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(36, 39, 44, 0))
|
||||
end
|
||||
|
||||
SmoothCommandPanelPoxY = 0
|
||||
for k,v in pairs(Categories) do
|
||||
|
||||
local CategoriesTitle = vgui.Create("DLabel", scroll)
|
||||
CategoriesTitle:SizeToContents()
|
||||
CategoriesTitle:SetPos(5, SmoothCommandPanelPoxY)
|
||||
CategoriesTitle:SetColor(Color(255,255,255,255))
|
||||
CategoriesTitle:SetText( " "..v.name )
|
||||
CategoriesTitle:SetWide( SmoothCommandDPanel:GetWide()-10 )
|
||||
CategoriesTitle:SetFont( "SmoothF4menuFontButton" )
|
||||
CategoriesTitle:SetTall(35)
|
||||
CategoriesTitle.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, CategoriesTitle:GetWide(), CategoriesTitle:GetTall() , Color(41, 41, 41,100) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,CategoriesTitle:GetWide(), CategoriesTitle:GetTall() )
|
||||
end
|
||||
CategoriesTitle.Think = function() CategoriesTitle:SetWide( SmoothCommandDPanel:GetWide()-10 ) end
|
||||
|
||||
SmoothCommandPanelPoxY = SmoothCommandPanelPoxY + 40
|
||||
|
||||
for d,c in pairs(v.Table) do
|
||||
|
||||
local ButtonComamndClick = vgui.Create("DButton", scroll)
|
||||
ButtonComamndClick:SetSize( SmoothCommandDPanel:GetWide()-35, 35 )
|
||||
ButtonComamndClick:SetPos( 30 , SmoothCommandPanelPoxY )
|
||||
ButtonComamndClick:SetColor( Color( 255, 255, 255 ))
|
||||
ButtonComamndClick:SetFont("SmoothF4menuFontButton")
|
||||
ButtonComamndClick:SetText(c.NAME)
|
||||
ButtonComamndClick.Paint = function( )
|
||||
draw.RoundedBox( 0, 0, 0, ButtonComamndClick:GetWide(), ButtonComamndClick:GetTall() , Color(41, 41, 41,100) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,ButtonComamndClick:GetWide(), ButtonComamndClick:GetTall() )
|
||||
if ButtonComamndClick.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, ButtonComamndClick:GetWide(), ButtonComamndClick:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
end
|
||||
ButtonComamndClick.OnCursorEntered = function()
|
||||
ButtonComamndClick.isHover = true
|
||||
end
|
||||
ButtonComamndClick.OnCursorExited = function()
|
||||
ButtonComamndClick.isHover = false
|
||||
end
|
||||
ButtonComamndClick.DoClick = function()
|
||||
c.FUNC()
|
||||
end
|
||||
ButtonComamndClick.Think = function()
|
||||
ButtonComamndClick:SetSize( SmoothCommandDPanel:GetWide()-35, 35 )
|
||||
end
|
||||
|
||||
SmoothCommandPanelPoxY = SmoothCommandPanelPoxY + 40
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
vgui.Register( "SmoothCommandPanel", PANEL, "Panel" )
|
||||
|
||||
function OpenTextBox(text1,text2,cmd)
|
||||
Derma_StringRequest(
|
||||
text1,
|
||||
text2,
|
||||
"",
|
||||
function( text ) RunConsoleCommand( "say", cmd.." "..text ) end,
|
||||
function( text ) end
|
||||
)
|
||||
end
|
||||
|
||||
function OpenPlyReasonBox(text1,text2,text3,cmd)
|
||||
local menu = DermaMenu()
|
||||
for k,v in pairs(player.GetAll()) do
|
||||
menu:AddOption(v:Name(),function()
|
||||
Derma_StringRequest(
|
||||
text1,
|
||||
text3,
|
||||
"",
|
||||
function( text ) RunConsoleCommand( "say", cmd.." "..v:Name().." "..text ) end,
|
||||
function( text ) end
|
||||
)
|
||||
end)
|
||||
end
|
||||
menu:Open()
|
||||
end
|
||||
|
||||
function OpenPlyBox(text1,text2,cmd)
|
||||
local menu = DermaMenu()
|
||||
for k,v in pairs(player.GetAll()) do
|
||||
menu:AddOption(v:Name(),function()
|
||||
RunConsoleCommand( "say", cmd.." "..v:Name() )
|
||||
end)
|
||||
end
|
||||
menu:Open()
|
||||
end
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
Donation for leaks
|
||||
|
||||
Qiwi Wallet 4890494419811120
|
||||
YandexMoney 410013095053302
|
||||
WebMoney(WMR) R235985364414
|
||||
WebMoney(WMZ) Z309855690994
|
||||
------------------------------------------------------------------------*/
|
||||
237
addons/f4/lua/smooth-f4menu/client/cl_smooth-f4menu-jobs.lua
Normal file
@@ -0,0 +1,237 @@
|
||||
/*----------------------------------------------------------------------
|
||||
Leak by Famouse
|
||||
|
||||
Play good games:↓
|
||||
http://store.steampowered.com/curator/32364216
|
||||
|
||||
Subscribe to the channel:↓
|
||||
www.youtube.com/c/Famouse
|
||||
|
||||
More leaks in the discord:↓
|
||||
https://discord.gg/rFdQwzm
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
local PANEL = {}
|
||||
function PANEL:Init()
|
||||
|
||||
SmoothJobsDPanel = vgui.Create( "DPanel", SmoothF4MenuFrame )
|
||||
SmoothJobsDPanel:SetPos( 50, 35 )
|
||||
SmoothJobsDPanel:SetSize( 950, 615 )
|
||||
SmoothJobsDPanel.Paint = function() end
|
||||
|
||||
SmoothJobsDPanelScroll = vgui.Create( "DPanel", SmoothJobsDPanel )
|
||||
SmoothJobsDPanelScroll:SetPos( 0, 0 )
|
||||
SmoothJobsDPanelScroll:SetSize( 1000, 615 )
|
||||
SmoothJobsDPanelScroll.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, 685, 660 , Color(255,255,255,0) )
|
||||
end
|
||||
|
||||
local scroll = vgui.Create("DScrollPanel", SmoothJobsDPanelScroll)
|
||||
scroll:SetSize(1000, 615)
|
||||
scroll:SetPos(0, 0)
|
||||
function scroll:Paint(w, h)
|
||||
draw.RoundedBox(0, 0, 0, 0, 0, Color(42, 46, 48, 0))
|
||||
end
|
||||
local scrollbar = scroll:GetVBar()
|
||||
function scrollbar:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(46, 49, 54, 0))
|
||||
end
|
||||
function scrollbar.btnUp:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(36, 39, 44, 0))
|
||||
end
|
||||
function scrollbar.btnDown:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(36, 39, 44, 0))
|
||||
end
|
||||
function scrollbar.btnGrip:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(36, 39, 44, 0))
|
||||
end
|
||||
|
||||
SmoothJobsDPanelPosX = 0
|
||||
for k, v in pairs( RPExtraTeams ) do
|
||||
|
||||
local colorchange = string.Explode(" ",tostring(v.color))
|
||||
|
||||
local playerplayjob = 0
|
||||
local playerjob = v.command
|
||||
local maxjobs = v.max
|
||||
for d,c in pairs(player.GetAll()) do
|
||||
local jobtableplay = c:getJobTable()
|
||||
if playerjob == jobtableplay.command then
|
||||
playerplayjob = playerplayjob + 1
|
||||
end
|
||||
end
|
||||
|
||||
SmoothJobsMain = vgui.Create( "DPanel", scroll )
|
||||
SmoothJobsMain:SetPos( 0,SmoothJobsDPanelPosX )
|
||||
SmoothJobsMain:SetSize( 950, 60 )
|
||||
SmoothJobsMain.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, SmoothJobsMain:GetWide(), SmoothJobsMain:GetTall() , Color(colorchange[1],colorchange[2],colorchange[3],60) )
|
||||
draw.SimpleText(v.name,"SmoothF4menuFontButton",75,20,Color(255,255,255))
|
||||
draw.RoundedBox( 0,0, 0, 60, 60 , Color(41, 41, 41,70) )
|
||||
|
||||
draw.SimpleText(playerplayjob.."/"..maxjobs,"SmoothF4menuFontButton",SmoothJobsDPanel:GetWide()-80,20,Color(255,255,255),TEXT_ALIGN_CENTER)
|
||||
|
||||
if v.vip then
|
||||
draw.SimpleText("[VIP]","SmoothF4menuFontButton",SmoothJobsDPanel:GetWide()-150,20,Color(255,255,255))
|
||||
end
|
||||
end
|
||||
|
||||
if type( v.model ) == "table" then
|
||||
model = table.Random( v.model )
|
||||
else
|
||||
model = v.model
|
||||
end
|
||||
|
||||
local jobsModel = vgui.Create( "SpawnIcon", SmoothJobsMain )
|
||||
jobsModel:SetSize( 56, 56 )
|
||||
jobsModel:SetPos( 5, 2 )
|
||||
jobsModel:SetModel( model )
|
||||
|
||||
local JobsSelect = vgui.Create("DButton", SmoothJobsMain)
|
||||
JobsSelect:SetSize( 890,60 )
|
||||
JobsSelect:SetPos( 60,0 )
|
||||
JobsSelect:SetColor( Color( 255, 255, 255 ))
|
||||
JobsSelect:SetFont("SmoothF4menuFontButton")
|
||||
JobsSelect:SetText("")
|
||||
JobsSelect.Paint = function(panel)
|
||||
if JobsSelect.isHover then
|
||||
draw.RoundedBox( 0,0, 0, JobsSelect:GetWide(), 60 , Color(41, 41, 41,50) )
|
||||
end
|
||||
end
|
||||
JobsSelect.OnCursorEntered = function()
|
||||
JobsSelect.isHover = true
|
||||
end
|
||||
JobsSelect.OnCursorExited = function()
|
||||
JobsSelect.isHover = false
|
||||
end
|
||||
JobsSelect.DoClick = function()
|
||||
if v.vip then
|
||||
if table.HasValue(SmoothF4MenuFrame_VipGroup,LocalPlayer():GetUserGroup()) then
|
||||
if v.vote then
|
||||
RunCmd("/vote"..v.command)
|
||||
SmoothF4MenuFrame:Close()
|
||||
else
|
||||
RunCmd("/"..v.command)
|
||||
SmoothF4MenuFrame:Close()
|
||||
end
|
||||
else
|
||||
notification.AddLegacy(SmoothF4MenuFrame_ErrorVip,NOTIFY_ERROR,2)
|
||||
end
|
||||
else
|
||||
if v.vote then
|
||||
RunCmd("/vote"..v.command)
|
||||
SmoothF4MenuFrame:Close()
|
||||
else
|
||||
RunCmd("/"..v.command)
|
||||
SmoothF4MenuFrame:Close()
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local JobsInfoScresiption = vgui.Create("DButton", SmoothJobsMain)
|
||||
JobsInfoScresiption:SetSize( 55,60 )
|
||||
JobsInfoScresiption:SetPos( SmoothJobsDPanel:GetWide()-55,0 )
|
||||
JobsInfoScresiption:SetColor( Color( 255, 255, 255 ))
|
||||
JobsInfoScresiption:SetFont("SmoothF4menuFontButton")
|
||||
JobsInfoScresiption:SetText("")
|
||||
JobsInfoScresiption.Paint = function(panel)
|
||||
local menuicon = Material( "materials/icons/info.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
if JobsInfoScresiption.isHover then
|
||||
draw.RoundedBox( 0,0, 0, 55, 60 , Color(41, 41, 41,50) )
|
||||
end
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(13,15,30,30 )
|
||||
end
|
||||
JobsInfoScresiption.Think = function()
|
||||
JobsInfoScresiption:SetPos( SmoothJobsDPanel:GetWide()-55,0 )
|
||||
end
|
||||
JobsInfoScresiption.OnCursorEntered = function()
|
||||
JobsInfoScresiption.isHover = true
|
||||
end
|
||||
JobsInfoScresiption.OnCursorExited = function()
|
||||
JobsInfoScresiption.isHover = false
|
||||
end
|
||||
JobsInfoScresiption.DoClick = function()
|
||||
SmoothJobsDescription(v.description,v.name,v.salary)
|
||||
end
|
||||
|
||||
SmoothJobsDPanelPosX = SmoothJobsDPanelPosX + 60
|
||||
end
|
||||
|
||||
end
|
||||
vgui.Register( "SmoothJobsPanel", PANEL, "Panel" )
|
||||
|
||||
function SmoothJobsDescription(textdescription,name,salary)
|
||||
|
||||
SmoothJobsMainDEscription = vgui.Create( "DPanel", SmoothJobsDPanel)
|
||||
SmoothJobsMainDEscription:SetPos( SmoothJobsDPanel:GetWide(),0 )
|
||||
SmoothJobsMainDEscription:SetSize( SmoothJobsDPanel:GetWide(), 615 )
|
||||
SmoothJobsMainDEscription.Paint = function()
|
||||
draw.RoundedBox( 0,0, 0, SmoothJobsDPanel:GetWide(), 615 , Color(41, 41, 41,150) )
|
||||
end
|
||||
SmoothJobsMainDEscription.Think = function()
|
||||
if IsValid(SmoothJobsMainDEscription) then
|
||||
SmoothJobsMainDEscription:SetSize( SmoothJobsDPanel:GetWide(), 615 )
|
||||
end
|
||||
end
|
||||
|
||||
local JobsInfoScresiptionCloseDPanel = vgui.Create("DButton", SmoothJobsMainDEscription)
|
||||
JobsInfoScresiptionCloseDPanel:SetSize( 55,60 )
|
||||
JobsInfoScresiptionCloseDPanel:SetPos( 0,0 )
|
||||
JobsInfoScresiptionCloseDPanel:SetColor( Color( 255, 255, 255 ))
|
||||
JobsInfoScresiptionCloseDPanel:SetFont("SmoothF4menuFontButton")
|
||||
JobsInfoScresiptionCloseDPanel:SetText("")
|
||||
JobsInfoScresiptionCloseDPanel.Paint = function(panel)
|
||||
local menuicon = Material( "materials/icons/back.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
if JobsInfoScresiptionCloseDPanel.isHover then
|
||||
surface.SetDrawColor( 200, 200, 200, 255 )
|
||||
else
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
end
|
||||
surface.DrawTexturedRect(15,20,32,32 )
|
||||
end
|
||||
JobsInfoScresiptionCloseDPanel.OnCursorEntered = function()
|
||||
JobsInfoScresiptionCloseDPanel.isHover = true
|
||||
end
|
||||
JobsInfoScresiptionCloseDPanel.OnCursorExited = function()
|
||||
JobsInfoScresiptionCloseDPanel.isHover = false
|
||||
end
|
||||
JobsInfoScresiptionCloseDPanel.DoClick = function()
|
||||
SmoothJobsMainDEscription:MoveTo(SmoothJobsDPanel:GetWide(),0,0.3,0,-1)
|
||||
SmoothJobsDPanelScroll:MoveTo(0,0,0.3,0,-1)
|
||||
timer.Simple(0.3,function()
|
||||
SmoothJobsMainDEscription:Remove()
|
||||
end)
|
||||
end
|
||||
|
||||
local DescriptionJobs = vgui.Create("DTextEntry", SmoothJobsMainDEscription)
|
||||
DescriptionJobs:SizeToContents()
|
||||
DescriptionJobs:SetPos(15, 65)
|
||||
DescriptionJobs:SetTextColor(Color(255,255,255,255))
|
||||
DescriptionJobs:SetMultiline( true )
|
||||
DescriptionJobs:SetEditable( false )
|
||||
DescriptionJobs:SetFont("SmoothF4menuFontButton")
|
||||
DescriptionJobs:SetWrap( true )
|
||||
DescriptionJobs:SetText( SmoothF4MenuFrame_DescriptionJobs..": \n\n"..name.."\n"..SmoothF4MenuFrame_DescriptionSalary..": "..salary..SmoothF4MenuFrame_Money.."\n\n"..textdescription )
|
||||
DescriptionJobs:SetDrawBorder(false)
|
||||
DescriptionJobs:SetDrawBackground(false)
|
||||
DescriptionJobs:SetSize(SmoothJobsMainDEscription:GetWide()-15,550)
|
||||
DescriptionJobs.Think = function()
|
||||
DescriptionJobs:SetSize(SmoothJobsMainDEscription:GetWide()-15,550)
|
||||
end
|
||||
|
||||
SmoothJobsMainDEscription:MoveTo(0,0,0.3,0,-1)
|
||||
SmoothJobsDPanelScroll:MoveTo(-1000,0,0.3,0,-1)
|
||||
|
||||
end
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
Donation for leaks
|
||||
|
||||
Qiwi Wallet 4890494419811120
|
||||
YandexMoney 410013095053302
|
||||
WebMoney(WMR) R235985364414
|
||||
WebMoney(WMZ) Z309855690994
|
||||
------------------------------------------------------------------------*/
|
||||
458
addons/f4/lua/smooth-f4menu/client/cl_smooth-f4menu-shop.lua
Normal file
@@ -0,0 +1,458 @@
|
||||
/*----------------------------------------------------------------------
|
||||
Leak by Famouse
|
||||
|
||||
Play good games:↓
|
||||
store.steampowered.com/curator/32364216
|
||||
|
||||
Subscribe to the channel:↓
|
||||
https://www.youtube.com/c/Famouse
|
||||
|
||||
More leaks in the discord:↓
|
||||
https://discord.gg/rFdQwzm
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
local PANEL = {}
|
||||
function PANEL:Init()
|
||||
|
||||
SmoothShopDPanel = vgui.Create( "DPanel", SmoothF4MenuFrame )
|
||||
SmoothShopDPanel:SetPos( 50, 40 )
|
||||
SmoothShopDPanel:SetSize( 950, 605 )
|
||||
SmoothShopDPanel.Paint = function() end
|
||||
|
||||
SmoothShopDPanelScroll = vgui.Create( "DPanel", SmoothShopDPanel )
|
||||
SmoothShopDPanelScroll:SetPos( 0, 0 )
|
||||
SmoothShopDPanelScroll:SetSize( 1000, 605 )
|
||||
SmoothShopDPanelScroll.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, 685, 660 , Color(255,255,255,0) )
|
||||
end
|
||||
|
||||
local scroll = vgui.Create("DScrollPanel", SmoothShopDPanelScroll)
|
||||
scroll:SetSize(1000, 605)
|
||||
scroll:SetPos(0, 0)
|
||||
function scroll:Paint(w, h)
|
||||
draw.RoundedBox(0, 0, 0, 0, 0, Color(42, 46, 48, 0))
|
||||
end
|
||||
local scrollbar = scroll:GetVBar()
|
||||
function scrollbar:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(46, 49, 54, 0))
|
||||
end
|
||||
function scrollbar.btnUp:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(36, 39, 44, 0))
|
||||
end
|
||||
function scrollbar.btnDown:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(36, 39, 44, 0))
|
||||
end
|
||||
function scrollbar.btnGrip:Paint(w, h)
|
||||
draw.RoundedBox(3, 5, 0, 0, 0, Color(36, 39, 44, 0))
|
||||
end
|
||||
|
||||
SmoothShopDPanelPosX = 0
|
||||
|
||||
local EntityTitle = vgui.Create("DLabel", scroll)
|
||||
EntityTitle:SizeToContents()
|
||||
EntityTitle:SetPos(5, 0)
|
||||
EntityTitle:SetColor(Color(255,255,255,255))
|
||||
EntityTitle:SetText( " "..SmoothF4MenuFrame_Entities )
|
||||
EntityTitle:SetWide( SmoothShopDPanel:GetWide()-10 )
|
||||
EntityTitle:SetFont( "SmoothF4menuFontButton" )
|
||||
EntityTitle:SetTall(35)
|
||||
EntityTitle.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, EntityTitle:GetWide(), EntityTitle:GetTall() , Color(41, 41, 41,100) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,EntityTitle:GetWide(), EntityTitle:GetTall() )
|
||||
end
|
||||
EntityTitle.Think = function() EntityTitle:SetWide( SmoothShopDPanel:GetWide()-10 ) end
|
||||
|
||||
SmoothShopDPanelPosX = SmoothShopDPanelPosX + 40
|
||||
DarkRPEntitiesCount = 0
|
||||
for k,v in pairs(DarkRPEntities) do
|
||||
local canbuy = false
|
||||
if v.allowed then
|
||||
if istable(v.allowed) then
|
||||
if table.HasValue(v.allowed,LocalPlayer():Team()) then
|
||||
canbuy = true
|
||||
end
|
||||
elseif v.allowed == LocalPlayer():Team() then
|
||||
canbuy = true
|
||||
end
|
||||
else
|
||||
canbuy = true
|
||||
end
|
||||
if canbuy then
|
||||
DarkRPEntitiesCount = DarkRPEntitiesCount + 1
|
||||
|
||||
EnitytMain = vgui.Create( "DPanel", scroll )
|
||||
EnitytMain:SetPos( 30,SmoothShopDPanelPosX)
|
||||
EnitytMain:SetSize( SmoothShopDPanel:GetWide()-35, 50 )
|
||||
EnitytMain.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, EnitytMain:GetWide(), EnitytMain:GetTall() , Color(41, 41, 41,100) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,EnitytMain:GetWide(), EnitytMain:GetTall() )
|
||||
|
||||
if v.vip then
|
||||
draw.SimpleText("[VIP]","SmoothF4menuFontButton",EnitytMain:GetWide()-55,15,Color(255,255,255))
|
||||
end
|
||||
end
|
||||
EnitytMain.Think = function()
|
||||
if IsValid(EnitytMain) then
|
||||
EnitytMain:SetSize( SmoothShopDPanel:GetWide()-35, 50 )
|
||||
end
|
||||
end
|
||||
|
||||
local entModel = vgui.Create( "SpawnIcon", EnitytMain )
|
||||
entModel:SetSize( 50, 48 )
|
||||
entModel:SetPos( 5, 1 )
|
||||
entModel:SetModel( v.model )
|
||||
|
||||
local EnitytItem = vgui.Create("DLabel", EnitytMain)
|
||||
EnitytItem:SizeToContents()
|
||||
EnitytItem:SetPos(75, 5)
|
||||
EnitytItem:SetColor(Color(255,255,255,255))
|
||||
EnitytItem:SetText( v.name )
|
||||
EnitytItem:SetWide( 500 )
|
||||
EnitytItem:SetFont( "SmoothF4menuFontButton" )
|
||||
EnitytItem:SetTall(20)
|
||||
|
||||
local EnitytCost = vgui.Create("DLabel", EnitytMain)
|
||||
EnitytCost:SizeToContents()
|
||||
EnitytCost:SetPos(75, 26)
|
||||
EnitytCost:SetColor(Color(255,255,255,255))
|
||||
EnitytCost:SetText( SmoothF4MenuFrame_Money..v.price )
|
||||
EnitytCost:SetWide( 500 )
|
||||
EnitytCost:SetFont( "SmoothF4menuFontButton" )
|
||||
EnitytCost:SetTall(20)
|
||||
|
||||
local EnitytBuy = vgui.Create("DButton", EnitytMain)
|
||||
EnitytBuy:SetSize( EnitytMain:GetWide(), 50 )
|
||||
EnitytBuy:SetPos( 0 , 0 )
|
||||
EnitytBuy:SetColor( Color( 255, 255, 255 ))
|
||||
EnitytBuy:SetFont("SmoothF4menuFontButton")
|
||||
EnitytBuy:SetText("")
|
||||
EnitytBuy.Paint = function( )
|
||||
if EnitytBuy.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, EnitytMain:GetWide(), EnitytMain:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
end
|
||||
EnitytBuy.OnCursorEntered = function()
|
||||
EnitytBuy.isHover = true
|
||||
end
|
||||
EnitytBuy.OnCursorExited = function()
|
||||
EnitytBuy.isHover = false
|
||||
end
|
||||
EnitytBuy.DoClick = function()
|
||||
if v.vip then
|
||||
if table.HasValue(SmoothF4MenuFrame_VipEntity,LocalPlayer():GetUserGroup()) then
|
||||
RunEntCmd(v.cmd)
|
||||
else
|
||||
notification.AddLegacy(SmoothF4MenuFrame_ErrorVip,NOTIFY_ERROR,2)
|
||||
end
|
||||
else
|
||||
RunEntCmd(v.cmd)
|
||||
end
|
||||
end
|
||||
|
||||
SmoothShopDPanelPosX = SmoothShopDPanelPosX + 55
|
||||
end
|
||||
end
|
||||
if DarkRPEntitiesCount == 0 then if IsValid(EntityTitle) then EntityTitle:Remove() SmoothShopDPanelPosX = SmoothShopDPanelPosX - 40 end end
|
||||
|
||||
if SmoothF4MenuFrame_EnableWeapon then
|
||||
local WeaponTitle = vgui.Create("DLabel", scroll)
|
||||
WeaponTitle:SizeToContents()
|
||||
WeaponTitle:SetPos(5, SmoothShopDPanelPosX)
|
||||
WeaponTitle:SetColor(Color(255,255,255,255))
|
||||
WeaponTitle:SetText( " "..SmoothF4MenuFrame_Weapon )
|
||||
WeaponTitle:SetWide( SmoothShopDPanel:GetWide()-10 )
|
||||
WeaponTitle:SetFont( "SmoothF4menuFontButton" )
|
||||
WeaponTitle:SetTall(35)
|
||||
WeaponTitle.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, WeaponTitle:GetWide(), WeaponTitle:GetTall() , Color(41, 41, 41,100) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,WeaponTitle:GetWide(), WeaponTitle:GetTall() )
|
||||
end
|
||||
WeaponTitle.Think = function() WeaponTitle:SetWide( SmoothShopDPanel:GetWide()-10 ) end
|
||||
|
||||
SmoothShopDPanelPosX = SmoothShopDPanelPosX + 40
|
||||
CustomShipmentsCount = 0
|
||||
for k,v in pairs(CustomShipments) do
|
||||
if (v.seperate and (not GAMEMODE.Config.restrictbuypistol or
|
||||
(GAMEMODE.Config.restrictbuypistol and (not v.allowed[1] or table.HasValue(v.allowed, LocalPlayer():Team())))))
|
||||
and (not v.customCheck or v.customCheck and v.customCheck(LocalPlayer())) then
|
||||
CustomShipmentsCount = CustomShipmentsCount + 1
|
||||
|
||||
WeaponMain = vgui.Create( "DPanel", scroll )
|
||||
WeaponMain:SetPos( 30,SmoothShopDPanelPosX)
|
||||
WeaponMain:SetSize( SmoothShopDPanel:GetWide()-35, 50 )
|
||||
WeaponMain.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, EnitytMain:GetWide(), EnitytMain:GetTall() , Color(41, 41, 41,100) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,EnitytMain:GetWide(), EnitytMain:GetTall() )
|
||||
|
||||
draw.SimpleText("х1","SmoothF4menuFontButton",WeaponMain:GetWide()-44,15,Color(255,255,255))
|
||||
|
||||
if v.vip then
|
||||
draw.SimpleText("[VIP]","SmoothF4menuFontButton",EnitytMain:GetWide()-110,15,Color(255,255,255))
|
||||
end
|
||||
end
|
||||
WeaponMain.Think = function()
|
||||
if IsValid(WeaponMain) then
|
||||
WeaponMain:SetSize( SmoothShopDPanel:GetWide()-35, 50 )
|
||||
end
|
||||
end
|
||||
|
||||
local entModel = vgui.Create( "SpawnIcon", WeaponMain )
|
||||
entModel:SetSize( 50, 48 )
|
||||
entModel:SetPos( 5, 1 )
|
||||
entModel:SetModel( v.model )
|
||||
|
||||
local WeaponItem = vgui.Create("DLabel", WeaponMain)
|
||||
WeaponItem:SizeToContents()
|
||||
WeaponItem:SetPos(75, 5)
|
||||
WeaponItem:SetColor(Color(255,255,255,255))
|
||||
WeaponItem:SetText( v.name )
|
||||
WeaponItem:SetWide( 250 )
|
||||
WeaponItem:SetFont( "SmoothF4menuFontButton" )
|
||||
WeaponItem:SetTall(20)
|
||||
|
||||
local WeaponCost = vgui.Create("DLabel", WeaponMain)
|
||||
WeaponCost:SizeToContents()
|
||||
WeaponCost:SetPos(75, 26)
|
||||
WeaponCost:SetColor(Color(255,255,255,255))
|
||||
WeaponCost:SetText( SmoothF4MenuFrame_Money..v.pricesep )
|
||||
WeaponCost:SetWide( 150 )
|
||||
WeaponCost:SetFont( "SmoothF4menuFontButton" )
|
||||
WeaponCost:SetTall(20)
|
||||
|
||||
local WeaponBuy = vgui.Create("DButton", WeaponMain)
|
||||
WeaponBuy:SetSize( WeaponMain:GetWide(), 50 )
|
||||
WeaponBuy:SetPos( 0 , 0 )
|
||||
WeaponBuy:SetColor( Color( 255, 255, 255 ))
|
||||
WeaponBuy:SetFont("SmoothF4menuFontButton")
|
||||
WeaponBuy:SetText("")
|
||||
WeaponBuy.Paint = function( )
|
||||
if WeaponBuy.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, EnitytMain:GetWide(), EnitytMain:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
end
|
||||
WeaponBuy.OnCursorEntered = function()
|
||||
WeaponBuy.isHover = true
|
||||
end
|
||||
WeaponBuy.OnCursorExited = function()
|
||||
WeaponBuy.isHover = false
|
||||
end
|
||||
WeaponBuy.DoClick = function()
|
||||
if v.vip then
|
||||
if table.HasValue(SmoothF4MenuFrame_VipWeapon,LocalPlayer():GetUserGroup()) then
|
||||
RunEntCmd("buy "..v.name)
|
||||
else
|
||||
notification.AddLegacy(SmoothF4MenuFrame_ErrorVip,NOTIFY_ERROR,2)
|
||||
end
|
||||
else
|
||||
RunEntCmd("buy "..v.name)
|
||||
end
|
||||
end
|
||||
|
||||
SmoothShopDPanelPosX = SmoothShopDPanelPosX + 55
|
||||
end
|
||||
end
|
||||
if CustomShipmentsCount == 0 then if IsValid(WeaponTitle) then WeaponTitle:Remove() SmoothShopDPanelPosX = SmoothShopDPanelPosX - 40 end end
|
||||
end
|
||||
|
||||
if SmoothF4MenuFrame_EnableShipments then
|
||||
local ShipMentsTitle = vgui.Create("DLabel", scroll)
|
||||
ShipMentsTitle:SizeToContents()
|
||||
ShipMentsTitle:SetPos(5, SmoothShopDPanelPosX)
|
||||
ShipMentsTitle:SetColor(Color(255,255,255,255))
|
||||
ShipMentsTitle:SetText( " "..SmoothF4MenuFrame_Shipments )
|
||||
ShipMentsTitle:SetWide( SmoothShopDPanel:GetWide()-10 )
|
||||
ShipMentsTitle:SetFont( "SmoothF4menuFontButton" )
|
||||
ShipMentsTitle:SetTall(35)
|
||||
ShipMentsTitle.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, ShipMentsTitle:GetWide(), ShipMentsTitle:GetTall() , Color(41, 41, 41,100) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,ShipMentsTitle:GetWide(), ShipMentsTitle:GetTall() )
|
||||
end
|
||||
ShipMentsTitle.Think = function() ShipMentsTitle:SetWide( SmoothShopDPanel:GetWide()-10 ) end
|
||||
|
||||
SmoothShopDPanelPosX = SmoothShopDPanelPosX + 40
|
||||
CustomShipmentsShipments = 0
|
||||
for k,v in pairs(CustomShipments) do
|
||||
if !v.noship and table.HasValue(v.allowed, LocalPlayer():Team())
|
||||
and (not v.customCheck or (v.customCheck and v.customCheck(LocalPlayer()))) then
|
||||
CustomShipmentsShipments = CustomShipmentsShipments + 1
|
||||
|
||||
ShipmentsMain = vgui.Create( "DPanel", scroll )
|
||||
ShipmentsMain:SetPos( 30,SmoothShopDPanelPosX)
|
||||
ShipmentsMain:SetSize( SmoothShopDPanel:GetWide()-35, 50 )
|
||||
ShipmentsMain.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, EnitytMain:GetWide(), EnitytMain:GetTall() , Color(41, 41, 41,100) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,EnitytMain:GetWide(), EnitytMain:GetTall() )
|
||||
|
||||
draw.SimpleText("х"..v.amount,"SmoothF4menuFontButton",ShipmentsMain:GetWide()-50,15,Color(255,255,255))
|
||||
|
||||
if v.vip then
|
||||
draw.SimpleText("[VIP]","SmoothF4menuFontButton",EnitytMain:GetWide()-110,15,Color(255,255,255))
|
||||
end
|
||||
end
|
||||
ShipmentsMain.Think = function()
|
||||
if IsValid(ShipmentsMain) then
|
||||
ShipmentsMain:SetSize( SmoothShopDPanel:GetWide()-35, 50 )
|
||||
end
|
||||
end
|
||||
|
||||
local entModel = vgui.Create( "SpawnIcon", ShipmentsMain )
|
||||
entModel:SetSize( 50, 48 )
|
||||
entModel:SetPos( 5, 1 )
|
||||
entModel:SetModel( v.model )
|
||||
|
||||
local ShipmentsItem = vgui.Create("DLabel", ShipmentsMain)
|
||||
ShipmentsItem:SizeToContents()
|
||||
ShipmentsItem:SetPos(75, 5)
|
||||
ShipmentsItem:SetColor(Color(255,255,255,255))
|
||||
ShipmentsItem:SetText( v.name )
|
||||
ShipmentsItem:SetWide( 250 )
|
||||
ShipmentsItem:SetFont( "SmoothF4menuFontButton" )
|
||||
ShipmentsItem:SetTall(20)
|
||||
|
||||
local ShipmentsCost = vgui.Create("DLabel", ShipmentsMain)
|
||||
ShipmentsCost:SizeToContents()
|
||||
ShipmentsCost:SetPos(75, 26)
|
||||
ShipmentsCost:SetColor(Color(255,255,255,255))
|
||||
ShipmentsCost:SetText( SmoothF4MenuFrame_Money..v.price )
|
||||
ShipmentsCost:SetWide( 150 )
|
||||
ShipmentsCost:SetFont( "SmoothF4menuFontButton" )
|
||||
ShipmentsCost:SetTall(20)
|
||||
|
||||
local ShipmentsBuy = vgui.Create("DButton", ShipmentsMain)
|
||||
ShipmentsBuy:SetSize( ShipmentsMain:GetWide(), 50 )
|
||||
ShipmentsBuy:SetPos( 0 , 0 )
|
||||
ShipmentsBuy:SetColor( Color( 255, 255, 255 ))
|
||||
ShipmentsBuy:SetFont("SmoothF4menuFontButton")
|
||||
ShipmentsBuy:SetText("")
|
||||
ShipmentsBuy.Paint = function( )
|
||||
if ShipmentsBuy.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, EnitytMain:GetWide(), EnitytMain:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
end
|
||||
ShipmentsBuy.OnCursorEntered = function()
|
||||
ShipmentsBuy.isHover = true
|
||||
end
|
||||
ShipmentsBuy.OnCursorExited = function()
|
||||
ShipmentsBuy.isHover = false
|
||||
end
|
||||
ShipmentsBuy.DoClick = function()
|
||||
if v.vip then
|
||||
if table.HasValue(SmoothF4MenuFrame_VipShipments,LocalPlayer():GetUserGroup()) then
|
||||
RunEntCmd("buyshipment "..v.name)
|
||||
else
|
||||
notification.AddLegacy(SmoothF4MenuFrame_ErrorVip,NOTIFY_ERROR,2)
|
||||
end
|
||||
else
|
||||
RunEntCmd("buyshipment "..v.name)
|
||||
end
|
||||
end
|
||||
|
||||
SmoothShopDPanelPosX = SmoothShopDPanelPosX + 55
|
||||
end
|
||||
end
|
||||
if CustomShipmentsShipments == 0 then if IsValid(ShipMentsTitle) then ShipMentsTitle:Remove() SmoothShopDPanelPosX = SmoothShopDPanelPosX - 40 end end
|
||||
end
|
||||
|
||||
if SmoothF4MenuFrame_EnableAmmo then
|
||||
local AmmoTitle = vgui.Create("DLabel", scroll)
|
||||
AmmoTitle:SizeToContents()
|
||||
AmmoTitle:SetPos(5, SmoothShopDPanelPosX)
|
||||
AmmoTitle:SetColor(Color(255,255,255,255))
|
||||
AmmoTitle:SetText( " "..SmoothF4MenuFrame_Ammo )
|
||||
AmmoTitle:SetWide( SmoothShopDPanel:GetWide()-10 )
|
||||
AmmoTitle:SetFont( "SmoothF4menuFontButton" )
|
||||
AmmoTitle:SetTall(35)
|
||||
AmmoTitle.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, AmmoTitle:GetWide(), AmmoTitle:GetTall() , Color(41, 41, 41,100) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,AmmoTitle:GetWide(), AmmoTitle:GetTall() )
|
||||
end
|
||||
AmmoTitle.Think = function() AmmoTitle:SetWide( SmoothShopDPanel:GetWide()-10 ) end
|
||||
|
||||
SmoothShopDPanelPosX = SmoothShopDPanelPosX + 40
|
||||
CustomAmmoAmmo = 0
|
||||
for k,v in pairs(GAMEMODE.AmmoTypes) do
|
||||
CustomAmmoAmmo = CustomAmmoAmmo + 1
|
||||
|
||||
AmmoMain = vgui.Create( "DPanel", scroll )
|
||||
AmmoMain:SetPos( 30,SmoothShopDPanelPosX)
|
||||
AmmoMain:SetSize( SmoothShopDPanel:GetWide()-35, 50 )
|
||||
AmmoMain.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, AmmoMain:GetWide(), AmmoMain:GetTall() , Color(41, 41, 41,100) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,AmmoMain:GetWide(), AmmoMain:GetTall() )
|
||||
|
||||
draw.SimpleText("х"..v.amountGiven,"SmoothF4menuFontButton",AmmoMain:GetWide()-47,15,Color(255,255,255))
|
||||
end
|
||||
AmmoMain.Think = function()
|
||||
if IsValid(AmmoMain) then
|
||||
AmmoMain:SetSize( SmoothShopDPanel:GetWide()-35, 50 )
|
||||
end
|
||||
end
|
||||
|
||||
local entModel = vgui.Create( "SpawnIcon", AmmoMain )
|
||||
entModel:SetSize( 50, 48 )
|
||||
entModel:SetPos( 5, 1 )
|
||||
entModel:SetModel( v.model )
|
||||
|
||||
local AmmoItem = vgui.Create("DLabel", AmmoMain)
|
||||
AmmoItem:SizeToContents()
|
||||
AmmoItem:SetPos(75, 5)
|
||||
AmmoItem:SetColor(Color(255,255,255,255))
|
||||
AmmoItem:SetText( v.name )
|
||||
AmmoItem:SetWide( 250 )
|
||||
AmmoItem:SetFont( "SmoothF4menuFontButton" )
|
||||
AmmoItem:SetTall(20)
|
||||
|
||||
local AmmoCost = vgui.Create("DLabel", AmmoMain)
|
||||
AmmoCost:SizeToContents()
|
||||
AmmoCost:SetPos(75, 26)
|
||||
AmmoCost:SetColor(Color(255,255,255,255))
|
||||
AmmoCost:SetText( SmoothF4MenuFrame_Money..v.price )
|
||||
AmmoCost:SetWide( 150 )
|
||||
AmmoCost:SetFont( "SmoothF4menuFontButton" )
|
||||
AmmoCost:SetTall(20)
|
||||
|
||||
local AmmoBuy = vgui.Create("DButton", AmmoMain)
|
||||
AmmoBuy:SetSize( AmmoMain:GetWide(), 50 )
|
||||
AmmoBuy:SetPos( 0 , 0 )
|
||||
AmmoBuy:SetColor( Color( 255, 255, 255 ))
|
||||
AmmoBuy:SetFont("SmoothF4menuFontButton")
|
||||
AmmoBuy:SetText("")
|
||||
AmmoBuy.Paint = function( )
|
||||
if AmmoBuy.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, AmmoMain:GetWide(), AmmoMain:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
end
|
||||
AmmoBuy.OnCursorEntered = function()
|
||||
AmmoBuy.isHover = true
|
||||
end
|
||||
AmmoBuy.OnCursorExited = function()
|
||||
AmmoBuy.isHover = false
|
||||
end
|
||||
AmmoBuy.DoClick = function()
|
||||
RunEntCmd( "buyammo "..v.ammoType )
|
||||
end
|
||||
|
||||
SmoothShopDPanelPosX = SmoothShopDPanelPosX + 55
|
||||
end
|
||||
if CustomAmmoAmmo == 0 then if IsValid(AmmoTitle) then AmmoTitle:Remove() end end
|
||||
end
|
||||
|
||||
end
|
||||
vgui.Register( "SmoothShopPanel", PANEL, "Panel" )
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
Donation for leaks
|
||||
|
||||
Qiwi Wallet 4890494419811120
|
||||
YandexMoney 410013095053302
|
||||
WebMoney(WMR) R235985364414
|
||||
WebMoney(WMZ) Z309855690994
|
||||
------------------------------------------------------------------------*/
|
||||
80
addons/f4/lua/smooth-f4menu/client/cl_smooth-f4menu-site.lua
Normal file
@@ -0,0 +1,80 @@
|
||||
local PANEL = {}
|
||||
function PANEL:Init()
|
||||
|
||||
SmoothSiteDPanel = vgui.Create( "DPanel", SmoothF4MenuFrame )
|
||||
SmoothSiteDPanel:SetPos( 50, 35 )
|
||||
SmoothSiteDPanel:SetSize( 950, 615 )
|
||||
SmoothSiteDPanel.Paint = function()
|
||||
draw.SimpleText(SmoothF4MenuFrame_Loading,"SmoothF4menuFontButton",SmoothSiteDPanel:GetWide()/2,SmoothSiteDPanel:GetTall()/2,Color(255,255,255),TEXT_ALIGN_CENTER,TEXT_ALIGN_CENTER)
|
||||
end
|
||||
|
||||
local SmoothOpenHtml = vgui.Create( "HTML", SmoothSiteDPanel )
|
||||
SmoothOpenHtml:SetSize(SmoothSiteDPanel:GetWide()-10, 570)
|
||||
SmoothOpenHtml:SetPos(5,0)
|
||||
SmoothOpenHtml:OpenURL( SmoothF4MenuFrame_SiteURL )
|
||||
SmoothOpenHtml.Think = function()
|
||||
SmoothOpenHtml:SetSize(SmoothSiteDPanel:GetWide()-10, 570)
|
||||
end
|
||||
|
||||
local OpenBtn = vgui.Create("DButton", SmoothSiteDPanel)
|
||||
OpenBtn:SetText("Открыть в браузере")
|
||||
OpenBtn:SetFont("SmoothF4menuFontButton")
|
||||
OpenBtn:SetPos(5, 575)
|
||||
OpenBtn:SetSize(SmoothSiteDPanel:GetWide()-10, 35)
|
||||
OpenBtn.Paint = function(self, w, h)
|
||||
if self:IsHovered() then
|
||||
draw.RoundedBox(0, 0, 0, w, h, Color(40, 40, 40, 255))
|
||||
self:SetTextColor(Color(255, 255, 255, 255))
|
||||
else
|
||||
draw.RoundedBox(0, 0, 0, w, h, Color(20, 20, 20, 255))
|
||||
self:SetTextColor(Color(200, 200, 200, 255))
|
||||
end
|
||||
end
|
||||
OpenBtn.DoClick = function()
|
||||
gui.OpenURL(SmoothF4MenuFrame_SiteURL)
|
||||
end
|
||||
|
||||
end
|
||||
vgui.Register( "SmoothSitePanel", PANEL, "Panel" )
|
||||
|
||||
|
||||
|
||||
|
||||
local PANEL = {}
|
||||
function PANEL:Init()
|
||||
|
||||
SmoothDonateDPanel = vgui.Create( "DPanel", SmoothF4MenuFrame )
|
||||
SmoothDonateDPanel:SetPos( 50, 35 )
|
||||
SmoothDonateDPanel:SetSize( 950, 615 )
|
||||
SmoothDonateDPanel.Paint = function()
|
||||
draw.SimpleText(SmoothF4MenuFrame_Loading,"SmoothF4menuFontButton",SmoothDonateDPanel:GetWide()/2,SmoothDonateDPanel:GetTall()/2,Color(255,255,255),TEXT_ALIGN_CENTER,TEXT_ALIGN_CENTER)
|
||||
end
|
||||
|
||||
local SmoothOpenHtml = vgui.Create( "HTML", SmoothDonateDPanel )
|
||||
SmoothOpenHtml:SetSize(SmoothDonateDPanel:GetWide()-10, 570)
|
||||
SmoothOpenHtml:SetPos(5,0)
|
||||
SmoothOpenHtml:OpenURL( SmoothF4MenuFrame_DonateURL )
|
||||
SmoothOpenHtml.Think = function()
|
||||
SmoothOpenHtml:SetSize(SmoothDonateDPanel:GetWide()-10, 570)
|
||||
end
|
||||
|
||||
local OpenBtn = vgui.Create("DButton", SmoothDonateDPanel)
|
||||
OpenBtn:SetText("Открыть в браузере")
|
||||
OpenBtn:SetFont("SmoothF4menuFontButton")
|
||||
OpenBtn:SetPos(5, 575)
|
||||
OpenBtn:SetSize(SmoothDonateDPanel:GetWide()-10, 35)
|
||||
OpenBtn.Paint = function(self, w, h)
|
||||
if self:IsHovered() then
|
||||
draw.RoundedBox(0, 0, 0, w, h, Color(40, 40, 40, 255))
|
||||
self:SetTextColor(Color(255, 255, 255, 255))
|
||||
else
|
||||
draw.RoundedBox(0, 0, 0, w, h, Color(20, 20, 20, 255))
|
||||
self:SetTextColor(Color(200, 200, 200, 255))
|
||||
end
|
||||
end
|
||||
OpenBtn.DoClick = function()
|
||||
gui.OpenURL(SmoothF4MenuFrame_DonateURL)
|
||||
end
|
||||
|
||||
end
|
||||
vgui.Register( "SmoothDonatePanel", PANEL, "Panel" )
|
||||
153
addons/f4/lua/smooth-f4menu/client/cl_smooth-f4menu-title.lua
Normal file
@@ -0,0 +1,153 @@
|
||||
/*----------------------------------------------------------------------
|
||||
Leak by Famouse
|
||||
|
||||
Play good games:↓
|
||||
store.steampowered.com/curator/32364216
|
||||
|
||||
Subscribe to the channel:↓
|
||||
https://www.youtube.com/c/Famouse
|
||||
|
||||
More leaks in the discord:↓
|
||||
discord.gg/rFdQwzm
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
local PANEL = {}
|
||||
function PANEL:Init()
|
||||
|
||||
SmoothTitleDPanel = vgui.Create( "DPanel", SmoothF4MenuFrame )
|
||||
SmoothTitleDPanel:SetPos( 50, 35 )
|
||||
SmoothTitleDPanel:SetSize( 950, 615 )
|
||||
SmoothTitleDPanel.Paint = function()
|
||||
|
||||
end
|
||||
|
||||
SmoothPanelInfoServer = vgui.Create( "DPanel", SmoothTitleDPanel )
|
||||
SmoothPanelInfoServer:SetPos( 5, 5 )
|
||||
SmoothPanelInfoServer:SetSize( SmoothTitleDPanel:GetWide()-10, 70 )
|
||||
SmoothPanelInfoServer.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, SmoothPanelInfoServer:GetWide(), SmoothPanelInfoServer:GetTall() , Color(47, 47, 47,150) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,SmoothPanelInfoServer:GetWide(), SmoothPanelInfoServer:GetTall())
|
||||
|
||||
draw.SimpleText(SmoothF4MenuFrame_NameServer,"SmoothF4menuFont1",29,2,Color(255,255,255))
|
||||
draw.RoundedBox( 2, 5, 35, SmoothPanelInfoServer:GetWide()-14, 2 , Color(255,255,255) )
|
||||
|
||||
local menuicon = Material( "materials/icons/database.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(5,7,22,22 )
|
||||
|
||||
local onlineplayer = 0
|
||||
for k,v in pairs(player.GetAll()) do onlineplayer = onlineplayer + 1 end
|
||||
|
||||
draw.SimpleText(SmoothF4MenuFrame_OnlinePlayer..": "..onlineplayer,"SmoothF4menuFontButton",30,43,Color(255,255,255))
|
||||
|
||||
local menuicon = Material( "materials/icons/user.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(9,46,15,15 )
|
||||
end
|
||||
SmoothPanelInfoServer.Think = function() SmoothPanelInfoServer:SetSize( SmoothTitleDPanel:GetWide()-10, 70 ) end
|
||||
|
||||
SmoothPanelInfoPlayer = vgui.Create( "DPanel", SmoothTitleDPanel )
|
||||
SmoothPanelInfoPlayer:SetPos( 5, 80 )
|
||||
SmoothPanelInfoPlayer:SetSize( SmoothTitleDPanel:GetWide()-10, 85 )
|
||||
SmoothPanelInfoPlayer.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, SmoothPanelInfoPlayer:GetWide(), SmoothPanelInfoPlayer:GetTall() , Color(47, 47, 47,150) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,SmoothPanelInfoPlayer:GetWide(), SmoothPanelInfoPlayer:GetTall())
|
||||
|
||||
draw.SimpleText(LocalPlayer():Name(),"SmoothF4menuFont1",90,3,Color(255,255,255))
|
||||
draw.RoundedBox( 2, 91, 35, SmoothPanelInfoPlayer:GetWide()-100, 2 , Color(255,255,255) )
|
||||
|
||||
draw.SimpleText(SmoothF4MenuFrame_TMoney..": "..LocalPlayer():getDarkRPVar("money")..SmoothF4MenuFrame_Money,"SmoothF4menuFontButton",90,40,Color(255,255,255))
|
||||
draw.SimpleText(SmoothF4MenuFrame_Group..": "..LocalPlayer():GetUserGroup(),"SmoothF4menuFontButton",90,59,Color(255,255,255))
|
||||
end
|
||||
SmoothPanelInfoPlayer.Think = function() SmoothPanelInfoPlayer:SetSize( SmoothTitleDPanel:GetWide()-10, 85 ) end
|
||||
|
||||
local Avatar = vgui.Create( "AvatarImage", SmoothPanelInfoPlayer )
|
||||
Avatar:SetSize( 75, 75 )
|
||||
Avatar:SetPos( 5, 5 )
|
||||
Avatar:SetPlayer( LocalPlayer(), 128 )
|
||||
|
||||
SmoothPanelStaffOnline = vgui.Create( "DPanel", SmoothTitleDPanel )
|
||||
SmoothPanelStaffOnline:SetPos( 5, 170 )
|
||||
SmoothPanelStaffOnline:SetSize( 300, 440 )
|
||||
SmoothPanelStaffOnline.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, SmoothPanelStaffOnline:GetWide(), SmoothPanelStaffOnline:GetTall() , Color(47, 47, 47,150) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,SmoothPanelStaffOnline:GetWide(), SmoothPanelStaffOnline:GetTall())
|
||||
|
||||
draw.SimpleText(SmoothF4MenuFrame_TStaffOnline,"SmoothF4menuFont1",5,3,Color(255,255,255))
|
||||
draw.RoundedBox( 2, 5, 35, 290, 2 , Color(255,255,255) )
|
||||
|
||||
end
|
||||
SmoothPanelStaffOnline.Think = function() SmoothPanelStaffOnline:SetSize( 300, 440 ) end
|
||||
|
||||
SmoothStaffPosY = 34
|
||||
SmoothStaffPosYNumber = 0
|
||||
for k,v in pairs(player.GetAll()) do
|
||||
if SmoothStaffPosYNumber < 17 then
|
||||
if table.HasValue(SmoothF4MenuFrame_StaffOnline,v:GetUserGroup()) then
|
||||
local SmoothStaffLabel = vgui.Create("DLabel", SmoothPanelStaffOnline)
|
||||
SmoothStaffLabel:SetPos(5, SmoothStaffPosY)
|
||||
SmoothStaffLabel:SetColor(Color(255,255,255,255))
|
||||
SmoothStaffLabel:SetText( "" )
|
||||
SmoothStaffLabel:SetWide( 290 )
|
||||
SmoothStaffLabel:SetFont( "SmoothF4menuFontButton" )
|
||||
SmoothStaffLabel:SetTall(100)
|
||||
SmoothStaffLabel.Paint = function()
|
||||
draw.SimpleText(v:Name().." - "..v:GetUserGroup(),"SmoothF4menuFontButton",0,6,Color(255,255,255))
|
||||
end
|
||||
SmoothStaffPosYNumber = SmoothStaffPosYNumber + 1
|
||||
SmoothStaffPosY = SmoothStaffPosY + 23.5
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
SmoothPanelRules = vgui.Create( "DPanel", SmoothTitleDPanel )
|
||||
SmoothPanelRules:SetPos( 310, 170 )
|
||||
SmoothPanelRules:SetSize( SmoothTitleDPanel:GetWide()-310, 440 )
|
||||
SmoothPanelRules.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, SmoothPanelRules:GetWide(), SmoothPanelRules:GetTall() , Color(47, 47, 47,150) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,SmoothPanelRules:GetWide(), SmoothPanelRules:GetTall())
|
||||
|
||||
draw.SimpleText(SmoothF4MenuFrame_RulesTitle,"SmoothF4menuFont1",5,3,Color(255,255,255))
|
||||
draw.RoundedBox( 2, 5, 35, SmoothTitleDPanel:GetWide()-330, 2 , Color(255,255,255) )
|
||||
|
||||
end
|
||||
SmoothPanelRules.Think = function() SmoothPanelRules:SetSize( SmoothTitleDPanel:GetWide()-315, 440 ) end
|
||||
|
||||
local SmoothStaffLabel = vgui.Create("DLabel", SmoothPanelRules)
|
||||
SmoothStaffLabel:SetPos(10, 45)
|
||||
SmoothStaffLabel:SetColor(Color(255,255,255,255))
|
||||
SmoothStaffLabel:SetText( "" )
|
||||
SmoothStaffLabel:SetWide( SmoothPanelRules:GetWide()-20 )
|
||||
SmoothStaffLabel:SetFont( "SmoothF4menuFontButton" )
|
||||
SmoothStaffLabel:SetTall(1)
|
||||
SmoothStaffLabel.Paint = function() end
|
||||
SmoothStaffLabel.Think = function()
|
||||
rulestext = ""
|
||||
for k,v in pairs(DarkRP.getLaws()) do
|
||||
rulestext = rulestext..v.."\n"
|
||||
end
|
||||
rulestext = DarkRP.textWrap(rulestext, "DarkRPHUD1", SmoothPanelRules:GetWide()-20)
|
||||
rulestextexp = string.Explode("\n",rulestext)
|
||||
|
||||
SmoothStaffLabel:SetText( rulestext )
|
||||
SmoothStaffLabel:SetTall(#rulestextexp*20)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
vgui.Register( "SmoothTitlePanel", PANEL, "Panel" )
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
Donation for leaks
|
||||
|
||||
Qiwi Wallet 4890494419811120
|
||||
YandexMoney 410013095053302
|
||||
WebMoney(WMR) R235985364414
|
||||
WebMoney(WMZ) Z309855690994
|
||||
------------------------------------------------------------------------*/
|
||||
425
addons/f4/lua/smooth-f4menu/client/cl_smooth-f4menu.lua
Normal file
@@ -0,0 +1,425 @@
|
||||
/*----------------------------------------------------------------------
|
||||
Leak by Famouse
|
||||
|
||||
Play good games:↓
|
||||
store.steampowered.com/curator/32364216
|
||||
|
||||
Subscribe to the channel:↓
|
||||
https://www.youtube.com/c/Famouse
|
||||
|
||||
More leaks in the discord:↓
|
||||
discord.gg/rFdQwzm
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
surface.CreateFont( "SmoothF4menuFont1", {
|
||||
font = "Open Sans",
|
||||
size = 30,
|
||||
weight = 700,
|
||||
antialias = true,
|
||||
})
|
||||
|
||||
surface.CreateFont( "SmoothF4menuFontButton", {
|
||||
font = "Open Sans",
|
||||
size = 20,
|
||||
weight = 700,
|
||||
antialias = true,
|
||||
})
|
||||
|
||||
Texts = {}
|
||||
Texts.DarkRPCommand = "say"
|
||||
function RunEntCmd(...)
|
||||
local arg = {...}
|
||||
if Texts.DarkRPCommand:lower():find('say') then
|
||||
arg = table.concat(arg,' ')
|
||||
else
|
||||
arg = table.concat(arg,'" "')
|
||||
end
|
||||
RunConsoleCommand(Texts.DarkRPCommand, "/"..arg)
|
||||
end
|
||||
|
||||
function RunCmd(...)
|
||||
local arg = {...}
|
||||
if Texts.DarkRPCommand:lower():find('say') then
|
||||
arg = table.concat(arg,' ')
|
||||
else
|
||||
arg = table.concat(arg,'" "')
|
||||
end
|
||||
RunConsoleCommand(Texts.DarkRPCommand,arg)
|
||||
end
|
||||
|
||||
function ClearAllDPanel()
|
||||
if IsValid(SmoothJobsDPanel) then SmoothJobsDPanel:Remove() end
|
||||
if IsValid(SmoothShopDPanel) then SmoothShopDPanel:Remove() end
|
||||
if IsValid(SmoothSiteDPanel) then SmoothSiteDPanel:Remove() end
|
||||
if IsValid(SmoothTitleDPanel) then SmoothTitleDPanel:Remove() end
|
||||
if IsValid(SmoothCommandDPanel) then SmoothCommandDPanel:Remove() end
|
||||
if IsValid(SmoothDonateDPanel) then SmoothDonateDPanel:Remove() end
|
||||
end
|
||||
|
||||
timersimpleasd = 0
|
||||
hook.Add("Think","CloseF4Menu",function()
|
||||
if CurTime() > timersimpleasd then
|
||||
if input.IsKeyDown(KEY_F4) then
|
||||
if IsValid(SmoothF4MenuFrame) then
|
||||
-- SmoothF4MenuFrame:MoveTo( -1000,ScrH()/2-(SmoothF4MenuFrame:GetTall()/2), 0, 0, -1)
|
||||
-- timer.Simple(0.5,function() SmoothF4MenuFrame:Close() end)
|
||||
SmoothF4MenuFrame:Close()
|
||||
end
|
||||
timersimpleasd = CurTime() + 1
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
net.Receive("OpenSmoothF4menu",function()
|
||||
|
||||
if IsValid(SmoothF4MenuFrame) then SmoothF4MenuFrame:Close() end
|
||||
|
||||
timer.Simple(0,function() local SmoothTitlePanel = SmoothF4MenuFrame:Add("SmoothTitlePanel") end)
|
||||
|
||||
SmoothF4MenuFrame = vgui.Create("DFrame")
|
||||
SmoothF4MenuFrame:SetSize(1000, 650)
|
||||
SmoothF4MenuFrame:SetPos(-1000,ScrH()/2-(SmoothF4MenuFrame:GetTall()/2))
|
||||
SmoothF4MenuFrame:SetDraggable( true )
|
||||
SmoothF4MenuFrame:MakePopup()
|
||||
SmoothF4MenuFrame:ShowCloseButton( false )
|
||||
SmoothF4MenuFrame:SetTitle("")
|
||||
SmoothF4MenuFrame.Paint = function( panel )
|
||||
SmoothDrawBlur(panel, 3)
|
||||
|
||||
draw.RoundedBox( 0, 0, 0, SmoothF4MenuFrame:GetWide(), SmoothF4MenuFrame:GetTall() , Color(47, 47, 47,150) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,SmoothF4MenuFrame:GetWide(), SmoothF4MenuFrame:GetTall())
|
||||
|
||||
draw.RoundedBox( 0, 0, 0, SmoothF4MenuFrame:GetWide(), 35 , Color(41, 41, 41,75) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,SmoothF4MenuFrame:GetWide(), 35)
|
||||
|
||||
local menuicon = Material( "materials/icons/menu.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(5,5,25,25 )
|
||||
end
|
||||
SmoothF4MenuFrame:MoveTo( (ScrW()/2-(SmoothF4MenuFrame:GetWide()/2)),ScrH()/2-(SmoothF4MenuFrame:GetTall()/2), 0, 0, -1)
|
||||
|
||||
local SmoothF4Menuclose = vgui.Create("DButton", SmoothF4MenuFrame)
|
||||
SmoothF4Menuclose:SetSize( 45, 35 )
|
||||
SmoothF4Menuclose:SetPos( SmoothF4MenuFrame:GetWide() - 45 , 0 )
|
||||
SmoothF4Menuclose:SetColor( Color( 255, 255, 255 ))
|
||||
SmoothF4Menuclose:SetFont("SmoothF4menuFont1")
|
||||
SmoothF4Menuclose:SetText("")
|
||||
SmoothF4Menuclose.Paint = function( )
|
||||
local menuicon = Material( "materials/icons/close.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(13,8,19,19 )
|
||||
if SmoothF4Menuclose.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, SmoothF4Menuclose:GetWide(), 35 , Color(41, 41, 41,75) )
|
||||
end
|
||||
end
|
||||
SmoothF4Menuclose.OnCursorEntered = function()
|
||||
SmoothF4Menuclose.isHover = true
|
||||
end
|
||||
SmoothF4Menuclose.OnCursorExited = function()
|
||||
SmoothF4Menuclose.isHover = false
|
||||
end
|
||||
SmoothF4Menuclose.DoClick = function()
|
||||
SmoothF4MenuFrame:Close()
|
||||
end
|
||||
|
||||
local NameServerTitle = vgui.Create("DLabel", SmoothF4MenuFrame)
|
||||
NameServerTitle:SizeToContents()
|
||||
NameServerTitle:SetPos(35,0)
|
||||
NameServerTitle:SetColor(Color(255,255,255,255))
|
||||
NameServerTitle:SetText( SmoothF4MenuFrame_NameServer )
|
||||
NameServerTitle:SetWide( 800 )
|
||||
NameServerTitle:SetFont( "SmoothF4menuFont1" )
|
||||
NameServerTitle:SetTall(34)
|
||||
|
||||
SmoothF4MenuDPanel = vgui.Create( "DPanel",SmoothF4MenuFrame )
|
||||
SmoothF4MenuDPanel:SetPos( 0, 34 )
|
||||
SmoothF4MenuDPanel:SetSize( 50, 616 )
|
||||
SmoothF4MenuDPanel.isActive1 = false
|
||||
SmoothF4MenuDPanel.isActive2 = false
|
||||
SmoothF4MenuDPanel.Paint = function()
|
||||
draw.RoundedBox( 0, 0, 0, SmoothF4MenuDPanel:GetWide(), SmoothF4MenuDPanel:GetTall() , Color(41, 41, 41,75) )
|
||||
surface.SetDrawColor( 47, 47, 47,150 )
|
||||
surface.DrawOutlinedRect(0,0,SmoothF4MenuDPanel:GetWide(), SmoothF4MenuDPanel:GetTall())
|
||||
|
||||
if (SmoothF4MenuDPanel.isHover or SmoothF4MenuButtonTitle.isHover or SmoothF4MenuButtonJobs.isHover or SmoothF4MenuButtonShop.isHover or SmoothF4MenuButtonSite.isHover or SmoothF4MenuButtonCommands.isHover or SmoothF4MenuButtonDonate.isHover ) and !SmoothF4MenuDPanel.isActive1 then
|
||||
SmoothF4MenuDPanel:SizeTo( 250,616, 0.3, 0, -1)
|
||||
SmoothF4MenuDPanel.isActive1 = true
|
||||
SmoothF4MenuDPanel.isActive2 = false
|
||||
|
||||
-- JOBS
|
||||
if IsValid(SmoothJobsDPanel) then
|
||||
SmoothJobsDPanel:SizeTo( 750,615, 0.3, 0, -1)
|
||||
SmoothJobsDPanel:MoveTo( 250,35, 0.3, 0, -1)
|
||||
end
|
||||
-- ENT
|
||||
if IsValid(SmoothShopDPanel) then
|
||||
SmoothShopDPanel:SizeTo( 750,605, 0.3, 0, -1)
|
||||
SmoothShopDPanel:MoveTo( 250,40, 0.3, 0, -1)
|
||||
end
|
||||
-- SITE
|
||||
if IsValid(SmoothSiteDPanel) then
|
||||
SmoothSiteDPanel:SizeTo( 750,615, 0.3, 0, -1)
|
||||
SmoothSiteDPanel:MoveTo( 250,40, 0.3, 0, -1)
|
||||
end
|
||||
-- SITE
|
||||
if IsValid(SmoothDonateDPanel) then
|
||||
SmoothDonateDPanel:SizeTo( 750,615, 0.3, 0, -1)
|
||||
SmoothDonateDPanel:MoveTo( 250,40, 0.3, 0, -1)
|
||||
end
|
||||
-- TITLE
|
||||
if IsValid(SmoothTitleDPanel) then
|
||||
SmoothTitleDPanel:SizeTo( 750,615, 0.3, 0, -1)
|
||||
SmoothTitleDPanel:MoveTo( 250,35, 0.3, 0, -1)
|
||||
end
|
||||
-- COMMAND
|
||||
if IsValid(SmoothCommandDPanel) then
|
||||
SmoothCommandDPanel:SizeTo( 750,605, 0.3, 0, -1)
|
||||
SmoothCommandDPanel:MoveTo( 250,40, 0.3, 0, -1)
|
||||
end
|
||||
elseif (!SmoothF4MenuDPanel.isHover and !SmoothF4MenuButtonTitle.isHover and !SmoothF4MenuButtonJobs.isHover and !SmoothF4MenuButtonShop.isHover and !SmoothF4MenuButtonSite.isHover and !SmoothF4MenuButtonCommands.isHover and !SmoothF4MenuButtonDonate.isHover) and !SmoothF4MenuDPanel.isActive2 then
|
||||
SmoothF4MenuDPanel:SizeTo( 50,616, 0.3, 0, -1)
|
||||
SmoothF4MenuDPanel.isActive2 = true
|
||||
SmoothF4MenuDPanel.isActive1 = false
|
||||
|
||||
-- JOBS
|
||||
if IsValid(SmoothJobsDPanel) then
|
||||
SmoothJobsDPanel:SizeTo( 950,615, 0.3, 0, -1)
|
||||
SmoothJobsDPanel:MoveTo( 50,35, 0.3, 0, -1)
|
||||
end
|
||||
-- ENT
|
||||
if IsValid(SmoothShopDPanel) then
|
||||
SmoothShopDPanel:SizeTo( 950,605, 0.3, 0, -1)
|
||||
SmoothShopDPanel:MoveTo( 50,40, 0.3, 0, -1)
|
||||
end
|
||||
-- SITE
|
||||
if IsValid(SmoothSiteDPanel) then
|
||||
SmoothSiteDPanel:SizeTo( 950,615, 0.3, 0, -1)
|
||||
SmoothSiteDPanel:MoveTo( 50,40, 0.3, 0, -1)
|
||||
end
|
||||
-- SITE
|
||||
if IsValid(SmoothDonateDPanel) then
|
||||
SmoothDonateDPanel:SizeTo( 950,615, 0.3, 0, -1)
|
||||
SmoothDonateDPanel:MoveTo( 50,40, 0.3, 0, -1)
|
||||
end
|
||||
-- TITLE
|
||||
if IsValid(SmoothTitleDPanel) then
|
||||
SmoothTitleDPanel:SizeTo( 950,615, 0.3, 0, -1)
|
||||
SmoothTitleDPanel:MoveTo( 50,35, 0.3, 0, -1)
|
||||
end
|
||||
-- COMMAND
|
||||
if IsValid(SmoothCommandDPanel) then
|
||||
SmoothCommandDPanel:SizeTo( 950,605, 0.3, 0, -1)
|
||||
SmoothCommandDPanel:MoveTo( 50,40, 0.3, 0, -1)
|
||||
end
|
||||
end
|
||||
end
|
||||
SmoothF4MenuDPanel.OnCursorEntered = function()
|
||||
SmoothF4MenuDPanel.isHover = true
|
||||
end
|
||||
SmoothF4MenuDPanel.OnCursorExited = function()
|
||||
SmoothF4MenuDPanel.isHover = false
|
||||
end
|
||||
|
||||
SmoothF4MenuButtonTitle = vgui.Create("DButton", SmoothF4MenuFrame)
|
||||
SmoothF4MenuButtonTitle:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
SmoothF4MenuButtonTitle:SetPos( 0,35 )
|
||||
SmoothF4MenuButtonTitle:SetColor( Color( 255, 255, 255 ))
|
||||
SmoothF4MenuButtonTitle:SetFont("SmoothF4menuFontButton")
|
||||
SmoothF4MenuButtonTitle:SetText("")
|
||||
SmoothF4MenuButtonTitle.Paint = function(panel)
|
||||
local menuicon = Material( "materials/icons/home.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(10,10,30,30 )
|
||||
if SmoothF4MenuButtonTitle.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, SmoothF4MenuButtonTitle:GetWide(), SmoothF4MenuButtonTitle:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
draw.SimpleText(SmoothF4MenuFrame_NameServer_Home,"SmoothF4menuFontButton",55,15,Color(255,255,255))
|
||||
SmoothF4MenuButtonTitle:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
end
|
||||
SmoothF4MenuButtonTitle.OnCursorEntered = function()
|
||||
SmoothF4MenuButtonTitle.isHover = true
|
||||
end
|
||||
SmoothF4MenuButtonTitle.OnCursorExited = function()
|
||||
SmoothF4MenuButtonTitle.isHover = false
|
||||
end
|
||||
SmoothF4MenuButtonTitle.DoClick = function()
|
||||
ClearAllDPanel()
|
||||
local SmoothTitlePanel = SmoothF4MenuFrame:Add("SmoothTitlePanel")
|
||||
SmoothF4MenuDPanel:SetSize(50,616)
|
||||
end
|
||||
|
||||
SmoothF4MenuButtonJobs = vgui.Create("DButton", SmoothF4MenuFrame)
|
||||
SmoothF4MenuButtonJobs:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
SmoothF4MenuButtonJobs:SetPos( 0,85 )
|
||||
SmoothF4MenuButtonJobs:SetColor( Color( 255, 255, 255 ))
|
||||
SmoothF4MenuButtonJobs:SetFont("SmoothF4menuFontButton")
|
||||
SmoothF4MenuButtonJobs:SetText("")
|
||||
SmoothF4MenuButtonJobs.Paint = function(panel)
|
||||
local menuicon = Material( "materials/icons/jobs.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(10,10,30,30 )
|
||||
if SmoothF4MenuButtonJobs.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, SmoothF4MenuButtonJobs:GetWide(), SmoothF4MenuButtonJobs:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
draw.SimpleText(SmoothF4MenuFrame_NameServer_Jobs,"SmoothF4menuFontButton",55,15,Color(255,255,255))
|
||||
SmoothF4MenuButtonJobs:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
end
|
||||
SmoothF4MenuButtonJobs.OnCursorEntered = function()
|
||||
SmoothF4MenuButtonJobs.isHover = true
|
||||
end
|
||||
SmoothF4MenuButtonJobs.OnCursorExited = function()
|
||||
SmoothF4MenuButtonJobs.isHover = false
|
||||
end
|
||||
SmoothF4MenuButtonJobs.DoClick = function()
|
||||
ClearAllDPanel()
|
||||
local SmoothJobsPanel = SmoothF4MenuFrame:Add("SmoothJobsPanel")
|
||||
SmoothF4MenuDPanel:SetSize(50,616)
|
||||
end
|
||||
|
||||
SmoothF4MenuButtonShop = vgui.Create("DButton", SmoothF4MenuFrame)
|
||||
SmoothF4MenuButtonShop:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
SmoothF4MenuButtonShop:SetPos( 0,135 )
|
||||
SmoothF4MenuButtonShop:SetColor( Color( 255, 255, 255 ))
|
||||
SmoothF4MenuButtonShop:SetFont("SmoothF4menuFontButton")
|
||||
SmoothF4MenuButtonShop:SetText("")
|
||||
SmoothF4MenuButtonShop.Paint = function(panel)
|
||||
local menuicon = Material( "materials/icons/shop.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(10,10,30,30 )
|
||||
if SmoothF4MenuButtonShop.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, SmoothF4MenuButtonShop:GetWide(), SmoothF4MenuButtonShop:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
draw.SimpleText(SmoothF4MenuFrame_NameServer_Shop,"SmoothF4menuFontButton",55,15,Color(255,255,255))
|
||||
SmoothF4MenuButtonShop:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
end
|
||||
SmoothF4MenuButtonShop.OnCursorEntered = function()
|
||||
SmoothF4MenuButtonShop.isHover = true
|
||||
end
|
||||
SmoothF4MenuButtonShop.OnCursorExited = function()
|
||||
SmoothF4MenuButtonShop.isHover = false
|
||||
end
|
||||
SmoothF4MenuButtonShop.DoClick = function()
|
||||
ClearAllDPanel()
|
||||
local SmoothShopPanel = SmoothF4MenuFrame:Add("SmoothShopPanel")
|
||||
SmoothF4MenuDPanel:SetSize(50,616)
|
||||
end
|
||||
|
||||
SmoothF4MenuButtonCommands = vgui.Create("DButton", SmoothF4MenuFrame)
|
||||
SmoothF4MenuButtonCommands:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
SmoothF4MenuButtonCommands:SetPos( 0,185 )
|
||||
SmoothF4MenuButtonCommands:SetColor( Color( 255, 255, 255 ))
|
||||
SmoothF4MenuButtonCommands:SetFont("SmoothF4menuFontButton")
|
||||
SmoothF4MenuButtonCommands:SetText("")
|
||||
SmoothF4MenuButtonCommands.Paint = function(panel)
|
||||
local menuicon = Material( "materials/icons/commands.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(10,10,30,30 )
|
||||
if SmoothF4MenuButtonCommands.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, SmoothF4MenuButtonCommands:GetWide(), SmoothF4MenuButtonCommands:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
draw.SimpleText(SmoothF4MenuFrame_NameServer_Command,"SmoothF4menuFontButton",55,15,Color(255,255,255))
|
||||
SmoothF4MenuButtonCommands:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
end
|
||||
SmoothF4MenuButtonCommands.OnCursorEntered = function()
|
||||
SmoothF4MenuButtonCommands.isHover = true
|
||||
end
|
||||
SmoothF4MenuButtonCommands.OnCursorExited = function()
|
||||
SmoothF4MenuButtonCommands.isHover = false
|
||||
end
|
||||
SmoothF4MenuButtonCommands.DoClick = function()
|
||||
ClearAllDPanel()
|
||||
local SmoothCommandPanel = SmoothF4MenuFrame:Add("SmoothCommandPanel")
|
||||
SmoothF4MenuDPanel:SetSize(50,616)
|
||||
end
|
||||
|
||||
SmoothF4MenuButtonSite = vgui.Create("DButton", SmoothF4MenuFrame)
|
||||
SmoothF4MenuButtonSite:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
SmoothF4MenuButtonSite:SetPos( 0,235 )
|
||||
SmoothF4MenuButtonSite:SetColor( Color( 255, 255, 255 ))
|
||||
SmoothF4MenuButtonSite:SetFont("SmoothF4menuFontButton")
|
||||
SmoothF4MenuButtonSite:SetText("")
|
||||
SmoothF4MenuButtonSite.Paint = function(panel)
|
||||
local menuicon = Material( "materials/icons/site.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(10,10,30,30 )
|
||||
if SmoothF4MenuButtonSite.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, SmoothF4MenuButtonSite:GetWide(), SmoothF4MenuButtonSite:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
draw.SimpleText(SmoothF4MenuFrame_NameServer_Site,"SmoothF4menuFontButton",55,15,Color(255,255,255))
|
||||
SmoothF4MenuButtonSite:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
end
|
||||
SmoothF4MenuButtonSite.OnCursorEntered = function()
|
||||
SmoothF4MenuButtonSite.isHover = true
|
||||
end
|
||||
SmoothF4MenuButtonSite.OnCursorExited = function()
|
||||
SmoothF4MenuButtonSite.isHover = false
|
||||
end
|
||||
SmoothF4MenuButtonSite.DoClick = function()
|
||||
ClearAllDPanel()
|
||||
local SmoothSitePanel = SmoothF4MenuFrame:Add("SmoothSitePanel")
|
||||
SmoothF4MenuDPanel:SetSize(50,616)
|
||||
end
|
||||
|
||||
SmoothF4MenuButtonDonate = vgui.Create("DButton", SmoothF4MenuFrame)
|
||||
SmoothF4MenuButtonDonate:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
SmoothF4MenuButtonDonate:SetPos( 0,285 )
|
||||
SmoothF4MenuButtonDonate:SetColor( Color( 255, 255, 255 ))
|
||||
SmoothF4MenuButtonDonate:SetFont("SmoothF4menuFontButton")
|
||||
SmoothF4MenuButtonDonate:SetText("")
|
||||
SmoothF4MenuButtonDonate.Paint = function(panel)
|
||||
local menuicon = Material( "materials/icons/donate.png" )
|
||||
surface.SetMaterial( menuicon )
|
||||
surface.SetDrawColor( 255, 255, 255, 255 )
|
||||
surface.DrawTexturedRect(10,10,30,30 )
|
||||
if SmoothF4MenuButtonDonate.isHover then
|
||||
draw.RoundedBox( 0, 0, 0, SmoothF4MenuButtonDonate:GetWide(), SmoothF4MenuButtonDonate:GetTall() , Color(41, 41, 41,70) )
|
||||
end
|
||||
draw.SimpleText("Донат","SmoothF4menuFontButton",55,15,Color(255,255,255))
|
||||
SmoothF4MenuButtonDonate:SetSize( SmoothF4MenuDPanel:GetWide(),50 )
|
||||
end
|
||||
SmoothF4MenuButtonDonate.OnCursorEntered = function()
|
||||
SmoothF4MenuButtonDonate.isHover = true
|
||||
end
|
||||
SmoothF4MenuButtonDonate.OnCursorExited = function()
|
||||
SmoothF4MenuButtonDonate.isHover = false
|
||||
end
|
||||
SmoothF4MenuButtonDonate.DoClick = function()
|
||||
ClearAllDPanel()
|
||||
local SmoothDonatePanel = SmoothF4MenuFrame:Add("SmoothDonatePanel")
|
||||
SmoothF4MenuDPanel:SetSize(50,616)
|
||||
end
|
||||
|
||||
end)
|
||||
|
||||
-- BLUR PANEL
|
||||
function SmoothDrawBlur(panel, amount)
|
||||
local blurmaterial = Material("pp/blurscreen")
|
||||
local x, y = panel:LocalToScreen(0, 0)
|
||||
local scrW, scrH = ScrW(), ScrH()
|
||||
surface.SetDrawColor(255, 255, 255)
|
||||
surface.SetMaterial(blurmaterial)
|
||||
for i = 1, 3 do
|
||||
blurmaterial:SetFloat("$blur", (i / 3) * (amount or 6))
|
||||
blurmaterial:Recompute()
|
||||
render.UpdateScreenEffectTexture()
|
||||
surface.DrawTexturedRect(x * -1, y * -1, scrW, scrH)
|
||||
end
|
||||
end
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
Donation for leaks
|
||||
|
||||
Qiwi Wallet 4890494419811120
|
||||
YandexMoney 410013095053302
|
||||
WebMoney(WMR) R235985364414
|
||||
WebMoney(WMZ) Z309855690994
|
||||
------------------------------------------------------------------------*/
|
||||
29
addons/f4/lua/smooth-f4menu/server/sv_smooth-f4menu.lua
Normal file
@@ -0,0 +1,29 @@
|
||||
/*----------------------------------------------------------------------
|
||||
Leak by Famouse
|
||||
|
||||
Play good games:↓
|
||||
http://store.steampowered.com/curator/32364216
|
||||
|
||||
Subscribe to the channel:↓
|
||||
www.youtube.com/c/Famouse
|
||||
|
||||
More leaks in the discord:↓
|
||||
https://discord.gg/rFdQwzm
|
||||
------------------------------------------------------------------------*/
|
||||
|
||||
util.AddNetworkString( "OpenSmoothF4menu" )
|
||||
|
||||
function OpenSmoothF4menu( ply )
|
||||
net.Start("OpenSmoothF4menu")
|
||||
net.Send(ply)
|
||||
end
|
||||
hook.Add("ShowSpare2", "OpenSmoothF4menu", OpenSmoothF4menu)
|
||||
|
||||
/*------------------------------------------------------------------------
|
||||
Donation for leaks
|
||||
|
||||
Qiwi Wallet 4890494419811120
|
||||
YandexMoney 410013095053302
|
||||
WebMoney(WMR) R235985364414
|
||||
WebMoney(WMZ) Z309855690994
|
||||
------------------------------------------------------------------------*/
|
||||
BIN
addons/f4/materials/icons/back.png
Normal file
|
After Width: | Height: | Size: 478 B |
BIN
addons/f4/materials/icons/close.png
Normal file
|
After Width: | Height: | Size: 438 B |
BIN
addons/f4/materials/icons/commands.png
Normal file
|
After Width: | Height: | Size: 621 B |
BIN
addons/f4/materials/icons/database.png
Normal file
|
After Width: | Height: | Size: 650 B |
BIN
addons/f4/materials/icons/donate.png
Normal file
|
After Width: | Height: | Size: 699 B |
BIN
addons/f4/materials/icons/home.png
Normal file
|
After Width: | Height: | Size: 704 B |
BIN
addons/f4/materials/icons/info.png
Normal file
|
After Width: | Height: | Size: 773 B |
BIN
addons/f4/materials/icons/jobs.png
Normal file
|
After Width: | Height: | Size: 559 B |
BIN
addons/f4/materials/icons/menu.png
Normal file
|
After Width: | Height: | Size: 483 B |
BIN
addons/f4/materials/icons/shop.png
Normal file
|
After Width: | Height: | Size: 637 B |
BIN
addons/f4/materials/icons/site.png
Normal file
|
After Width: | Height: | Size: 891 B |
BIN
addons/f4/materials/icons/user.png
Normal file
|
After Width: | Height: | Size: 640 B |