From 2c273f57860e0411fe6142a13f6205ef224f1bf7 Mon Sep 17 00:00:00 2001 From: shagu Date: Thu, 10 Jan 2019 12:41:26 +0100 Subject: [PATCH] chat: skin chinese language selection button --- modules/chat.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/chat.lua b/modules/chat.lua index 6bffca16..5bc44c6a 100644 --- a/modules/chat.lua +++ b/modules/chat.lua @@ -655,8 +655,20 @@ pfUI:RegisterModule("chat", function () pfUI.chat.editbox = CreateFrame("Frame", "pfChatInputBox", UIParent) if C.chat.text.input_height == "0" then pfUI.chat.editbox:SetHeight(22) + + if ChatFrameEditBoxLanguage then + pfUI.api.SkinButton(ChatFrameEditBoxLanguage) + ChatFrameEditBoxLanguage:SetWidth(22) + ChatFrameEditBoxLanguage:SetHeight(22) + end else pfUI.chat.editbox:SetHeight(C.chat.text.input_height) + + if ChatFrameEditBoxLanguage then + pfUI.api.SkinButton(ChatFrameEditBoxLanguage) + ChatFrameEditBoxLanguage:SetWidth(C.chat.text.input_height) + ChatFrameEditBoxLanguage:SetHeight(C.chat.text.input_height) + end end -- to make sure SHOW_MULTI_ACTIONBAR_1 is set to the real value, we need to wait.