Skip to content

Commit

Permalink
Updated the positioning of VoiceChannelButton and ChatFrameMenuButton…
Browse files Browse the repository at this point in the history
… in the chatbox module
  • Loading branch information
Wutname1 committed Jul 30, 2024
1 parent 437a11b commit ede1276
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Modules/Chatbox.lua
Original file line number Diff line number Diff line change
Expand Up @@ -592,20 +592,17 @@ function module:SetupChatboxes()

local VoiceChannelButton = _G['ChatFrameChannelButton']
VoiceChannelButton:ClearAllPoints()
if SUI.IsRetail then
VoiceChannelButton:SetPoint('TOPRIGHT', QJTB, 'TOPLEFT', -1, 0)
else
VoiceChannelButton:SetPoint('TOPRIGHT', GDM, 'TOPRIGHT', -2, -3)
end

VoiceChannelButton:SetParent(GDM)
VoiceChannelButton:SetPoint('RIGHT', QJTB, 'LEFT', -1, 0)
StripTextures(VoiceChannelButton)
VoiceChannelButton:SetSize(18, 18)
VoiceChannelButton.Icon:SetTexture(icon)
VoiceChannelButton.Icon:SetTexCoord(0.1484375, 0.359375, 0.1484375, 0.359375)
VoiceChannelButton.Icon:SetScale(0.8)

ChatFrameMenuButton:ClearAllPoints()
ChatFrameMenuButton:SetPoint('TOPRIGHT', VoiceChannelButton, 'TOPLEFT', -1, 0)
ChatFrameMenuButton:SetParent(GDM)
ChatFrameMenuButton:SetPoint('RIGHT', VoiceChannelButton, 'LEFT', -1, -2)
ChatFrameMenuButton:SetSize(18, 18)
StripTextures(ChatFrameMenuButton)
ChatFrameMenuButton.Icon = ChatFrameMenuButton:CreateTexture(nil, 'ARTWORK')
Expand Down

0 comments on commit ede1276

Please sign in to comment.