Local ball = Bitmap.new(Texture.new("ball.png")) Select “Add Existing Files…” to add your image files to the project.Īnd then write the code below: local background = Bitmap.new(Texture.new("field.png")) Then, right click the project name at Library and Now let’s add some images to our asset library. Now you see the output of your project at the “Output” panel. Press start button (or select “Player→Start” from main menu) to run the project: Your code and assets and then run the project. This means “Gideros Studio” connects to “Gideros Player” and ready to upload Now select “Player→Start Local Player” to start Gideros Player.Īfter “Gideros Player” opens, the start and stop icons become enabled. In “Gideos Player” and print “Hello Ball” to the console. Now double-click a and write print("Hello Ball")Īt the first part of this tutorial, we just want to run our code Right click the project name at Library and select “Add New File…” to add Here is our development environment where you create/manage assets and run Then create a new project from “File→New Project” menu. default table Keyboard LayoutsĬan be set via tKeyboardLayouts(layouts).First open Gideros Studio. 'options ': accepts same keys as Keyboard. Sets options and/or colors for virtual keyboard NOTE: you can 't remove focus from text if you are not focused on it ◘ tKeyboardFonts(fonts) sets fonts for virtual keyboard ' fonts ': list of fonts ◘ tKeyboardSounds(sounds) sets sounds for virtual keyboard ' sounds ': list of sounds ◘ tKeyboardLayouts(layouts,, , ) sets layouts for virtual keyboard ' layouts ': list of languages where language is list of layouts ' langsPerRow ': langs menu columns ' number 'hidekeyboard ': hides virtual keyboard if enabled NOTE: you can 't set focus on text without it 's width and height set 'showkeyboard ': shows virtual keyboard if enabled 'property ' is any parameter accepted by TextArea. Updates TextArea with new values from table (t)Īccepts a table with same parameters as for TextArea. NOTE: any missing parameter will be defaulted to TextArea. 'callback ': (textfield, esc) to be called when editing is done 'scroll ': adds mouse /touch listener to scroll if enabled 'edit ': adds mouse /touch listener to focus and edit if enabled 'undolevels ': levels for undo /redo operations 'maxchars ': maximum text length restriction 'oneline ': fits all text into one line if enabled 'wholewords ': only whole words in lines if enabled 'colors ': paragraph colors, can have a fraction for alpha 'letterspace ': a space between characters 'sample ': text to get top and height for lines APIĪccepts a table (t) where all parameters are optional: If you need to popup it without touch, for example for cursor settings, you can press "Menu" key on hardware keyboard. It also automatically resizes when screen resolution changes and fits editable text. Keyboard settings are automatically saved in a file ('keyboard.json' by default). More than 150 layouts is available for it in included keyboard layouts file (a). Virtual keyboard is fully customizable from within itself: you can set each color, change font and sound, modify height, set cursor delays etc. When text editing is finished TextArea will run callback if defined. Various alignment modes are available: left, right, center and justified with ability to suppress word breaks ('wholewords' setting). Each text can have it's own colors and alphas of text, sliders, selection and cursor. If text can't fit into width and height vertical and horizontal sliders will appear to help with the navigation. All standard text operations are supported: Select All, Duplicate, Cut, Copy, Paste, Undo, Redo. Text can be scrolled via mouse/touch and selected via mouse or virtual keyboard. TextArea supports hardware and virtual (built-in) keyboard input. TextArea is Gideros library to show and edit multiline and oneline texts. TextArea - Gideros library for multiline text editing TextArea
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |