mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03: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()
|
function pac.GetRestrictionLevel()
|
||||||
return cvar:GetInt()
|
return cvar:GetInt()
|
||||||
end
|
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)
|
|
@ -1,4 +1,8 @@
|
|||||||
pace.MiscIcons = {
|
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",
|
new = "icon16/add.png",
|
||||||
autoload = "icon16/transmit_go.png",
|
autoload = "icon16/transmit_go.png",
|
||||||
url = "icon16/server_go.png",
|
url = "icon16/server_go.png",
|
||||||
|
@ -178,22 +178,24 @@ do -- menu
|
|||||||
|
|
||||||
tbl.children = {}
|
tbl.children = {}
|
||||||
pace.Clipboard = tbl
|
pace.Clipboard = tbl
|
||||||
end)
|
end):SetImage(pace.MiscIcons.copy)
|
||||||
|
|
||||||
menu:AddOption(L"paste", function()
|
menu:AddOption(L"paste", function()
|
||||||
if pace.Clipboard then
|
if pace.Clipboard then
|
||||||
obj:SetTable(pace.Clipboard)
|
obj:SetTable(pace.Clipboard)
|
||||||
end
|
end
|
||||||
--pace.Clipboard = nil
|
--pace.Clipboard = nil
|
||||||
end)
|
end):SetImage(pace.MiscIcons.paste)
|
||||||
|
|
||||||
menu:AddOption(L"clone", function()
|
menu:AddOption(L"clone", function()
|
||||||
obj:Clone()
|
obj:Clone()
|
||||||
end)
|
end):SetImage(pace.MiscIcons.clone)
|
||||||
|
|
||||||
menu:AddOption(L"copy global id", function()
|
if not pace.IsInBasicMode() then
|
||||||
SetClipboardText("\""..obj.GlobalID.."\"")
|
menu:AddOption(L"copy global id", function()
|
||||||
end)
|
SetClipboardText("\""..obj.GlobalID.."\"")
|
||||||
|
end):SetImage(pace.MiscIcons.globalid)
|
||||||
|
end
|
||||||
|
|
||||||
menu:AddOption(L"help", function()
|
menu:AddOption(L"help", function()
|
||||||
pace.ShowHelp(obj.ClassName)
|
pace.ShowHelp(obj.ClassName)
|
||||||
@ -231,7 +233,7 @@ do -- menu
|
|||||||
if not obj:HasParent() and obj.ClassName == "group" then
|
if not obj:HasParent() and obj.ClassName == "group" then
|
||||||
pac.RemovePartOnServer(obj:GetUniqueID(), false, true)
|
pac.RemovePartOnServer(obj:GetUniqueID(), false, true)
|
||||||
end
|
end
|
||||||
end)
|
end):SetImage(pace.MiscIcons.clear)
|
||||||
|
|
||||||
menu:Open()
|
menu:Open()
|
||||||
menu:MakePopup()
|
menu:MakePopup()
|
||||||
|
Loading…
Reference in New Issue
Block a user