Setting fontsize for ChatFrame1
Hi.
I am trying to set the font size for ChatFrame1 (General), but it doesn't seem to update correctly... Doing a /reload will reset the font size to the size it had before the change. It starts by having a font size of 14 on a new character. Code: Code:
local name, fontSize, r, g, b, a, shown, locked = FCF_GetChatWindowInfo(1); |
You've given no context as to the where, when and how this code is called. Makes it almost impossible to comment other than to say the first line doesn't seem to to have anything to do with the other two so maybe there is more code that is missing from your post?
Are you running any chat addons like Prat? |
Quote:
The idea is that it is being run with a slash command after the addon has been loaded. So I have added a SlashCmdHandler like this: Code:
SLASH_DLU1 = "/dlu"; Code:
function DLU:SlashCmdHandler(msg) Right now I have just looked at the code here (line number 3209) and made a minor change (hard-coded the font size to 12). I am however not able to call some of the methods in the file, like the ChatFrame_UpdateDefaultChatTarget(self), that I would believe would commit the update to the blizzard servers or something... Currently I am not using any addon that would modify the chat window at all (actually not using anything that changes the original UI). Probably also worth mentioning I am doing this in TBC Classic. |
To save information between sessions you need to add a setting you your .toc file
for use by ALL characters (or set up a character specific mechanism here): Code:
## SavedVariables: xxx Code:
## SavedVariablesPerCharacter: xxx Code:
## SavedVariablesPerCharacter: DarkruneDOTDK_DATA Lua Code:
SavedVariables are global so the name you use for yours should be unique to your addon ie. something like DarkruneDOTDK_DATA |
Thanks, seems to work the way I want :-)
|
All times are GMT -6. The time now is 03:54 AM. |
vBulletin © 2024, Jelsoft Enterprises Ltd
© 2004 - 2022 MMOUI