====== Differences ====== This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
|
script_8wheel [2017/05/18 10:08] tbog created |
script_8wheel [2017/05/18 12:27] (current) tbog [Script code] |
||
|---|---|---|---|
| Line 7: | Line 7: | ||
| Still in development, but the main feature will be that everything will be customizable with an internal GUI | Still in development, but the main feature will be that everything will be customizable with an internal GUI | ||
| - | Just set the script in the category "Lightning menu" then long-press on any container (panel was tested) and run the script. A dialog will appear that will guide you further. | + | - Set the script in the category "Lightning menu" then long-press on any container (panel was tested) and run the script. |
| + | - A dialog will appear that will guide you further. | ||
| Known issue: while the script is running if user enters edit mode an error will appear. | Known issue: while the script is running if user enters edit mode an error will appear. | ||
| Line 54: | Line 55: | ||
| continue; | continue; | ||
| } | } | ||
| - | // var prop = item.getProperties(); | ||
| - | // var pinMode = prop.getString( 'i.pinMode' ); | ||
| - | // /*NONE|XY|X|Y*/ | ||
| - | // if ( pinMode.indexOf( 'X' ) == -1 ) | ||
| - | // { | ||
| - | // prop.edit().setString( 'i.pinMode', 'X' ).commit(); | ||
| - | // } | ||
| - | // var onGrid = prop.getBoolean( 'i.onGrid' ); | ||
| - | // if ( onGrid ) | ||
| - | // { | ||
| - | // prop.edit().setBoolean( 'i.onGrid', false ).commit(); | ||
| - | // } | ||
| a[na++] = item; | a[na++] = item; | ||
| } | } | ||
| Line 534: | Line 523: | ||
| alert( 'unknown event source ' + event.getSource() ); | alert( 'unknown event source ' + event.getSource() ); | ||
| return; | return; | ||
| - | } | ||
| - | |||
| - | if ( empty( container.getTag("8wheel") ) ) | ||
| - | { | ||
| - | /* alert('Add shortcuts and/or folders to this container then enable the script'); | ||
| - | getCurrentScript().setFlag(Script.FLAG_DISABLED, true); | ||
| - | return; | ||
| - | */ | ||
| - | ; | ||
| } | } | ||
| </sxh> | </sxh> | ||