SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Studio
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-28-2010, 03:53 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
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.
Reply With Quote
  #2  
Old 10-28-2010, 04:17 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
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
Reply With Quote
  #3  
Old 10-28-2010, 04:33 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by broconne View Post
...and I copied "ThisItem" text from another working button.
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
Reply With Quote
  #4  
Old 10-28-2010, 07:31 PM
broconne broconne is offline
Sage Aficionado
 
Join Date: Feb 2009
Location: Cary, NC
Posts: 306
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.
Reply With Quote
  #5  
Old 10-28-2010, 08:07 PM
PLUCKYHD PLUCKYHD is offline
SageTVaholic
 
Join Date: Dec 2007
Posts: 6,257
Quote:
Originally Posted by broconne View Post
Cool - thanks... I wasn't fully understanding the linking aspects of "REM" type comment actions..
Yes you can make comments using quotes in a green action change. They are best preferenced with REM
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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


All times are GMT -6. The time now is 02:24 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.