summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_options.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-03-22 01:53:49 +0300
committeraunsane <aunsane@gmail.com>2018-03-22 01:54:09 +0300
commit2a498d86625f65f6ab308fa20c421099c785bf94 (patch)
tree9c0d59f41411e46288f88ccdbde4a0d23f440720 /plugins/MirLua/src/mlua_options.h
parent46cded99bbfb90bea8e998e9183c20cc3e4f7365 (diff)
MirLua: various fixes
- CMLua now inherit PLUGIN - additional lua fuctions initialization moved to separated loader - ability to realod script without object recreation - scropt object should control own enable state - fix m_json whit is not workes almost at all - version bump
Diffstat (limited to 'plugins/MirLua/src/mlua_options.h')
-rw-r--r--plugins/MirLua/src/mlua_options.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/plugins/MirLua/src/mlua_options.h b/plugins/MirLua/src/mlua_options.h
index a8168d70da..2e3b4ff7f7 100644
--- a/plugins/MirLua/src/mlua_options.h
+++ b/plugins/MirLua/src/mlua_options.h
@@ -1,15 +1,15 @@
#ifndef _LUA_OPTIONS_H_
#define _LUA_OPTIONS_H_
-#include <m_gui.h>
-
class CMLuaOptions : public CPluginDlgBase
{
private:
+ CMLua *m_mLua;
+ bool isScriptListInit;
+
CCtrlCheck m_popupOnError;
CCtrlCheck m_popupOnObsolete;
- bool isScriptListInit;
CCtrlListView m_scripts;
CCtrlButton m_reload;
@@ -25,10 +25,7 @@ protected:
INT_PTR DlgProc(UINT msg, WPARAM wParam, LPARAM lParam);
public:
- CMLuaOptions(int idDialog);
-
- static int OnOptionsInit(WPARAM wParam, LPARAM);
- static CDlgBase *CreateOptionsPage() { return new CMLuaOptions(IDD_OPTIONS); }
+ CMLuaOptions(CMLua *mLua);
};
#endif //_LUA_OPTIONS_H_ \ No newline at end of file