Jamoma 05
Version 9 (Pascal Baltazar, 08/12/2009 11:02 am)
| 1 | 4 | Pascal Baltazar | h1. Changes to apply for porting Jamoma 0.4 modules to Jamoma 0.5 |
|---|---|---|---|
| 2 | 1 | ||
| 3 | 9 | Pascal Baltazar | At the end of this page are replicated the changes to proceed between 0.5 beta and 0.5 release |
| 4 | 9 | Pascal Baltazar | |
| 5 | 1 | * Change from the old jcom.gui abstraction to the new jcom.ui external. In the jcom.ui inspector set the following attributes: |
|
| 6 | 1 | ** add attributes (has_mute, has_... etc.) |
|
| 7 | 1 | ** bypass/freeze/mute/preview (for video) |
|
| 8 | 1 | ** bypass/gain/mix/mute (for audio when necessary) |
|
| 9 | 1 | ** set the "OSC Prefix for parameter name" attribute to audio or video, depending on your module (leave blank for control modules) |
|
| 10 | 1 | ** and when needed, add the has_panel attribute, remove @inspector 1 to jcom.hub, and change /open_inspector in the jcom.oscroute below jcom.in to /panel/open |
|
| 11 | 1 | ** font size of jcom.ui should be set to 11 pt. Verdana |
|
| 12 | 1 | * In the module's patch : |
|
| 13 | 1 | ** Set font of UI objects that are to be part of the GUI to be 10 pt Verdana wherever possible. |
|
| 14 | 1 | ** Add all UI obejcts to Presentation Mode (shift-cmd-p). |
|
| 15 | 1 | ** Set patch to open in presentation mode. |
|
| 16 | 1 | ** Delete pvars. We now prefer to connect number boxes directly to jcom.parameter/message. |
|
| 17 | 1 | ** Delete the "max refresh" message if necessary |
|
| 18 | 1 | * In jcom.hub: |
|
| 19 | 1 | ** Remove @size attributes from jcom.hub |
|
| 20 | 1 | ** Remove the first argument (that coincides with the module's name). This is now handled automagically. |
|
| 21 | 1 | * In jcom.parameter/jcom.message/jcom.return change: |
|
| 22 | 1 | ** From @range to @range/bounds |
|
| 23 | 1 | ** From @clipmode to @range/clipmode |
|
| 24 | 1 | ** From @repetitions to @repetitions/allow |
|
| 25 | 3 | Pascal Baltazar | ** Change data types to the new names : |
| 26 | 5 | Pascal Baltazar | *** msg_int -> integer |
| 27 | 5 | Pascal Baltazar | *** msg_float -> decimal |
| 28 | 5 | Pascal Baltazar | *** msg_toggle -> boolean |
| 29 | 5 | Pascal Baltazar | *** msg_list -> array |
| 30 | 5 | Pascal Baltazar | *** msg_symbol -> string |
| 31 | 5 | Pascal Baltazar | *** msg_generic -> generic |
| 32 | 5 | Pascal Baltazar | *** msg_none -> none |
| 33 | 8 | Pascal Baltazar | *** *important* : if you do this replacement by an automated find/replace, avoid making it in javascript files, as msg_int, msg_float and msg_list have a special meaning for them, which is independant of Jamoma. |
| 34 | 5 | Pascal Baltazar | ** If necessary, updates references to the generic embedded messages/parameters : |
| 35 | 5 | Pascal Baltazar | *** ui/freeze -> view/freeze |
| 36 | 5 | Pascal Baltazar | *** ui/refresh -> view/refresh |
| 37 | 5 | Pascal Baltazar | *** module/viewInternals -> view/internals |
| 38 | 6 | Pascal Baltazar | *** script -> view/script |
| 39 | 7 | Pascal Baltazar | *** panel/open -> view/panel |
| 40 | 1 | * For panel, messages, object boxes, and whenever possible: |
|
| 41 | 1 | ** In the inspector, set all colors to "Set to Named Default" by clicking on the @button in the leftmost column of the inspector (in some colour themes, certain objects can't be set to Named Default. If necessary, use another one in Options > Object Defaults, or leave it like that for now) |
|
| 42 | 1 | ** Panels: Rounded corners generally set to 15 (in the help patches) |
|
| 43 | 1 | * For jsui.texttoggle buttons: |
|
| 44 | 1 | ** Replace them by new Max 5 textbuttons (can act as buttons and toogles) |
|
| 45 | 1 | ** Border :1 |
|
| 46 | 1 | ** Roundness : 8 |
|
| 47 | 1 | ** Font : Verdana 8 |
|
| 48 | 1 | ** Text align : center |
|
| 49 | 1 | ** A couple of templates here : http://www.box.net/shared/5o2w32c08s |
|
| 50 | 9 | Pascal Baltazar | * re-generate documentation and preset files |
| 51 | 9 | Pascal Baltazar | |
| 52 | 9 | Pascal Baltazar | h2.between 0.5 beta and 0.5 release |
| 53 | 9 | Pascal Baltazar | |
| 54 | 9 | Pascal Baltazar | * Change data types to the new names : |
| 55 | 9 | Pascal Baltazar | *** msg_int -> integer |
| 56 | 9 | Pascal Baltazar | *** msg_float -> decimal |
| 57 | 9 | Pascal Baltazar | *** msg_toggle -> boolean |
| 58 | 9 | Pascal Baltazar | *** msg_list -> array |
| 59 | 9 | Pascal Baltazar | *** msg_symbol -> string |
| 60 | 9 | Pascal Baltazar | *** msg_generic -> generic |
| 61 | 9 | Pascal Baltazar | *** msg_none -> none |
| 62 | 9 | Pascal Baltazar | *** *important* : if you do this replacement by an automated find/replace, avoid making it in javascript files, as msg_int, msg_float and msg_list have a special meaning for them, which is independant of Jamoma. |
| 63 | 9 | Pascal Baltazar | * If necessary, updates references to the generic embedded messages/parameters : |
| 64 | 9 | Pascal Baltazar | *** ui/freeze -> view/freeze |
| 65 | 9 | Pascal Baltazar | *** ui/refresh -> view/refresh |
| 66 | 9 | Pascal Baltazar | *** module/viewInternals -> view/internals |
| 67 | 9 | Pascal Baltazar | *** script -> view/script |
| 68 | 9 | Pascal Baltazar | *** panel/open -> view/panel |
| 69 | 5 | Pascal Baltazar | * re-generate documentation and preset files |