2015-09-11, 03:06
(2015-09-11, 01:24)marcelveldt Wrote: If you want to use the color picker to store the color in a shortcut-property from the skinshortcuts script,
include a button in your script-skinshortcuts.xml with this onclick-action:
RunScript(script.skin.helper.service,action=colorpicker,shortcutproperty=XXX)
I'm not sure if I'm doing something wrong? It doesn't seem to be working (on Isengard if that matters). Here's my button in skinshortcuts:
Code:
<control type="button" id="9701" description="Select Color">
<width>100%</width>
<label>Select color</label>
<onclick>RunScript(script.skin.helper.service,action=colorpicker,shortcutproperty=tilecolor)</onclick>
<include>Defs_OptionButton</include>
</control>
I put <label>$INFO[ListItem.Property(tilecolor)]</label> in a label control to test and it doesn't seem to be set.
Nothing really seems to be in the log either:
Code:
11:00:58 T:139994894674112 DEBUG: OnKey: return (0xf00d) pressed, action is Select
11:00:58 T:139993511094016 DEBUG: script.skinshortcuts: Setting custom property (404)
11:00:59 T:139994894674112 DEBUG: ------ Window Deinit (/home/mergeandvary/.kodi/addons/skin.eminence.2/16x9/script-skin_helper_service-ColorPicker.xml) ------
11:00:59 T:139991699334912 INFO: CPythonInvoker(55, /home/mergeandvary/.kodi/addons/script.skin.helper.service/default.py): script successfully run
11:00:59 T:139991699334912 INFO: Python script stopped
11:00:59 T:139991699334912 DEBUG: Thread LanguageInvoker 139991699334912 terminating
11:00:59 T:139993511094016 DEBUG: script.skinshortcuts: Setting custom property (404)