21 Aug 2020 - The wiki is undergoing a major cleanup. If you arrived here from a search engine and cannot find the page, please use the wiki search instead (top right corner of page)
More info can be found on the forum

HOW-TO:Add volume value to Estuary

From Official Kodi Wiki
Jump to: navigation, search
Home icon grey.png   ▶ Skinning ▶ HOW-TO:Add volume value to Estuary

This tutorial will show how to add a volume value (number, percent or decibel) below the volume circle. This is achieved by editing DialogVolumeBar.xml (...\Kodi\addons\skin.estuary\xml\DialogVolumeBar.xml)

All the code below should be added inside <controls>...</controls> but outside <control type="group">...</control>

Note: Kodi's audio is based on decibel and doesn't have 100 different levels, it has 90 (default). So at a couple places the volume will skip 2 points. E.g. 89%-91%.

1 Add volume value as a number or percent

Add this code:

<control type="label">
	<description>Volume value, number</description>
	<left>935</left>
	<top>90</top>
	<font>font45</font>	
	<shadowcolor>black</shadowcolor>
	<label>$INFO[Control.GetLabel(29999)]</label>
</control>

To add as percent add this instead:

<control type="label">
	<description>Volume value, percent</description>
	<left>915</left>
	<top>90</top>
	<font>font45</font>	
	<shadowcolor>black</shadowcolor>
	<label>$INFO[Control.GetLabel(29999),,%]</label>
</control>

2 Add volume value as decibel (dB)

Add this code:

<control type="label">
	<description>Volume value, decibel (dB)</description>
	<left>877</left>
	<top>90</top>
	<font>font45</font>	
	<shadowcolor>black</shadowcolor>
	<label>$INFO[Player.Volume]</label>
</control>