2015-09-19, 02:22
Hey guys,
In the skin I've been editing, I've created a navigation drawer (similar to what you seen on android apps). It consists of a list of links to different windows. I used to have a list control for the list items in the menu. But I wanted the button to have some sort of texture change to show which window the user was currently in. For example, if the user tapped the list item "Movies," then it would activate the (Videos,MovieTitles) window. If the user, opened the navigation drawer again, then the list item Movies icon would have a different color than the rest of the items. To make this happen, I changed to a grouplist of radiobuttons so that I could make use of the radiobutton control's <selected> tag to achieve this.
Currently, I'm having two problems
1) When, the active window is "MovieTitles," the button to activate the window (Videos, Root) does not work. Which seems weird since it works when these buttons / links were in a list container. I kind of solved this by using Container.Update instead of ActivateWindow. If there's no other solution, then I can make that work.
2) I can't get the <selected> tag to work the way I was hoping to with respect to the windows "Videos," "MovieTitles," and "TVShows. I can't find a condition that applies to only one of the windows and not to all of them. In other words, when the "Movies" item is selected from the list, the MovieTitles window is activated (as expected). When the user goes to open the navigation drawer again, instead of just the "Movies" list item having the color attribute defined in its <selected> tag, the "Videos" and "TVShows" have that attribute as well.
Here's a link for the code. The commented out lines show some things I've tried without any success.
Pastebin Link
Sorry if this is a dumb question. I searched the wiki and forums, but I couldn't really think of the correct terminology to search for. Thank you in advance for any help you can throw my way!
In the skin I've been editing, I've created a navigation drawer (similar to what you seen on android apps). It consists of a list of links to different windows. I used to have a list control for the list items in the menu. But I wanted the button to have some sort of texture change to show which window the user was currently in. For example, if the user tapped the list item "Movies," then it would activate the (Videos,MovieTitles) window. If the user, opened the navigation drawer again, then the list item Movies icon would have a different color than the rest of the items. To make this happen, I changed to a grouplist of radiobuttons so that I could make use of the radiobutton control's <selected> tag to achieve this.
Currently, I'm having two problems
1) When, the active window is "MovieTitles," the button to activate the window (Videos, Root) does not work. Which seems weird since it works when these buttons / links were in a list container. I kind of solved this by using Container.Update instead of ActivateWindow. If there's no other solution, then I can make that work.
2) I can't get the <selected> tag to work the way I was hoping to with respect to the windows "Videos," "MovieTitles," and "TVShows. I can't find a condition that applies to only one of the windows and not to all of them. In other words, when the "Movies" item is selected from the list, the MovieTitles window is activated (as expected). When the user goes to open the navigation drawer again, instead of just the "Movies" list item having the color attribute defined in its <selected> tag, the "Videos" and "TVShows" have that attribute as well.
Here's a link for the code. The commented out lines show some things I've tried without any success.
Pastebin Link
Sorry if this is a dumb question. I searched the wiki and forums, but I couldn't really think of the correct terminology to search for. Thank you in advance for any help you can throw my way!