Doloro GDK 22 .1.0 Beta
by Tauri Interactive
Doloro.Localization.LocalizedGUIContent Class Reference

Detailed Description

Proxy container that provides you with a localized GUIContent.

Inheritance diagram for Doloro.Localization.LocalizedGUIContent:
Collaboration diagram for Doloro.Localization.LocalizedGUIContent:

Public Member Functions

 LocalizedGUIContent ()
 
 LocalizedGUIContent (string text)
 
 LocalizedGUIContent (Texture image)
 Build a GUIContent object containing only an image. More...
 
 LocalizedGUIContent (GUIContent src)
 Build a GUIContent as a copy of another GUIContent. More...
 
 LocalizedGUIContent (string text, Texture image)
 Build a GUIContent object containing both text and an image. More...
 
 LocalizedGUIContent (string text, string tooltip)
 
 LocalizedGUIContent (Texture image, string tooltip)
 Build a GUIContent containing an image. When the user hovers the mouse over it, the global GUI.tooltip is set to the tooltip. More...
 
 LocalizedGUIContent (string text, Texture image, string tooltip)
 Build a GUIContent that contains both text, an image and has a tooltip defined. When the user hovers the mouse over it, the global GUI.tooltip is set to the tooltip. More...
 
delegate void UpdateHandler (AProxyContentProvider info)
 Handle UI member update. More...
 
delegate LocalizatorType LocalizationHandler (LocalizatorType origin)
 Handler that should return localized text related to the origin one in current localization policy. More...
 

Static Public Member Functions

static implicit operator GUIContent (LocalizedGUIContent content)
 
static implicit operator LocalizedGUIContent (GUIContent content)
 
static void SetLocalzationHandler (LocalizationHandler localizator)
 Defines localization handler for text content. More...
 

Protected Member Functions

virtual void OnUpdated ()
 Occurs when some GUI element has been changed.
 

Properties

override GUIContent content [get, set]
 
string text [get, set]
 Title of item.
 
string tooltip [get, set]
 Description that will be showed in UI.
 
Texture image [get, set]
 Texture that will be used as icon where applicable.
 
static LocalizationHandler localizator [get]
 

Events

UpdateHandler Updated
 Occurs when content has been updated.
 

Constructor & Destructor Documentation

◆ LocalizedGUIContent() [1/8]

Doloro.Localization.LocalizedGUIContent.LocalizedGUIContent ( )

◆ LocalizedGUIContent() [2/8]

Doloro.Localization.LocalizedGUIContent.LocalizedGUIContent ( string  text)

Parameters
text

◆ LocalizedGUIContent() [3/8]

Doloro.Localization.LocalizedGUIContent.LocalizedGUIContent ( Texture  image)

Build a GUIContent object containing only an image.

Parameters
image

◆ LocalizedGUIContent() [4/8]

Doloro.Localization.LocalizedGUIContent.LocalizedGUIContent ( GUIContent  src)

Build a GUIContent as a copy of another GUIContent.

Parameters
src

◆ LocalizedGUIContent() [5/8]

Doloro.Localization.LocalizedGUIContent.LocalizedGUIContent ( string  text,
Texture  image 
)

Build a GUIContent object containing both text and an image.

Parameters
text
image

◆ LocalizedGUIContent() [6/8]

Doloro.Localization.LocalizedGUIContent.LocalizedGUIContent ( string  text,
string  tooltip 
)

Build a GUIContent containing some text. When the user hovers the mouse over it, the global GUI.tooltip is set to the tooltip.

Parameters
text
tooltip

◆ LocalizedGUIContent() [7/8]

Doloro.Localization.LocalizedGUIContent.LocalizedGUIContent ( Texture  image,
string  tooltip 
)

Build a GUIContent containing an image. When the user hovers the mouse over it, the global GUI.tooltip is set to the tooltip.

Parameters
image
tooltip

◆ LocalizedGUIContent() [8/8]

Doloro.Localization.LocalizedGUIContent.LocalizedGUIContent ( string  text,
Texture  image,
string  tooltip 
)

Build a GUIContent that contains both text, an image and has a tooltip defined. When the user hovers the mouse over it, the global GUI.tooltip is set to the tooltip.

Parameters
text
image
tooltip

Member Function Documentation

◆ LocalizationHandler()

delegate LocalizatorType Doloro.Localization.AGenericProxyContentProvider< ContentType, LocalizatorType >.LocalizationHandler ( LocalizatorType  origin)
inherited

Handler that should return localized text related to the origin one in current localization policy.

Parameters
originOrigin text or key code to localization system access.
Returns
Localized text in case if found. Origin text otherwise.

◆ SetLocalzationHandler()

static void Doloro.Localization.AGenericProxyContentProvider< ContentType, LocalizatorType >.SetLocalzationHandler ( LocalizationHandler  localizator)
staticinherited

Defines localization handler for text content.

Parameters
localizatorhandler that will be called to localize a content.

◆ UpdateHandler()

delegate void Doloro.Localization.AGenericProxyContentProvider< ContentType, LocalizatorType >.UpdateHandler ( AProxyContentProvider  info)
inherited

Handle UI member update.

Parameters
infoUpdated info.

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