screens - TouchDevelop

Download Report

Transcript screens - TouchDevelop

screens

naming screens and concepts v2.8

Disclaimer: This document is provided “as-is”. Information and views expressed in this document, including URL and other Internet Web site references, may change without notice. You bear the risk of using it. This document does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use this document for your internal, reference purposes. © 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, and Windows Live are trademarks of the Microsoft group of companies. All other trademarks are property of their respective owners.

hub

o pivot (swipe left, right) o access to installed scripts or online scripts (new, top, …) o access to user profile

installed

o scripts “on the phone” o tap to edit o tap + button creates new script

script editor

o a script is an “app” created with touchdevelop o actions, events, data and art o tap + to add a new event

events list

o when “something” happens o reacts by running your code

action editor

o “tell the phone what to do”… o a line is called a statement o each statement is edited separately o an event is an action

statement menu

o tap statement to open menu o tap edit to modify the current statement o tap + to add a new statement ☀ drag up and down to change selected statement

statement

o

picker

when tapping + , o select control flow structure, comment, variable declaration or simple statement

add statement

o in statement menu, o tap + above or below o add control flow on top o add other stuff at the bottom

expression

o

editor

specialized keyboards for entering tokens o tap phone back button to go back

number pad

o keyboard for numbers o tap phone back button to hide

arithmetic pad

o arithmetic operators o only works on numbers

operator pad

o logic operator: and, or, not, true, false o concatenation “||” o assignment “:=“ o comma “,”

art pad

o text, called string o “stuff for games” • • pictures from the web ☀ sounds from the web • color wheel

intellibuttons

o populated based on cursor position • • • • • • services properties , … →… local variables global variables, ◳data … actions, ▷ code → … libraries, ♻… → o order evolves

intellibuttons (2)

o next suggestions cycles through intellibuttons o

swipe intellibuttons

to cycle o explore all to see the expression search • intellibuttons is a partial view

code explorer

o context based tokens o search by name or description o phone back button to cancel

expression editor

o move cursors o undo o backspace o fixes

script player

o tap play button to play the current action • or the main action if the current action/event is not directly runnable o phone back button to stop o phone back button to get back