ESOUI

ESOUI (https://www.esoui.com/forums/index.php)
-   General Authoring Discussion (https://www.esoui.com/forums/forumdisplay.php?f=174)
-   -   Changing fonts in chat (https://www.esoui.com/forums/showthread.php?t=7093)

patrick_smyth 05/31/17 04:16 PM

Changing fonts in chat
 
I am trying to do the following on the 'System' chat channel (the channel where the output of d() goes):
  1. Save the font and font characteristics (size etc.)
  2. Change font and/or characteristics
  3. Output some text
  4. Repeat the last two steps multiple times
  5. Reset the font and font characteristics to the saved ones
Has anyone done this before?
Does anyone have any coded examples I can learn from?
I searched the forums but I could not find anything useful.

Ayantir 05/31/17 04:21 PM

pChat addon ..

patrick_smyth 06/04/17 04:12 PM

pchat forces reloadui
 
The problem I have with using pchat as my model is that it seems to force a reloadui() every time it does a font change.

It uses:
Code:

    ZoFontEditChat:SetFont(fontPath)
    ZoFontChat:SetFont(fontPath)

These calls do not appear to take effect until the next reloadui(). Then they seem to affect the entire window and not just any new text.

For my application to do a reloadui() every time it needed to change font would not be practical. Also it needs the font change to only affect new output text and not existing.

Before I give up does anyone know of a better way?


All times are GMT -6. The time now is 05:14 AM.

vBulletin © 2024, Jelsoft Enterprises Ltd
© 2014 - 2022 MMOUI