- Ticket #162: 'no Monochrome font' available, added an experimental slash command: /run _detalhes:UseOutline ("MONOCHROME").

- Ticket #158: 'no elapsed time shown on report to chat', added the elapsed time when reporting a segment.
- Ticket #164: 'error when browsing segments', an attempt to fix the problem has been made.
This commit is contained in:
Tercio
2017-01-23 11:09:06 -02:00
parent d76f92a0eb
commit da8cd0359e
5 changed files with 57 additions and 10 deletions
+22
View File
@@ -745,10 +745,32 @@ end
outline = "THICKOUTLINE"
end
end
if (_detalhes.force_font_outline ~= "") then
if (_detalhes.force_font_outline == "OUTLINE") then
outline = "OUTLINE"
elseif (_detalhes.force_font_outline == "THICKOUTLINE") then
outline = "THICKOUTLINE"
elseif (_detalhes.force_font_outline == "MONOCHROME") then
outline = "MONOCHROME"
end
end
fontString:SetFont (fonte, size, outline)
end
function _detalhes:UseOutline (outline)
outline = outline or ""
_detalhes.force_font_outline = outline
for ID, instance in _detalhes:ListInstances() do
if (instance:IsEnabled()) then
instance:RefreshBars()
instance:InstanceReset()
instance:ReajustaGump()
end
end
end
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--> internal functions