diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..751553b3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.bak diff --git a/lua/pac3/core/shared/init.lua b/lua/pac3/core/shared/init.lua index 29742322..ed066d33 100644 --- a/lua/pac3/core/shared/init.lua +++ b/lua/pac3/core/shared/init.lua @@ -11,13 +11,4 @@ local cvar = CreateConVar("pac_restrictions", "0", FCVAR_REPLICATED) function pac.GetRestrictionLevel() return cvar:GetInt() -end - -timer.Create("pac_to_git_notify", 30, 0, function() - print("!!!!PAC3 has moved to GitHub!!!!") - print("the new address is:") - print("https://github.com/CapsAdmin/pac3") - - print("to keep using svn change the svn address to:") - print("https://github.com/CapsAdmin/pac3.git/trunk") -end) \ No newline at end of file +end \ No newline at end of file diff --git a/lua/pac3/pace/config.lua b/lua/pac3/pace/config.lua index d0a16c32..6e7a2f38 100644 --- a/lua/pac3/pace/config.lua +++ b/lua/pac3/pace/config.lua @@ -1,4 +1,8 @@ pace.MiscIcons = { + copy = "icon16/page_white_text.png", + globalid = "icon16/vcard.png", + paste = "icon16/paste_plain.png", + clone = "icon16/page_copy.png", new = "icon16/add.png", autoload = "icon16/transmit_go.png", url = "icon16/server_go.png", diff --git a/lua/pac3/pace/parts.lua b/lua/pac3/pace/parts.lua index a585345a..c82b1640 100644 --- a/lua/pac3/pace/parts.lua +++ b/lua/pac3/pace/parts.lua @@ -178,22 +178,24 @@ do -- menu tbl.children = {} pace.Clipboard = tbl - end) + end):SetImage(pace.MiscIcons.copy) menu:AddOption(L"paste", function() if pace.Clipboard then obj:SetTable(pace.Clipboard) end --pace.Clipboard = nil - end) + end):SetImage(pace.MiscIcons.paste) menu:AddOption(L"clone", function() obj:Clone() - end) + end):SetImage(pace.MiscIcons.clone) - menu:AddOption(L"copy global id", function() - SetClipboardText("\""..obj.GlobalID.."\"") - end) + if not pace.IsInBasicMode() then + menu:AddOption(L"copy global id", function() + SetClipboardText("\""..obj.GlobalID.."\"") + end):SetImage(pace.MiscIcons.globalid) + end menu:AddOption(L"help", function() pace.ShowHelp(obj.ClassName) @@ -231,7 +233,7 @@ do -- menu if not obj:HasParent() and obj.ClassName == "group" then pac.RemovePartOnServer(obj:GetUniqueID(), false, true) end - end) + end):SetImage(pace.MiscIcons.clear) menu:Open() menu:MakePopup()