Difference between revisions of "Chroma.new"

From GiderosMobile
m (Text replacement - "</source>" to "</syntaxhighlight>")
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
<languages />
+
'''Available since:''' Gideros 2020.7<br/>
'''<translate>Available since</translate>:''' Gideros 2020.7<br/>
+
'''Class:''' [[chroma]]<br/>
'''<translate>Class</translate>:''' [[Special:MyLanguage/chroma|chroma]]<br/>
+
 
=== <translate>Description</translate> ===
+
=== Description ===
<translate>Initialises the plugin.</translate>
+
Initialises the plugin.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
(object) = chroma.new(devices,title,description,name,contact,category)
 
(object) = chroma.new(devices,title,description,name,contact,category)
</source>
+
</syntaxhighlight>
=== <translate>Parameters</translate> ===
+
 
'''devices''': (table) <translate>nil for all otherwise some of these: {"keyboard","mouse","headset","mousepad","keypad","chromalink"}</translate> '''optional'''<br/>
+
=== Parameters ===
'''title''': (string) <translate>Name of application. </translate> '''optional'''<br/>
+
'''devices''': (table) nil for all otherwise some of these: {"keyboard","mouse","headset","mousepad","keypad","chromalink"} '''optional'''<br/>
'''description''': (string) <translate>Description of the application. </translate> '''optional'''<br/>
+
'''title''': (string) name of application '''optional'''<br/>
'''name''': (string) <translate>Publisher name. </translate> '''optional'''<br/>
+
'''description''': (string) description of the application '''optional'''<br/>
'''contact''': (string) <translate>Contact information. </translate> '''optional'''<br/>
+
'''name''': (string) publisher name '''optional'''<br/>
'''category''': (string) <translate>'application' or 'game' (default) </translate> '''optional'''<br/>
+
'''contact''': (string) contact information '''optional'''<br/>
=== <translate>Return values</translate> ===
+
'''category''': (string) 'application' or 'game' (default) '''optional'''<br/>
'''<translate>Returns</translate>''' (object) <translate>The object to use.</translate><br/>
+
 
 +
=== Return values ===
 +
'''Returns''' (object) the object to use<br/>
  
 
{{Chroma}}
 
{{Chroma}}

Latest revision as of 15:27, 13 July 2023

Available since: Gideros 2020.7
Class: chroma

Description

Initialises the plugin.

(object) = chroma.new(devices,title,description,name,contact,category)

Parameters

devices: (table) nil for all otherwise some of these: {"keyboard","mouse","headset","mousepad","keypad","chromalink"} optional
title: (string) name of application optional
description: (string) description of the application optional
name: (string) publisher name optional
contact: (string) contact information optional
category: (string) 'application' or 'game' (default) optional

Return values

Returns (object) the object to use