2017-02-11, 13:33
Ok, so I can get a custom button and property in edit menu,
how do I
1) Change from a select property to 'allow user to type input'
2) Use this to stop item menu being made in includes (just a visible will cause a blank in list)
3) OR is there already a property available in script for this?
Ok,so at this now:
Ok, so now I need to find if I can insert into the mainmenu <item> code my own code via template/override? I THINK I can for submenus but not main
So it isn't possible to inject item code for mainmenu without modding the .py?
Well, I modded the datafunctions.py as I just can't see it, if I had time I would add a check for the custom property name 'itemVisible' to the mainmenu checkVisibilty and write content as a visible, but no time
I added
Code:
<propertySettings property="itemVisible" title="Select Condition" />
<property property="itemVisible">!Window.IsVisible(home)</property>
how do I
1) Change from a select property to 'allow user to type input'
2) Use this to stop item menu being made in includes (just a visible will cause a blank in list)
3) OR is there already a property available in script for this?
Ok,so at this now:
Code:
<onclick>Skin.SetString(itemVisible)</onclick>
<onclick>SetProperty(customProperty,itemVisible)</onclick>
<onclick>SetProperty(customValue,$INFO[Skin.String(itemVisible)])</onclick>
<onclick>SendClick(404)</onclick>
Ok, so now I need to find if I can insert into the mainmenu <item> code my own code via template/override? I THINK I can for submenus but not main
So it isn't possible to inject item code for mainmenu without modding the .py?
Well, I modded the datafunctions.py as I just can't see it, if I had time I would add a check for the custom property name 'itemVisible' to the mainmenu checkVisibilty and write content as a visible, but no time
I added
Code:
# General visibilities
elif action == "activatewindow(home)":
return "!Window.IsVisible(home)"
elif action == "back" or action == "action(back)" or action == "previousmenu":
return "!Window.IsVisible(home)"