Manser
October 23rd, 2006, 01:51 AM
I want to hide a button witch set steps back in the library tree
because it should't go back to the beginning of the tree!!
But I only want to go back until
onCCFLoad:
RegisterVariableWatch('MP.GACParentScheme', backButtonHiden);
Function:
function backButtonHiden()
print ("Funktion aufgerufen!!!!");
local ParentPath=NetRemote.GetVariable("MP.GACParentScheme"); -- liest den Zurück-Pfad aus
if (string.len(ParentPath)==19) and(string.sub(ParentPath, 15, 21)=='Audio') -- 'Media Library\Audio'
or (string.len(ParentPath)==9) and(ParentPath=='Playlists') then -- 'Playlists'
NetRemote.SetVariable("BackButtonHiden", 1);
else
NetRemote.SetVariable("BackButtonHiden", 0);
end
end
This works well on NetRemote V.1.1.0.44
But it will not work on NetRemote V 2.0.0.76 ??????
The problem is that registerVariableWatch don't call the function.
because it should't go back to the beginning of the tree!!
But I only want to go back until
onCCFLoad:
RegisterVariableWatch('MP.GACParentScheme', backButtonHiden);
Function:
function backButtonHiden()
print ("Funktion aufgerufen!!!!");
local ParentPath=NetRemote.GetVariable("MP.GACParentScheme"); -- liest den Zurück-Pfad aus
if (string.len(ParentPath)==19) and(string.sub(ParentPath, 15, 21)=='Audio') -- 'Media Library\Audio'
or (string.len(ParentPath)==9) and(ParentPath=='Playlists') then -- 'Playlists'
NetRemote.SetVariable("BackButtonHiden", 1);
else
NetRemote.SetVariable("BackButtonHiden", 0);
end
end
This works well on NetRemote V.1.1.0.44
But it will not work on NetRemote V 2.0.0.76 ??????
The problem is that registerVariableWatch don't call the function.