GUIProgressListControl Development Process (1 Viewer)

Edalex

Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,955
    1,264
    Saratov
    Home Country
    Russian Federation Russian Federation
    Hi guys.
    For many year I've been thinking about making list where each item will have progressbar on it.
    I'm going to use it in several plugins.
    So, first question: from what control new one should be inherited?
    1) GUIListControl https://github.com/MediaPortal/MediaPortal-1/blob/master/mediaportal/Core/guilib/GUIListControl.cs
    2) GUIProgressControl https://github.com/MediaPortal/Medi...mediaportal/Core/guilib/GUIProgressControl.cs
    3) both of them
    4) GUIControl and write all code combining list and progress bar code from 1) and 2).
    Help me.
    Coding should be hard....
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,955
    1,264
    Saratov
    Home Country
    Russian Federation Russian Federation
    First attempt is adding List<GUiProgressControl> as ListItems and making GUIProgressLIstControl.
    First problem is that progresscontrol doesn't have labels by default so to add them I'm thinking of making intermediate control which will have progressbar and labels. Let's say GUILabelProgressControl. :p
    Another problem is investigating code of both listcontrol and progresscontrol. Some listcontrol methods connected to guilistitems.need to be overriden. Code for handling labels still need to be ported. And looks like I need to add xmlelements for progressbar textures to my new control.
    Does anyone understand my noobish language? :rolleyes:
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Or in movie list view for displaying progress of watched status ?:) I also miss the idea of having a watched/unwatched icon for filmstrip/poster views :(
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,955
    1,264
    Saratov
    Home Country
    Russian Federation Russian Federation
    Or in movie list view for displaying progress of watched status ?:) I also miss the idea of having a watched/unwatched icon for filmstrip/poster views :(
    Yeah, but i'm trying to use not for movies but for series ullustrating progress of watching season/show
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    Or in movie list view for displaying progress of watched status ?:) I also miss the idea of having a watched/unwatched icon for filmstrip/poster views :(
    Yeah, but i'm trying to use not for movies but for series ullustrating progress of watching season/show
    Can it be made a global control and use would be optional in any listview ? You asked to make it hard lol.
     

    Edalex

    Community Plugin Dev
  • Premium Supporter
  • January 3, 2008
    2,955
    1,264
    Saratov
    Home Country
    Russian Federation Russian Federation
    So you're suggesting to add progressbars to currrent guilistcobtrol, right? Good idea but it will bump skin engine version so it's bad for compatibility. New control which could be placed externally is less invasive way
     

    wizard123

    Retired Team Member
  • Premium Supporter
  • January 24, 2012
    2,569
    2,680
    Home Country
    United Kingdom United Kingdom
    So you're suggesting to add progressbars to currrent guilistcobtrol, right? Good idea but it will bump skin engine version so it's bad for compatibility. New control which could be placed externally is less invasive way
    Version bump is not a massive problem though as we have not had one for a long time, can it not be a new control like you suggest but with the same functionality as current list control which could be used as replacement if skinner wants to?

    Plus a version bump is worth it for new fancy features :)
     

    Users who are viewing this thread

    Top Bottom