Only in FTC\Interface: about.txt Only in FTC\Interface: AddOns diff -r FTC\Interface\FrameXML\FloatingChatFrame.lua Interface1700\FrameXML\FloatingChatFrame.lua 814c814 < --FCF_UpdateButtonSide(getglobal("ChatFrame"..i)); --- > FCF_UpdateButtonSide(getglobal("ChatFrame"..i)); 832,834c832,834 < --if (FCF_UpdateButtonSide(MOVING_CHATFRAME) and MOVING_CHATFRAME == DEFAULT_CHAT_FRAME ) then < -- updateAllButtons = 1; < --end --- > if (FCF_UpdateButtonSide(MOVING_CHATFRAME) and MOVING_CHATFRAME == DEFAULT_CHAT_FRAME ) then > updateAllButtons = 1; > end 837,839c837,839 < --if ( updateAllButtons ) then < -- FCF_UpdateButtonSide(value); < --end --- > if ( updateAllButtons ) then > FCF_UpdateButtonSide(value); > end 990,1022c990,1022 < --function FCF_UpdateButtonSide(chatFrame) < -- local leftDist = chatFrame:GetLeft(); < -- local rightDist = GetScreenWidth() - chatFrame:GetRight(); < -- local changed = nil; < -- if (( leftDist > 0 and leftDist <= rightDist ) or rightDist < 0 ) then < -- if ( chatFrame.buttonSide ~= "left" ) then < -- FCF_SetButtonSide(chatFrame, "left"); < -- changed = 1; < -- end < -- else < -- if ( chatFrame.buttonSide ~= "right" or leftDist < 0 ) then < -- FCF_SetButtonSide(chatFrame, "right"); < -- changed = 1; < -- end < -- end < -- return changed; < --end < < --function FCF_SetButtonSide(chatFrame, buttonSide) < -- if ( chatFrame.buttonSide == buttonSide ) then < -- return; < -- end < -- if ( buttonSide == "left" ) then < -- getglobal(chatFrame:GetName().."BottomButton"):SetPoint("BOTTOMLEFT", chatFrame:GetName(), "BOTTOMLEFT", -32, -4); < -- elseif ( buttonSide == "right" ) then < -- getglobal(chatFrame:GetName().."BottomButton"):SetPoint("BOTTOMLEFT", chatFrame:GetName(), "BOTTOMRIGHT", 0, -4); < -- end < -- chatFrame.buttonSide = buttonSide; < --end < < --function FCF_GetButtonSide(chatFrame) < -- return chatFrame.buttonSide; < --end --- > function FCF_UpdateButtonSide(chatFrame) > local leftDist = chatFrame:GetLeft(); > local rightDist = GetScreenWidth() - chatFrame:GetRight(); > local changed = nil; > if (( leftDist > 0 and leftDist <= rightDist ) or rightDist < 0 ) then > if ( chatFrame.buttonSide ~= "left" ) then > FCF_SetButtonSide(chatFrame, "left"); > changed = 1; > end > else > if ( chatFrame.buttonSide ~= "right" or leftDist < 0 ) then > FCF_SetButtonSide(chatFrame, "right"); > changed = 1; > end > end > return changed; > end > > function FCF_SetButtonSide(chatFrame, buttonSide) > if ( chatFrame.buttonSide == buttonSide ) then > return; > end > if ( buttonSide == "left" ) then > getglobal(chatFrame:GetName().."BottomButton"):SetPoint("BOTTOMLEFT", chatFrame, "BOTTOMLEFT", -32, -4); > elseif ( buttonSide == "right" ) then > getglobal(chatFrame:GetName().."BottomButton"):SetPoint("BOTTOMLEFT", chatFrame, "BOTTOMRIGHT", 0, -4); > end > chatFrame.buttonSide = buttonSide; > end > > function FCF_GetButtonSide(chatFrame) > return chatFrame.buttonSide; > end 1035,1037c1035,1037 < value:SetPoint("TOPLEFT", DEFAULT_CHAT_FRAME:GetName(), "TOPLEFT", 0, 0); < value:SetPoint("BOTTOMLEFT", DEFAULT_CHAT_FRAME:GetName(), "BOTTOMLEFT", 0, 0); < value:SetPoint("BOTTOMRIGHT", DEFAULT_CHAT_FRAME:GetName(), "BOTTOMRIGHT", 0, 0); --- > value:SetPoint("TOPLEFT", DEFAULT_CHAT_FRAME, "TOPLEFT", 0, 0); > value:SetPoint("BOTTOMLEFT", DEFAULT_CHAT_FRAME, "BOTTOMLEFT", 0, 0); > value:SetPoint("BOTTOMRIGHT", DEFAULT_CHAT_FRAME, "BOTTOMRIGHT", 0, 0); 1066c1066 < dockRegion:SetPoint("LEFT", chatTab:GetName(), "CENTER", 0 , 0); --- > dockRegion:SetPoint("LEFT", chatTab, "CENTER", 0 , 0); 1143,1147c1143,1147 < --if ( frame == DEFAULT_CHAT_FRAME ) then < -- FCF_UpdateButtonSide(frame); < --else < -- FCF_SetButtonSide(frame, FCF_GetButtonSide(DEFAULT_CHAT_FRAME)); < --end --- > if ( frame == DEFAULT_CHAT_FRAME ) then > FCF_UpdateButtonSide(frame); > else > FCF_SetButtonSide(frame, FCF_GetButtonSide(DEFAULT_CHAT_FRAME)); > end 1173c1173 < dockRegion:SetPoint("RIGHT", frame:GetName(), "RIGHT", 0, 0); --- > dockRegion:SetPoint("RIGHT", frame, "RIGHT", 0, 0); 1328c1328 < if ( MultiBarBottomLeft:IsVisible() ) then --- > if ( MultiBarBottomLeft:IsShown() ) then 1333c1333 < elseif ( MultiBarBottomLeft:IsVisible() ) then --- > elseif ( MultiBarBottomLeft:IsShown() ) then 1364c1364 < --FCF_SetButtonSide(ChatFrame1, "left") --- > FCF_SetButtonSide(ChatFrame1, "left") 1372d1371 < FCF_UpdateCombatLogPosition(); 1382c1381 < --FCF_SetButtonSide(ChatFrame2, "right") --- > FCF_SetButtonSide(ChatFrame2, "right") diff -r FTC\Interface\FrameXML\FloatingChatFrame.xml Interface1700\FrameXML\FloatingChatFrame.xml 232c232 < --- > 241c241 < --- > 251,277c251 < < < < < < < < < < < < < < < < < < < < < < < < < < < --- > 597c571,574 <