Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions Core.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ local L, C, S = PhanxChat.L, PhanxChat.ChannelNames, PhanxChat.ShortStrings
PhanxChat.name = PHANXCHAT
PhanxChat.debug = false

PhanxChat.compatRelease = WOW_PROJECT_ID == WOW_PROJECT_MAINLINE

PhanxChat.RunOnLoad = {}
PhanxChat.RunOnProcessFrame = {}

Expand Down
12 changes: 8 additions & 4 deletions Modules/HideButtons.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,21 @@ function PhanxChat:SetHideButtons(v)
ChatFrameMenuButton:SetScript("OnShow", ChatFrameMenuButton.Hide)
ChatFrameMenuButton:Hide()

QuickJoinToastButton:SetScript("OnShow", QuickJoinToastButton.Hide)
QuickJoinToastButton:Hide()
if PhanxChat.compatRelease then
QuickJoinToastButton:SetScript("OnShow", QuickJoinToastButton.Hide)
QuickJoinToastButton:Hide()
end
elseif not self.isLoading then
ChatFrameChannelButton:SetScript("OnShow", nil)
ChatFrameChannelButton:Show()

ChatFrameMenuButton:SetScript("OnShow", nil)
ChatFrameMenuButton:Show()

QuickJoinToastButton:SetScript("OnShow", nil)
QuickJoinToastButton:Show()
if PhanxChat.compatRelease then
QuickJoinToastButton:SetScript("OnShow", nil)
QuickJoinToastButton:Show()
end
end
end

Expand Down
8 changes: 5 additions & 3 deletions Modules/HideTextures.lua
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ function PhanxChat:HideTextures(frame)
editBox.right:SetAlpha(0)
editBox.mid:SetAlpha(0)

editBox.focusLeft:SetTexture([[Interface\ChatFrame\UI-ChatInputBorder-Left2]])
editBox.focusRight:SetTexture([[Interface\ChatFrame\UI-ChatInputBorder-Right2]])
editBox.focusMid:SetTexture([[Interface\ChatFrame\UI-ChatInputBorder-Mid2]])
if PhanxChat.compatRelease then
editBox.focusLeft:SetTexture([[Interface\ChatFrame\UI-ChatInputBorder-Left2]])
editBox.focusRight:SetTexture([[Interface\ChatFrame\UI-ChatInputBorder-Right2]])
editBox.focusMid:SetTexture([[Interface\ChatFrame\UI-ChatInputBorder-Mid2]])
end
end

local tab = frame.tab
Expand Down