mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Script: Changed multi-parameter SKIN:Bang() to require "!" in first parameter
This commit is contained in:
parent
9db39b72bc
commit
b7a3e03997
@ -44,15 +44,20 @@ static int Bang(lua_State* L)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::vector<std::wstring> args;
|
const WCHAR* bangSz = bang.c_str();
|
||||||
for (int i = 3; i <= top; ++i)
|
if (*bangSz == L'!')
|
||||||
{
|
{
|
||||||
std::wstring tmpSz = LuaManager::ToWide(L, i);
|
++bangSz; // Skip "!"
|
||||||
parser.ReplaceVariables(tmpSz);
|
std::vector<std::wstring> args;
|
||||||
args.push_back(tmpSz);
|
for (int i = 3; i <= top; ++i)
|
||||||
}
|
{
|
||||||
|
std::wstring tmpSz = LuaManager::ToWide(L, i);
|
||||||
|
parser.ReplaceVariables(tmpSz);
|
||||||
|
args.push_back(tmpSz);
|
||||||
|
}
|
||||||
|
|
||||||
Rainmeter->ExecuteBang(bang.c_str(), args, self);
|
Rainmeter->ExecuteBang(bangSz, args, self);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user