Quantcast
WoWInterface - View Single Post - combat log unlock undock move lock
View Single Post
08-24-20, 06:03 AM   #3
spanky0312
A Deviate Faerie Dragon
AddOn Author - Click to view addons
Join Date: Mar 2013
Posts: 11
Originally Posted by Uitat View Post
i set to shown just to make sure it didn't accidentally get hidden

then i asked it to undock

then in a local frame which fires only on player enters world itrolls out the imprtant placement and scaling sh** for the UI

Lua Code:
  1. SetChatWindowShown(2, 1)
  2. SetChatWindowDocked(2, 0)
  3. SetCVar("useuiScale", 1);
  4. SetCVar("displaySpellActivationOverlays", 0);
  5. SetCVar("uiScale", 0.64);
  6. local aspect = CreateFrame("frame", nil, UIParent)
  7. aspect:RegisterEvent("PLAYER_ENTERING_WORLD")
  8. aspect:SetScript("OnEvent", function(self, event)              
  9.     UIParent:SetScale(0.6) -- DO NOT CHANGE THIS
  10.     ChatFrame2:ClearAllPoints()
  11.     ChatFrame1:ClearAllPoints()
  12.     ChatFrame1:SetPoint('BOTTOMLEFT','UIParent','BOTTOMLEFT',1955 ,45)
  13.     ChatFrame1:SetPoint("TOPRIGHT","UIParent","BOTTOMLEFT",1445 ,265)
  14.     ChatFrame2:SetPoint('BOTTOMLEFT','UIParent','BOTTOMLEFT',955 ,45)
  15.     ChatFrame2:SetPoint("TOPRIGHT","UIParent","BOTTOMLEFT",445 ,265)   
  16.     aspect:UnregisterAllEvents()
  17. end)

Sorry for necro but gotta comment on this, exactly what I am looking for Thanks!

Last edited by spanky0312 : 08-24-20 at 06:36 AM.
  Reply With Quote