Release skin helper service - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300) +---- Thread: Release skin helper service (/showthread.php?tid=235676) Pages:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
|
RE: skin helper service - butchabay - 2016-01-15 (2016-01-14, 23:40)Jayz2K Wrote: Hmmm, sounds good to me. The only difference for me is that I set them in SkinShortcuts (skin.helper integration) ... and use a multiimage control instead (but to also handle a folder path when it is set). Already tested with multiimage and increase delay to 20. Same, shows 1 background. There must be something else i'm missing. Thanx RE: skin helper service - butchabay - 2016-01-15 One question: is this correct? PHP Code: <onload condition="System.HasAddon(script.skin.info.service)">RunScript(script.skin.info.service)</onload> shouldn't be? PHP Code: <onload condition="System.HasAddon(script.skin.helper.service)">RunScript(script.skin.helper.service)</onload> RE: skin helper service - Jayz2K - 2016-01-15 (2016-01-15, 13:50)butchabay Wrote: One question: OMG shame on me ! So I don't have any Runscript for Skin.Helper :/ I made a test myself sorting out the Property out of Skinshortcuts and it cycles. I made another test reseting the SkinHelper.RandomFanartDelay Skin.String and I can reproduce it. Sorry, will probably sounds stupid but have you checked the content of it showing it in a label ? RE: skin helper service - butchabay - 2016-01-15 Cmon, don't be so hard to yourself. I'll check it this evening. Cheers RE: skin helper service - butchabay - 2016-01-15 EDIT: Solved, holy crap, seems that a simple: PHP Code: <onload condition="System.HasAddon(script.skin.helper.service)">Skin.SetString(SkinHelper.RandomFanartDelay,10)</onload> in startup.xml is working fine Ok, the labels provided by the script are working in library as described in the readme. But still no backgrounds, either in home or in myvideonav.xml. So something with the skin string is wrong. Any other ideas? Thanx RE: skin helper service - User 224999 - 2016-01-15 (2016-01-14, 21:22)butchabay Wrote: I just found some time to try some of the cool options this script provides. You do not have to launch the script. It's a service running in the background. What you do need to know is that most features of the script are controlled by skin strings you set in the skin. For example for the backgrounds you need to set the interval when the images will change. If you don't set that setting or set it to 0 it completely disables the backgrounds window props. Use this to enable them: Skin.SetString(SkinHelper.RandomFanartDelay, 30) RE: skin helper service - butchabay - 2016-01-15 (2016-01-15, 23:28)marcelveldt Wrote:(2016-01-14, 21:22)butchabay Wrote: I just found some time to try some of the cool options this script provides. Thanx Edited my post a few seconds before yours RE: skin helper service - User 224999 - 2016-01-15 (2016-01-15, 22:48)butchabay Wrote: EDIT: Solved, holy crap, seems that a simple: Ah, saw this after my post. All solved now ? RE: skin helper service - butchabay - 2016-01-15 Yes all fine mate. Thanx RE: skin helper service - User 224999 - 2016-01-15 (2016-01-15, 08:08)tomer953 Wrote: [quote='marcelveldt' pid='2213503' dateline='1452684069'] Should now be fixed on Git RE: skin helper service - User 224999 - 2016-01-15 (2016-01-14, 09:53)Jayz2K Wrote: However, when having a lot of conditions and "bulk" actions it could turn to be hard to write / read the code, don't you think ? Great idea! I have just implemented it exactly like your example above. Can you do a little testing with latest git ? RE: skin helper service - Jayz2K - 2016-01-16 (2016-01-15, 23:52)marcelveldt Wrote: Great idea! I have just implemented it exactly like your example above. Wow that's crazy Sure, I'll report ASAP Thanks Marcel ! RE: skin helper service - Angelinas - 2016-01-16 (2016-01-15, 23:52)marcelveldt Wrote: Great idea! I have just implemented it exactly like your example above.I like this, now i can starting to create "widget chooser" with this part of script.... Dont need shortcuts enymore.... This will work like view settings, right? RE: skin helper service - Jayz2K - 2016-01-16 (2016-01-15, 23:52)marcelveldt Wrote: Great idea! I have just implemented it exactly like your example above. Hmmm, as I thought, I'm still trying to do things not the conventional way The fact is my skin.string name is a property : Code: <settings> Code: <onclick>SetProperty(SetID,$INFO[Container(9300).ListItem.Property(SetID)],Home)</onclick> Is managing a property possible ? Also in conditions ? As soon as I use a name in id="" it works but my skin.string's name is dynamically given (to avoid having to write thousands of them) as a ListItem.Property like : Code: <property name="SetID">$INFO[Container(9000).ListItem.Property(ViewName),,.]$INFO[Container(9100).ListItem.Property(ViewName),,.]$INFO[Container(9200).ListItem.Property(SubName)]Show</property> Resulting as for ex. VDO.View1.B1Show (meaning Video library, Viewtype 1, Bloc 1, Show value) EDIT : for more explaination, my onclick actions actually looks like this : Code: <onclick condition="StringCompare(Container(9300).ListItem.Label2,HIDDEN) | IsEmpty(Container(9300).ListItem.Label2)">Skin.SetString($INFO[Container(9300).ListItem.Property(SetID)],VISIBLE)</onclick> RE: skin helper service - User 224999 - 2016-01-16 (2016-01-16, 00:51)Jayz2K Wrote: Is managing a property possible ? Also in conditions ? Uhh, your code example should work, the name of the setting from an infolabel I mean. Kodi passes the translated value to the script, so the script will return the result of whatever is in $INFO[Window(home).Property(SetID)] Are you sure that the SetID winproperty is actually beiing set ? |