Syiana / SUI

SUI - The Dark Side of World of Warcraft
https://www.curseforge.com/wow/addons/sui
36 stars 16 forks source link

[REQUEST] Chat editbox skin #153

Closed illum1n4ti closed 3 weeks ago

illum1n4ti commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Go to 'line 90 in chat core.lua in chat module'
  2. U need this !Beautycase. maybe u could add in ur embedded folder

    -- Chat skin for k = 3, 8 do select(k, _G[chat.."EditBox"]:GetRegions()):SetTexture(nil) end

    Mixin(_G[chat.."EditBox"], BackdropTemplateMixin) _G[chat.."EditBox"]:SetBackdrop({ bgFile = "Interface\Buttons\WHITE8x8", insets = { left = 3, right = 3, top = 2, bottom = 2 }, })

    _G[chat.."EditBox"]:SetBackdropColor(0, 0, 0, 0.5) _G[chat.."EditBox"]:CreateBeautyBorder(11) _G[chat.."EditBox"]:SetBeautyBorderPadding(-2, -1, -2, -1, -2, -1, -2, -1) _G[chat.."EditBox"]:SetBeautyBorderTexture("white")

    hooksecurefunc("ChatEdit_UpdateHeader", function(editBox) local chatType = editBox:GetAttribute("chatType") if not chatType then return end

      local info = ChatTypeInfo[chatType]
      _G[chat.."EditBox"]:SetBeautyBorderColor(info.r, info.g, info.b)

    end)

Expected behavior A clear and concise description of what you expected to happen.

Screenshots [url=https://ibb.co/rs7R6dT][img]https://i.ibb.co/GTx42HB/chatbar.png[/img][/url] [url=https://ibb.co/S6qFyHp][img]https://i.ibb.co/mRQfTd7/chatbar-guild.png[/img][/url]

Which World of Warcraft version (please complete the following information):

Additional context let me know if u need help :)

muleyo commented 3 weeks ago

Please make a pull request instead.