Uploaded image for project: 'MediaPortal 1'
  1. MediaPortal 1
  2. MP1-4382

Add a skin function to indirectly access properties

    XMLWordPrintable

Details

    Description

      <p>This feature allows skinners to specify an indirect property. The 2 new functions will take a string and evaluate the contents against the system properties. This way skinners can (for example) define a function as a SkinProperty and evaluate that for display in a label or use string functions to build a property name (e.g. number all menu items from 0-9 and have SkinPropertis Label0 to Label9, then add&nbsp;put the label as</p><p>&lt;label&gt;#(cpropstring(string.format('#BasicHome.B{0}.Label',#BasicHome.Current.ID)))&lt;/label&gt;</p><p>functions are:</p><ul><li>cpropstring, returns a string based property</li><li>cpropbool, returns a bool based property</li></ul><p>Additional needed changes: changed SkinFunctionAttribute to include a new parameter named "AllwaysEvaluate", to avoid function caching. Attached is full patch and a dll against 1.6.</p><p><br /></p>

      Attachments

        Activity

          People

            Unassigned Unassigned
            mbuzina Marc Buzina (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: