Re: Slider Control in Home Menus?
Aesculus <Aesculus.a0qjfb-NUepA2SMhDQqspMVqqL2D+4xXEVPTSb/[email protected]>
| Newsgroups | gmane.music.equipment.slimdevices.devel |
|---|---|
| Organization | Logitech Squeezebox Forums |
| Message-ID | <[email protected]> |
Well its probable that I suck at interpreting the jive.pm sample for a
slider but all I got on the player was a menu item labeled Text that
went to another blank panel. No sight of a slider on the original panel
the menu was slated for. :-(
my @menu = ();
my $i = 0;
$gMenuUpdate = 1; # update menus from amp
push @menu, {
text => 'Text',
count => 1,
offset => 0,
item_loop => {
slider => 1,
min => 30,
max => 50,
#help => NO_HELP_STRING_YET,
#adjust => 1,
initial => 40,
actions => {
do => {
player => 0,
cmd => [ 'avpSetChannels', $i ],
},
},
}
};
$i++;
my $numitems = scalar(@menu);
$request->addResult("count", $numitems);
$request->addResult("offset", 0);
my $cnt = 0;
for my $eachItem (@menu[0..$#menu]) {
$request->setResultLoopHash('item_loop', $cnt, $eachItem);
$cnt++;
}
$request->setStatusDone();
Chris
------------------------------------------------------------------------
Aesculus's Profile: http://forums.slimdevices.com/member.php?userid=14876
View this thread: http://forums.slimdevices.com/showthread.php?t=114452