14 October 2015
Corona Store: Data and Language Cabinets, Page Curl Effects
We have a few exciting new plugins available on the Corona Store: Games by Candlelight provides persistent data and translation libraries, and Xibalba Studios brings us a fancy page curling effect.
Please visit the store to activate plugins, or to submit a plugin yourself.
1. GBC Data Cabinet
By Games by Candlelight
The GBCDataCabinet plugin allows the Corona SDK developer to create and use session (located in memory) and persistent (located on disk) data throughout your application. You no longer have to create global variables to share data between Composer modules, for example.
1 2 3 4 5 6 7 |
local GBCDataCabinet = require("plugin.GBCDataCabinet") -- 1. create a cabinet in memory local success = false success = GBCDataCabinet.createCabinet("My First Cabinet") success = GBCDataCabinet.set("My First Cabinet", "Date", os.date()) success = GBCDataCabinet.save("My First Cabinet") |
Check it out on the Corona Store.
2. GBC Language Cabinet
By Games by Candlelight
GBC Language Cabinet is an easy to use way to display text in different languages. Simply specify which languages you are supporting, create or import tables of translated text, and use a basic function call to return the text in the correct language.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
local GBCLanguageCabinet = require ("plugin.GBCLanguageCabinet") -- add some languages GBCLanguageCabinet.addLanguage("English", "en") GBCLanguageCabinet.addLanguage("Deutsch", "de") GBCLanguageCabinet.addLanguage("Español", "es") GBCLanguageCabinet.addLanguage("中國", "zh") -- add some text GBCLanguageCabinet.addText("RedBall", { {"en", "That is a ##color## ##object##."}, {"de", "Das ist eine ##color## ##object##."}, {"es", "Esa es una ##object## ##color##."}, {"zh", "這是一個 ##color## ##object##."}, {"yoda", "##color##, that ##object## is."}, }) -- translate txtString.text = GBCLanguageCabinet.getText("RedBall", "de", { color = "rot", object = "Ball", }) |
Check it out on the Corona Store.
3. Page Curl
By Xibalba Studios
This plugin provides a page curl widget, the basic idea being to give the look and feel of turning a physical page as in a book or magazine.
Check it out on the Corona Store.
Sorry, the comment form is closed at this time.