WACUP

General => Skins => Topic started by: ariszlo on January 22, 2021, 10:10:39 PM

Title: Duplicate bitrate number puzzles me
Post by: ariszlo on January 22, 2021, 10:10:39 PM
This is an update of an old skin from 2003. So far I have fixed whatever I could but there is an issue I cannot figure out what causes it. In addition to the position defined in player-normal-group.xml, bitrate value is also displayed north-west of the main window. I have looked through player-normal-group.xml and blinker.m several times but I still have no idea what puts it there.
Title: Re: Duplicate bitrate number puzzles me
Post by: ariszlo on January 24, 2021, 02:33:38 PM
Figured it out. Adding alpha="0" to the following tag in player-normal-group.xml fixes it:

  <text
    id="hidden"
    display="songinfo" default=""
    x="0" y="0"
    w="16" h="16"
    font="Tahoma" fontsize="12" color="0,0,0" alpha="0" ghost="1"
  />
Title: Re: Duplicate bitrate number puzzles me
Post by: Eris Lund on January 25, 2021, 07:55:54 AM
looks like it relates to something in blinker.m
Title: Re: Duplicate bitrate number puzzles me
Post by: ariszlo on January 25, 2021, 06:11:03 PM
looks like it relates to something in blinker.m

Actually, it shows even if you comment out this line in player.xml:
<script id="blinker" file="scripts/blinker.maki"/>

What blinker.m has to do with it is that it gets songinfo from the "hidden" tag of player-normal-group.xml, from which it extracts the bitrate to be displayed in the area defined by the "Bitnum" tag and stereo/mono to be displayed in the area defined by the "stereostrg" tag.

The coordinates of the "hidden" tag of player-normal-group.xml define the area exactly where the duplicate bitrate number is displayed.