View Single Post
08-04-16, 09:22 AM   #2
Uitat
A Chromatic Dragonspawn
 
Uitat's Avatar
AddOn Author - Click to view addons
Join Date: May 2011
Posts: 162
figured a way out

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)
__________________
  Reply With Quote