Merging pull request 'Add support for transliteration' by Vardex.
This commit adds the code changes in Details! that is required to make the new library work.
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
-- damage object
|
||||
--2672
|
||||
|
||||
local _detalhes = _G._detalhes
|
||||
local Loc = LibStub ("AceLocale-3.0"):GetLocale ( "Details" )
|
||||
local Translit = LibStub ("LibTranslit-1.0")
|
||||
local gump = _detalhes.gump
|
||||
local _
|
||||
|
||||
@@ -2672,6 +2672,11 @@ local InBarIconPadding = 6
|
||||
bar_number = bar.colocacao .. ". "
|
||||
end
|
||||
|
||||
--translate cyrillic alphabet to western alphabet by Vardex (https://github.com/Vardex May 22, 2019)
|
||||
if (instance.row_info.textL_translit_text) then
|
||||
self.displayName = Translit:Transliterate(self.displayName, "!")
|
||||
end
|
||||
|
||||
if (enemy) then
|
||||
if (arena_enemy) then
|
||||
if (_detalhes.show_arena_role_icon) then
|
||||
@@ -5158,11 +5163,7 @@ end
|
||||
if (not no_refresh) then
|
||||
_detalhes.refresh:r_atributo_damage (actor, shadow)
|
||||
end
|
||||
|
||||
--a refer�ncia do .owner pode ter sido apagada?
|
||||
--os 2 segmentos foram juntados por�m a refer�ncia do owner de um pet criado ali em cima deve ser nula?
|
||||
--teria que analisar se o novo objecto � de um pet e colocar a refer�ncia do owner no pet novamente, ou pelo menos verificar se a refer�ncia � valida
|
||||
|
||||
|
||||
--> tempo decorrido (captura de dados)
|
||||
local end_time = actor.end_time
|
||||
if (not actor.end_time) then
|
||||
|
||||
@@ -1,4 +1,12 @@
|
||||
|
||||
--default values for instances (windows)
|
||||
--if a new value is added here and it does not exists (nil) in the instance, it'll be copied into it
|
||||
--the value added can be overwritten in the skins.lua file or /run Details:GetWindow(1).<value> =
|
||||
--or thought a new option in the options panel
|
||||
|
||||
--values added into 'instance_skin_ignored_values' won't be passed when the user exports the profile or exports the skin individually.
|
||||
|
||||
|
||||
local _detalhes = _G._detalhes
|
||||
local SharedMedia = LibStub:GetLibrary("LibSharedMedia-3.0")
|
||||
|
||||
@@ -197,6 +205,8 @@ _detalhes.instance_defaults = {
|
||||
textR_separator = ",",
|
||||
--left text bar number
|
||||
textL_show_number = true,
|
||||
--translit text by Vardex (https://github.com/Vardex May 22, 2019)
|
||||
textL_translit_text = false,
|
||||
--if text class color are false, this color will be used
|
||||
fixed_text_color = {1, 1, 1},
|
||||
--left text outline effect
|
||||
|
||||
Reference in New Issue
Block a user