|
SageTV Studio Discussion related to the SageTV Studio application produced by SageTV. Questions, issues, problems, suggestions, etc. relating to the Studio software application should be posted here. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
How does the main menu work?
Ok - trying to do something here that I know plucky knows how to do since he does it in SMM...
How exactly are items invoked from the main menu? I am messing around trying to add something to the Videos menu. I create a new "Item", in that item I set the ButtonText, and I copied "ThisItem" text from another working button. I also copied the AddStaticContect.. However, when I select my new button - nothing happens. What I can't seem to find or figure out is what causes the transition from selecting that item to moving to the new screen/selection? In other words, where is the logic that takes you from "Browse By Folder" to the Brose-Videos component?
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram Guest: Ubuntu 16.04 with Sage v9 in Docker Tuners: 2 HDHR (OTA); Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case. |
#2
|
||||
|
||||
The green Action chain under an Item widget is the one that gets executed when the user selects that item. In your specific example of the "By Folders" item in the Video section of the Main Menu, that green Action widget is a comment that says "REM Jump to the video by Folders browser." Eventually, if you follow the reference links, that green chain terminates in a reference to the "Browser - Videos" menu.
Under an Item, any Action chain that doesn't terminate in a blue UI widget will be colored green. Although it's syntactically possible to have more than one such chain, only one of them will count as the "real" Action chain, so it's best to ensure that a given Item has at most one green child. As a matter of style, I like to make that single green child a comment describing the action to be performed, with the actual code as children of that comment (i.e. grandchildren of the Item).
__________________
-- Greg |
#3
|
||||
|
||||
By the way, ThisItem is meant to be unique for each item. It's how the shared logic tells the items apart. So you don't want to be copying the ThisItem value from another item; you want to make up your own value that's different from all the others.
__________________
-- Greg |
#4
|
|||
|
|||
Cool - thanks... I wasn't fully understanding the linking aspects of "REM" type comment actions..
__________________
Host: ESXi 6.5 w/ Intel Core i7 2.8GHZ 8GB Ram Guest: Ubuntu 16.04 with Sage v9 in Docker Tuners: 2 HDHR (OTA); Extenders: HD300 connected to a Samsung 56" DLP HDTV; HD300 connected to a Sharp 42" LCD Storage: OmniOS w/6 1TB Samsung Spinpoint in a RaidZ2 configuration in a 20 bay SATA hotswap case. |
#5
|
|||
|
|||
Yes you can make comments using quotes in a green action change. They are best preferenced with REM
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
HD200 Main Menu & SageTV main Menu | Doubletop | SageTV Media Extender | 2 | 12-29-2009 04:43 PM |
SageMC - Main menu to Sagetv Main Menu | shanrice | SageMC Custom Interface | 1 | 11-29-2009 01:41 PM |
How can I replace the default "Main Menu" of the STV with another Menu? | mkanet | SageTV Customizations | 3 | 08-15-2009 12:50 AM |
exit menu item on main menu | 49studebaker | SageMC Custom Interface | 1 | 11-14-2008 03:27 AM |
Where can I find the menu title theme (Main Menu, Program Guide, Setup Menu, etc) | mkanet | SageTV Studio | 5 | 11-11-2005 04:55 AM |