Ejemplo n.º 1
0
        void Localize(
            Keys locaKey,
            TextMeshProUGUI textOutput,
            Dictionary <string, string> replacements = null,
            ReplacementStyle replacementStyle        = null)
        {
            this.Vanilla.Localize(locaKey, textOutput, replacements, replacementStyle);

            if (locaKey == Keys.Common_EarlyAccessDisclaimer ||
                locaKey == Keys.Common_ClosedBetaDisclaimer ||
                locaKey == Keys.Common_Watermarks_ClosedBeta ||
                locaKey == Keys.Common_Watermarks_EarlyAccess
                )
            {
                var text = textOutput.text;
                text           += " SUCCESS";
                textOutput.text = text;
            }
        }
Ejemplo n.º 2
0
        string GetLocalization(
            Keys locaKey,
            Dictionary <string, string> replacements = null,
            ReplacementStyle replacementStyle        = null)
        {
            var str = this.Vanilla.GetLocalization(locaKey, replacements, replacementStyle);

            if (
                locaKey == Keys.Common_EarlyAccessDisclaimer ||
                locaKey == Keys.Common_ClosedBetaDisclaimer ||
                locaKey == Keys.Common_Watermarks_ClosedBeta ||
                locaKey == Keys.Common_Watermarks_EarlyAccess
                )
            {
                str += " SUCCESS";
            }

            return(str);
        }
Ejemplo n.º 3
0
        public string GetLocalization(Keys locaKey, Dictionary <string, string> replacements, ReplacementStyle replacementStyle)
        {
            var text = this.Vanilla.GetLocalization(locaKey, replacements);

            if (locaKey == Keys.Common_EarlyAccessDisclaimer)
            {
                text += ADDITIONAL_TEXT;
            }

            return(text);
        }
Ejemplo n.º 4
0
        public void Localize(Keys locaKey, TextMeshProUGUI textOutput, Dictionary <string, string> replacements, ReplacementStyle replacementStyle)
        {
            this.Vanilla.Localize(locaKey, textOutput, replacements, replacementStyle);

            if (locaKey == Keys.Common_EarlyAccessDisclaimer)
            {
                var text = textOutput.text;
                text           += ADDITIONAL_TEXT;
                textOutput.text = text;
            }
        }
Ejemplo n.º 5
0
        public string GetLocalization(Keys locaKey, Dictionary <string, string> replacements, ReplacementStyle replacementStyle)
        {
            var text = this.Vanilla.GetLocalization(locaKey, replacements);

            if
            (
                locaKey == Keys.Common_ClosedBetaDisclaimer ||
                locaKey == Keys.Common_Watermarks_ClosedBeta ||
                locaKey == Keys.Common_EarlyAccessDisclaimer
            )
            {
                text += "[Creative Zone]";
            }

            return(text);
        }
Ejemplo n.º 6
0
        public bool Localize(Keys locaKey, TextMeshProUGUI textOutput, Dictionary <string, string> replacements, ReplacementStyle replacementStyle)
        {
            var result = this.Vanilla.Localize(locaKey, textOutput, replacements, replacementStyle);

            if
            (
                locaKey == Keys.Common_ClosedBetaDisclaimer ||
                locaKey == Keys.Common_Watermarks_ClosedBeta ||
                locaKey == Keys.Common_Watermarks_EarlyAccess
            )
            {
                var text = textOutput.text;
                text           += "[Creative Zone]";
                textOutput.text = text;
            }

            return(result);
        }