HOW-TO:Add volume value to Estuary: Difference between revisions
Jump to navigation
Jump to search
(Created page with "__FORCETOC__ This tutorial will show how to add a volume value (number, percent or dB) below the volume bar. This is achieved by editing DialogVolumeBar.xml (...\Kodi\addons\s...") |
mNo edit summary |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
{{mininav| [[Skinning]]}} | |||
This tutorial will show how to add a volume value (number, percent or | 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 <code><controls>...</controls></code> but outside <code><control type="group">...</control></code> | All the code below should be added inside <code><controls>...</controls></code> but outside <code><control type="group">...</control></code> | ||
Line 7: | Line 7: | ||
<gallery widths=194px heights=150px> | <gallery widths=194px heights=150px> | ||
File:Mod-estuary-original.png|Original volume | File:Mod-estuary-original.png|Original volume circle | ||
File:Mod1-estuary-number.png|MOD1 - number | File:Mod1-estuary-number.png|MOD1 - number | ||
File:Mod2-estuary-percent.png|MOD2 - percent | File:Mod2-estuary-percent.png|MOD2 - percent | ||
Line 17: | Line 17: | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<control type="label"> | <control type="label"> | ||
<visible>!Player.Muted</visible> | |||
<description>Volume value, number</description> | <description>Volume value, number</description> | ||
<left>935</left> | <left>935</left> | ||
Line 29: | Line 30: | ||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<control type="label"> | <control type="label"> | ||
<visible>!Player.Muted</visible> | |||
<description>Volume value, percent</description> | <description>Volume value, percent</description> | ||
<left>915</left> | <left>915</left> | ||
Line 38: | Line 40: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==Add volume value as dB== | ==Add volume value as decibel (dB)== | ||
Add this code: | |||
<syntaxhighlight lang="xml"> | <syntaxhighlight lang="xml"> | ||
<control type="label"> | <control type="label"> | ||
<visible>!Player.Muted</visible> | |||
<description>Volume value, decibel (dB)</description> | <description>Volume value, decibel (dB)</description> | ||
<left>877</left> | <left>877</left> | ||
Line 49: | Line 53: | ||
</control> | </control> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
[[Category:Skin_development]] |
Latest revision as of 08:42, 11 July 2022
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%.
Add volume value as a number or percent
Add this code:
<control type="label"> <visible>!Player.Muted</visible> <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"> <visible>!Player.Muted</visible> <description>Volume value, percent</description> <left>915</left> <top>90</top> <font>font45</font> <shadowcolor>black</shadowcolor> <label>$INFO[Control.GetLabel(29999),,%]</label> </control>
Add volume value as decibel (dB)
Add this code:
<control type="label"> <visible>!Player.Muted</visible> <description>Volume value, decibel (dB)</description> <left>877</left> <top>90</top> <font>font45</font> <shadowcolor>black</shadowcolor> <label>$INFO[Player.Volume]</label> </control>