diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-07-10 18:43:34 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-07-10 18:43:34 +0000 |
commit | 6f28e69a1383921dcc476b157295da48497c1f9f (patch) | |
tree | 84d328eed5912be84b7360521f19272453bf9659 /plugins/MirLua | |
parent | 0c32e5e8af1bab7f3b5e1b4957bc2e2af4df5f09 (diff) |
MirLua: extended popup_data in m_popup
git-svn-id: http://svn.miranda-ng.org/main/trunk@14528 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua')
-rw-r--r-- | plugins/MirLua/src/m_popup.cpp | 25 |
1 files changed, 25 insertions, 0 deletions
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);
|