Code Monkey home page Code Monkey logo

Comments (4)

jsimpson avatar jsimpson commented on June 11, 2024

This problem actually shows up in a few places in the UI. I'm planning to submit a pull request to fix it but I haven't had much time for WoW lately, unfortunately.

The fix for this specific case is to have tbar inherit from BackdropTemplateMixin, e.g., Mixin(tbar, BackdropTemplateMixin):

if IsAddOnLoaded("DBM-Core") then
  hooksecurefunc(DBT, "CreateBar", function(self)
    for bar in self:GetBarIterator() do
      local frame = bar.frame
      local tbar = _G[frame:GetName().."Bar"]
      local spark = _G[frame:GetName().."BarSpark"]
      --local texture = _G[frame:GetName().."BarTexture"]
      local icon1 = _G[frame:GetName().."BarIcon1"]
      local icon2 = _G[frame:GetName().."BarIcon2"]
      local name = _G[frame:GetName().."BarName"]
      local timer = _G[frame:GetName().."BarTimer"]

      spark:SetTexture(nil)

      timer:ClearAllPoints()
      timer:SetPoint("RIGHT", tbar, "RIGHT", -4, 0)
      timer:SetFont(STANDARD_TEXT_FONT, 22)
      timer:SetJustifyH("RIGHT")

      name:ClearAllPoints()
      name:SetPoint("LEFT", tbar, 4, 0)
      name:SetPoint("RIGHT", timer, "LEFT", -4, 0)
      name:SetFont(STANDARD_TEXT_FONT, 15)

      Mixin(tbar, BackdropTemplateMixin)
      tbar:CreateBeautyBorder(10)
      tbar:SetBeautyBorderPadding(tbar:GetHeight() + 3, 2, 2, 2, tbar:GetHeight() + 3, 2, 2, 2)
      tbar:SetBackdrop({bgFile = "Interface\\Buttons\\WHITE8x8"})
      tbar:SetBackdropColor(0, 0, 0, 0.5)

      icon1:SetTexCoord(0.07, 0.93, 0.07, 0.93)
      icon1:SetSize(tbar:GetHeight(), tbar:GetHeight() - 1)

      icon2:SetTexCoord(0.07, 0.93, 0.07, 0.93)
      icon2:SetSize(tbar:GetHeight(), tbar:GetHeight() - 1)
    end
  end)
end

from neavui.

boecherbrandt avatar boecherbrandt commented on June 11, 2024

Yep, that did it. Thank you!

from neavui.

lithammer avatar lithammer commented on June 11, 2024

Fixed by GH-307 (thanks @jsimpson)

from neavui.

lithammer avatar lithammer commented on June 11, 2024

I'm using BigWigs Bossmods, which probably why this has gone unnoticed. I suspect that it's not only the DBM skinning that suffers from this, unfortunately.

from neavui.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.