diff options
-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);
|