comparison ui/Ui.lua @ 73:304d7ebb8e30 v29

small bug fixes for item upgrades, gear swapping
author yellowfive
date Tue, 17 Nov 2015 20:52:06 -0800
parents 932885bb1a6f
children 0515882856f1
comparison
equal deleted inserted replaced
72:55598ba0d435 73:304d7ebb8e30
58 function Amr.ColorToHex(color, alpha) 58 function Amr.ColorToHex(color, alpha)
59 return decToHex(alpha) .. decToHex(color.R) .. decToHex(color.G) .. decToHex(color.B) 59 return decToHex(alpha) .. decToHex(color.R) .. decToHex(color.G) .. decToHex(color.B)
60 end 60 end
61 61
62 local function getFontPath(style) 62 local function getFontPath(style)
63 local region = Amr.RegionNames[GetCurrentRegion()] 63 local locale = GetLocale()
64 if region == "KR" or region == "CN" or region == "TW" then 64 if locale == "koKR" then
65 return "Fonts\\FRIZQT__.TTF" 65 return "Fonts\\2002.TTF"
66 elseif locale == "zhCN" then
67 return "Fonts\\ARKai_T.ttf"
68 elseif locale == "zhTW" then
69 return "Fonts\\bLEI00D.ttf"
70 elseif locale == "ruRU" then
71 return "Fonts\\FRIZQT___CYR.TTF"
66 else 72 else
67 return "Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\Ubuntu-" .. style .. ".ttf" 73 return "Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\Ubuntu-" .. style .. ".ttf"
68 end 74 end
69 end 75 end
70 76