Fixes for Chinese Client: Added font option that displays CN characters correctly (for aura names, etc.) and fixed edge case where non-critical heal on others shows incorrect amount on the cinese client.

This commit is contained in:
toinetoine
2018-10-05 02:01:07 +08:00
parent 3663870b5f
commit 1f45c28601
3 changed files with 6 additions and 1 deletions
Binary file not shown.
@@ -3314,7 +3314,11 @@ function MikCEH.GetGlobalStringInfo(globalStringName)
-- Check for one of the types that need a string.
elseif (string.find(currentChar, "[cEefgGiouXxqs]")) then
-- Replace the format code with lua capture string syntax.
searchString = searchString .. "(.+)";
if GetLocale() == "zhCN" and globalStringName == "HEALEDSELFOTHER" then -- edge for outgoing heals on others case for zhCN client
searchString = searchString .. "([^0-9.]+)"
else
searchString = searchString .. "(.+)";
end
-- Increment the argument number.
argumentNumber = argumentNumber + 1;
+1
View File
@@ -114,6 +114,7 @@ MikSBT.AVAILABLE_FONTS = {
[28] = {Name="Myriad-Pro", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\Myriad-Pro.ttf"},
[29] = {Name="PT-Sans-Narrow-Bold", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\PT-Sans-Narrow-Bold.ttf"},
[30] = {Name="PT-Sans-Narrow-Regular", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\PT-Sans-Narrow-Regular.ttf"},
[31] = {Name="Simhei", Path="Interface\\Addons\\MikScrollingBattleText\\Fonts\\simhei.ttf"},
};
-- Holds the available font outlines.