Quantcast WoWInterface: SVN - hebChat - Path Comparison - / Rev 3 and / Rev 4

WoWInterface SVN hebChat

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 3 to Rev 4
    Reverse comparison

Rev 3 → Rev 4

trunk/core.lua
15,7 → 15,6
local origChatEdit_OnTextChanged = ChatEdit_OnTextChanged
local origChatEdit_OnTabPressed = ChatEdit_OnTabPressed
local origChatEdit_UpdateHeader = ChatEdit_UpdateHeader
local origFCF_OpenTemporaryWindow = FCF_OpenTemporaryWindow
local origSendChatMessage = SendChatMessage
local origBNSendWhisper = BNSendWhisper
local _G = _G
65,8 → 64,6
-- Save number of chars to identify delete
hebChat.lastText = ""
 
-- Saved variables
 
---------------
-- Delay Frame
---------------
138,8 → 135,8
if type(hebChatDB[k]) ~= type(v) then
hebChatDB[k] = v
end
end
 
end
 
-- Register to PLAYER_ENTERING_WORLD
hebChat:RegisterEvent("PLAYER_ENTERING_WORLD")
 
162,9 → 159,11
ChatEdit_UpdateHeader = hebChat.ChatEdit_UpdateHeader
 
-- Hook FCF_OpenTemporaryWindow
FCF_OpenTemporaryWindow = hebChat.FCF_OpenTemporaryWindow
hooksecurefunc("FCF_OpenTemporaryWindow", function(...)
hebChatDelayFrame:delay(0.1, hebChat.setChatFont)
end)
 
-- Init font Dropdown list
-- Init font objects list
hebChat:createFontObjects()
 
-- Graphic button enable button
216,7 → 215,7
LibStub("AceConfig-3.0"):RegisterOptionsTable("hebChat", self.options)
hebChat.configPanel = AceConfigDialog:AddToBlizOptions("hebChat", "hebChat")
 
end
end
 
-- PLAYER_ENTERING_WORLD event
function hebChat.PLAYER_ENTERING_WORLD(...)
327,12 → 326,14
end
 
function hebChat:toggleLanguage()
if (hebChatDB.currentLang == "EN") then
hebChatDB.currentLang = "HE"
else
hebChatDB.currentLang = "EN"
if hebChatDB.graphicButtonEN then
if (hebChatDB.currentLang == "EN") then
hebChatDB.currentLang = "HE"
else
hebChatDB.currentLang = "EN"
end
hebChatLangButton:SetText(hebChatDB.currentLang)
end
hebChatLangButton:SetText(hebChatDB.currentLang)
end
 
-----------------------
364,14 → 365,14
end
end
 
-- Selecting a font from dropdown list
function hebChat:hebChatDropDownList_OnClick(arg1)
-- Selecting a chat frame font from fonts list
function hebChat:hebChatFontList_OnClick(value)
 
hebChatDB.currentFont = arg1
hebChatDB.currentFont = value
if (hebChatDB.globalEn) then
hebChatDB.hebFont = arg1
hebChatDB.hebFont = value
else
hebChatDB.defaultFont = arg1
hebChatDB.defaultFont = value
end
 
hebChat:setChatFont()
749,7 → 750,7
hebChat.lastText = newString;
end -- function text2Heb (editBox)
 
-- Fix editBox wrapping for Hebrew text
-- Fix chat frame text wrapping for Hebrew text
function hebChat.hebChatFixWrap(chatFrame, event, msg, author, ...)
local _, _, _, _, _, _, _, _, _, _, _, isMobile = ...
local remainingString = ""
964,12 → 965,6
return origChatEdit_UpdateHeader(self, ...)
end
 
-- Hook FCF_OpenTemporaryWindow - set chat font when new chat window is created.
function hebChat.FCF_OpenTemporaryWindow(...)
hebChatDelayFrame:delay(0.1, hebChat.setChatFont)
return origFCF_OpenTemporaryWindow(...)
 
end
-- Hook WIM history viewer
function hebChat:ShowHistoryViewer(...)
origWIMShowHistoryViewer(...)
trunk/Options.lua
51,7 → 51,7
end,
},
 
graphicButtonEN = {
langButtonEN = {
order = 3,
type = "toggle",
name = "Enable language toggle button (recommended)",
94,14 → 94,14
name = "Font settings",
},
 
fontDropDownList = {
fontList = {
order = 7,
type = "select",
name = "Font:",
desc = "Set a font for the chat frame.",
get = function() return hebChatDB.currentFont end,
set = function(info, value)
hebChat:hebChatDropDownList_OnClick(value)
hebChat:hebChatFontList_OnClick(value)
end,
values = hebChat.fontsName,
style = "radio",
trunk/hebChat.toc
1,7 → 1,7
## Interface: 50001
## Author: Animor
## Title: hebChat
## Version: 2.1
## Version: 2.11
## Notes: Support Hebrew characters in chat
## X-Category: Chat/Communication
## SavedVariablesPerCharacter: hebChatDB