Posts: 1,126
Joined: Mar 2012
Reputation:
37
MassIV
Skilled Skinner
Posts: 1,126
Le bump.
I'd still like to know why the skin string gets read only once.
[RELEASE] Metroid
[RELEASE] IrcChat
Posts: 1,126
Joined: Mar 2012
Reputation:
37
MassIV
Skilled Skinner
Posts: 1,126
While that is a nicer way to reset a string. This doesn't solve it. As the string was already working. And the submenu does open and close with it, always. The problem is animating this 'opening'. You'd think that the string used to show/hide the menu could also be used to animate it.
But it works only once for the animation.
Talking about that slide animation on line 48.
[RELEASE] Metroid
[RELEASE] IrcChat
Posts: 3,919
Joined: Jul 2010
Reputation:
154
BigNoid
Team-Kodi Member
Posts: 3,919
The problem is that skin strings are not dynamic if you use them in a (list) container. This was done for performance reasons iirc. You'll need to move the code out of the container for this to work.
Posts: 1,126
Joined: Mar 2012
Reputation:
37
MassIV
Skilled Skinner
Posts: 1,126
Sadly that wasn't it either Black.
Big_Noid what did you mean by moving the code out of the container?
I tried making a button (outside the container) with visibility based on !IsEmpty(skin.string(SubMenu2))
Which works good, as expected. But the animation has the same issue when based on Control.IsVisible(ID)
[RELEASE] Metroid
[RELEASE] IrcChat
Posts: 1,126
Joined: Mar 2012
Reputation:
37
MassIV
Skilled Skinner
Posts: 1,126
Visible condition and animation condition are linked here, but don't necessarily happen at the same time.
In a long list of submenu items (that is longer then the list control itself) the animation gets triggered when they become visible (on scrolling down, one by one) while the condition for the animation has been true all along.
I can't say what is best though. But i do have a bigger menu example for you to work with if you want it.
[RELEASE] Metroid
[RELEASE] IrcChat
Posts: 672
Joined: Aug 2010
Reputation:
13
pieh
Retired Team-Kodi Member
Posts: 672
If you have example/sample around than sure, You can paste it here.
I'd want to make behaviour consistent with what we already have. I tested on controls outside of container and there animation doesn't wait for control to become visible (it starts as soon as condition is met even if control is hidden). It's definitely possible to use "control.isvisible(x)" to wait with animation for control to become visible. I start to think this is good approach to deal with container items aswell - add ListItem.IsVisible and let skinner postpone animation start. That way skinner has most control over animation start. What do You think?
Always read the XBMC online-manual, FAQ and search the forums before posting.
Do NOT e-mail Team-XBMC members asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting, make sure you read this first
My previous forum/trac nickname: grajen3