2016-03-20, 15:08
(2016-03-20, 02:26)_Andy_ Wrote: I don't use the latest git of Madnox so you have to modify the files manually. Maybe not the best solution but now you can change the behavior of the audio flag in all views at one point in the variables.xml
I have checked all video views and file view. The audio flag is working fine in all views so i hope i didn't miss anything.
I'm not very familiar with the conditions in skinning. Maybe there is a simpler solution. But it works.
file changes
I made three logos. I like them. Maybe someone can make better ones.Code:1) Add the 3 logos to addons\skin.aeon.madnox\extras\AltIcons\color flags\flags\audio
2) variables.xml
search for <variable name="AudioFlagVar">
and modify to
<variable name="AudioFlagVar">
<value>$INFO[ListItem.AudioCodec]$INFO[ListItem.AudioChannels]</value>
</variable>
<variable name="PlayerAudioFlagVAR">
<value condition="SubString(Player.Filename,dtsx)">$VAR[ColorFlagsAudio]audio\dtsxlogo.png</value>
<value condition="SubString(Player.Filename,auro)">$VAR[ColorFlagsAudio]audio\aurologo.png</value>
<value condition="SubString(Player.Filename,atmos)">$VAR[ColorFlagsAudio]audio\dolbyatmoslogo.png</value>
<value condition="!SubString(Player.Filename,dtsx) | !SubString(Player.Filename,auro) | !SubString(Player.Filename,atmos)">$VAR[ColorFlagsAudio]audio/$INFO[VideoPlayer.AudioCodec]$INFO[VideoPlayer.AudioChannels,,.png]</value>
</variable>
<variable name="FileAudioFlagVAR">
<value condition="SubString(ListItem.Filenameandpath,dtsx)">$VAR[ColorFlagsAudio]audio\dtsxlogo.png</value>
<value condition="SubString(ListItem.Filenameandpath,auro)">$VAR[ColorFlagsAudio]audio\aurologo.png</value>
<value condition="SubString(ListItem.Filenameandpath,atmos)">$VAR[ColorFlagsAudio]audio\dolbyatmoslogo.png</value>
<value condition="!SubString(ListItem.Filenameandpath,dtsx) | !SubString(ListItem.Filenameandpath,auro) | !SubString(ListItem.Filenameandpath,atmos)">$VAR[ColorFlagsAudio]audio/$VAR[AudioFlagVar,,.png]</value>
</variable>
3) DialogFullScreenInfo.xml
at line 407 change to
<control type="image">
<left>1745</left>
<texture fallback="flags/audio/defaultsound.png">$VAR[PlayerAudioFlagVAR]</texture>
<include>OSDFlagVars</include>
</control>
4) Includes_MediaFlags.xml
line 327,656,1162 change to
<texture>$VAR[FileAudioFlagVAR]</texture>
5) DialogVideoInfo.xml
line 726 change to
<texture>$VAR[FileAudioFlagVAR]</texture>
6) DialogSeekBar.xml
line 875 change to
<texture fallback="flags/audio/defaultsound.png">$VAR[PlayerAudioFlagVAR]</texture>
7) View_800_KodiFlix.xml
line 3049 change to
<texture>$VAR[FileAudioFlagVAR]</texture>
8) View_505_BannerInfo.xml
line 568 change to
<texture>$VAR[FileAudioFlagVAR]</texture>
9) View_507_FanartList.xml
line 136 change to
<texture>$VAR[FileAudioFlagVAR]</texture>
10) View_700_RightList.xml
line 494 change to
<texture>$VAR[FileAudioFlagVAR]</texture>
11) View_708_Shelf.xml
line 231,672,752,854 change to
<texture>$VAR[FileAudioFlagVAR]</texture>
12) View_750_Shelf.xml
line 521 change to
<texture>$VAR[FileAudioFlagVAR]</texture>
How about View 900 Sets?