Fork MediaPortal on GitHub
MediaPortal Windows Media Center

Site navigation


Last Edit

Page last modified 04:32, 19 Jul 2014 by Dadeo
MediaPortal Wiki > MediaPortal 1 > Contribute > Skins > Skin Related Changes > 1.1.0 to 1.2.0 > Music Now Playing Love/Ban Dialog

Music Now Playing Love/Ban Dialog

Was this page helpful?

    Purpose

    • Required:  Yes
    • Type of Change:  Feature

    The music plugin now allows for users to love/ban the current playing track on last.fm.    As part of this a new dialog class has been added.

    Description of Change

    Now when in the music Now Playing screen a user can mark the current track as loved/banned on last.fm (if the LastFMScrobbler plugin is enabled).   To notify the user this has taken place, a new dialog will pop up.   This dialog has a timeout and will disappear automatically after two seconds.

    The localized title and labels are set by the music plugin so there is no need to set these values in the skin file.

    Controls on the dialog are:

     

    Control ID Control Purpose
    3 Label (GUILabelControl) This is the heading used in the dialog
    4 Button (GUIButtonControl) This button if selected will close the dialog (which will close automatically after 2 seconds anyway)
    6 TextArea (GUITextControl) This contains the actual message displayed in the dialog

    Additional Information and References

    • Mantis Issue: 3175
    • Related xml(s):  DialogNotifyLastFM.xml (new)
    • Window ID:  512
    • Related GUI property/control:  N/A

    XML/Code Samples

    Implementation in Blue3 Wide

    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <window>
      <id>512</id>
      <defaultcontrol>4</defaultcontrol>
      <allowoverlay>no</allowoverlay>
      <controls>
        <control>
          <type>image</type>
          <id>0</id>
          <width>1280</width>
          <height>720</height>
          <texture>black.png</texture>
          <colordiffuse>60ffffff</colordiffuse>
        </control>
        <control>
          <type>group</type>
          <description>group element</description>
          <animation effect="fade" time="250">WindowOpen</animation>
          <animation effect="fade" time="250">WindowClose</animation>
          <control>
            <type>image</type>
            <id>0</id>
            <posX>568</posX>
            <posY>500</posY>
            <width>622</width>
            <height>212</height>
            <texture>dialog_background.png</texture>
          </control>
          <control>
            <description>Heading text label</description>
            <type>label</type>
            <id>3</id>
            <posX>640</posX>
            <posY>531</posY>
            <label>181</label>
            <font>font10</font>
            <textcolor>FFFFFFFF</textcolor>
          </control>
          <control>
            <description>OK button</description>
            <type>button</type>
            <id>4</id>
            <posX>1093</posX>
            <posY>522</posY>
            <width>50</width>
            <height>40</height>
            <textureFocus>dialogue_ok_focus.png</textureFocus>
            <textureNoFocus>dialogue_ok_nofocus.png</textureNoFocus>
            <label>-</label>
            <onleft>4</onleft>
            <onright>4</onright>
            <onup>4</onup>
            <ondown>4</ondown>
          </control>
          <control>
            <description>textarea</description>
            <type>textbox</type>
            <id>6</id>
            <posX>755</posX>
            <posY>556</posY>
            <width>391</width>
            <height>112</height>
            <spinPosX>1031</spinPosX>
            <spinPosY>641</spinPosY>
            <onleft>4</onleft>
            <onright>4</onright>
            <onup>4</onup>
            <ondown>4</ondown>
            <label>-</label>
          </control>
        </control>
      </controls>
    </window>

    Screenshot

    GUIDialogNotifyLastFM.PNG




    Running the latest version?

    V1.8.0 - released July 2014
    Releasenews | Download
    Changelog
     | Requirements
    HTPC
    Team-MediaPortal
     
    About
    Contact |  Press
    Partners