@
BobCratchett
Pretty sure I found a pretty major bug with submenuOther templates for building submenu widgets.
On krypton, when using templates and building widgets for submenus there is an error with the conditions generated for matching submenu items. submenuOther will generate a condition based upon the LabelID. However, when the LabelID is a localized string it doesn't match because the condition matches to the number not the localized string.
e.g. a condition will be generated for the submenu widget:
[String.IsEqual(Container(300).ListItem.Property(submenuVisibility),music) + String.IsEqual(Container(302).ListItem.Property(labelID),744)]
However, the LabelID wont match the 744 because the property gets translated to the localized string, but the 744 part does not. This can be fixed fairly easily I imagine by wrapping number in a localize tag:
e.g.
String.IsEqual(Container(302).ListItem.Property(labelID),$LOCALIZE[744])
This was driving me mental because I was sure all the code should work to implement submenu widgets and I discovered if I rename a submenu item they suddenly work (because its no longer a localized string).
Link to issue on github:
https://github.com/BigNoid/script.skinsh...issues/220