Previous updates, fixes, and improvements (2017-2019)
Fix for Windows version not reading old d2c files (sorry — that was a weird glitch). Also a minor update to the update checking code. (1.49)
Added a warning if stack loaded with duplicate object ID's (any duplicates have to be removed). (1.488) [Note: 1.488 is cursed and should not be used. Designs created with it can only be read by a specific build of 1.488]
Fix for the null load sound error we saw today in class; refinements to the settings panels, especially on Windows. (1.487)
Some small bug fixes and refinements. (1.486)
Some small bug fixes. Initial support for a new action called "set attribute", which allows you to set the text value and visibility on display objects and widgets after creation. (1.485)
Windows only: Added a File>Exit menu item to allow you to quit the app more quickly. (1.483)
Resets the object index counter when a file is closed; watches for command-q (on Mac) to prompt if the file needs to be saved. (1.482)
Added "local" checkbox so that you can restrict visibility of appropriate script objects. Small bug fixed in regard to switching display groups between landscape and portrait. (1.481)
Script objects that aren't included in the code no longer show line numbers in the stack. A weird bug was fixed too. (1.480)
Minor update; changes to better support high-res displays; code to help me debug the erratic check for app update behaviors. (1.479)
Added ability to drag d2c design files to the design canvas to load. Double-click .d2c design to load should work on Windows as well. Several little fixes and improvements to loading troublesome saved designs. (1.478)
Bug fixes and compatibility improvements. If you have an older d2c file that won't load, please send it to me! (1.476)
Improved compatibility with older saved design (.d2c) files. (1.473)
Minor updates to display group settings panel. (1.472)
Minor update to the settings panel. (1.469-1.471)
Reworked how images are loaded and cached; let me know of any issues. Added an update checker as the last settings tab. (1.468)
Bug fix (buffered image cache is now cleared when a file is closed). (1.464)
Refinements to opening and closing designs with multiple windows. (1.463)
More bugs squashed. (1.462)
Bug fixes and refinements in regard to having multiple design windows open. (1.461)
Fixes some bugs and revamps how new designs are opened (in general, they will be opened in a new design window unless you are opening from an empty design). This has pros and cons. It is probably what most users will expect, but it is also slower. Send feedback. (1.46)
Minor update — recent items now removes duplicates. Windows version distributed as executable (.exe file) to see how that goes. (1.457)
Hopefully fixed the bad Mac download issue; let me know if not! Added a "clear recent items" option and boosted the number of recent items to 10. (1.456)
Just a bug fix: you should be able to add physics bodies again! (1.455)
Fix to Windows version to allow it to launch; however, the ability to double-click on .d2c files isn't currently supported on Windows (sorry). Updates to generated code to remove extra blank lines. (1.454)
Added a "New Design" option to the file menu so that you can open/create additional design windows. Worked on display groups quite a bit. You can now move them into functions and they should now work correctly when added as physics bodies. Look for new d2c folders in the chapter 13 download, including a crate with a health bar (in the "physics_collisions_3_health_bar" folder). (1.453)
Finally, support for double-clicking d2c files to load Drawn2Code [sorry, Mac only at this point]. This feature was added in Java 9, hence the requirement to have Java 9 or above. (1.45)
Support for moving display objects and widgets using normal cursor keys! Just select the object in the design canvas and move. Try the alt/option and ctrl/command keys for added functionality. Also added the "Save As…" option to the file menu. (1.448)
Initial support for show alert (dialog boxes)! (1.447)
This is a pretty big update. Keep your old version. 1.446 adds a "File" menu, with "Open", "Close", "Recent", and "Save" menu items. Recent Files: Drawn2Code will keep track of the last 5 designs you worked on to make it easier to load your stuff. If you try to open a design while having one already open, Drawn2Code will prompt you to save it before closing it and loading the new design. (1.446).Some small fixes and revised settings (can now automatically save the generated code when you save your d2c design and automatically use the design folder for the generated code (which is how many of you are doing it already). Both of these new settings are in the revised settings window (press the gear icon in the design window). (1.445).
Support for timer script objects! (1.443).
Fixing bugs and some small refinements to tab bars and scroll view. Can now set the scroll view background color and/or hide completely. Also, should be able to load designs with tab images which were saved on any version (Mac or Windows). (1.442).
Fixing bugs and some small refinements. Objects embedded in other objects (like a widget on a scroll view in a display group) now show/hide correctly in the design view. (1.441).
Squashing display group and scroll view visibility bugs. (1.439).
This update is just to squash the bugs relating to reading display groups in from prior d2c versions, which was totally broken. I think this works correctly now. If you downloaded 1.436, just delete it! (1.438).
Okay, this is a big update. Keep a copy of 1.435 in case this version is wonky. I've added support for the scroll view widget and also allowed display groups and scroll views to be inserted/added to each other. Without this, the scroll view is almost worthless. However, I've also added support to allow scroll views to be added to other scroll views and likewise for display groups. I'm not sure if this last part is a good idea, but the code runs in the simulator. I'd recommend just putting 1 display group in a scroll view, however, and not putting a display group inside another display group unless you are feeling strong. As per usual, there are other minor fixes and small improvements. Unfortunately, If you read in a saved d2c file with display groups, their names will be "null" or ""; you'll need to reenter the name for each group. Or, wait for the 1.437+ update this evening. Sorry. (1.436)
Improvements to the tab bar "edit tabs" processes and the default tab bar event-handling snippet. (1.435)
Fixed glitches related to the tab bar, switch, and sound action script objects. (1.433)
Fixed a glitch in 1.431 from earlier this evening that made it impossible to add a load sound script object. Sorry. (1.432)
Fixed a rare but really nasty bug I discovered today. Adding script objects directly into functions (using the alt/opt key) has been disabled until I can make it work correctly. This is kind of a hidden feature, so I don't expect any of you ran into it, but if so, I am sorry. (1.431)
A few small bug fixes along with revamped support for drawn shapes with transparent fills (these will new appear correctly in the Drawn2Code design window). As a result, you may now color (tint) images
and apply stroke surrounds. (1.43)
Added support for toFront() and toBack() to display objects and widgets. The settings will be added to the end of the script, processed in stack order (i.e., the order of the objects in the stack). (1.426)
Fix to the convert range option for slider widgets (new snippet is added correctly to the stack inside the event handler). (1.425)
Some minor fixes and updates to the toolbar icons. (1.424)
Drawn2Code now tries harder to fix bad text inputted to a text display object. If this ends up working well, the process will be rolled out to other objects that display text (e.g., buttons, text fields/boxes, tabs, etc.) (1.422)
Objects that have "include object in generated code" unchecked will now have associated actions commented out as well (such as transitions and physics). (1.42)
Fixes: Transitions with yScale are now coded correctly. Sorry. Also, issue with snippets and comments not appearing correctly have been fixed. (1.42)
Initial support for a configurable status bar (in the Action palette). Note that the status bar isn't drawn on the design preview canvas; you'll need to run your generated code in the simulator to see it. (1.419)
Various minor fixes and optimizations. (1.410-1.418)
Drawn2Code now tries harder to reconcile resource file specifications that are difficult to process (including sharing .d2c designs between Mac and Windows). (1.409)
More options added to transitions (including width, height, xScale, and yScale). (1.408)
Added a bit of optional code that is generated when using Runtime "enterFrame" to make periodic actions a bit easier. (1.406)
Fixed the issue with the landscape "config.lua" using the wrong width/height values (1.405).
Bug fixes relating to moving objects up and down the stack (specifically moving objects that contain other objects, like functions, up and down the stack).
Bug fixes related to the order of script objects inside of functions (this should keep the order from being corrupted, but there are still issues when trying to move functions that are children inside another function).
Finally: Drag on-screen script objects to move (e.g., display objects and widgets) using the mouse! Position (x,y) values and generated code updated live!
Apply torques to physics bodies!
Support for isBullet, isSensor, and isSleepingAllowed body attributes.
Now you can remove physics bodies easily! Okay, that's not super exciting.
A few bug fixes and a big new feature: now you can nest functions within functions! Wow! Anyway, use with caution and back your work up, this is still a bit flakey.
New support for physics apply force! Also, a couple of bug fixes, including getting display groups to work correctly with physics.
Update to physics shapes: Now you can edit the radius and texel coarseness to achieve the results you want.
Update to setting physics shapes to allow selection of rectangle, circle, outline, or manually entered polygon.
Support for Image Sheets and basic Spinner Widgets.
Support for tab bar background image and tab selection frame images. Note that release 1.380 and above cannot load older d2c files that contain tab bars. If you need to edit such a file, then keep a copy of Drawn2Code 1.377.
Support for tab bar images (default and pressed/over images for each tab). New tab editor allows you to add/remove/rearrange tabs easily.
Initial support for text-only tab bar; support for audio actions pause and resume.
Sorry, switches had glitches.
Support for changing listeners or adding multiple listeners on Widget objects (e.g., both "onPress" and "onRelease")
Support for the Text Box widget!
Support for onComplete listener/handler in audio.play().
Support for more sound settings (audio channel and volume)!
Initial support for the segmented control widget!
Script objects which are children of another object (e.g., a snippet inside a function) can now be moved up/down the stack list (within the parent script object).
Main UI can now be zoomed (with some limitations)! If you zoom in more than 100%, the tool bar icons will automatically get text labels.
Smarter checking to see if the "build.settings" file needs to be revised.
Code editing windows for functions and snippets can now be zoomed!
Settings panel now allows you to set whether individual script objects will be included in the generated code via a checkbox at the bottom of the panel (obviously, this should be done with care).
Transition times are now updated live (i.e., as you type). Fonts should show up more closely to how they will be positioned in the Corona Simulator.
Now you can show or hide script objects set as invisible (including display groups)!