Solved Q: musicvisualisation : toggle bool behaviour of 'Player.ShowInfo'
#3
(2020-03-03, 13:11)jurialmunkey Wrote: You can control the duration showinfo is active using advancedsettings.xml
https://kodi.wiki/view/Advancedsettings....foduration

Ok. Thanks. That has helped to understand the behaviour.

Now I found the solution now.

In a case someone else need it...

Set a property onload, to get conditional visibility
xml:
<onload>SetProperty(PlayerShowInfo,true,home)</onload>

Used for the Control
aml:
<visible>Player.ShowInfo | String.IsEqual(Window(home).Property(PlayerShowInfo),true) | [Window.IsActive(script-cu-lrclyrics-main.xml) + Player.ShowInfo</visible>

Used a Custom Dialog as workaround
xml:
<?xml version="1.0" encoding="UTF-8"?>
<window type="dialog" id="1195">
    <onload>Action(info)</onload>
    <visible>Player.HasAudio + String.IsEqual(Window(Home).Property(PlayerShowInfo),true) + !Player.ShowInfo</visible>
    <onunload>ClearProperty(PlayerShowInfo,home)</onunload>
    <controls />
</window>
Skins |  Titan M O D   •   S W A N (WIP)
Reply


Messages In This Thread
RE: Q: musicvisualisation : toggle bool behaviour of 'Player.ShowInfo' - by mardukL - 2020-03-03, 13:39
Logout Mark Read Team Forum Stats Members Help
Q: musicvisualisation : toggle bool behaviour of 'Player.ShowInfo'0