
Redraw item menu in RSS file
Hello, i want to change style of one menu. For example: usr\local\bin\menubar\scripts\menubar.rss
Targets:
1. background of menu must be transparent (it works fine)
2. items have not background image
3. active menu item must have background
Problem:
Then i select items in menu, all items get background image from active element, and not reddraw.
How i can solve it? Thanks.
Imagecast:
1. I open menu by touch button "options" on remote control
Attachment:
image1.png [ 8.07 KiB | Viewed 1676 times ]
2. Then i push down button, and i see
Attachment:
image2.png [ 8.14 KiB | Viewed 1676 times ]
Why first menu item don't delete background?
3. and etc...
Attachment:
image3.png [ 8.14 KiB | Viewed 1676 times ]
Code of usr\local\bin\menubar\scripts\menubar.rss is standart
Code:
<itemDisplay>
<image offsetXPC=0 offsetYPC=0 widthPC=100 heightPC=100>
<script_replace>
queryIndex = getQueryItemIndex();
focusIndex = getFocusItemIndex();
lastSelectedIndex = getSelectedItemIndex();
state = getDrawingItemState();
if (queryIndex == focusIndex) {
thumbnail = "menubar/image/popmunu_focus.fsp";
}else {
position = getItemInfo("position");
if (position == "single"){
thumbnail = "menubar/image/item_normal_bar_single.fsp";
}else if (position == "head"){
thumbnail = "menubar/image/item_normal_bar_head.fsp";
}else if (position == "tail"){
thumbnail = "menubar/image/item_normal_bar_tail.fsp";
}else{
thumbnail = "menubar/image/item_normal_bar.fsp";
}
}
thumbnail;
</script_replace>
</image>
<text offsetXPC=5.0 offsetYPC=15 widthPC=90 heightPC=85 fontSize=14 >
<script_replace>
title = getItemInfo("title");
</script_replace>
<foregroundColor>
<script_replace>
selected = getItemInfo("selected");
state = getDrawingItemState();
if (state == "focus") {
color="255:255:255";
}
else {
if (selected == "yes") {
color="253:184:50";
}else {
color="172:172:172";
}
}
</script_replace>
</foregroundColor>
</text>
</itemDisplay>