diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-06-10 21:00:17 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-06-10 21:00:17 +0000 |
commit | 031b81f8764de5e566490248dbc4bb466c0b03e9 (patch) | |
tree | b68acf9b7ff269aae2f81ad46ed6c6975414d114 /plugins/MirLua/docs/examples/icons.lua | |
parent | 02dc801c6e29d5dad184baff51be70a1c8b2b897 (diff) |
MirLua:
- added OnModulesLoaded handler
- added OnPreShutdown handler
- renamed existing modules
- changed modules loading
- chaged examples
git-svn-id: http://svn.miranda-ng.org/main/trunk@14107 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/docs/examples/icons.lua')
-rw-r--r-- | plugins/MirLua/docs/examples/icons.lua | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/MirLua/docs/examples/icons.lua b/plugins/MirLua/docs/examples/icons.lua index 7b9f6dca6c..4d54cb8e8b 100644 --- a/plugins/MirLua/docs/examples/icons.lua +++ b/plugins/MirLua/docs/examples/icons.lua @@ -1,22 +1,22 @@ ---- include m_icons module -require('m_icons') +--- include m_icolib module +local icolib = require('m_icolib') --- Add icon to icoLib -- @param name The name of icon -- @param description The description of icon -- @param section The section in witch icon will be stored (default 'MirLua') -- @return handle of icon -M.Icons.AddIcon('testIcon', 'Lua icon', 'MirLua') +icolib.AddIcon('testIcon', 'Lua icon', 'MirLua') --- Create the icon which will be deleted below -M.Icons.AddIcon('testRemoved', 'Lua temporary icon') +icolib.AddIcon('testRemoved', 'Lua temporary icon') --- Get icon by name -- @param name The name of icon -- @return handle of icon -local hIcon = M.Icons.GetIcon('testRemoved') +local hIcon = icolib.GetIcon('testRemoved') --- Remove icon from iconLib -- @param handle The handle of icon (or name) -- @return 0 on success -M.Icons.RemoveIcon('testRemoved') +icolib.RemoveIcon('testRemoved') |