Example #1
0
static int GetName(lua_State* L)
{
	CMeter* self = GetSelf(L);
	LuaManager::PushWide(L, self->GetName());

	return 1;
}
Example #2
0
static int GetOption(lua_State* L)
{
	CMeter* self = GetSelf(L);
	CMeterWindow* meterWindow = self->GetMeterWindow();
	CConfigParser& parser = meterWindow->GetParser();

	std::wstring strTmp = LuaManager::ToWide(L, 2);
	strTmp = parser.ReadString(self->GetName(), strTmp.c_str(), L"");

	LuaManager::PushWide(L, strTmp.c_str());
	return 1;
}