Skip to content

Commit

Permalink
add ability to set treenode index
Browse files Browse the repository at this point in the history
  • Loading branch information
cheat-engine committed May 5, 2023
1 parent e5a9fbc commit 2caef8e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Cheat Engine/luatreenode.pas
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,17 @@ function treenode_getIndex(L: PLua_State): integer; cdecl;
result:=1;
end;

function treenode_setIndex(L: PLua_State): integer; cdecl;
var
treenode: Ttreenode;
begin
treenode:=luaclass_getClassObject(L);
if lua_gettop(L)>=1 then
treenode.Index:=lua_tointeger(L,1);

result:=1;
end;

function treenode_getLevel(L: PLua_State): integer; cdecl;
var
treenode: Ttreenode;
Expand Down

0 comments on commit 2caef8e

Please sign in to comment.