View Single Post
09-27-17, 02:59 AM   #1
Layback_
An Onyxian Warder
Join Date: Feb 2016
Posts: 358
Has anyone tried to set size and position of 'Skada' windows externally?

Hi all,

I guess this might be a bit inappropriate question to ask in 'this' forum as it is more like a specific addon related question.

But, I honestly had nowhere else to ask this since official forum for 'Skada' seems to be dead
(I made a comment on its project page tho...)


So, I am attempting to write a code which will alter 'Skada' windows' size and position externally and I tried something like this so far.

Lua Code:
  1. local skadaWindows = Skada:GetWindows();
  2.  
  3. for i = 1, #skadaWindows do
  4.     local barGroup = skadaWindows[i].bargroup;
  5.  
  6.     barGroup:SetSize(WIDTH, HEIGHT);
  7.  
  8.     if i == 1 then
  9.         barGroup:SetPoint("BOTTOMLEFT", UIParent, "BOTTOMLEFT");
  10.     else
  11.         barGroup:SetPoint("LEFT", skadaWindows[i - 1].bargroup, "RIGHT");
  12.     end
  13. end

This would partially work, but also cause a taint where the bar size is not being re-sized with its parent, a window...
(well... tbh it can't be said a "taint" as what I've done here is to re-size the window, not a bar...)


↑ You see that the right end of bar is sticking out after re-sizing

I can't be sure, but Skada seems to utilize AceGUI to create its objects which I've never played with


Any helps, please?

Last edited by Layback_ : 09-27-17 at 05:56 AM.
  Reply With Quote