mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-03 18:53:01 -05:00
removed "moved to github" notification
added icons for copy, paste and clone removed copy globalid from basic mode added *.bak to ignore
This commit is contained in:
parent
ca503a7b9f
commit
8c55646abc
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
*.bak
|
@ -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)
|
||||
end
|
@ -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",
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user