- added outline options for left text.
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
|
||||
local dversion = 29
|
||||
local dversion = 30
|
||||
local major, minor = "DetailsFramework-1.0", dversion
|
||||
local DF, oldminor = LibStub:NewLibrary (major, minor)
|
||||
|
||||
|
||||
+1
-1
@@ -1496,7 +1496,7 @@ local SimplePanel_frame_backdrop_border_color = {0, 0, 0, 1}
|
||||
|
||||
function DF:CreateScaleBar (frame, config)
|
||||
local scaleBar = DF:CreateSlider (frame, 120, 14, 0.6, 1.6, 0.1, config.scale, true, "ScaleBar", nil, "Scale:", DF:GetTemplate ("slider", "OPTIONS_SLIDER_TEMPLATE"), DF:GetTemplate ("font", "OPTIONS_FONT_TEMPLATE"))
|
||||
scaleBar:SetPoint ("right", frame.Close, "left", -2, 0)
|
||||
scaleBar:SetPoint ("right", frame.Close, "left", -26, 0)
|
||||
scaleBar:SetFrameLevel (DF.FRAMELEVEL_OVERLAY)
|
||||
scaleBar.OnValueChanged = function (_, _, value)
|
||||
config.scale = value
|
||||
|
||||
@@ -3,8 +3,8 @@
|
||||
|
||||
_ = nil
|
||||
_detalhes = LibStub("AceAddon-3.0"):NewAddon("_detalhes", "AceTimer-3.0", "AceComm-3.0", "AceSerializer-3.0", "NickTag-1.0")
|
||||
_detalhes.build_counter = 2745 --it's 2745 for release
|
||||
_detalhes.userversion = "v5.13"
|
||||
_detalhes.build_counter = 2755 --it's 2755 for release
|
||||
_detalhes.userversion = "v5.14"
|
||||
_detalhes.realversion = 110 --core version
|
||||
_detalhes.version = _detalhes.userversion .. " (core " .. _detalhes.realversion .. ")"
|
||||
Details = _detalhes
|
||||
@@ -21,7 +21,8 @@ do
|
||||
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
|
||||
|
||||
--[[
|
||||
|cFFFFFF00v5.13 (|cFFFFCC00July 30, 2016|r|cFFFFFF00)|r:\n\n
|
||||
|cFFFFFF00v5.14 (|cFFFFCC00August 2, 2016|r|cFFFFFF00)|r:\n\n
|
||||
|cFFFFFF00-|r Added outline option for bar's Left Text (experimental).\n\n
|
||||
|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n
|
||||
|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n
|
||||
|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n
|
||||
@@ -34,7 +35,7 @@ do
|
||||
--
|
||||
|
||||
--Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
|
||||
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.13 (|cFFFFCC00July 30, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n|cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n|cFFFFFF00-|r fixed the spam of 'segment not added to overall'.\n\n|cFFFFFF00-|r stormlash and blessing of might workarouds.\n\n|cFFFFFF00-|r warrior rampage fix.\n\n|cFFFFFF00-|r hunter throw axe fix.\n\n|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
|
||||
Loc ["STRING_VERSION_LOG"] = "|cFFFFFF00v5.14 (|cFFFFCC00August 2, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Added outline option for bar's Left Text (experimental).\n\n|cFFFFFF00-|r 'Minimalistic' is once again the default skin for new windows, changed from the 'Safe Beta Skin'.\n\n|cFFFFFF00-|r Fixed some issues with spec detection and LibGroupInSpecT-1.1 has need enabled back again.\n\n|cFFFFFF00-|r Fixed an issue with micro displays not loading settings after a logon.\n\n|cFFFFFF00-|r Another wave of workarounds to prevent the client image cache bug.\n\n|cFFFFFF00-|r fixed the spam of 'segment not added to overall'.\n\n|cFFFFFF00-|r stormlash and blessing of might workarouds.\n\n|cFFFFFF00-|r warrior rampage fix.\n\n|cFFFFFF00-|r hunter throw axe fix.\n\n|cFFFFFF00v5.10c (|cFFFFCC00July 22, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Trying a workaround for the wow client's texture cache bug which causes FPS drops, please delete the file 'spec_icons_normal.TGA' from details/image folder.\n\n|cFFFFFF00v5.10b (|cFFFFCC00July 21, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed warlock's Soul Effigy.\n\n|cFFFFFF00v5.10a (|cFFFFCC00July 20, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Fixed an issue with Calc Leech plugin.\n\n|cFFFFFF00v5.10 (|cFFFFCC00July 19, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Using .BLP format for images. If you have FPS drops caused by Details!, delete ALL .TGA files inside the folder Details/Images/\n\n|cFFFFFF00v5.8 (|cFFFFCC00July 11, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Big framework update. May have some bugs, please report to us if you find any.\n\n|cFFFFFF00v5.8 (|cFFFFCC00June 27, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Energy and Resources are working properly now.\n\n|cFFFFFF00-|r Added raid information for The Emerald Nightmare.\n\n|cFFFFFF00v5.7 (|cFFFFCC00June 16, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Most of the raid plugins got added on this version.\n\n|cFFFFFF00-|r Plugin 'Damage, The Game!' also got damage goals updated.\n\n|cFFFFFF00v5.5 (|cFFFFCC00June 03, 2016|r|cFFFFFF00)|r:\n\n|cFFFFFF00-|r Default skin is now 'Safe Skin Legion Beta' which helps a little with the disabled texture issue.\n|cFFFFFF00-|r If you're using another skin, you may change at the options panel /details options > Skin Selection.\n|cFFFFFF00-|r You also can disable the class icons at Bars: General > Icon File."
|
||||
|
||||
Loc ["STRING_DETAILS1"] = "|cffffaeaeDetails!:|r "
|
||||
|
||||
|
||||
@@ -192,8 +192,12 @@ _detalhes.instance_defaults = {
|
||||
fixed_text_color = {1, 1, 1},
|
||||
--left text outline effect
|
||||
textL_outline = true,
|
||||
textL_outline_small = true,
|
||||
textL_outline_small_color = {0, 0, 0, 1},
|
||||
--right text outline effect
|
||||
textR_outline = false,
|
||||
textR_outline_small = true,
|
||||
textR_outline_small_color = {0, 0, 0, 1},
|
||||
--bar height
|
||||
height = 14,
|
||||
--font size
|
||||
|
||||
+4
-3
@@ -2881,7 +2881,7 @@ SPELL_POWER_OBSOLETE2 = 15;
|
||||
end
|
||||
end
|
||||
|
||||
function parser:GetRealHitSourceFromBuffOwner (container, actor_serial, acter_name, acter_flags) --actor can be anything, a player, pet, etc
|
||||
function parser:GetRealHitSourceFromBuffOwner (container, actor_serial, actor_name, actor_flags) --actor can be anything, a player, pet, etc
|
||||
local target_buffs = container [actor_serial]
|
||||
if (target_buffs) then
|
||||
local real_source = source_cache [target_buffs [target_buffs.offset]]
|
||||
@@ -2890,10 +2890,11 @@ SPELL_POWER_OBSOLETE2 = 15;
|
||||
if (real_source) then
|
||||
return unpack (real_source)
|
||||
else
|
||||
print ("Details! Debug: buff real source not found.")
|
||||
--print ("Details! Debug: buff real source not found.")
|
||||
return actor_serial, actor_name, actor_flags
|
||||
end
|
||||
end
|
||||
return actor_serial, acter_name, acter_flags
|
||||
return actor_serial, actor_name, actor_flags
|
||||
end
|
||||
|
||||
function parser:Handle3rdPartyBuff (container, source, target, is_applying, name, flags) --source/target are GUIDs/is_applying bool/name and flag are from the caster
|
||||
|
||||
+66
-12
@@ -6211,7 +6211,7 @@ end
|
||||
|
||||
|
||||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
-- Appearance - Texts ~5
|
||||
-- Appearance - Texts 6
|
||||
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
function window:CreateFrame5()
|
||||
|
||||
@@ -6365,6 +6365,51 @@ function window:CreateFrame5()
|
||||
|
||||
window:CreateLineBackground2 (frame5, "textLeftOutlineSlider", "textLeftOutlineLabel", Loc ["STRING_OPTIONS_TEXT_LOUTILINE_DESC"])
|
||||
|
||||
--> left outline small
|
||||
g:NewSwitch (frame5, _, "$parentTextLeftOutlineSmallSlider", "textLeftOutlineSmallSlider", 60, 20, _, _, instance.row_info.textL_outline_small, nil, nil, nil, nil, options_switch_template)
|
||||
g:NewLabel (frame5, _, "$parentTextLeftOutlineSmallLabel", "textLeftOutlineSmallLabel", "Outline", "GameFontHighlightLeft")
|
||||
|
||||
frame5.textLeftOutlineSmallSlider:SetPoint ("left", frame5.textLeftOutlineSmallLabel, "right", 2)
|
||||
frame5.textLeftOutlineSmallSlider:SetAsCheckBox()
|
||||
frame5.textLeftOutlineSmallSlider.OnSwitch = function (self, instance, value)
|
||||
instance:SetBarTextSettings (nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, value)
|
||||
--(13, smalloutline_left, smalloutlinecolor_left, smalloutline_right, smalloutlinecolor_right)
|
||||
--14 15 16 17
|
||||
|
||||
if (_detalhes.options_group_edit and not DetailsOptionsWindow.loading_settings) then
|
||||
for _, this_instance in ipairs (instance:GetInstanceGroup()) do
|
||||
if (this_instance ~= instance) then
|
||||
this_instance:SetBarTextSettings (nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, value)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
_detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance)
|
||||
end
|
||||
|
||||
window:CreateLineBackground2 (frame5, "textLeftOutlineSmallSlider", "textLeftOutlineSmallLabel", "Text Outline")
|
||||
|
||||
--> outline small color
|
||||
local left_outline_small_callback = function (button, r, g, b, a)
|
||||
local instance = _G.DetailsOptionsWindow.instance
|
||||
instance:SetBarTextSettings (nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, {r, g, b, a})
|
||||
|
||||
if (_detalhes.options_group_edit and not DetailsOptionsWindow.loading_settings) then
|
||||
for _, this_instance in ipairs (instance:GetInstanceGroup()) do
|
||||
if (this_instance ~= instance) then
|
||||
this_instance:SetBarTextSettings (nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, nil, {r, g, b, a})
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
_detalhes:SendOptionsModifiedEvent (DetailsOptionsWindow.instance)
|
||||
end
|
||||
g:NewColorPickButton (frame5, "$parentOutlineSmallColorLeft", "OutlineSmallColorLeft", left_outline_small_callback, false, options_button_template)
|
||||
local OutlineSmallColorTextLeft = g:NewLabel (frame5, _, "$parentOutlineSmallLabelLeft", "OutlineSmallColorLabelLeft", "Outline Color", "GameFontHighlightLeft")
|
||||
frame5.OutlineSmallColorLeft:SetPoint ("left", OutlineSmallColorTextLeft, "right", 2, 0)
|
||||
|
||||
window:CreateLineBackground2 (frame5, "OutlineSmallColorLeft", "OutlineSmallColorLabelLeft", "Outline Color")
|
||||
|
||||
--> left show positio number
|
||||
g:NewSwitch (frame5, _, "$parentPositionNumberSlider", "PositionNumberSlider", 60, 20, _, _, instance.row_info.textL_show_number, nil, nil, nil, nil, options_switch_template)
|
||||
g:NewLabel (frame5, _, "$parentPositionNumberLabel", "PositionNumberLabel", Loc ["STRING_OPTIONS_TEXT_LPOSITION"], "GameFontHighlightLeft")
|
||||
@@ -6847,6 +6892,8 @@ function window:CreateFrame5()
|
||||
local left_side = {
|
||||
{"LeftTextAnchorLabel", 1, true},
|
||||
{"textLeftOutlineLabel", 2},
|
||||
{"textLeftOutlineSmallLabel", 2},
|
||||
{"OutlineSmallColorLabelLeft", 2},
|
||||
{"classColorsLeftTextLabel", 3},
|
||||
{"PositionNumberLabel", 4},
|
||||
{"cutomLeftTextLabel", 5, true},
|
||||
@@ -10968,6 +11015,23 @@ end --> if not window
|
||||
_G.DetailsOptionsWindow5RightTextShowPSSlider.MyObject:SetValue (editing_instance.row_info.textR_show_data [2])
|
||||
_G.DetailsOptionsWindow5RightTextShowPercentSlider.MyObject:SetValue (editing_instance.row_info.textR_show_data [3])
|
||||
|
||||
_G.DetailsOptionsWindow5UseClassColorsLeftTextSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow5UseClassColorsLeftTextSlider.MyObject:SetValue (editing_instance.row_info.textL_class_colors)
|
||||
_G.DetailsOptionsWindow5UseClassColorsRightTextSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow5UseClassColorsRightTextSlider.MyObject:SetValue (editing_instance.row_info.textR_class_colors)
|
||||
|
||||
local r, g, b, a = unpack (editing_instance.row_info.textL_outline_small_color)
|
||||
_G.DetailsOptionsWindow5OutlineSmallColorLeft.MyObject:SetColor (r, g, b, a)
|
||||
|
||||
_G.DetailsOptionsWindow5TextLeftOutlineSmallSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow5TextLeftOutlineSmallSlider.MyObject:SetValue (editing_instance.row_info.textL_outline_small)
|
||||
|
||||
|
||||
_G.DetailsOptionsWindow5TextLeftOutlineSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow5TextLeftOutlineSlider.MyObject:SetValue (editing_instance.row_info.textL_outline)
|
||||
_G.DetailsOptionsWindow5TextRightOutlineSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow5TextRightOutlineSlider.MyObject:SetValue (editing_instance.row_info.textR_outline)
|
||||
|
||||
--> window 6
|
||||
_G.DetailsOptionsWindow6BackdropDropdown.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow6BackdropDropdown.MyObject:Select (editing_instance.backdrop_texture)
|
||||
@@ -11384,17 +11448,7 @@ end --> if not window
|
||||
--
|
||||
_G.DetailsOptionsWindow4ClassColorSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow4ClassColorSlider.MyObject:SetValue (editing_instance.row_info.texture_class_colors)
|
||||
|
||||
|
||||
_G.DetailsOptionsWindow5UseClassColorsLeftTextSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow5UseClassColorsLeftTextSlider.MyObject:SetValue (editing_instance.row_info.textL_class_colors)
|
||||
_G.DetailsOptionsWindow5UseClassColorsRightTextSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow5UseClassColorsRightTextSlider.MyObject:SetValue (editing_instance.row_info.textR_class_colors)
|
||||
|
||||
_G.DetailsOptionsWindow5TextLeftOutlineSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow5TextLeftOutlineSlider.MyObject:SetValue (editing_instance.row_info.textL_outline)
|
||||
_G.DetailsOptionsWindow5TextRightOutlineSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow5TextRightOutlineSlider.MyObject:SetValue (editing_instance.row_info.textR_outline)
|
||||
|
||||
--
|
||||
_G.DetailsOptionsWindow9UseBackgroundSlider.MyObject:SetFixedParameter (editing_instance)
|
||||
_G.DetailsOptionsWindow9BackgroundDropdown.MyObject:SetFixedParameter (editing_instance)
|
||||
|
||||
@@ -3968,7 +3968,7 @@ function gump:CriaNovaBarra (instancia, index)
|
||||
return new_row
|
||||
end
|
||||
|
||||
function _detalhes:SetBarTextSettings (size, font, fixedcolor, leftcolorbyclass, rightcolorbyclass, leftoutline, rightoutline, customrighttextenabled, customrighttext, percentage_type, showposition, customlefttextenabled, customlefttext)
|
||||
function _detalhes:SetBarTextSettings (size, font, fixedcolor, leftcolorbyclass, rightcolorbyclass, leftoutline, rightoutline, customrighttextenabled, customrighttext, percentage_type, showposition, customlefttextenabled, customlefttext, smalloutline_left, smalloutlinecolor_left, smalloutline_right, smalloutlinecolor_right)
|
||||
|
||||
--> size
|
||||
if (size) then
|
||||
@@ -4008,6 +4008,25 @@ function _detalhes:SetBarTextSettings (size, font, fixedcolor, leftcolorbyclass,
|
||||
self.row_info.textR_outline = rightoutline
|
||||
end
|
||||
|
||||
-- left text small outline and small outline color
|
||||
if (type (smalloutline_left) == "boolean") then
|
||||
self.row_info.textL_outline_small = smalloutline_left
|
||||
end
|
||||
if (smalloutlinecolor_left) then
|
||||
local red, green, blue, alpha = gump:ParseColors (smalloutlinecolor_left)
|
||||
local c = self.row_info.textL_outline_small_color
|
||||
c[1], c[2], c[3], c[4] = red, green, blue, alpha
|
||||
end
|
||||
-- right text small outline and small outline color
|
||||
if (type (smalloutline_right) == "boolean") then
|
||||
self.row_info.textR_outline_small = smalloutline_right
|
||||
end
|
||||
if (smalloutlinecolor_right) then
|
||||
local red, green, blue, alpha = gump:ParseColors (smalloutlinecolor_right)
|
||||
local c = self.row_info.textR_outline_small_color
|
||||
c[1], c[2], c[3], c[4] = red, green, blue, alpha
|
||||
end
|
||||
|
||||
--> custom left text
|
||||
if (type (customlefttextenabled) == "boolean") then
|
||||
self.row_info.textL_enable_custom_text = customlefttextenabled
|
||||
@@ -4393,6 +4412,10 @@ function _detalhes:InstanceRefreshRows (instancia)
|
||||
--> outline values
|
||||
local left_text_outline = self.row_info.textL_outline
|
||||
local right_text_outline = self.row_info.textR_outline
|
||||
local textL_outline_small = self.row_info.textL_outline_small
|
||||
local textL_outline_small_color = self.row_info.textL_outline_small_color
|
||||
local textR_outline_small = self.row_info.textR_outline_small
|
||||
local textR_outline_small_color = self.row_info.textR_outline_small_color
|
||||
|
||||
--> texture color values
|
||||
local texture_class_color = self.row_info.texture_class_colors
|
||||
@@ -4545,6 +4568,20 @@ function _detalhes:InstanceRefreshRows (instancia)
|
||||
self:SetFontOutline (row.texto_direita, nil)
|
||||
end
|
||||
|
||||
--> small outline
|
||||
if (textL_outline_small) then
|
||||
local c = textL_outline_small_color
|
||||
row.texto_esquerdo:SetShadowColor (c[1], c[2], c[3], c[4])
|
||||
else
|
||||
row.texto_esquerdo:SetShadowColor (0, 0, 0, 0)
|
||||
end
|
||||
if (textR_outline_small) then
|
||||
local c = textR_outline_small_color
|
||||
row.texto_direita:SetShadowColor (c[1], c[2], c[3], c[4])
|
||||
else
|
||||
row.texto_direita:SetShadowColor (0, 0, 0, 0)
|
||||
end
|
||||
|
||||
--> texture:
|
||||
row.textura:SetTexture (texture_file)
|
||||
row.right_to_left_texture:SetTexture (texture_file)
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user