Script: Added measure:ReadString(), measure:ReadNumber(), measure:ReadFormula()

This commit is contained in:
Birunthan Mohanathas
2012-03-08 15:42:46 +00:00
parent 04048a6325
commit dca935f6ff
3 changed files with 44 additions and 19 deletions

View File

@ -37,12 +37,7 @@ static int Meter_GetOption(lua_State* L)
CConfigParser& parser = meterWindow->GetParser();
std::wstring strTmp = LuaManager::ToWide(L, 2);
strTmp = parser.GetValue(self->GetOriginalName(), strTmp, L"");
parser.SetBuiltInVariable(L"CURRENTSECTION", self->GetOriginalName()); // Set temporarily
parser.ReplaceVariables(strTmp);
parser.SetBuiltInVariable(L"CURRENTSECTION", L""); // Reset
parser.ReplaceMeasures(strTmp);
strTmp = parser.ReadString(self->GetName(), strTmp.c_str(), L"");
LuaManager::PushWide(L, strTmp.c_str());
return 1;