diff ui/Ui.lua @ 67:932885bb1a6f v26

bug fix to gear swapping, fixed font issue with asian regions
author yellowfive
date Mon, 29 Jun 2015 17:05:47 -0700
parents cf2b6b9a8337
children 304d7ebb8e30
line wrap: on
line diff
--- a/ui/Ui.lua	Fri Jun 26 10:43:14 2015 -0700
+++ b/ui/Ui.lua	Mon Jun 29 17:05:47 2015 -0700
@@ -60,7 +60,12 @@
 end
 
 local function getFontPath(style)
-	return "Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\Ubuntu-" .. style .. ".ttf"
+	local region = Amr.RegionNames[GetCurrentRegion()]
+	if region == "KR" or region == "CN" or region == "TW" then
+		return "Fonts\\FRIZQT__.TTF"
+	else
+		return "Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\Ubuntu-" .. style .. ".ttf"
+	end
 end
 
 -- create a font with the specified style (Regular, Bold, Italic), size (pixels, max of 32), color (object with R, G, B), and alpha (if not specified, defaults to 1)