public UIChatBalloon(UIChatPanel owner) { Owner = owner; var gfx = Content.Content.Get().UIGraphics; //TODO: switch entire ui onto real content system BPointerBottom = GetTexture(0x1AF0856DDBAC); BPointerSide = GetTexture(0x1B00856DDBAC); BTiles = GetTexture(0x1B10856DDBAC); if (!ProcessedBGFX) { ProcessedBGFX = true; AlphaCopy(BPointerBottom); AlphaCopy(BPointerSide); AlphaCopy(BTiles); } BodyTextStyle = TextStyle.DefaultLabel.Clone(); BodyTextStyle.Size = 10; BodyTextStyle.Color = new Color(240, 240, 48); ShadowStyle = BodyTextStyle.Clone(); ShadowStyle.Color = Color.Black; if (!GameFacade.Linux && GlobalSettings.Default.EnableTTS) { TTSContext = (ITTSContext.Provider == null) ? null : ITTSContext.Provider(); } }
private ITTSContext GetOrCreateTTS() { if (TTSContext == null && ITTSContext.Provider != null) { TTSContext = ITTSContext.Provider(); } return(TTSContext); }
private ITTSContext GetOrCreateTTS() { if (TTSContext == null && !GameFacade.Linux) { TTSContext = ITTSContext.Provider(); } return(TTSContext); }