aboutsummaryrefslogtreecommitdiff
path: root/gamemode/shared/questsystem/subterr_generator.lua
blob: 9bb90c366ca12b67673e8eaeff2e6880ab562433 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
if SERVER then return end
local quest = {}

quest.Name = "Subterr_generator"

local questtext = {
    [1] = "Visit the Tinkerer to see if he has a replacement Toggle Chip",
    [2] = "V̶i̶s̶i̶t̶ ̶t̶h̶e̶ ̶T̶i̶n̶k̶e̶r̶e̶r̶ ̶t̶o̶ ̶s̶e̶e̶ ̶i̶f̶ ̶h̶e̶ ̶h̶a̶s̶ ̶a̶ ̶r̶e̶p̶l̶a̶c̶e̶m̶e̶n̶t̶ ̶T̶o̶g̶g̶l̶e̶ ̶C̶h̶i̶p̶\n\nGet the toggle chip back to Tom",
    [3] = "V̶i̶s̶i̶t̶ ̶t̶h̶e̶ ̶T̶i̶n̶k̶e̶r̶e̶r̶ ̶t̶o̶ ̶s̶e̶e̶ ̶i̶f̶ ̶h̶e̶ ̶h̶a̶s̶ ̶a̶ ̶r̶e̶p̶l̶a̶c̶e̶m̶e̶n̶t̶ ̶T̶o̶g̶g̶l̶e̶ ̶C̶h̶i̶p̶\nG̶e̶t̶ ̶t̶h̶e̶ ̶t̶o̶g̶g̶l̶e̶ ̶c̶h̶i̶p̶ ̶b̶a̶c̶k̶ ̶t̶o̶ ̶T̶o̶m̶\nLooks like the generator is working again!\n(QUEST COMPLETE)"
}

quest.DrawQuestInfo = function(panel,status)
    print("Drawing quest info!")
    local label = vgui.Create( "DLabel", panel )
    --label:Dock(FILL)
    --label:Dock(BOTTOM)
    label:SetSize((ScrW() / 4) - 20,(ScrH() / 2) - 50)
    --label.Paint = function(self,w,h) draw.RoundedBox(4,0,0,w,h,Color(0,160,167)) end
    label:SetWrap(true)
    label:SetText( questtext[status] )
    label:SetDark()
end

ART.RegisterQuest(quest)