Can I use launch parameters without a : ??? (1 Viewer)

Lehmden

Retired Team Member
  • Premium Supporter
  • December 17, 2010
    12,544
    3,932
    Lehmden
    Home Country
    Germany Germany
    Hi.
    I want to pass a moving pictures launch parameter from a define value. Something like
    "<define>#menu3.but3linkpar:categoryid:40</define>"
    where "#menu3.but3linkpar" is the name and "categoryid:40" is the value. This should be used in a menu like this:
    Code:
      <define property="true">#menu3.but3label:Konzert Filme</define>
      <define property="true">#menu3.but3link:96742</define>
      <define property="true">#menu3.but3linkpar:categoryid:40</define>
      <define property="true">#menu3.but3:yes</define>
     
    ...
     
    	  <control Style="BasicHomeSubButton">
    		<description>Menu 3 button 3</description>
    		<type>button</type>
    		<id>233</id>
    		<font>font11</font>
    		<textureFocus>sub-button.png</textureFocus>
    		<textureNoFocus>sub-button.png</textureNoFocus>	   
    		<label>#menu3.but3label</label>
    		<width>230</width>
    		<height>40</height>
    		<hyperlink>#menu3.but3link</hyperlink>
    		<hyperlinkParameter>#menu3.but3linkpar</hyperlinkParameter>	 
    		<onleft>220</onleft>
    		<onright>240</onright>
    		<onup>234</onup>
    		<ondown>232</ondown>
    		<visible>string.equals(#menu3.but3,yes)</visible>
    	  </control>
    ...

    The defines are used to control the whole menu, but as I can't get a : into a define value (will be cut off at : in example only categoryid will be passed to Moving Pictures, leading to an error) I can not use it as needed.

    Is there any way I can handle this???
     

    ltfearme

    Community Plugin Dev
  • Premium Supporter
  • June 10, 2007
    6,751
    7,196
    Sydney
    Home Country
    Australia Australia
    Try workaround the limitation it by using a string expression instead:

    Code:
    <define property="true">#menu3.but3linkpar:#(string.format('categoryid:{0}', '40'))</define>

    I have no idea if that works but see how you go.
     

    Users who are viewing this thread

    Top Bottom