summaryrefslogtreecommitdiff
path: root/plugins/MirLua/docs/examples
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-07-10 18:20:29 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-07-10 18:20:29 +0000
commitdc22e5647a7a650b1eccb376d886cfbaa36e26ca (patch)
treec7df1ac4cfc86048efd7ae78c07b6e393c0a72f8 /plugins/MirLua/docs/examples
parent2329457a8658926ceae20cf6ff883b24965e052f (diff)
MirLua: added PopupData support in m_popup
git-svn-id: http://svn.miranda-ng.org/main/trunk@14526 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/docs/examples')
-rw-r--r--plugins/MirLua/docs/examples/popup.lua13
1 files changed, 12 insertions, 1 deletions
diff --git a/plugins/MirLua/docs/examples/popup.lua b/plugins/MirLua/docs/examples/popup.lua
index 7195962d47..172b98ea59 100644
--- a/plugins/MirLua/docs/examples/popup.lua
+++ b/plugins/MirLua/docs/examples/popup.lua
@@ -6,12 +6,23 @@ local clist = require('m_clist')
m.CreateServiceFunction('MirLua/ShowPopup', function()
local popupData =
{
+ ContactName = 'Contact',
+ Text = 'Popup content',
+ hContact = 0
+ }
+ popup.AddPopup(popupData)
+end)
+
+m.CreateServiceFunction('MirLua/ShowPopup2', function()
+ local popupData =
+ {
Title = 'Title',
Text = 'Popup content',
hContact = 0,
Flags = 1
}
- popup.AddPopup(popupData)
+ popup.AddPopup2(popupData)
end)
clist.AddMainMenuItem({ Name = "Show lua popup", Service = 'MirLua/ShowPopup' })
+clist.AddMainMenuItem({ Name = "Show lua popup2", Service = 'MirLua/ShowPopup2' })