mirror of
https://github.com/lifestorm/wnsrc.git
synced 2025-12-17 21:53:46 +03:00
Upload
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
--[[
|
||||
| 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 vgui = vgui
|
||||
|
||||
local PANEL = {}
|
||||
|
||||
function PANEL:Init()
|
||||
local parent = self:GetParent():GetParent()
|
||||
self:SetSize(parent.contentPanel:GetSize())
|
||||
|
||||
-- Config
|
||||
self.firstTitle = "Recipes"
|
||||
self.secondTitle = "Create"
|
||||
self.thirdTitle = "Preview"
|
||||
self.nothingSelected = "No item/recipe selected"
|
||||
self.requirementsTitleText = "Requirements: "
|
||||
self.ingredientsTitleText = "Ingredients:"
|
||||
self.skill = "medicine"
|
||||
self.craftSound = "willardnetworks/skills/skill_medicine.wav"
|
||||
|
||||
-- Create titles
|
||||
self:Add("CraftingBaseTopTitleBase")
|
||||
|
||||
-- Create inner content
|
||||
self:Add("CraftingBaseInnerContent")
|
||||
|
||||
-- Rebuild inner content
|
||||
self:Add("CraftingBaseRebuild")
|
||||
end
|
||||
|
||||
function PANEL:Remove()
|
||||
if (self.model) then
|
||||
self.model:Remove()
|
||||
end
|
||||
end
|
||||
|
||||
vgui.Register("MedicalBasePanel", PANEL, "EditablePanel")
|
||||
|
||||
local function CreateMedicalPanel(container)
|
||||
local panel = container:Add("MedicalBasePanel")
|
||||
|
||||
ix.gui.medicalpanel = panel
|
||||
ix.gui.activeSkill = panel
|
||||
|
||||
return container
|
||||
end
|
||||
|
||||
hook.Add("CreateSkillPanels", "MedicalBasePanel", function(tabs)
|
||||
tabs[ix.skill.list["medicine"].uniqueID] = CreateMedicalPanel
|
||||
end)
|
||||
Reference in New Issue
Block a user