Skip to content
This repository has been archived by the owner on Oct 12, 2023. It is now read-only.

Added Rating to Media Skin #58

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added @Resources/images/star.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
19 changes: 19 additions & 0 deletions @Resources/include/MeasureNowPlaying.inc
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,22 @@ Plugin=NowPlaying
PlayerName=#PlayerName#
PlayerType=Progress
UpdateDivider=10

[MeasureRating]
Measure=Plugin
Plugin=NowPlaying
PlayerName=#PlayerName#
PlayerType=Rating
UpdateDivider=50
IfCondition=MeasureRating = 0
IfTrueAction=[!SetOption "MeterRatingStar1" "GreyScale" "1"][!SetOption "MeterRatingStar2" "GreyScale" "1"][!SetOption "MeterRatingStar3" "GreyScale" "1"][!SetOption "MeterRatingStar4" "GreyScale" "1"][!SetOption "MeterRatingStar5" "GreyScale" "1"]
IfCondition2=MeasureRating = 1
IfTrueAction2=[!SetOption "MeterRatingStar1" "GreyScale" "0"][!SetOption "MeterRatingStar2" "GreyScale" "1"][!SetOption "MeterRatingStar3" "GreyScale" "1"][!SetOption "MeterRatingStar4" "GreyScale" "1"][!SetOption "MeterRatingStar5" "GreyScale" "1"]
IfCondition3=MeasureRating = 2
IfTrueAction3=[!SetOption "MeterRatingStar1" "GreyScale" "0"][!SetOption "MeterRatingStar2" "GreyScale" "0"][!SetOption "MeterRatingStar3" "GreyScale" "1"][!SetOption "MeterRatingStar4" "GreyScale" "1"][!SetOption "MeterRatingStar5" "GreyScale" "1"]
IfCondition4=MeasureRating = 3
IfTrueAction4=[!SetOption "MeterRatingStar1" "GreyScale" "0"][!SetOption "MeterRatingStar2" "GreyScale" "0"][!SetOption "MeterRatingStar3" "GreyScale" "0"][!SetOption "MeterRatingStar4" "GreyScale" "1"][!SetOption "MeterRatingStar5" "GreyScale" "1"]
IfCondition5=MeasureRating = 4
IfTrueAction5=[!SetOption "MeterRatingStar1" "GreyScale" "0"][!SetOption "MeterRatingStar2" "GreyScale" "0"][!SetOption "MeterRatingStar3" "GreyScale" "0"][!SetOption "MeterRatingStar4" "GreyScale" "0"][!SetOption "MeterRatingStar5" "GreyScale" "1"]
IfCondition6=MeasureRating = 5
IfTrueAction6=[!SetOption "MeterRatingStar1" "GreyScale" "0"][!SetOption "MeterRatingStar2" "GreyScale" "0"][!SetOption "MeterRatingStar3" "GreyScale" "0"][!SetOption "MeterRatingStar4" "GreyScale" "0"][!SetOption "MeterRatingStar5" "GreyScale" "0"]
59 changes: 54 additions & 5 deletions Media/Media (big).ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ Information=An minimalistic, still stylish dashboard-like skin with modular comp
Measure=String
String=#PlayerName#
IfMatch=Spotify
IfMatchAction=[!WriteKeyValue Variables MPMode Spotify "#@#variables.ini"][!SetVariable MPMode Spotify][!Update]
IfMatchAction=[!HideMeterGroup StarGroup][!WriteKeyValue Variables MPMode Spotify "#@#variables.ini"][!SetVariable MPMode Spotify][!Update]
IfMatch2=GPMDP
IfMatchAction2=[!WriteKeyValue Variables MPMode GPMDP "#@#variables.ini"][!SetVariable MPMode GPMDP][!Update]
IfMatchAction2=[!HideMeterGroup StarGroup][!WriteKeyValue Variables MPMode GPMDP "#@#variables.ini"][!SetVariable MPMode GPMDP][!Update]
IfMatch3=Web
IfMatchAction3=[!WriteKeyValue Variables MPMode Web "#@#variables.ini"][!SetVariable MPMode Web][!Update]
IfMatchAction3=[!HideMeterGroup StarGroup][!WriteKeyValue Variables MPMode Web "#@#variables.ini"][!SetVariable MPMode Web][!Update]
IfNotMatchAction=[!WriteKeyValue Variables MPMode NowPlaying "#@#variables.ini"][!SetVariable MPMode NowPlaying][!Update]
UpdateDivider=-1

Expand Down Expand Up @@ -104,13 +104,62 @@ StringAlign=LeftCenter
ClipString=1
UpdateDivider=10

[MeterRatingStar1]
Meter=Image
ImageName=#@#images\star.png
X=0r
Y=-10r
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureState "SetRating 1"][!SetOption "MeterRatingStar1" "GreyScale" "0"][!SetOption "MeterRatingStar2" "GreyScale" "1"][!SetOption "MeterRatingStar3" "GreyScale" "1"][!SetOption "MeterRatingStar4" "GreyScale" "1"][!SetOption "MeterRatingStar5" "GreyScale" "1"]
Group=StarGroup
[MeterRatingStar2]
Meter=Image
ImageName=#@#images\star.png
X=2R
Y=0r
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureState "SetRating 2"][!SetOption "MeterRatingStar1" "GreyScale" "0"][!SetOption "MeterRatingStar2" "GreyScale" "0"][!SetOption "MeterRatingStar3" "GreyScale" "1"][!SetOption "MeterRatingStar4" "GreyScale" "1"][!SetOption "MeterRatingStar5" "GreyScale" "1"]
Group=StarGroup

[MeterRatingStar3]
Meter=Image
ImageName=#@#images\star.png
X=2R
Y=0r
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureState "SetRating 3"][!SetOption "MeterRatingStar1" "GreyScale" "0"][!SetOption "MeterRatingStar2" "GreyScale" "0"][!SetOption "MeterRatingStar3" "GreyScale" "0"][!SetOption "MeterRatingStar4" "GreyScale" "1"][!SetOption "MeterRatingStar5" "GreyScale" "1"]
Group=StarGroup

[MeterRatingStar4]
Meter=Image
ImageName=#@#images\star.png
X=2R
Y=0r
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureState "SetRating 4"][!SetOption "MeterRatingStar1" "GreyScale" "0"][!SetOption "MeterRatingStar2" "GreyScale" "0"][!SetOption "MeterRatingStar3" "GreyScale" "0"][!SetOption "MeterRatingStar4" "GreyScale" "0"][!SetOption "MeterRatingStar5" "GreyScale" "1"]
Group=StarGroup

[MeterRatingStar5]
Meter=Image
ImageName=#@#images\star.png
X=2R
Y=0r
W=20
H=20
LeftMouseUpAction=[!CommandMeasure MeasureState "SetRating 5"][!SetOption "MeterRatingStar1" "GreyScale" "0"][!SetOption "MeterRatingStar2" "GreyScale" "0"][!SetOption "MeterRatingStar3" "GreyScale" "0"][!SetOption "MeterRatingStar4" "GreyScale" "0"][!SetOption "MeterRatingStar5" "GreyScale" "0"]
Group=StarGroup

[MeterPositionDuration]
Meter=String
MeasureName=MeasurePosition
MeasureName2=MeasureDuration
MeterStyle=StyleSecondary
X=0r
Y=0R
X=155
Y=15R
W=((#Width#-135)*#Scale#)
Text="%1/%2"
StringAlign=LeftCenter
Expand Down