//////////////////////RATINGVARIABLES//////////////////////
$puts(ratewidth,90)
$puts(xpos,630)
$puts(ypos,$eval($get(infopanelh)-$get(ratewidth)))
$puts(imagedir,C:\Program Files\foobar2000\images\Ratings\)
//////////////////////RATING//////////////////////
$puts(rateheight,$div($get(ratewidth),5))
$puts(halfstar,$div($get(ratewidth),10))
$puts(rating,$ifgreater(%RATING%,10,$puts(rate,$div($add(%RATING%,5),10)),$puts(rate,%RATING%)))
$imageabs2($get(ratewidth),$get(rateheight),,,,,$get(xpos),$get(ypos),$get(imagedir)$ifequal(%rating%,0,0,$if(%rating%,$select(%rating%,11,22,33,44,55),0)).png,)
$button2($get(xpos),$get(ypos),$mul($get(halfstar),1),0,$mul($get(halfstar),2),$get(rateheight),'$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'100.png,)','$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'2.png,)',Rate 1,)
$button2($get(xpos),$get(ypos),$mul($get(halfstar),3),0,$mul($get(halfstar),4),$get(rateheight),'$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'100.png,)','$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'4.png,)',Rate 2,)
$button2($get(xpos),$get(ypos),$mul($get(halfstar),5),0,$mul($get(halfstar),6),$get(rateheight),'$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'100.png,)','$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'6.png,)',Rate 3,)
$button2($get(xpos),$get(ypos),$mul($get(halfstar),7),0,$mul($get(halfstar),8),$get(rateheight),'$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'100.png,)','$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'8.png,)',Rate 4,)
$button2($get(xpos),$get(ypos),$mul($get(halfstar),9),0,$mul($get(halfstar),10),$get(rateheight),'$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'100.png,)','$imageabs2('$get(ratewidth)','$get(rateheight)',,,,,,,'$get(imagedir)'10.png,)',Rate 5,)
My rating code doesn't work anymore, first worked perfectly now the alining isn't correct anymore