summaryrefslogtreecommitdiff
path: root/plugins/MirLua/src/mlua_options.cpp
diff options
context:
space:
mode:
authorAlexander Lantsev <aunsane@gmail.com>2015-11-07 18:42:19 +0000
committerAlexander Lantsev <aunsane@gmail.com>2015-11-07 18:42:19 +0000
commite29fd4d0ead4353ff2e03fcd793400d8e0779481 (patch)
treede0d47e86f816ea6cfca63ab8b394c09daf0725a /plugins/MirLua/src/mlua_options.cpp
parenta50edcaccf9c335a8b4fd6dc144916f3aed9ca8f (diff)
MirLua: added metatables wrapper
git-svn-id: http://svn.miranda-ng.org/main/trunk@15697 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirLua/src/mlua_options.cpp')
-rw-r--r--plugins/MirLua/src/mlua_options.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/MirLua/src/mlua_options.cpp b/plugins/MirLua/src/mlua_options.cpp
index 61b3cd7166..7b89599af5 100644
--- a/plugins/MirLua/src/mlua_options.cpp
+++ b/plugins/MirLua/src/mlua_options.cpp
@@ -55,10 +55,10 @@ void CLuaOptions::LoadScripts()
{
CMLuaScript* script = g_mLua->Scripts[i];
TCHAR* fileName = NEWTSTR_ALLOCA(script->GetFileName());
- int iItem = m_scripts.AddItem(fileName, -1, (LPARAM)script, script->GetGroup());
+ int iItem = m_scripts.AddItem(fileName, -1, (LPARAM)script);
if (db_get_b(NULL, MODULE, _T2A(fileName), 1))
m_scripts.SetCheckState(iItem, TRUE);
- m_scripts.SetItem(iItem, 1, _T(""), 0);
+ m_scripts.SetItem(iItem, 1, TranslateT("Open"), 0);
//#ifdef DEBUG
m_scripts.SetItem(iItem, 2, _T(""), 1);
//#endif
@@ -79,13 +79,13 @@ void CLuaOptions::OnInitDialog()
FoldersGetCustomPathT(g_hCommonScriptFolder, scriptDir, _countof(scriptDir), VARST(COMMON_SCRIPTS_PATHT));
PathToRelativeT(scriptDir, relativeScriptDir, NULL);
mir_sntprintf(header, _T("%s (%s)"), TranslateT("Common scripts"), relativeScriptDir);
- m_scripts.AddGroup(0, header);
- m_scripts.EnableGroupView(TRUE);
+ //m_scripts.AddGroup(0, header);
+ //m_scripts.EnableGroupView(TRUE);
m_scripts.AddColumn(0, _T("Script"), 420);
m_scripts.AddColumn(1, NULL, 32 - GetSystemMetrics(SM_CXVSCROLL));
//#ifdef DEBUG
- m_scripts.AddColumn(2, NULL, 32 - GetSystemMetrics(SM_CXVSCROLL));
+ //m_scripts.AddColumn(2, NULL, 32 - GetSystemMetrics(SM_CXVSCROLL));
//#endif
LoadScripts();