From wiki.ginstr.com
Jump to: navigation, search
(Action signatures)
 
Line 10: Line 10:
 
===Retrieve ginstr launcher setting===
 
===Retrieve ginstr launcher setting===
  
:;<code>[gn:act_getLauncherSetting]|[keyword, target]</code>
+
:;<code>[gn:act_getLauncherSetting]|[target, keyword]</code>
  
 
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
 
:{| class="wikitable sortable" style="font-size: 85%; text-align: left;"
Line 16: Line 16:
 
! scope="col" | Parameter
 
! scope="col" | Parameter
 
! scope="col" | Description
 
! scope="col" | Description
 +
|-
 +
| <code>[[target]]</code>
 +
| [[target]] where the value will be stored
 +
* Valid [[target|targets]]:
 +
** [[Datatypes#text|DtText]]
 
|-
 
|-
 
| <code>keyword</code>
 
| <code>keyword</code>
Line 21: Line 26:
 
* Can be:
 
* Can be:
 
** hardcoded
 
** hardcoded
|-
 
| <code>[[target]]</code>
 
| [[target]] where the value will be stored
 
* Valid [[target|targets]]:
 
** [[Datatypes#text|DtText]]
 
 
|-
 
|-
 
|}
 
|}
  
 
====Example====
 
====Example====
 +
:<code>@variable/newLocale</code> - target where the setting value will be stored<br>
 
:<code>locale</code> - setting keyword<br>
 
:<code>locale</code> - setting keyword<br>
:<code>@variable/newLocale</code> - target where the setting value will be stored<br>
+
:; ⤷ <code>[gn:act_getLauncherSetting]|[@variable/newLocale, locale]</code>
:; ⤷ <code>[gn:act_getLauncherSetting]|[locale, @variable/newLocale]</code>
 
 
<hr>
 
<hr>
  

Latest revision as of 17:47, 3 March 2020

gn:act_getLauncherSetting

Description
Action that retrieves ginstr launcher setting.
Action returns
void

Action signatures

Retrieve ginstr launcher setting

[gn:act_getLauncherSetting]|[target, keyword]
Parameter Description
target target where the value will be stored
keyword keyword used to retrieve ginstr launcher setting value
  • Can be:
    • hardcoded

Example

@variable/newLocale - target where the setting value will be stored
locale - setting keyword
[gn:act_getLauncherSetting]|[@variable/newLocale, locale]

List of supported keywords

keyword Desription
locale used to retrieve selected locale (e.g. en, de, es, etc...)