From 98e0462e4f6b13ff26af5211409352d45dd9453e Mon Sep 17 00:00:00 2001 From: Alexander Pickering Date: Sun, 8 Jan 2017 22:28:08 -0500 Subject: Add a ton of icons, more work on refactoring --- gamemode/shared/itemsystem/quest/rougebadge.lua | 38 ------------------------- 1 file changed, 38 deletions(-) delete mode 100644 gamemode/shared/itemsystem/quest/rougebadge.lua (limited to 'gamemode/shared/itemsystem/quest/rougebadge.lua') diff --git a/gamemode/shared/itemsystem/quest/rougebadge.lua b/gamemode/shared/itemsystem/quest/rougebadge.lua deleted file mode 100644 index dad0f71..0000000 --- a/gamemode/shared/itemsystem/quest/rougebadge.lua +++ /dev/null @@ -1,38 +0,0 @@ ---[[ - An example item -]] -local item = {} - ---Required, a name, all item names must be unique -item.Name = "Rouge Newbie Badge" - ---Optional, a tooltip to display when hovered over -item.Tooltip = "A tiny peice of metal, kinda looks like a dagger." - ---Required Returns the data needed to rebuild this item, should only contain the minimum data nessessary since this gets sent over the network -item.Serialize = function(self) - print("Trying to serailize!") - return "" -end - ---Required, Rebuilds the item from data created in Serialize, if the item is different from the "main" copy of the item, it should retun a tabl.Copy(self), with the appropriate fields set. -item.DeSerialize = function(self,string) - print("Trying to deserialize!") - return self -end - ---Optional, when the player clicks this item, a menu will show up, if the menu item is clicked, the function is ran. This is all run client side, so if you want it to do something server side, you'll need to use the net library. Remember that items are in the shared domain, so you can define what it does in the same file! -function item.GetOptions(self) - local options = {} - options["test"] = function() print("You pressed test!") end - options["toste"] = function() print("You pressed toste!") end - return options -end - ---Required, the shape of this item in a backpack. -item.Shape = { - {true} -} - - -ART.RegisterItem(item) -- cgit v1.2.3-70-g09d2