Kwik4 does not change UI at all. You can continue to use current kwik3 project files. No need to uninstall Kwik3 either.
When a new project is created, you find ‘tmplt‘ folder there. Now build folder is named as ‘build4′ when you publish a project. If you copy ‘tmplt‘ folder to your kwik3 project, you can use Kwik4 to publish your kwik3 project.
build4 folder is newly structured. Each layer on photoshop is published to a single lua file. For instance, Hello_World layer is published to components/page01/Hello_World_image_.lua
Template File
Let me explain how kwik publishes a lua file. If you press publish button, Kwik internally process each layer with your project(.kwk) and generates images and lua files. Kwik4 reads the following template files while publishing lua files. For instance, Hello_World_image_.lua is created with layerX_image.lua which receives the values of Hello_Word layer.
layerX_image.lua is a mustache file. http://mustache.github.io/ {{myLName}}, {{mX}}, {{mY}} are tags expanded by values of model data of a layer on photoshop
You can modify a template file at your risk. For instance, let’s add a filter to layerX_image.lua. At line 82-83, filter.scatter is added with scaled by twice.
Custom File
If modify a template file, it is applied to all the same components of kwik. All image uses layerX_image.lua and you don’t want to apply filter.scatter to all images. If you want to change a single lua file generated by Kwik, you may modify the file directly but it loses the change when you publish again. Instead modifying the file directly, you can inject a custom file with the same file name under ‘custom’ folder. For instance, If you add Hello_World_image_.lua with a filter, you can copy the kwik-generated Hello_World_image_.lua to custom/components/page01 folder, then you can modify the Hello_World_image_.lua. Publish again and Kwik knows there is a custom file of Hello_World image lua and redirects to use the custom file internally.
Modification is made to custom/components/page01/Hello_World_image_.lua
the lua files under build4 uses custom/components/page01/Hello_World_image_.lua. Corona Simulator shows Hello World with scatter filter.
If you modify Hello World layer on photoshop, Kwik publishes it to the original components/page01/Hello_World_image_.lua with the modified result but won’t overwrite custom/components/page01/Hello_World_image_.lua. You may need to merge the changes from the original to the custom file.
Here is the link to download kwik4 early preview. http://kwiksher.com/daily/Kwik4_early_preview_0425.zip This version is not tested at all and I won’t do any updates unless I will release a beta version. The beta version will include a page curl or filter templates for your reference. Please use the following forum for any comments and questions.
http://kwiksher.com/forums/forum/kwik4/
Last but not least, when I release public Kwik4 finally, Kaboom will be included in Kwik paid license. You don’t have to pay for Kaboom if you use Kwik4. All Kwik3 paid customer will have Kaboom on Kwik4 but Kaboom + Kwik4 Trial won’t work. To enable Kaboom on Kwik3, you need the separate license of Kaboom.
yamamoto