Shows or hides a widget, with or without a fade animation.The Application class contains the common functions that are available to the current application. (Misc) The current value of the specified widget property. (String) The valid name of a widget property ("name", "caption", "x", "y", "textAlign" etc.). Print( _G.GUI.Get("Button1", "caption") ) Returns the current value of the specified widget property. (Table) A table with properties (name / value pairs) to be applied to the widget. APPLY A TINT COLOR TO ALL WIDGETS USING THIS THEME: ![]() Note: specifying an individual color to a widget by using the widget's color property will override the theme's tint color. Every widget you create, as well as all existing widgets using this theme will be tinted automatically with the specified color. Do not forget the trailing slash at the end of the path string.Īpplies a tint color to a theme. (String) The path to the theme's folder (where all graphics and sounds used for this theme are stored). To apply this theme to any widget once it has been loaded, use this name for a widget's ".theme" property. lua settings file (just the file name, without the. The font should be placed within your project's root folder.įollow these links to learn how to embed your own vector fonts using the SOLAR2D SDK:.The font must be properly installed on your machine.With SOLAR2D SDK, specify the correct font name in your ttings file.Specify the correct font name in your theme's settings.NOTE: When using custom vector fonts in your app, please make sure that you Within this folder, you can collect all graphics and sounds used for this theme. lua file that is placed in your project's root and a folder (also to be placed in your project's root file). Once a theme is loaded, it can be applied to any widget to determine its look, colors etc. Loads a new widget theme ("skin" or style) into memory. Sound channel number to be used for widget sound playback. Use SetAudioChannel( ) to change the widget sound channel to any other channel that should be used for widget sound playback. Widget Candy uses a fixed audio channel (channel #1 by default) to play widget sounds. Note, that on a device environment, the logging level is ALWAYS set to level 1 (error messages are logged).Ģ = All messages (error and info messages). Specifies Widget Candy's console output (error messages only, error messages and info messages or no output at all). Specify true to disable all GUI sounds or false to enable. To disable a sound, pass nil.ĭisables or enables all widget sound effects. Sound ID to use (as defined in your theme's. SetSounds (tapSound, releaseSound, changeSound, selectSound) Note: If you create any widgets after calling SetSound and specify individual sound properties for a widget, the individual widget settings are used then. Using this command will override the individual settings of any existing widgets and set the default values for the widgets you create at a later time. changeSound properties, you can use SetSounds() to globally set (or disable) sound effects for all widgets at once. While you can apply sound effects to widgets individually using a widget's. Each widget you create features a set of methods that can be called to change its position or any of its properties. Widget methods are bound to a single individual widget.They are used to load or unload themes or delete all existing widgets, for example. Library commands are more general commands (which means they are not tied to an individual widget).Local MyButton = _G.GUI.GetHandle("Button1") LOAD THE LIBRARY AND USE A GLOBAL VAR TO STORE A REFERENCE: You'll use two types of commands: library commands and widget methods. With Gideros, simply add the library file to your project. With SOLAR2D, you need to include Widget Candy using the require() command first. Lightning fast, professional GUI extension to add all kind of graphical user interfaces to your apps and games.īUNDLE OFFER: BUY ONE, GET THE OTHERS HALF OFF! :: X-PRESSIVE.COM :: - WIDGET CANDY FOR SOLAR2D® iPHONE / ANDROID SDK - API REFERENCEĬreate stunning visual effects with our full featured particle engine for the SOLAR2D SDK.
0 Comments
Leave a Reply. |