mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
Script:
- Added GetVariable function [usage: GetVariable("VariableName")] - Removed several unneeded exposed functions - r853 broke Substitute on the Script measure, fixed
This commit is contained in:
@ -2,24 +2,6 @@
|
||||
#include "../LuaManager.h"
|
||||
#include "../../Meter.h"
|
||||
|
||||
static int Meter_Update(lua_State* L)
|
||||
{
|
||||
CMeter* self = (CMeter*)tolua_tousertype(L, 1, 0);
|
||||
bool val = self->Update();
|
||||
tolua_pushboolean(L, val);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int Meter_HasActiveTransition(lua_State* L)
|
||||
{
|
||||
CMeter* self = (CMeter*)tolua_tousertype(L, 1, 0);
|
||||
bool val = self->HasActiveTransition();
|
||||
tolua_pushboolean(L, val);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int Meter_HasDynamicVariables(lua_State* L)
|
||||
{
|
||||
CMeter* self = (CMeter*)tolua_tousertype(L, 1, 0);
|
||||
@ -131,14 +113,6 @@ static int Meter_SetToolTipHidden(lua_State* L)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int Meter_UpdateToolTip(lua_State* L)
|
||||
{
|
||||
CMeter* self = (CMeter*)tolua_tousertype(L, 1, 0);
|
||||
self->UpdateToolTip();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int Meter_HasMouseAction(lua_State* L)
|
||||
{
|
||||
CMeter* self = (CMeter*)tolua_tousertype(L, 1, 0);
|
||||
@ -191,27 +165,6 @@ static int Meter_IsHidden(lua_State* L)
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int Meter_HitTest(lua_State* L)
|
||||
{
|
||||
CMeter* self = (CMeter*)tolua_tousertype(L, 1, 0);
|
||||
int x = (int)tolua_tonumber(L, 2, 0);
|
||||
int y = (int)tolua_tonumber(L, 3, 0);
|
||||
|
||||
bool val = self->HitTest(x, y);
|
||||
tolua_pushboolean(L, val);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int Meter_IsMouseOver(lua_State* L)
|
||||
{
|
||||
CMeter* self = (CMeter*)tolua_tousertype(L, 1, 0);
|
||||
bool val = self->IsMouseOver();
|
||||
tolua_pushboolean(L, val);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int Meter_GetName(lua_State* L)
|
||||
{
|
||||
CMeter* self = (CMeter*)tolua_tousertype(L, 1, 0);
|
||||
@ -226,8 +179,6 @@ void LuaManager::RegisterMeter(lua_State* L)
|
||||
tolua_cclass(L, "CMeter", "CMeter", "CGroup", NULL);
|
||||
|
||||
tolua_beginmodule(L, "CMeter");
|
||||
tolua_function(L, "Update", Meter_Update);
|
||||
tolua_function(L, "HasActiveTransition", Meter_HasActiveTransition);
|
||||
tolua_function(L, "HasDynamicVariables", Meter_HasDynamicVariables);
|
||||
tolua_function(L, "GetW", Meter_GetW);
|
||||
tolua_function(L, "GetH", Meter_GetH);
|
||||
@ -240,15 +191,12 @@ void LuaManager::RegisterMeter(lua_State* L)
|
||||
tolua_function(L, "GetToolTipText", Meter_GetToolTipText);
|
||||
tolua_function(L, "HasToolTip", Meter_HasToolTip);
|
||||
tolua_function(L, "SetToolTipHidden", Meter_SetToolTipHidden);
|
||||
tolua_function(L, "UpdateToolTip", Meter_UpdateToolTip);
|
||||
tolua_function(L, "HasMouseAction", Meter_HasMouseAction);
|
||||
tolua_function(L, "HasMouseActionCursor", Meter_HasMouseActionCursor);
|
||||
tolua_function(L, "SetMouseActionCursor", Meter_SetMouseActionCursor);
|
||||
tolua_function(L, "Hide", Meter_Hide);
|
||||
tolua_function(L, "Show", Meter_Show);
|
||||
tolua_function(L, "IsHidden", Meter_IsHidden);
|
||||
tolua_function(L, "HitTest", Meter_HitTest);
|
||||
tolua_function(L, "IsMouseOver", Meter_IsMouseOver);
|
||||
tolua_function(L, "GetName", Meter_GetName);
|
||||
tolua_endmodule(L);
|
||||
}
|
||||
|
Reference in New Issue
Block a user