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