Mercurial > wow > askmrrobot
comparison 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 |
comparison
equal
deleted
inserted
replaced
66:d6e0fd0ce57f | 67:932885bb1a6f |
---|---|
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 return "Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\Ubuntu-" .. style .. ".ttf" | 63 local region = Amr.RegionNames[GetCurrentRegion()] |
64 if region == "KR" or region == "CN" or region == "TW" then | |
65 return "Fonts\\FRIZQT__.TTF" | |
66 else | |
67 return "Interface\\AddOns\\" .. Amr.ADDON_NAME .. "\\Media\\Ubuntu-" .. style .. ".ttf" | |
68 end | |
64 end | 69 end |
65 | 70 |
66 -- 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) | 71 -- 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) |
67 function Amr.CreateFont(style, size, color, a) | 72 function Amr.CreateFont(style, size, color, a) |
68 local alpha = a or 1 | 73 local alpha = a or 1 |