Posts: 24
Joined: Jan 2016
Reputation:
0
how do I hide an image by pressing a toggle button?
Posts: 24
Joined: Jan 2016
Reputation:
0
2016-01-20, 14:21
(This post was last modified: 2016-01-20, 14:24 by cibermen2.)
this is a skin addon, can't I put the image waiting for the action in the toogle button and when clicked the image hides and when re-clicked the image re-appears?
Posts: 24
Joined: Jan 2016
Reputation:
0
2016-01-20, 14:29
(This post was last modified: 2016-01-20, 14:30 by cibermen2.)
it can be a toggle button or a regular button, doesn't matter, as long as it works
Posts: 24
Joined: Jan 2016
Reputation:
0
Found this animation that I can use on image control: <visible>Control.HasFocus(25)</visible>
It's not what I wanted, but its close
Posts: 15,263
Joined: Jan 2009
Reputation:
727
ronie
Team-Kodi Member
Posts: 15,263
add a conditional onclick to the buttons which sets/clear a window property.
use that window property as a visible condition for your image.