EasyTalk API
Loading...
Searching...
No Matches
EasyTalk.Display.Style.DialogueStyleManager Class Reference

The DialogueStyleManager is used to modify the style of a Dialogue Display more easily than having to access individual components within the display. More...

Static Public Member Functions

static void ApplyStyle (DialogueStyle style, DialogueDisplay display)
 Applies the specified DialogueStyle to the DialogueDisplay provided.
 
static void ApplyStyleToOptionDisplay (OptionDisplayStyle style, OptionDisplay display)
 Applies the specified OptionDisplayStyle to the provided OptionDisplay.
 
static void ApplyStyleToDirectionalOptionDisplay (OptionDisplayStyle style, OptionDisplay display)
 Applies the specified OptionDisplayStyle to the provided OptionDisplay if it is a Directional Option Display.
 
static void ApplyStyleToConvoDisplay (ConversationDisplayStyle style, ConversationDisplay display)
 Applies the specified ConversationDisplayStyle to the ConversationDisplay provided.
 
static void ApplyStyleToContinuePanel (ContinueDisplayStyle style, ContinueDisplay continueDisplay)
 Applies styling to the continue display provided.
 
static ConversationDisplayStyle CreateConversationDisplayStyle (ConversationDisplay display)
 Creates a conversation display style from the provided conversation display.
 
static OptionDisplayStyle CreateOptionDisplayStyle (OptionDisplay display)
 Creates a option display style from the provided option display.
 
static ContinueDisplayStyle CreateContinueDisplayStyle (ContinueDisplay display)
 Creates a new continue display style from the provided continue display.
 
static DialogueStyle CreateStyle (DialogueDisplay display)
 Creates a complete dialogue display style from the provided dialogue display.
 
static void ApplyColorTheme (ColorTheme colorTheme, DialogueDisplay display)
 Applies the color theme specified to the provided dialogue display.
 
static void ApplyColorThemeToButton (ColorTheme colorTheme, DialogueButton button)
 Applies the color theme specified to the provided dialogue button.
 
static void ApplyColorThemeToContinueButton (ColorTheme colorTheme, DialogueButton button)
 Applies the specified color theme to the provided dialogue button.
 
static void ApplyFrameTheme (FrameTheme frameTheme, DialogueDisplay display)
 Applies the specified frame theme to the provided dialogue display.
 

Static Protected Member Functions

static void ApplyStyleToCharacterNameText (ConversationDisplayStyle convoStyle, ConversationDisplay display)
 Applies styling to the character name text provided.
 
static void ApplyStyleToCharacterNameBackgroundImage (ConversationDisplayStyle convoStyle, Image backgroundImage)
 Applies styling to the character name background image provided.
 
static void ApplyStyleToConvoText (ConversationDisplayStyle convoStyle, ConversationDisplay display)
 Applies styling to the provided dialogue/conversation text.
 
static void ApplyStyleToText (TextStyleSettings textStyleSettings, Text text)
 Apply the style of the provided TextStyleSettings to the Unity Text component specified.
 
static void ApplyStyleToConvoImages (ConversationDisplayStyle convoStyle, ConversationDisplay convoDisplay)
 Applies styling to the images of the conversation display provided.
 
static void ApplyStyleToOptionButton (OptionButtonStyle style, DialogueButton button)
 Applies styling to the option button provided.
 
static void ApplyStyleToOptionPanel (OptionDisplayStyle style, OptionDisplay optionDisplay)
 Applies styling to the option display provided.
 
static void ApplyOptionPanelImageSettingsToStyle (List< Image > optionPanelImages, OptionDisplayStyle style)
 Applies and creates option panel image styles for the provided OptionDisplayStyle from the List of option display images provided.
 
static void ApplyOptionButtonToStyle (DialogueButton button, OptionButtonStyle style)
 Applies the settings of the specified dialogue button to the provided option button style.
 
static void ApplyTextSettingsToStyle (TextStyleSettings styleSettings, Text text)
 Apply the settings of the provided Unity Text component to the TextStyleSettings specified.
 

Static Private Member Functions

static void ApplyDirectionalDisplaySettingsToStyle (OptionDisplay display, OptionDisplayStyle style)
 Applies the settings for link image colors and the main image color to the style provided if it's a directional option display.
 

Detailed Description

The DialogueStyleManager is used to modify the style of a Dialogue Display more easily than having to access individual components within the display.

Member Function Documentation

◆ ApplyColorTheme()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyColorTheme ( ColorTheme colorTheme,
DialogueDisplay display )
static

Applies the color theme specified to the provided dialogue display.

Parameters
colorThemeThe color theme to apply.
displayThe dialogue display to update.

◆ ApplyColorThemeToButton()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyColorThemeToButton ( ColorTheme colorTheme,
DialogueButton button )
static

Applies the color theme specified to the provided dialogue button.

Parameters
colorThemeThe color theme to apply.
buttonThe dialogue button to update.

◆ ApplyColorThemeToContinueButton()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyColorThemeToContinueButton ( ColorTheme colorTheme,
DialogueButton button )
static

Applies the specified color theme to the provided dialogue button.

Parameters
colorThemeThe color theme to apply.
buttonThe dialogue button to update.

◆ ApplyDirectionalDisplaySettingsToStyle()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyDirectionalDisplaySettingsToStyle ( OptionDisplay display,
OptionDisplayStyle style )
staticprivate

Applies the settings for link image colors and the main image color to the style provided if it's a directional option display.

Parameters
displayThe option display to apply settings from.
styleThe style to apply settings to (only if the option display is a directional option display).

◆ ApplyFrameTheme()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyFrameTheme ( FrameTheme frameTheme,
DialogueDisplay display )
static

Applies the specified frame theme to the provided dialogue display.

Parameters
frameThemeThe frame theme to apply.
displayThe dialogue display to update.

◆ ApplyOptionButtonToStyle()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyOptionButtonToStyle ( DialogueButton button,
OptionButtonStyle style )
staticprotected

Applies the settings of the specified dialogue button to the provided option button style.

Parameters
buttonThe dialogue button to use.
styleThe style to update.

◆ ApplyOptionPanelImageSettingsToStyle()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyOptionPanelImageSettingsToStyle ( List< Image > optionPanelImages,
OptionDisplayStyle style )
staticprotected

Applies and creates option panel image styles for the provided OptionDisplayStyle from the List of option display images provided.

Parameters
optionPanelImagesThe list of option panel images to create styles from.
styleThe option display style to update.

◆ ApplyStyle()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyle ( DialogueStyle style,
DialogueDisplay display )
static

Applies the specified DialogueStyle to the DialogueDisplay provided.

Parameters
styleThe style to apply.
displayThe dialogue display to update.

◆ ApplyStyleToCharacterNameBackgroundImage()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToCharacterNameBackgroundImage ( ConversationDisplayStyle convoStyle,
Image backgroundImage )
staticprotected

Applies styling to the character name background image provided.

Parameters
convoStyleThe style to apply.
backgroundImageThe background image to update.

◆ ApplyStyleToCharacterNameText()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToCharacterNameText ( ConversationDisplayStyle convoStyle,
ConversationDisplay display )
staticprotected

Applies styling to the character name text provided.

Parameters
convoStyleThe style to apply.
displayThe Conversation Display to update.

◆ ApplyStyleToContinuePanel()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToContinuePanel ( ContinueDisplayStyle style,
ContinueDisplay continueDisplay )
static

Applies styling to the continue display provided.

Parameters
styleThe style to apply.
continueDisplayThe continue display to update.

◆ ApplyStyleToConvoDisplay()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToConvoDisplay ( ConversationDisplayStyle style,
ConversationDisplay display )
static

Applies the specified ConversationDisplayStyle to the ConversationDisplay provided.

Parameters
styleThe style to apply.
displayThe conversation display to update.

◆ ApplyStyleToConvoImages()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToConvoImages ( ConversationDisplayStyle convoStyle,
ConversationDisplay convoDisplay )
staticprotected

Applies styling to the images of the conversation display provided.

Parameters
convoStyleThe style to apply.
convoDisplayThe conversation display to update.

◆ ApplyStyleToConvoText()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToConvoText ( ConversationDisplayStyle convoStyle,
ConversationDisplay display )
staticprotected

Applies styling to the provided dialogue/conversation text.

Parameters
convoStyleThe style to apply.
displayThe Conversation Display to update.

◆ ApplyStyleToDirectionalOptionDisplay()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToDirectionalOptionDisplay ( OptionDisplayStyle style,
OptionDisplay display )
static

Applies the specified OptionDisplayStyle to the provided OptionDisplay if it is a Directional Option Display.

Parameters
styleThe style to apply.
displayThe option display to update (changes only applied if it is a directional option display).

◆ ApplyStyleToOptionButton()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToOptionButton ( OptionButtonStyle style,
DialogueButton button )
staticprotected

Applies styling to the option button provided.

Parameters
styleThe style to apply.
buttonThe dialogue button to update.

◆ ApplyStyleToOptionDisplay()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToOptionDisplay ( OptionDisplayStyle style,
OptionDisplay display )
static

Applies the specified OptionDisplayStyle to the provided OptionDisplay.

Parameters
styleThe style to apply.
displayThe option display to update.

◆ ApplyStyleToOptionPanel()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToOptionPanel ( OptionDisplayStyle style,
OptionDisplay optionDisplay )
staticprotected

Applies styling to the option display provided.

Parameters
styleThe style to apply.
optionDisplayThe option display to update.

◆ ApplyStyleToText()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyStyleToText ( TextStyleSettings textStyleSettings,
Text text )
staticprotected

Apply the style of the provided TextStyleSettings to the Unity Text component specified.

Parameters
textStyleSettingsThe text style settings to apply.
textThe Text component to update.

◆ ApplyTextSettingsToStyle()

static void EasyTalk.Display.Style.DialogueStyleManager.ApplyTextSettingsToStyle ( TextStyleSettings styleSettings,
Text text )
staticprotected

Apply the settings of the provided Unity Text component to the TextStyleSettings specified.

Parameters
styleSettingsThe text style settings to update.
textThe Text component to retrieve settings from.

◆ CreateContinueDisplayStyle()

static ContinueDisplayStyle EasyTalk.Display.Style.DialogueStyleManager.CreateContinueDisplayStyle ( ContinueDisplay display)
static

Creates a new continue display style from the provided continue display.

Parameters
displayThe continue display to create a style from.
Returns
The new ContinueDisplayStyle.

◆ CreateConversationDisplayStyle()

static ConversationDisplayStyle EasyTalk.Display.Style.DialogueStyleManager.CreateConversationDisplayStyle ( ConversationDisplay display)
static

Creates a conversation display style from the provided conversation display.

Parameters
displayThe conversation display to create a style from.
Returns
The new ConversationDisplayStyle.

◆ CreateOptionDisplayStyle()

static OptionDisplayStyle EasyTalk.Display.Style.DialogueStyleManager.CreateOptionDisplayStyle ( OptionDisplay display)
static

Creates a option display style from the provided option display.

Parameters
displayThe option display to create a style from.
Returns
The new OptionDisplayStyle.

◆ CreateStyle()

static DialogueStyle EasyTalk.Display.Style.DialogueStyleManager.CreateStyle ( DialogueDisplay display)
static

Creates a complete dialogue display style from the provided dialogue display.

Parameters
displayThe dialogue display to create a style from.
Returns
The new DialogueStyle.