Smart Localization  2.3
SmartLocalization.Editor.LocalizedKeySelector Class Reference

A class providing a simple GUI for selecting a key from the root. More...

Static Public Member Functions

static string SelectKeyGUI (string currentKey, bool sort=false, LocalizedObjectType sortType=LocalizedObjectType.INVALID)
 Call this from OnInspectorGUI in your own editor class. It will create buttons and a selectable popup with all the keys available. More...
 
static bool ShouldShowKeySelector ()
 Returns if the key selector should be shown. More...
 
static void RefreshList (bool sort, LocalizedObjectType sortType)
 Refreshes the list containing the selectable keys More...
 

Static Public Attributes

static bool autoRefresh = false
 If the SelectKeyGUI should continously refresh the key list. More...
 

Detailed Description

A class providing a simple GUI for selecting a key from the root.

Member Function Documentation

static void SmartLocalization.Editor.LocalizedKeySelector.RefreshList ( bool  sort,
LocalizedObjectType  sortType 
)
static

Refreshes the list containing the selectable keys

Parameters
sortIf the refreshed list should be sorted and filtered with a certain key type
sortTypeThe key type to use as filter
static string SmartLocalization.Editor.LocalizedKeySelector.SelectKeyGUI ( string  currentKey,
bool  sort = false,
LocalizedObjectType  sortType = LocalizedObjectType.INVALID 
)
static

Call this from OnInspectorGUI in your own editor class. It will create buttons and a selectable popup with all the keys available.

Parameters
currentKeyThe currently chosen key
sortIf the select key GUI should filter keys with a certain type
sortTypeIf sort is true, this is the type of keys that will be shown.
Returns
The currently chosen key
static bool SmartLocalization.Editor.LocalizedKeySelector.ShouldShowKeySelector ( )
static

Returns if the key selector should be shown.

Returns
Returns if the key selector should be shown.

Member Data Documentation

bool SmartLocalization.Editor.LocalizedKeySelector.autoRefresh = false
static

If the SelectKeyGUI should continously refresh the key list.


The documentation for this class was generated from the following file: