It is currently September 21st, 2017, 9:26 pm


Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: December 3rd, 2014, 5:29 pm 
Joined: November 28th, 2014, 7:12 pm
Posts: 3
Offline

Hi LUI devs, i'm the author of a new damage meter called Details! (http://www.curse.com/addons/wow/details / http://i.imgur.com/xsLubhl.jpg) and I've been receiving questions about how to attach the meter window within LUI frames.
So i took a look inside LUI code and did the support by my self, and i want gently ask to you guys to apply the changes on the LUI core ;)
Thanks guys! I'll be watching this topic for further questions, so be free to ask anything.

The version used to make the changes was the Alpha r703 from curse.

LUI\modules\panels.lua: added the frame name reference
line 42:
Code:
meter = {
      Recount = "Recount_MainWindow",
      Omen = "OmenAnchor",
      Skada = "SkadaBarWindowSkada",
      Details = "DetailsBaseFrame1",
   }


LUI\LUI.xml: added the file to load
line 35:
Code:
<Script file="addons\details.lua"/>


LUI\LUI.lua:
line 1201:
Code:
   ResetDetails = {
      order = 2,
      type = "execute",
      name = "Restore Details!",
      func = function()
      LUICONFIG.Versions.details = nil
      LUI:InstallDetails()
      StaticPopup_Show("RELOAD_UI")
      end,
},


line 545:
Code:
LUI:InstallDetails()


line 460:
Code:
      if IsAddOnLoaded("Details") then
         LUICONFIG.Versions.details = nil
         LUI:InstallDetails()
      end


LUI\addons\details.lua:
Code:
local addonname, LUI = ...

LUI.Versions.details = 5

function LUI:InstallDetails()
   
   if (not IsAddOnLoaded ("Details")) then
      return
   end
   
   local ProfileName = UnitName ("player") .. " - " .. GetRealmName()
   if (LUI.db.global.luiconfig[ProfileName].Versions.details == LUI.Versions.details) then
      return
   end
   
   --> Get the window 1 object
   local Details = _G._detalhes
   local instance = Details:GetInstance (1)
   
   if (instance) then
      
      --> Set the skin to Default and then apply the Serenity.
      if (instance.skin ~= "Serenity") then
         instance:ChangeSkin ("Serenity")
      end
      
      --> Turn off the gradient wallpaper
      instance:InstanceWallpaper (false)

      --> Enable shadow on title bar buttons.
      instance:ToolbarMenuSetButtonsOptions (nil, true)
      
      --> Change the text font on title bar to prototype.
      instance:AttributeMenu (true, -20, 4, "Prototype", 11, nil, nil, true)
      
      --> Change bar's height to 14, using Skyline texture and 0 pixels spacement between bars.
      instance:SetBarSettings (14, "Skyline", nil, nil, nil, nil, nil, nil, nil, nil, 0)
      
      --> We don't need the close button, so, disable it.
      instance:ToolbarMenuSetButtons (nil, nil, nil, nil, nil, false)
      
      --> Always show the player bar even if hi/she isn't on top players.
      instance:SetBarFollowPlayer (true)
      
      --> Remove half of Details! tooltips border alpha.
      Details:SetTooltipBackdrop ("Blizzard Tooltip", 16, {1, 1, 1, 0.5})
      
      --> Enable bar animations.
      Details:SetUseAnimations (true)
      
      --> Set update speed to 0.3
      Details:SetWindowUpdateSpeed (0.3)
      
   end
   
end
Top
 Profile  
 
PostPosted: December 3rd, 2014, 10:02 pm 
User avatar

Joined: May 5th, 2013, 8:57 am
Posts: 698
Offline

Tercio wrote:
Hi LUI devs, i'm the author of a new damage meter called Details! (http://www.curse.com/addons/wow/details / http://i.imgur.com/xsLubhl.jpg) and I've been receiving questions about how to attach the meter window within LUI frames.
So i took a look inside LUI code and did the support by my self, and i want gently ask to you guys to apply the changes on the LUI core ;)
Thanks guys! I'll be watching this topic for further questions, so be free to ask anything.

The version used to make the changes was the Alpha r703 from curse.

Supporting other addons is a good thing! Cheers for the code, Siku or myself will look into it. :)
Top
 Profile  
 
PostPosted: December 5th, 2014, 6:07 am 
User avatar

Joined: May 5th, 2013, 8:57 am
Posts: 698
Offline

Looks OK (some variables need to be changed/updated but that's minor).

One thing I noticed is that when I click the LUI button to hide it the frame and titles disappears, but the bar didn't. Are you seeing this or did I miss something when patching my local version?
Top
 Profile  
 
PostPosted: December 5th, 2014, 7:20 pm 
Joined: November 28th, 2014, 7:12 pm
Posts: 3
Offline

Mule wrote:
Looks OK (some variables need to be changed/changed but that's minor).

One thing I noticed is that when I click the LUI button to hide it the frame and titles disappears, but the bar didn't. Are you seeing this or did I miss something when patching my local version?


Oh, sorry, didn't saw the issue, to fix run this whenever LUI loads:

Code:
local instance = _G._detalhes:GetInstance (1)
instance.rowframe:SetParent (instance.baseframe)
Top
 Profile  
 
PostPosted: December 15th, 2014, 5:28 am 
User avatar

Joined: May 5th, 2013, 8:57 am
Posts: 698
Offline

Found a place to add that, works nicely, and committed. I think there is a new release version being prepared so should hopefully be out in the wild soon.
Top
 Profile  
 
PostPosted: December 16th, 2014, 9:30 pm 
Joined: November 28th, 2014, 7:12 pm
Posts: 3
Offline

Thanks man, i appreciate.
Top
 Profile  
 
PostPosted: January 20th, 2017, 8:17 am 
Joined: January 20th, 2017, 8:11 am
Posts: 1
Offline

I know this is a really old thread, but I'm having the same issue as described when I try to attach my second Details! window to the same frame. The first window hides properly, but only hides the window and not the bar on DetailsBaseFrame2. Thanks.
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Powered by phpBB® Forum Software © phpBB Group