Small code hint for Combobox plugin

  • Small code hint which saves some work - following action will fill up combobox automatically with all scenes. No need to write addItem manually for every scene.

    Code
    <plugin name="cb" onloaded="fillbox();"  .....
    	
    <action name="fillbox">  
    	for(set(i,0), i LT scene.count, inc(i), 
    		txtadd(onclick, "loadscene(", get(scene[get(i)].name), ", null, MERGE, BLEND(1));)");
    		addItem(get(scene[get(i)].title), get(onclick));
    	);
    </action>

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!