Racaptcha Timing
This commit is contained in:
@@ -91,7 +91,7 @@ class SolverKodi(xbmcgui.WindowXMLDialog):
|
||||
self.getControl(TITLE).setLabel(self.goal)
|
||||
|
||||
for x in range(self.num_tiles):
|
||||
item = xbmcgui.ListItem(str(x))
|
||||
item = xbmcgui.ListItem('')
|
||||
item.setProperty('selected', 'false')
|
||||
items.append(item)
|
||||
self.getControl(PANEL).reset()
|
||||
@@ -172,9 +172,10 @@ class DynamicKodi(SolverKodi):
|
||||
cur_delay = delay
|
||||
while cur_delay > 0:
|
||||
# todo: show time
|
||||
item.setLabel(str(cur_delay))
|
||||
item.setLabel('{:.1f}'.format(cur_delay))
|
||||
time.sleep(0.1)
|
||||
cur_delay -= 0.1
|
||||
item.setLabel('')
|
||||
item.setArt({'image': path})
|
||||
|
||||
def onClick(self, control):
|
||||
@@ -192,8 +193,7 @@ class DynamicKodi(SolverKodi):
|
||||
else:
|
||||
panel = self.getControl(PANEL)
|
||||
item = panel.getSelectedItem()
|
||||
if item.getArt('image') != empty_image:
|
||||
item.setArt({'image': empty_image})
|
||||
if not item.getLabel():
|
||||
index = panel.getSelectedPosition()
|
||||
tile = self.solver.select_tile(index)
|
||||
path = get_temp()
|
||||
|
||||
@@ -57,6 +57,23 @@
|
||||
<height>100%</height>
|
||||
<texture colordiffuse='FFFFFFFF' border='2'>selection.png</texture>
|
||||
</control>
|
||||
<control type='image'>
|
||||
<visible>!String.IsEmpty(ListItem.Label)</visible>
|
||||
<description>Hide Image</description>
|
||||
<width>100%</width>
|
||||
<height>100%</height>
|
||||
<texture colordiffuse='88000000'>white.png</texture>
|
||||
</control>
|
||||
<control type='label'>
|
||||
<description>Remaining Time</description>
|
||||
<width>100%</width>
|
||||
<height>100%</height>
|
||||
<font>font13</font>
|
||||
<textcolor>FFFFFFFF</textcolor>
|
||||
<label>[B]$INFO[Listitem.Label][/B]</label>
|
||||
<aligny>center</aligny>
|
||||
<align>center</align>
|
||||
</control>
|
||||
<control type='image'>
|
||||
<visible>String.IsEqual(ListItem.Property(selected), true)</visible>
|
||||
<description>Selected Image</description>
|
||||
@@ -78,6 +95,23 @@
|
||||
<height>100%</height>
|
||||
<texture colordiffuse='FFFFFFFF' border='2'>selection.png</texture>
|
||||
</control>
|
||||
<control type='image'>
|
||||
<visible>!String.IsEmpty(ListItem.Label)</visible>
|
||||
<description>Hide Image</description>
|
||||
<width>100%</width>
|
||||
<height>100%</height>
|
||||
<texture colordiffuse='88000000'>white.png</texture>
|
||||
</control>
|
||||
<control type='label'>
|
||||
<description>Remaining Time</description>
|
||||
<width>100%</width>
|
||||
<height>100%</height>
|
||||
<font>font13</font>
|
||||
<textcolor>FFFFFFFF</textcolor>
|
||||
<label>[B]$INFO[Listitem.Label][/B]</label>
|
||||
<aligny>center</aligny>
|
||||
<align>center</align>
|
||||
</control>
|
||||
<control type='image'>
|
||||
<visible>String.IsEqual(ListItem.Property(selected), true)</visible>
|
||||
<description>Selected Image</description>
|
||||
@@ -105,6 +139,23 @@
|
||||
<height>100%</height>
|
||||
<texture colordiffuse='550082C2'>white.png</texture>
|
||||
</control>
|
||||
<control type='image'>
|
||||
<visible>!String.IsEmpty(ListItem.Label)</visible>
|
||||
<description>Hide Image</description>
|
||||
<width>100%</width>
|
||||
<height>100%</height>
|
||||
<texture colordiffuse='88000000'>white.png</texture>
|
||||
</control>
|
||||
<control type='label'>
|
||||
<description>Remaining Time</description>
|
||||
<width>100%</width>
|
||||
<height>100%</height>
|
||||
<font>font13</font>
|
||||
<textcolor>FFFFFFFF</textcolor>
|
||||
<label>[B]$INFO[Listitem.Label][/B]</label>
|
||||
<aligny>center</aligny>
|
||||
<align>center</align>
|
||||
</control>
|
||||
<control type='image'>
|
||||
<visible>String.IsEqual(ListItem.Property(selected), true)</visible>
|
||||
<description>Selected Image</description>
|
||||
@@ -132,6 +183,23 @@
|
||||
<height>100%</height>
|
||||
<texture colordiffuse='550082C2'>white.png</texture>
|
||||
</control>
|
||||
<control type='image'>
|
||||
<visible>!String.IsEmpty(ListItem.Label)</visible>
|
||||
<description>Hide Image</description>
|
||||
<width>100%</width>
|
||||
<height>100%</height>
|
||||
<texture colordiffuse='88000000'>white.png</texture>
|
||||
</control>
|
||||
<control type='label'>
|
||||
<description>Remaining Time</description>
|
||||
<width>100%</width>
|
||||
<height>100%</height>
|
||||
<font>font13</font>
|
||||
<textcolor>FFFFFFFF</textcolor>
|
||||
<label>[B]$INFO[Listitem.Label][/B]</label>
|
||||
<aligny>center</aligny>
|
||||
<align>center</align>
|
||||
</control>
|
||||
<control type='image'>
|
||||
<visible>String.IsEqual(ListItem.Property(selected), true)</visible>
|
||||
<description>Selected Image</description>
|
||||
|
||||
Reference in New Issue
Block a user