Table of Contents

Enum TranslationOptions

Namespace
Uncreated.Warfare.Translations
Assembly
Uncreated.Warfare.dll
[Flags]
public enum TranslationOptions

Fields

ForTerminal = TranslateWithTerminalRichText | ReplaceRichTextWithTerminalRichText

Configures the translator to output text that can be easily viewed from the termnial.

NoRichText = 64

Tells ITranslationValueFormatter's to not add rich text to arguments. All rich text will also be removed from the original translation.

None = 0
PerPlayerTranslation = 4

Tells the translator to translate the messsage for each player separately when broadcasted.

PerTeamTranslation = 8

Tells the translator to translate the messsage for each team separately when broadcasted.

ReplaceRichTextWithTerminalRichText = 256

Tells the translator to replace any rich text codes with the equivalent virtual terminal sequences.

ReplaceTMProRichText = 2

Tells the translator to replace <#ffffff> format with <color=#ffffff>.

Sign = 32

The translation is for a sign.

TMProSign = 32

Use for translations to be used on TMPro sign.

TMProUI = 16

Use for translations to be used on TMPro UI.

TranslateWithTerminalRichText = 128

Tells the translator to prioritize using virtual terminal sequences instead of TMPro or Unity rich text.

TranslateWithUnityRichText = 1

Tells the translator to prioritize using base Unity rich text instead of TMPro rich text.

UI = 16

The translation is for a custom UI element.

UnityUI = ReplaceTMProRichText | UnityUINoReplace

Use for translations to be used on non-TMPro UI. Converts to <color=#ffffff> format.

UnityUINoReplace = TranslateWithUnityRichText | TMProUI

Use for translations to be used on non-TMPro UI. Convert to <color=#ffffff> format, doesn't replace already existing TMPro tags.

UseUnityRichText = TranslateWithUnityRichText | ReplaceTMProRichText

Tells the translator to target Unity rich text instead of TMPro rich text and replace <#ffffff> tags with <color=#ffffff> tags.