diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2016-01-02 13:55:52 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2016-01-02 13:55:52 +0000 |
commit | 556ec5e59c94222224eb8a13c05d737b765b9259 (patch) | |
tree | 4669457199f30201918c1f975ccf635b1c9b85ba /plugins/MirLua/docs/examples/core.lua | |
parent | 0a79763db57ac830746fbb70f227ca2a0b758e49 (diff) |
MirLua: linked with liblua
git-svn-id: http://svn.miranda-ng.org/main/trunk@15989 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/docs/examples/core.lua')
-rw-r--r-- | plugins/MirLua/docs/examples/core.lua | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/plugins/MirLua/docs/examples/core.lua b/plugins/MirLua/docs/examples/core.lua deleted file mode 100644 index d72ce0c18f..0000000000 --- a/plugins/MirLua/docs/examples/core.lua +++ /dev/null @@ -1,22 +0,0 @@ --- core module (m) is included by default ---- include m_clist module -local clist = require('m_clist') ---- include m_genmenu module -local genmenu = require('m_genmenu') --- include m_icolib module -local icolib = require('m_icolib') - --- Add icon for menu items -local hRestartIcon = icolib.AddIcon('restartIcon', 'Restart') - --- Subscribe to Lua script loaded event -m.OnScriptLoaded(function() - -- Add menu item to main menu that allow to restart Miranda NG - hRestartMenuItem = clist.AddMainMenuItem({ Name = "Restart", Icon = hRestartIcon, Service = "Miranda/System/Restart" }) -end) - --- Subscribe to Lua script unload event -m.OnScriptUnload(function() - -- remove menu item from main menu - hRestartMenuItem = genmenu.RemoveMenuItem(hRestart) -end) |