Les versions Beta ne sont pas autant testées que les versions Stables
Bluetooth plugin; Function Maps; loads of bug fixes
15 April, 2019 ()
Envoyez-moi un courriel lors de nouvelles parutions
Don't miss out on the latest and greatest new features in Construct 3
Notes
We've got another significant update for you this week! The highlights are:
• A new Bluetooth plugin - this uses the Web Bluetooth API to let you connect to nearby Bluetooth devices and communicate with them. This could be useful for robotics, tinkering with devices like single-board computers, communicating with new peripherals, and in education. It's useful to have some knowledge of how Bluetooth services and characteristics work when using this. There's lots of information available on the web about how Bluetooth works if you search for it, and there's also a new demo that simply retrieves the device name to help you get started.
• You can now use Function maps to call the new built-in functions with a string. This basically associates a string with a function so you can then call it from that string. It also allows forwarding parameters, so you can create an intermediate function that dispatches a call with parameters by a string. Since you never have to use a string for an actual function name, this ensures things like 'Find all references' are always accurate, and you can always rename functions with the confidence it won't break anything. Take a look at the new 'Function maps' example to help you get going.
There's also a big batch of bug fixes, particularly around the new functions feature and the Timeline bar. One fix to note is that BBcode style changes no longer cause word wraps within the same word. This allows things like text effects where every character has a unique style to still word wrap correctly. However it involved quite a significant rewrite of the word wrap engine, so keep an eye out for anything that might have been broken by this. Stay tuned for more updates!
Vous aimez cette parution ?
Faites-le nous savoir avec un pouce haut !
Exécuter r145
Nouvelles fonctionnalités
Bluetooth plugin: connect to nearby Bluetooth devices and read and write characteristics
Nouveaux ajouts
New advanced example 'Bluetooth - device name' that connects to a device and reads its device name
Function maps: allows calling the new built-in functions by a string
New advanced example 'Function maps' demonstrating calling a function by a string
Added a "Clear recent projects" button to Settings
Changements
New functions: can now use unrestricted function names (e.g. including spaces) if return type is 'None'. (Functions with a return type must have a name that is a valid expression, e.g. no spaces.)
Treat Chromium-based Microsoft Edge equal to Google Chrome (with Edge-specific hacks disabled)
Disable WebGL 2 on Android again because it turns out the previous workaround did not actually fix all devices. It will be re-enabled once Chrome 74 is released which has the full fix.
Added a status indicator when cloud saves are waiting on user authentication
Corrections de bug
New functions: passing local variables or other function parameters did not always work
New functions: possible crash after deleting last parameter
New functions: JS c3_callFunction did not handle parameters properly
New functions: debugger did not display function parameters
'Replace with built-in function' could accidentally change the precedence of operators in expressions
Event sheet view: breakpoint icons did not always appear on built-in 'Call function' actions
Text & Sprite Font: word wrapping no longer breaks on BBcode style changes
Sprite Font: setting line height did not always update displayed text
Drawing canvas: possible glitches filling polygons with colinear points
Project bar: object icons did not always come back after undoing deletion
Project bar: sometimes dragging items exactly by the pane border could both resize and drag at once
Possible crash duplicating layouts while Z Order bar open
Layout view: Ctrl+dragging unselected instance now only clones that instance
Anchor behavior: could work incorrectly when origin not at top-left
Tween Behavior: Possible runtime crash upon releasing tween instances
Timeline Bar: Crash when previewing a timeline with master keyframes missing corresponding property keyframes
Timeline Bar: Property keyframes not deleted when deleting the master keyframe
Timeline Bar: Incorrect layout of the bar after deleting keyframes
Timeline Bar: Refresh the layout view when a keyframe is deleted in the Timeline Bar
Desktop: Timelines were not being saved correctly to project folders
Desktop: Sometimes failed to load a local folder project via recent projects
Local storage features not working in Safari (regression r143)
Line of Sight: still tested instances with the Solid behaviour disabled
Line of Sight: not included in debugger collision/poly checks per second measurements
Tile movement: could not move if also had Solid behavior
Partager Construct 3 la parution r145 maintenant