Merge pull request #10 from toinetoine/master

Fixes for Chinese Client: Outgoing heals amount shown incorrectly and no Chinese character supporting font merged with master branch.

Thanks for the fix 👍
This commit is contained in:
AtheneGenesis
2018-10-04 20:20:04 +02:00
committed by GitHub
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.