I feel like I'm spamming this forum, atm.
I have a number of small changes I'd like to make to my Home.xml, which as you know uses a Buttonscroller for almost all of its navigation. One of the changes is making the buttons on the scroller optional, so you can turn individual ones on or off depending on preference.
However, I'm being hamstrung at the moment by the lack of visibility controls for individual buttons. I know you can make the entire scroller appear or disappear, but its individual buttons are fixed. A workaround would be to have entirely different Buttonscrollers for each configuration, but the way my Home.xml works (it already switches between three different scrollers) means I can't do it.
Is this option likely at all in the future?
EDIT: Actually, I can see this causing problems. The Buttonscroller would have to know how many buttons were there as each was turned on or off. This would again require an entirely separate scroller for each configuration. G5 Laser Mouse - Logitech Mice/Trackballs Reviews and Prices at :: Weaknesses: one side button, scroller chunky. Summary: 2005-12-10 12:16:49 This is the best mouse . Error while processing your request, please try again http://reviews.pricegrabber.com/mice-trackballs/m/11612828/HOME |
EDIT 2: EDIT RETURNS: I've cracked it, kinda. Don't worry about this for now.
Correct - they do not support multiple 's. This can ofcourse be added if necessary.
The "stuttering" behaviour is because the buttonscroller changes items when the scroll finishes, whereas the containers change items at the start of the scroll. Thus, the new multiimage loads it's backdrop, which causes a framerate drop. You can see it real well by dropping the scrollspeed of the wraplist to something like 500-1000.
I'm not sure what the solution is to be honest. Perhaps some sort of trickery using hidden anims with Container.OnNext ?
Correct - they do not support multiple 's. This can ofcourse be added if necessary.
ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD ADD
:grin:
Perhaps I'm doing something wrong. I tried to add the code but it simply removed the animations from both the main menu and the backgrounds.
Ofcourse.
Basically, just use a normal list or panel control.
Then add a section to it, which allows you to specify the label, label2, icon, thumb, id and visibility of each item.
You can then use things like Container(5).HasFocus(1) etc. just like you did with your button scroller.
http://xboxmediacenter.com/wiki/index.php?title=List_Container
http://xboxmediacenter.com/wiki/index.php?title=Static_List_Content
Cheers,
Jonathan
I'm just going to have to disable the animation on that central menu for the time being. I take it there's a specific reason for the wrap lists operating the way they do.
Ignore me, I'm using an old build.
Yeah, I noticed after I posted (of course) - and since then, I've seen references to buttonscrollers in several places, but most link back to the buttonscroller page.
Nope - I'm not sure what the solution is for that to be honest.
Right, this seems to do the trick:
http://pastebin.com/m72eb2eff
Note that the background goes black with fast scrolling, not sure what to do about that though, and I suspect the old method would have as well?
EDIT: Actually, that's not quite right. The "magic image" (id 87) needs to be above the multiimages so it "renders" first (otherwise the visibility conditions on the backgrounds don't kick in to a frame later, thus getting the stutter).
Cheers,
Jonathan
So, erm, do these new panels exist already?
Yeah I see what you mean it stutters
Pretty much, yeah. Things are better IMO this way as far as lists go - things like listitem.* then update immediately as would be expected. It also simplifies the code in that we know immediately when to stop scrolling without having a bunch of variables for "next offset in list" and "current offset in list" and having to fight to keep them in sync. Hp Pavilion Pc A6618l – Máy Tính để Bàn Giải Trí Cấu Hình Mạnh :: Cordless keyboard (2.4GHz) and HP Cordless optical 2-button scroller mouse Web Templates, |-- Software Request & Download, |---- Selected Softwares http://www.diendantinhoc.com/index.php?showtopic=114793&view=getnewpostHOME | CHANGELOG :: So MOS version doesn't request BetterString anymore (suggested by kiero); .. mouse button on right button scroller, the behaviour is the same of FireFox. http://shinkuro.altervista.org/amiga/software/ChangeLog.txtHOME |
I suspect you'll notice the pauses with the buttonscroller as well if you move quickly, as the same resource allocation time is still present.
Ideally all we want is a way to delay the resource allocation of the images/multiimages as required. For a single image, this could probably be done with the large image control (which background loads the images). This means, though that things are no longer "in sync" as far as animation timing goes. Ofcourse, for background image fading this isn't an issue.
You can possibly hack up a delay using Container.OnNext/OnPrevious as a visibility condition on an image control (with no texture) and a hidden animation of the appropriate delay length. Then use Control.IsVisible as a visibility condition on the multiimages to not display them until that image is hidden. A delay "hidden" animation on the multiimages will mean the previous one will display for this time.
In pseudo-code:
Container(300).OnNext + Container(300).OnPrevious
Hidden
Normal conditions
!Control.IsVisible(87)
Hidden
Visible
Not sure how well it'd work - have a play :)
Not to bump an old thread, but *bump*!
If the buttonscrollers are "a thing of the past" the wiki (http://xboxmediacenter.com/wiki/index.php?title=Buttonscrollers) should be updated to reflect that... now that I have to rewrite my new home.xml...
Voila!
Too quick but did you ever fix his original bug of the animation jumping on multiimage image change ? :;):
Down with button scrollers!!
Long live the nice new list/panel containers!!
Here's the Home.xml. Shouldn't be too much of a mess... I hope.
http://www.nashwanpower.com/download/home.xml
If your working on multimages it would be great for it to be able to look in highlighted folder, like Apple do eg when when you move over a folder the multimage path is that folder, and will slideshow the contents this would be great for previewing and would just require the multiimage path to be the selected path.
Ok First I'd like to say button scrollers are a thing of the past and will be getting removed from the c++ code in the in the future jmarshall dislikes them and they are a monster code wise
Good news is ther have been replaces with static lists/panels that can do everything a button scroller can do and more the only thing they don't do is fade out on the sides. But honestly button scrollers faded so little who could tell anyway :)
If you need examples of how the new way works you can look at
Vision Home (uses wrap lists for fixed position)
https://xboxmediacenter.svn.sourceforge.net/svnroot/xboxmediacenter/Vision/PAL/Home.xml
and
xTV home (uses normal list and option for items)
https://xboxmediacenter.svn.sourceforge.net/svnroot/xboxmediacenter/xTV/PAL/Home.xml
Really they are much nicer ways than button scrollers
Should be an OR not an AND on the image control. I'll have a play sometime later today.
Well, I changed my Home page over to using the wraplist containers and I can tell it's going to be great. But there's a problem. Whereas the Buttonscroller moved smoothly between options while my backgrounds were changing, the new container version does not. Basically, it draws about two frames of animation when the skin has to load a new background.
Is this something I can fix?
Dunno - let me have the XML's and I'll take a look. The buttonscroller pre-loads all textures needed for it, so that may be it. Though with your skin that shouldn't be a problem, as there is no item-specific texturing.
Voila!
And another apparent problem: the links to the MyVideos-based windows don't work. Do these - objects not support multiple commands?
If you acctually go back up one level to
http://xboxmediacenter.com/wiki/index.php?title=Controls
you will see they are listed in "Depreciated controls" meaning they have been replaced don't use them but your right they should have somthing on the pages I was just going to delete the pages
Genius! Works perfectly.
Microsoft Unleashes Visual Studio .NET
IBM's iPhrase Buy Adds to WebSphere
|