From 6f28e69a1383921dcc476b157295da48497c1f9f Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Fri, 10 Jul 2015 18:43:34 +0000 Subject: MirLua: extended popup_data in m_popup git-svn-id: http://svn.miranda-ng.org/main/trunk@14528 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/MirLua/src/m_popup.cpp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'plugins/MirLua') diff --git a/plugins/MirLua/src/m_popup.cpp b/plugins/MirLua/src/m_popup.cpp index 3458ec3a73..c41fe4c467 100644 --- a/plugins/MirLua/src/m_popup.cpp +++ b/plugins/MirLua/src/m_popup.cpp @@ -19,6 +19,21 @@ static POPUPDATAT* MakePopupData(lua_State *L) ppd->lchContact = lua_tointeger(L, -1); lua_pop(L, 1); + lua_pushstring(L, "ColorBack"); + lua_gettable(L, -2); + ppd->colorBack = lua_tonumber(L, -1); + lua_pop(L, 1); + + lua_pushstring(L, "ColorText"); + lua_gettable(L, -2); + ppd->colorText = lua_tonumber(L, -1); + lua_pop(L, 1); + + lua_pushstring(L, "Seconds"); + lua_gettable(L, -2); + ppd->iSeconds = lua_tointeger(L, -1); + lua_pop(L, 1); + return ppd; } @@ -66,6 +81,16 @@ static POPUPDATA2* MakePopupData2(lua_State *L) ppd->lchContact = lua_tointeger(L, -1); lua_pop(L, 1); + lua_pushstring(L, "ColorBack"); + lua_gettable(L, -2); + ppd->colorBack = lua_tonumber(L, -1); + lua_pop(L, 1); + + lua_pushstring(L, "ColorText"); + lua_gettable(L, -2); + ppd->colorText = lua_tonumber(L, -1); + lua_pop(L, 1); + lua_pushstring(L, "hEvent"); lua_gettable(L, -2); ppd->lchEvent = lua_touserdata(L, -1); -- cgit v1.2.3