Commit b6646792 authored by Ivaria's avatar Ivaria
Browse files

Flags have no default value when invoking SetFont on a Font object

parent d4f1e782
......@@ -724,7 +724,7 @@ end
--
function VUHDO_lnfPatchFont(aComponent, aLabelName)
if not sIsNotInChina then _G[aComponent:GetName() .. aLabelName]:SetFont(VUHDO_OPTIONS_FONT_NAME, 12); end
if not sIsNotInChina then _G[aComponent:GetName() .. aLabelName]:SetFont(VUHDO_OPTIONS_FONT_NAME, 12, ""); end
end
......@@ -794,7 +794,7 @@ function VUHDO_customizeIconText(aParent, aHeight, aLabel, aSetup)
aLabel:SetShadowColor(0, 0, 0, tShadowAlpha);
end
aLabel:SetFont(aSetup["FONT"], tFactor * aSetup["SCALE"], tOutline);
aLabel:SetFont(aSetup["FONT"], tFactor * aSetup["SCALE"], tOutline or "");
aLabel:SetShadowOffset(1, -1);
......
......@@ -1135,7 +1135,7 @@ do
if tValue.textSize and tValue.font then
local tFont = VUHDO_getFont(tValue["font"]);
_G[aColorSwatch:GetName() .. "TitleString"]:SetFont(tFont, tValue["textSize"]);
_G[aColorSwatch:GetName() .. "TitleString"]:SetFont(tFont, tValue["textSize"], "");
end
end
end
......
......@@ -115,7 +115,7 @@ function VUHDO_lnfStandardFontUpdateDemoText()
tOutlineText = tOutlineText .. "OUTLINEMONOCHROME";
end
tLabel:SetFont(sTable["FONT"], sTable["SCALE"] * 0.01 * 32, tOutlineText);
tLabel:SetFont(sTable["FONT"], sTable["SCALE"] * 0.01 * 32, tOutlineText or "");
if (sTable["COLOR"] ~= nil) then
tLabel:SetShadowColor(sTable["COLOR"]["R"], sTable["COLOR"]["G"], sTable["COLOR"]["B"], tShadowAlpha);
......
......@@ -426,10 +426,10 @@ local function VUHDO_initBarTexts(aButton, aHealthBar, aWidth)
tNameText:SetWidth(aWidth);
tNameText:SetHeight(sMainFontHeight);
tNameText:SetFont(sMainFont, sMainFontHeight, sOutlineText);
tNameText:SetFont(sMainFont, sMainFontHeight, sOutlineText or "");
tNameText:SetShadowColor(0, 0, 0, sShadowAlpha);
tLifeText:SetFont(sMainFont, sLifeFontHeight, sOutlineText);
tLifeText:SetFont(sMainFont, sLifeFontHeight, sOutlineText or "");
tLifeText:SetShadowColor(0, 0, 0, sShadowAlpha);
tLifeText:SetText("");
......@@ -503,7 +503,7 @@ local function VUHDO_initOverhealText(aHealthBar, aWidth)
tOvhText:SetHeight(sMainFontHeight);
tOvhColor = VUHDO_PANEL_SETUP["BAR_COLORS"]["OVERHEAL_TEXT"];
tOvhText:SetTextColor(tOvhColor["TR"], tOvhColor["TG"], tOvhColor["TB"], tOvhColor["TO"]);
tOvhText:SetFont(sMainFont, sMainFontHeight);
tOvhText:SetFont(sMainFont, sMainFontHeight, "");
tOvhText:SetJustifyH("CENTER");
tOvhText:SetText("");
......
......@@ -67,7 +67,7 @@ local function VUHDO_setTooltipLine(aText, anIsLeft, aLineNum, aColor, aTextSize
if aColor then tLabel:SetTextColor(VUHDO_textColor(aColor)); end
if (aTextSize or 0) ~= 0 then
tLabel:SetFont(GameFontNormal:GetFont(), aTextSize);
tLabel:SetFont(GameFontNormal:GetFont(), aTextSize, "");
end
if anIsLeft then
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment