Beispiel #1
0
        static Countless <LazyTranslation> Translate(this MsgPainter smg, string english)
        {
            var org = painterTranslations[(int)smg];

            org[eng] = new LazyTranslation(english);
            return(org);
        }
Beispiel #2
0
        static Countless <LazyTranslation> Translate(this icon smg, string english, string englishDetails)
        {
            var org = iconTranslations[(int)smg];

            org[eng] = new LazyTranslation(english, englishDetails);
            return(org);
        }
        public static bool WarningDocumentation(this LazyTranslation trnsl)
        {
            if (pegi.FullWindowService.DocumentationWarningClick(trnsl.text))
            {
                pegi.FullWindowService.DocumentationOpen(trnsl.details);
                return(true);
            }

            return(false);
        }
Beispiel #4
0
        public static bool DocumentationClick(this LazyTranslation trnsl)
        {
            if (pegi.DocumentationClick(trnsl.text))
            {
                pegi.FullWindwDocumentationOpen(trnsl.details);
                return(true);
            }

            return(false);
        }
        public static string GetIn(this Msg s, int l)
        {
            var lt = s.Get(l);

            if (lt == null)
            {
                coreTranslations[(int)s][l] = new LazyTranslation(s.ToString());

                lt = s.Get(l);
            }

            return(lt.text);
        }
 public static Countless <LazyTranslation> From(this Countless <LazyTranslation> sntnc, int lang, string text, string details)
 {
     sntnc[lang] = new LazyTranslation(text, details);
     return(sntnc);
 }
Beispiel #7
0
 public static bool WarningDocumentation(this LazyTranslation trnsl) => pegi.FullWindow.DocumentationWarningClickOpen(trnsl.details, trnsl.text);
Beispiel #8
0
 public static bool DocumentationClick(this LazyTranslation trnsl) => pegi.FullWindow.DocumentationClickOpen(trnsl.details, toolTip: trnsl.text);
Beispiel #9
0
 static Countless <LazyTranslation> From(this Countless <LazyTranslation> sntnc, int lang, string text)
 {
     sntnc[lang] = new LazyTranslation(text);
     return(sntnc);
 }