Add button to the bitrate selector

This commit is contained in:
Matt
2022-05-30 16:45:29 -04:00
parent 90103b9fba
commit 6c8e193130
2 changed files with 44 additions and 29 deletions

View File

@@ -29,6 +29,7 @@ class BitrateDialog(xbmcgui.WindowXMLDialog):
self.bitrate_label = self.getControl(3030)
bitrate_label_string = str(self.slider_control.getInt()) + " Kbs"
self.bitrate_label.setLabel(bitrate_label_string)
self.getControl(3011).setLabel(translate_string(30314))
def onFocus(self, control_id):
pass

View File

@@ -13,39 +13,53 @@
<left>0</left>
<top>0</top>
<width>380</width>
<height>100</height>
<height>150</height>
<texture border="40">bg.png</texture>
</control>
<control type="label" id="3020">
<width>120</width>
<left>20</left>
<top>5</top>
<height>45</height>
<label>Bitrate : </label>
<textcolor>99FFFFFF</textcolor>
<font>font14</font>
<align>left</align>
</control>
<control type="label" id="3020">
<width>120</width>
<left>20</left>
<top>5</top>
<height>45</height>
<label>Bitrate : </label>
<textcolor>99FFFFFF</textcolor>
<font>font14</font>
<align>left</align>
</control>
<control type="label" id="3030">
<width>150</width>
<left>120</left>
<top>5</top>
<height>45</height>
<label>100 Mbs</label>
<textcolor>99FFFFFF</textcolor>
<font>font14</font>
<align>left</align>
</control>
<control type="label" id="3030">
<width>150</width>
<left>120</left>
<top>5</top>
<height>45</height>
<label>100 Mbs</label>
<textcolor>99FFFFFF</textcolor>
<font>font14</font>
<align>left</align>
</control>
<control type="slider" id="3000">
<left>20</left>
<top>55</top>
<width>340</width>
<height>30</height>
<visible>true</visible>
</control>
<control type="slider" id="3000">
<left>20</left>
<top>55</top>
<width>340</width>
<height>30</height>
<ondown>3011</ondown>
<visible>true</visible>
</control>
<control type="button" id="3011">
<texturenofocus border="1" colordiffuse="ff161616">white.png</texturenofocus>
<texturefocus border="1" colordiffuse="ff525252">white.png</texturefocus>
<left>20</left>
<top>100</top>
<width>340</width>
<height>40</height>
<label></label>
<onup>3000</onup>
<font>font14</font>
<align>center</align>
</control>
</controls>
</window>
</window>