NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 19 20 21 22 23 … 93 Next »
SimpleButtonListPlugin

 
  • 0 Vote(s) - 0 Average
SimpleButtonListPlugin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#11
2010-08-02, 07:56 PM
The next suggestion I'd probably make is instead of using base.GetRenderList() then removing stuff, maybe start with an empty renderlist, and add uiButtonList.GetRenderList(), and conditionally add uiList.GetRenderList().

Alternatively, in the next build you can just set uiList.Visible = false;.
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#12
2010-08-02, 09:11 PM
Many thanks - I'll let you know how I get on...
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#13
2010-08-03, 06:06 PM
Yay, we're cooking with fire now after your suggestions sub. Cheers once again.

There's still a slight issue with the list not always updating even after being fed a new set of objects, but I'm not too fussed about that yet. It may simply be that I'm updating it too often. The final version is only going to do updates every 15 or 30s rather than every 1s just now.

I do have one other question though. What's the proper procedure for letting the list know it has *no* items to display? UiList.SetListObjects() expects a list - which can be empty, no problems there - and an index of an item to select, but there won't be one. Now, as far as I can tell, it doesn't seem to matter, except for the ListPosition element then displaying 1/0 instead of 0/0. A bug perhaps? (although the recordings screen can show 0/0 with a skin tweak so maybe not).

Iain
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,789
Threads: 769
Joined: Nov 2003
#14
2010-08-03, 06:17 PM
imilne Wrote:Yay, we're cooking with fire now after your suggestions sub. Cheers once again.

There's still a slight issue with the list not always updating even after being fed a new set of objects, but I'm not too fussed about that yet.
Maybe you need to ensure uiList.NeedsRendering() is called in your plugin's NeedsRendering() function. (ie, not skipped if something else has already decided it needs rendering).

Quote:I do have one other question though. What's the proper procedure for letting the list know it has *no* items to display? UiList.SetListObjects() expects a list - which can be empty, no problems there - and an index of an item to select, but there won't be one. Now, as far as I can tell, it doesn't seem to matter, except for the ListPosition element then displaying 1/0 instead of 0/0. A bug perhaps? (although the recordings screen can show 0/0 with a skin tweak so maybe not).
Yeah, this is just a bug. It does display 1/0
imilne
Offline

Posting Freak

Posts: 2,423
Threads: 135
Joined: Feb 2008
#15
2010-08-04, 04:32 PM
Actually, setting the selected index to -1 seems to do the trick. I thought it would have crapped out on that, but it seems ok and displays 0/0 instead.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): « Previous 1 2


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode