mirror of
https://github.com/brues-code/Vanilla_MikScrollingBattleText.git
synced 2026-10-05 13:10:01 +00:00
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:
Executable
BIN
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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user