Ok, thanks to some help on the Tukui forum I've finally reached my point to have my chat text align right or left but during the process I stumbled upon a strange error, using the "name" parameter when configuring the alignment does not work.
I'm not asking for help, I would just like to know why the function is not working
Here's the code
Code:
if id == 3 and name == LOOT.." / "..TRADE then
frame:SetJustifyH("RIGHT")
end
The name of the tabs are created during installation using this code
Code:
if i == 1 then
FCF_SetWindowName(frame, GENERAL)
elseif i == 2 then
FCF_SetWindowName(frame, GUILD_EVENT_LOG)
elseif i == 3 then
FCF_SetWindowName(frame, LOOT.." / "..TRADE)
end
Any idea? just for my brain tranquility
Full chat creation function
Code:
for i = 1, NUM_CHAT_WINDOWS do
local frame = _G[format("ChatFrame%s", i)]
local chatFrameId = frame:GetID()
local chatName = FCF_GetChatWindowInfo(chatFrameId)
-- move general bottom left
if i == 1 then
frame:ClearAllPoints()
frame:Point("BOTTOMLEFT", LeftChatToggleButton, "TOPLEFT", 1, 3)
elseif i == 3 then
frame:ClearAllPoints()
frame:Point("BOTTOMLEFT", RightChatDataPanel, "TOPLEFT", 1, 3)
end
FCF_SavePositionAndDimensions(frame)
FCF_StopDragging(frame)
-- set default Elvui font size
FCF_SetChatWindowFontSize(nil, frame, 12)
-- rename windows general because moved to chat #3
if i == 1 then
FCF_SetWindowName(frame,GENERAL)
elseif i == 2 then
FCF_SetWindowName(frame, GUILD_EVENT_LOG)
elseif i == 3 then
FCF_SetWindowName(frame, LOOT.." / "..TRADE)
end
end