2021-09-07, 15:19
Could any skinshortcuts experts help me with a problem.
I'm building widgets using submenus much like Arctic Horizon using the following template pattern:-
Inside each item(widgets) I can set a property called "topVal" to a value depending on the "widgetStyle" which is fine.
My problem is in the main submenu grouplist I need the "topVal" for the first item generated. I just can't find a way to access that property from the submenu.
Thanks
Rob
I'm building widgets using submenus much like Arctic Horizon using the following template pattern:-
code:<template>
<submenu include="widgets" name="widgetgroup">
<controls>
<control type="group">
<control type="grouplist" id="8999">
<top>**topVal**</top> <!-- PAY ATTENTION TO THIS VALUE -->
<height>2160</height>
<left>0</left>
<width>3840</width>
<skinshortcuts insert="widgets">items</skinshortcuts>
</control>
</control>
</controls>
<items insert="widgets">
<property name="topVal" tag="property" attribute="name|widgetStyle" value="Landscape">860</property>
<property name="topVal" tag="property" attribute="name|widgetStyle" value="LandscapeSmall">960</property>
<property name="topVal" tag="property" attribute="name|widgetStyle" value="Poster">669</property>
<property name="topVal" tag="property" attribute="name|widgetStyle" value="PosterSmall">765</property>
<property name="topVal" tag="property" attribute="name|widgetStyle" value="Square">886</property>
<controls>
<!-- WIDGET CODE, IRRELIVANT FOR THIS ISSUE -->
</controls>
</items>
</submenu>
</template>
Inside each item(widgets) I can set a property called "topVal" to a value depending on the "widgetStyle" which is fine.
My problem is in the main submenu grouplist I need the "topVal" for the first item generated. I just can't find a way to access that property from the submenu.
Thanks
Rob