View unanswered posts | View active topics It is currently Fri May 24, 2013 4:48 am



Reply to topic  [ 1 post ] 
 Redraw item menu in RSS file 
Author Message

Joined: Thu Apr 08, 2010 7:43 pm
Posts: 10
Post 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
image1.png [ 8.07 KiB | Viewed 1676 times ]


2. Then i push down button, and i see
Attachment:
image2.png
image2.png [ 8.14 KiB | Viewed 1676 times ]

Why first menu item don't delete background?

3. and etc...
Attachment:
image3.png
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>

_________________
4x4 photos


Fri Apr 13, 2012 10:32 am
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 1 post ] 

Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by: phpBB | Innitial forum Design by: STSoftware | Modified by: AC Ryan.