mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
44 lines
992 B
Lua
44 lines
992 B
Lua
|
|
--[[
|
||
|
|
| This file was obtained through the combined efforts
|
||
|
|
| of Madbluntz & Plymouth Antiquarian Society.
|
||
|
|
|
|
||
|
|
| Credits: lifestorm, Gregory Wayne Rossel JR.,
|
||
|
|
| Maloy, DrPepper10 @ RIP, Atle!
|
||
|
|
|
|
||
|
|
| Visit for more: https://plymouth.thetwilightzone.ru/
|
||
|
|
--]]
|
||
|
|
|
||
|
|
local PANEL = {}
|
||
|
|
|
||
|
|
function PANEL:Init()
|
||
|
|
local parent = self:GetParent():GetParent()
|
||
|
|
self:SetSize(parent.contentPanel:GetSize())
|
||
|
|
|
||
|
|
-- Config
|
||
|
|
self.firstTitle = "Level Unlocks"
|
||
|
|
self.skill = "melee"
|
||
|
|
|
||
|
|
-- Create titles
|
||
|
|
self:Add("CraftingBaseTopTitleBase")
|
||
|
|
|
||
|
|
-- Create inner content
|
||
|
|
self:Add("CraftingBaseInnerContent")
|
||
|
|
|
||
|
|
-- Rebuild inner content
|
||
|
|
self:Add("CraftingBaseRebuild")
|
||
|
|
end
|
||
|
|
|
||
|
|
vgui.Register("MeleeBasePanel", PANEL, "EditablePanel")
|
||
|
|
|
||
|
|
local function CreateMeleePanel(container)
|
||
|
|
local panel = container:Add("MeleeBasePanel")
|
||
|
|
|
||
|
|
ix.gui.gunspanel = panel
|
||
|
|
ix.gui.activeSkill = panel
|
||
|
|
|
||
|
|
return container
|
||
|
|
end
|
||
|
|
|
||
|
|
hook.Add("CreateSkillPanels", "MeleeBasePanel", function(tabs)
|
||
|
|
tabs[ix.skill.list["melee"].uniqueID] = CreateMeleePanel
|
||
|
|
end)
|