Utilities https://code.coronalabs.com/taxonomy/term/17/all en simple_toast https://code.coronalabs.com/code/simpletoast <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Simple example for Toast Notification without any plugins for Corona SDK.</p> <p>For all supported platforms!</p> <p>How to use?</p> <p>• Add toast.lua in your Corona project root directory</p> <p>• Add string 'require "toast"' in main.lua</p> <p>• For display a toast notification, use next code:</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">krdpnsk</div></div></div> Thu, 14 Nov 2019 07:18:03 +0000 krdpnsk 207 at https://code.coronalabs.com App Icon Generator https://code.coronalabs.com/code/app-icon-generator <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This program is written in LUA and runs in Corona SDK. Replace 1 main file and generate iOS and Android app icons automatically that are properly named. If you need more icons just add them!</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">mythinkhouse</div></div></div> Tue, 16 May 2017 03:03:08 +0000 mythinkhouse 206 at https://code.coronalabs.com Tiled Map Editor selector utility library https://code.coronalabs.com/code/tiled-map-editor-selector-utility-library <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Utility which loads Tiled map (exported to lua format) and provides selector methods for certain elements. Objects returned by these methods can be used as Corona SDK methods input. Currently image, tileset, rectangle or polyline can be retrieved for display. There is also possibility of using polyline as collision shape for image.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Michał Rzeszut</div></div></div> Wed, 03 Aug 2016 20:55:48 +0000 rzeszut.michal 203 at https://code.coronalabs.com layout.lua - Device independent layout manager https://code.coronalabs.com/code/layoutlua-device-independent-layout-manager <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>The layout manager makes it easy to create <em>regions</em>, rectangular areas defined relative to the screen, the stage (which may or may not be the full screen), and to the previously created user-defined regions. The final regions are created with content coordinates.</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Ron</div></div></div> Wed, 22 Jun 2016 22:26:47 +0000 ron5 200 at https://code.coronalabs.com Save User preferences https://code.coronalabs.com/code/save-user-preferences <div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Anil</div></div></div> Mon, 16 May 2016 18:05:49 +0000 anilsingh.singh09 197 at https://code.coronalabs.com Turn off auto correction on native.newTextBox https://code.coronalabs.com/code/turn-auto-correction-nativenewtextbox <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This piece of code extends the native.newTextBox so it is possible to turn off the in some cases annoying auto-correction feature.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">ojnab</div></div></div> Tue, 17 Nov 2015 07:56:39 +0000 ojnab 193 at https://code.coronalabs.com Lua Units https://code.coronalabs.com/code/lua-units <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>A simple, elegant, concise helper module that converts quantities between measurement units.<br /> For the moment only common distance units (metric + non-metric) are implemented, but the module can grow.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">silverthorax</div></div></div> Thu, 05 Nov 2015 23:03:09 +0000 silverthorax 192 at https://code.coronalabs.com Retrieve named colors (Hex) and convert to RGB https://code.coronalabs.com/code/retrieve-named-colors-hex-and-convert-rgb <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>A simple helper I wrote so I could reference the same colours throughout my app more easily.</p> <p>I have a color pallette for my app with named colours which I can refer to whenever I need to set the colour for something.</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">moollaza</div></div></div> Sat, 17 Oct 2015 02:31:32 +0000 uncovr 189 at https://code.coronalabs.com Pasteboard copy/paste string for Mac OSX builds https://code.coronalabs.com/code/pasteboard-copypaste-string-mac-osx-builds <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Copy/paste string to pasteboard for Mac OS X builds.<br /> Images not supported.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">ojnab</div></div></div> Thu, 24 Sep 2015 08:13:28 +0000 ojnab 188 at https://code.coronalabs.com Fibonacci clock https://code.coronalabs.com/code/fibonacci-clock <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Graphical representation utilizing the Fibonacci sequence to tell the time.<br /> Clock video demo :<br /> <a href="https://youtu.be/bi-uZVHnfbI">https://youtu.be/bi-uZVHnfbI</a></p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">shayde</div></div></div> Fri, 31 Jul 2015 00:02:13 +0000 shaydebarra 184 at https://code.coronalabs.com copyDatabaseTo() - A function to install a writable, prepopulated database. https://code.coronalabs.com/code/copydatabaseto-function-install-writable-prepopulated-database <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This function will copy an SQLlite database (or any binary data file) from your app bundle and put it into a writable area like system.DocumentsDirectory.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Corona Rob</div></div></div> Tue, 19 May 2015 05:14:29 +0000 Corona Rob 182 at https://code.coronalabs.com Color Transition Matrix https://code.coronalabs.com/code/color-transition-matrix <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>This function returns a matrix of RGB values that allow you to gradually change from one color to another using a single index, like the position of a scrollview/springboard.</p> <p>It takes a two dimensional array of RGB colors, each page width and the total amount of pages.</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Tanner Gower</div></div></div> Fri, 15 May 2015 03:23:28 +0000 triggdev 181 at https://code.coronalabs.com Sozluk - Localization Library https://code.coronalabs.com/code/sozluk-localization-library <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>Sozluk(meaning 'dictionary' in Turkish) is a localization library for Corona SDK (and probably LÖVE 2D).</p> <p>Main difference of this library is that it uses Lua files to store localization data, instead of text or json files. This will let you easily update your games/apps over 50MB on Google Play without coping with patch files.</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">Serkan Aksit - bgmadclown</div></div></div> Wed, 15 Apr 2015 18:48:58 +0000 bgmadclown 174 at https://code.coronalabs.com Corona Textrender https://code.coronalabs.com/code/corona-textrender <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>A pure-Lua text rendering module for Corona SDK which can handle basic HTML, fonts, font-styles, and even basic font metrics.</p> <p>This module renders text close to a proper desktop publishing program like Adobe InDesign. That means I can position text correctly on screen for books, etc.</p></div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">David Gross</div></div></div> Thu, 09 Apr 2015 22:38:38 +0000 mimetic 173 at https://code.coronalabs.com Date Picker Wheel Widget https://code.coronalabs.com/code/date-picker-wheel-widget <div class="field field-name-body field-type-text-with-summary field-label-hidden"><div class="field-items"><div class="field-item even" property="content:encoded"><p>A Date Picker Wheel widget that actually adjusts for the different number of days in each months, and even accounts for leap years!</p> </div></div></div><div class="field field-name-field-nickname field-type-text field-label-inline clearfix"><div class="field-label">Contributor:&nbsp;</div><div class="field-items"><div class="field-item even">mdsandell</div></div></div> Fri, 27 Mar 2015 04:37:11 +0000 mark.sandell 172 at https://code.coronalabs.com