More bug fixes
This commit is contained in:
+9
-9
@@ -59,7 +59,7 @@
|
||||
|
||||
for _, actor in ipairs(Details.tabela_vigente[class_type_dano]._ActorTable) do
|
||||
|
||||
if (not actor.grupo and not actor.owner and not actor.nome:find ("[*]") and bitBand(actor.flag_original, 0x00000060) ~= 0) then --0x20+0x40 neutral + enemy reaction
|
||||
if (not actor.grupo and not actor.owner and not actor.nome:find("[*]") and bitBand(actor.flag_original, 0x00000060) ~= 0) then --0x20+0x40 neutral + enemy reaction
|
||||
for name, _ in pairs(actor.targets) do
|
||||
if (name == Details.playername) then
|
||||
return actor.nome
|
||||
@@ -218,7 +218,7 @@
|
||||
end
|
||||
|
||||
for index = 1, 5, 1 do
|
||||
if (UnitExists ("boss"..index)) then
|
||||
if (UnitExists("boss"..index)) then
|
||||
local guid = UnitGUID("boss"..index)
|
||||
if (guid) then
|
||||
local serial = Details:GetNpcIdFromGuid (guid)
|
||||
@@ -645,7 +645,7 @@
|
||||
|
||||
--add to storage
|
||||
if (not InCombatLockdown() and not UnitAffectingCombat("player") and not Details.logoff_saving_data) then
|
||||
local successful, errortext = pcall (Details.Database.StoreEncounter)
|
||||
local successful, errortext = pcall(Details.Database.StoreEncounter)
|
||||
if (not successful) then
|
||||
Details:Msg("error occurred on Details.Database.StoreEncounter():", errortext)
|
||||
end
|
||||
@@ -661,7 +661,7 @@
|
||||
|
||||
--add to storage
|
||||
if (not InCombatLockdown() and not UnitAffectingCombat("player") and not Details.logoff_saving_data) then
|
||||
local successful, errortext = pcall (Details.Database.StoreWipe)
|
||||
local successful, errortext = pcall(Details.Database.StoreWipe)
|
||||
if (not successful) then
|
||||
Details:Msg("error occurred on Details.Database.StoreWipe():", errortext)
|
||||
end
|
||||
@@ -704,7 +704,7 @@
|
||||
if (bossFunction) then
|
||||
if (bitBand(bossFunctionType, 0x2) ~= 0) then --end of combat
|
||||
if (not Details.logoff_saving_data) then
|
||||
local successful, errortext = pcall (bossFunction, Details.tabela_vigente)
|
||||
local successful, errortext = pcall(bossFunction, Details.tabela_vigente)
|
||||
if (not successful) then
|
||||
Details:Msg("error occurred on Encounter Boss Function:", errortext)
|
||||
end
|
||||
@@ -1095,11 +1095,11 @@
|
||||
if (not IsInRaid() and not IsInGroup()) then
|
||||
return
|
||||
end
|
||||
local _, playerClass = UnitClass ("player")
|
||||
local _, playerClass = UnitClass("player")
|
||||
local specIndex = DetailsFramework.GetSpecialization()
|
||||
local playerSpecID
|
||||
if (specIndex) then
|
||||
playerSpecID = DetailsFramework.GetSpecializationInfo (specIndex)
|
||||
playerSpecID = DetailsFramework.GetSpecializationInfo(specIndex)
|
||||
end
|
||||
|
||||
if (playerSpecID and playerClass) then
|
||||
@@ -1527,7 +1527,7 @@
|
||||
end
|
||||
|
||||
function Details:SetTrashSuppression (n)
|
||||
assert (type(n) == "number", "SetTrashSuppression expects a number on index 1.")
|
||||
assert(type(n) == "number", "SetTrashSuppression expects a number on index 1.")
|
||||
if (n < 0) then
|
||||
n = 0
|
||||
end
|
||||
@@ -1703,7 +1703,7 @@
|
||||
GameCooltip:SetBannerText (1, (not Details.ignore_nicktag and avatar [1]) or objeto.nome, textPoint, avatarTextColor, 14, SharedMedia:Fetch ("font", Details.tooltip.fontface)) --text [1] nickname
|
||||
end
|
||||
else
|
||||
--if (Details.remove_realm_from_name and objeto.displayName:find ("%*")) then
|
||||
--if (Details.remove_realm_from_name and objeto.displayName:find("%*")) then
|
||||
-- GameCooltip:SetBannerImage (1, [[Interface\AddOns\Details\images\background]], 20, 30, avatarPoint, avatarTexCoord, {0, 0, 0, 0}) --overlay [2] avatar path
|
||||
-- GameCooltip:SetBannerImage (2, [[Interface\PetBattles\Weather-BurntEarth]], 160, 30, {{"bottomleft", "topleft", 0, -5}, {"bottomright", "topright", 0, -5}}, {0.12, 0.88, 1, 0}, {0, 0, 0, 0.1}) --overlay [2] avatar path {0, 0, 0, 0}
|
||||
-- GameCooltip:SetBannerText (1, objeto.nome, {"left", "left", 11, -8}, {1, 1, 1, 0.7}, 10, SharedMedia:Fetch ("font", Details.tooltip.fontface)) --text [1] nickname
|
||||
|
||||
+20
-20
@@ -222,7 +222,7 @@ end
|
||||
local statusbar_enabled1 = window1.show_statusbar
|
||||
local statusbar_enabled2 = window2.show_statusbar
|
||||
|
||||
table.wipe (window1.snap); table.wipe (window2.snap)
|
||||
table.wipe(window1.snap); table.wipe(window2.snap)
|
||||
window1.snap [3] = 2; window2.snap [1] = 1;
|
||||
window1.horizontalSnap = true; window2.horizontalSnap = true
|
||||
|
||||
@@ -425,12 +425,12 @@ function _detalhes:ResetSpecCache (forced)
|
||||
local isininstance = IsInInstance()
|
||||
|
||||
if (forced or (not isininstance and not _detalhes.in_group)) then
|
||||
table.wipe (_detalhes.cached_specs)
|
||||
table.wipe(_detalhes.cached_specs)
|
||||
|
||||
if (_detalhes.track_specs) then
|
||||
local my_spec = DetailsFramework.GetSpecialization()
|
||||
if (type(my_spec) == "number") then
|
||||
local spec_number = DetailsFramework.GetSpecializationInfo (my_spec)
|
||||
local spec_number = DetailsFramework.GetSpecializationInfo(my_spec)
|
||||
if (type(spec_number) == "number") then
|
||||
local pguid = UnitGUID(_detalhes.playername)
|
||||
if (pguid) then
|
||||
@@ -441,7 +441,7 @@ function _detalhes:ResetSpecCache (forced)
|
||||
end
|
||||
|
||||
elseif (_detalhes.in_group and not isininstance) then
|
||||
table.wipe (_detalhes.cached_specs)
|
||||
table.wipe(_detalhes.cached_specs)
|
||||
|
||||
if (_detalhes.track_specs) then
|
||||
if (IsInRaid()) then
|
||||
@@ -635,12 +635,12 @@ local task_timers = {
|
||||
|
||||
function _detalhes:RegisterBackgroundTask (name, func, priority, ...)
|
||||
|
||||
assert (type(self) == "table", "RegisterBackgroundTask 'self' must be a table.")
|
||||
assert (type(name) == "string", "RegisterBackgroundTask param #1 must be a string.")
|
||||
assert(type(self) == "table", "RegisterBackgroundTask 'self' must be a table.")
|
||||
assert(type(name) == "string", "RegisterBackgroundTask param #1 must be a string.")
|
||||
if (type(func) == "string") then
|
||||
assert (type(self [func]) == "function", "RegisterBackgroundTask param #2 function not found on main object.")
|
||||
assert(type(self [func]) == "function", "RegisterBackgroundTask param #2 function not found on main object.")
|
||||
else
|
||||
assert (type(func) == "function", "RegisterBackgroundTask param #2 expect a function or function name.")
|
||||
assert(type(func) == "function", "RegisterBackgroundTask param #2 expect a function or function name.")
|
||||
end
|
||||
|
||||
priority = priority or "LOW"
|
||||
@@ -775,7 +775,7 @@ function _detalhes.storage:GetBestFromGuild (diff, encounter_id, role, dps, guil
|
||||
if (not role) then
|
||||
role = "damage"
|
||||
end
|
||||
role = string.lower (role)
|
||||
role = string.lower(role)
|
||||
if (role == "damager") then
|
||||
role = "damage"
|
||||
elseif (role == "healer") then
|
||||
@@ -839,7 +839,7 @@ function _detalhes.storage:GetPlayerGuildRank (diff, encounter_id, role, playern
|
||||
if (not role) then
|
||||
role = "damage"
|
||||
end
|
||||
role = string.lower (role)
|
||||
role = string.lower(role)
|
||||
if (role == "damager") then
|
||||
role = "damage"
|
||||
elseif (role == "healer") then
|
||||
@@ -920,7 +920,7 @@ function _detalhes.storage:GetBestFromPlayer (diff, encounter_id, role, playerna
|
||||
if (not role) then
|
||||
role = "damage"
|
||||
end
|
||||
role = string.lower (role)
|
||||
role = string.lower(role)
|
||||
if (role == "damager") then
|
||||
role = "damage"
|
||||
elseif (role == "healer") then
|
||||
@@ -1266,7 +1266,7 @@ function _detalhes.storage:GetPlayerData (diff, encounter_id, playername)
|
||||
end
|
||||
|
||||
local t = {}
|
||||
assert (type(playername) == "string", "PlayerName must be a string.")
|
||||
assert(type(playername) == "string", "PlayerName must be a string.")
|
||||
|
||||
|
||||
if (not diff) then
|
||||
@@ -1334,8 +1334,8 @@ function _detalhes.storage:GetEncounterData (diff, encounter_id, guild)
|
||||
|
||||
local data = db [diff]
|
||||
|
||||
assert (data, "Difficulty not found. Use: 14, 15 or 16.")
|
||||
assert (type(encounter_id) == "number", "EncounterId must be a number.")
|
||||
assert(data, "Difficulty not found. Use: 14, 15 or 16.")
|
||||
assert(type(encounter_id) == "number", "EncounterId must be a number.")
|
||||
|
||||
data = data [encounter_id]
|
||||
|
||||
@@ -1723,7 +1723,7 @@ function Details.Database.StoreEncounter(combat)
|
||||
player_name = player_name .. "-" .. player_realm
|
||||
end
|
||||
|
||||
local _, _, class = UnitClass (player_name)
|
||||
local _, _, class = UnitClass(player_name)
|
||||
|
||||
local damage_actor = damage_container_pool [damage_container_hash [player_name]]
|
||||
if (damage_actor) then
|
||||
@@ -1736,7 +1736,7 @@ function Details.Database.StoreEncounter(combat)
|
||||
player_name = player_name .. "-" .. player_realm
|
||||
end
|
||||
|
||||
local _, _, class = UnitClass (player_name)
|
||||
local _, _, class = UnitClass(player_name)
|
||||
|
||||
local heal_actor = healing_container_pool [healing_container_hash [player_name]]
|
||||
if (heal_actor) then
|
||||
@@ -1769,11 +1769,11 @@ function Details.Database.StoreEncounter(combat)
|
||||
|
||||
if (myBestDps > d_one) then
|
||||
if (not _detalhes.deny_score_messages) then
|
||||
print(Loc ["STRING_DETAILS1"] .. format (Loc ["STRING_SCORE_NOTBEST"], _detalhes:ToK2 (d_one), _detalhes:ToK2 (myBestDps), onencounter.date, mybest[2]))
|
||||
print(Loc ["STRING_DETAILS1"] .. format(Loc ["STRING_SCORE_NOTBEST"], _detalhes:ToK2 (d_one), _detalhes:ToK2 (myBestDps), onencounter.date, mybest[2]))
|
||||
end
|
||||
else
|
||||
if (not _detalhes.deny_score_messages) then
|
||||
print(Loc ["STRING_DETAILS1"] .. format (Loc ["STRING_SCORE_BEST"], _detalhes:ToK2 (d_one)))
|
||||
print(Loc ["STRING_DETAILS1"] .. format(Loc ["STRING_SCORE_BEST"], _detalhes:ToK2 (d_one)))
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1978,7 +1978,7 @@ function ilvl_core:CalcItemLevel (unitid, guid, shout)
|
||||
|
||||
if (ilvl_core.forced_inspects [guid]) then
|
||||
if (type(ilvl_core.forced_inspects [guid].callback) == "function") then
|
||||
local okey, errortext = pcall (ilvl_core.forced_inspects[guid].callback, guid, unitid, ilvl_core.forced_inspects[guid].param1, ilvl_core.forced_inspects[guid].param2)
|
||||
local okey, errortext = pcall(ilvl_core.forced_inspects[guid].callback, guid, unitid, ilvl_core.forced_inspects[guid].param1, ilvl_core.forced_inspects[guid].param2)
|
||||
if (not okey) then
|
||||
_detalhes:Msg("Error on QueryInspect callback: " .. errortext)
|
||||
end
|
||||
@@ -2069,7 +2069,7 @@ function ilvl_core:GetItemLevel (unitid, guid, is_forced, try_number)
|
||||
end
|
||||
|
||||
local NotifyInspectHook = function(unitid)
|
||||
local unit = unitid:gsub ("%d+", "")
|
||||
local unit = unitid:gsub("%d+", "")
|
||||
|
||||
if ((IsInRaid() or IsInGroup()) and (_detalhes:GetZoneType() == "raid" or _detalhes:GetZoneType() == "party")) then
|
||||
local guid = UnitGUID(unitid)
|
||||
|
||||
+4
-4
@@ -77,9 +77,9 @@
|
||||
local nome = esta_classe.nome
|
||||
|
||||
if (is_in_instance and _detalhes.remove_realm_from_name) then
|
||||
esta_classe.displayName = nome:gsub (("%-.*"), "")
|
||||
esta_classe.displayName = nome:gsub(("%-.*"), "")
|
||||
elseif (_detalhes.remove_realm_from_name) then
|
||||
esta_classe.displayName = nome:gsub (("%-.*"), "") --"%*"
|
||||
esta_classe.displayName = nome:gsub(("%-.*"), "") --"%*"
|
||||
else
|
||||
esta_classe.displayName = nome
|
||||
end
|
||||
@@ -205,9 +205,9 @@
|
||||
local nome = esta_classe.nome
|
||||
|
||||
if (is_in_instance and _detalhes.remove_realm_from_name) then
|
||||
esta_classe.displayName = nome:gsub (("%-.*"), "")
|
||||
esta_classe.displayName = nome:gsub(("%-.*"), "")
|
||||
elseif (_detalhes.remove_realm_from_name) then
|
||||
esta_classe.displayName = nome:gsub (("%-.*"), "") --%*
|
||||
esta_classe.displayName = nome:gsub(("%-.*"), "") --%*
|
||||
else
|
||||
esta_classe.displayName = nome
|
||||
end
|
||||
|
||||
+20
-20
@@ -241,7 +241,7 @@
|
||||
[66992] = 49921, --offhand
|
||||
|
||||
--Seal of Command
|
||||
[20424] = 69403,
|
||||
[20424] = 69403, --53739 and 53733
|
||||
}
|
||||
|
||||
else --retail
|
||||
@@ -577,7 +577,7 @@
|
||||
local targetLine = ""
|
||||
|
||||
for i = 1, 5 do
|
||||
local boss = UnitExists ("boss" .. i)
|
||||
local boss = UnitExists("boss" .. i)
|
||||
if (boss) then
|
||||
local target = UnitName ("boss" .. i .. "target")
|
||||
if (target and type(target) == "string") then
|
||||
@@ -1002,7 +1002,7 @@
|
||||
if (who_serial ~= "") then
|
||||
damage_cache [who_serial] = este_jogador
|
||||
else
|
||||
if (who_name:find ("%[")) then
|
||||
if (who_name:find("%[")) then
|
||||
damage_cache [who_name] = este_jogador
|
||||
local _, _, icon = _GetSpellInfo(spellid or 1)
|
||||
este_jogador.spellicon = icon
|
||||
@@ -1284,7 +1284,7 @@
|
||||
else
|
||||
if (
|
||||
(bitBand(alvo_flags, REACTION_FRIENDLY) ~= 0 and bitBand(who_flags, REACTION_FRIENDLY) ~= 0) or --ajdt d' brx
|
||||
(raid_members_cache [alvo_serial] and raid_members_cache [who_serial] and alvo_serial:find ("Player") and who_serial:find ("Player")) --amrl
|
||||
(raid_members_cache [alvo_serial] and raid_members_cache [who_serial] and alvo_serial:find("Player") and who_serial:find("Player")) --amrl
|
||||
) then
|
||||
is_friendly_fire = true
|
||||
end
|
||||
@@ -1431,7 +1431,7 @@
|
||||
if (who_serial ~= "") then
|
||||
damage_cache [who_serial] = este_jogador
|
||||
else
|
||||
if (who_name:find ("%[")) then
|
||||
if (who_name:find("%[")) then
|
||||
damage_cache [who_name] = este_jogador
|
||||
local _, _, icon = _GetSpellInfo(spellid or 1)
|
||||
este_jogador.spellicon = icon
|
||||
@@ -1636,7 +1636,7 @@
|
||||
if (who_serial ~= "") then
|
||||
damage_cache [who_serial] = este_jogador
|
||||
else
|
||||
if (who_name:find ("%[")) then
|
||||
if (who_name:find("%[")) then
|
||||
damage_cache [who_name] = este_jogador
|
||||
local _, _, icon = _GetSpellInfo(spellid or 1)
|
||||
este_jogador.spellicon = icon
|
||||
@@ -4175,7 +4175,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
end
|
||||
|
||||
if (not jaTem) then
|
||||
tinsert (_current_combat.last_events_tables [i] [1], 1, {
|
||||
tinsert(_current_combat.last_events_tables [i] [1], 1, {
|
||||
2,
|
||||
spellid,
|
||||
1,
|
||||
@@ -4412,18 +4412,18 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
if (last_index < _death_event_amt+1 and not t[last_index][4]) then
|
||||
for i = 1, last_index-1 do
|
||||
if (t[i][4] and t[i][4]+_death_event_amt > time) then
|
||||
tinsert (esta_morte, t[i])
|
||||
tinsert(esta_morte, t[i])
|
||||
end
|
||||
end
|
||||
else
|
||||
for i = last_index, _death_event_amt do --next index to 16
|
||||
if (t[i][4] and t[i][4]+_death_event_amt > time) then
|
||||
tinsert (esta_morte, t[i])
|
||||
tinsert(esta_morte, t[i])
|
||||
end
|
||||
end
|
||||
for i = 1, last_index-1 do --1 to latest index
|
||||
if (t[i][4] and t[i][4]+_death_event_amt > time) then
|
||||
tinsert (esta_morte, t[i])
|
||||
tinsert(esta_morte, t[i])
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -4470,7 +4470,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
end
|
||||
|
||||
local t = {esta_morte, time, thisPlayer.nome, thisPlayer.classe, maxHealth, minutos.."m "..segundos.."s", ["dead"] = true, ["last_cooldown"] = thisPlayer.last_cooldown, ["dead_at"] = decorrido}
|
||||
tinsert (_current_combat.last_events_tables, #_current_combat.last_events_tables+1, t)
|
||||
tinsert(_current_combat.last_events_tables, #_current_combat.last_events_tables+1, t)
|
||||
|
||||
if (_hook_deaths) then
|
||||
--send event to registred functions
|
||||
@@ -4583,7 +4583,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
end
|
||||
end
|
||||
|
||||
function _detalhes:CaptureGet (capture_type)
|
||||
function _detalhes:CaptureGet(capture_type)
|
||||
return _detalhes.capture_real [capture_type]
|
||||
end
|
||||
|
||||
@@ -4634,7 +4634,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
|
||||
function _detalhes:CaptureDisable (capture_type)
|
||||
|
||||
capture_type = string.lower (capture_type)
|
||||
capture_type = string.lower(capture_type)
|
||||
|
||||
if (capture_type == "damage") then
|
||||
token_list ["SPELL_PERIODIC_DAMAGE"] = nil
|
||||
@@ -4701,7 +4701,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
|
||||
function _detalhes:CaptureEnable (capture_type)
|
||||
|
||||
capture_type = string.lower (capture_type)
|
||||
capture_type = string.lower(capture_type)
|
||||
--retail
|
||||
if (capture_type == "damage") then
|
||||
token_list ["SPELL_PERIODIC_DAMAGE"] = parser.spell_dmg
|
||||
@@ -5235,7 +5235,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
_detalhes:EntrarEmCombate()
|
||||
end
|
||||
|
||||
if (not _detalhes:CaptureGet ("damage")) then
|
||||
if (not _detalhes:CaptureGet("damage")) then
|
||||
_detalhes:EntrarEmCombate()
|
||||
end
|
||||
|
||||
@@ -5316,7 +5316,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
--store a boss encounter when out of combat since it might need to load the storage
|
||||
if (_detalhes.schedule_store_boss_encounter) then
|
||||
if (not _detalhes.logoff_saving_data) then
|
||||
local successful, errortext = pcall (Details.Database.StoreEncounter)
|
||||
local successful, errortext = pcall(Details.Database.StoreEncounter)
|
||||
if (not successful) then
|
||||
_detalhes:Msg("error occurred on Details.Database.StoreEncounter():", errortext)
|
||||
end
|
||||
@@ -5326,7 +5326,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
|
||||
if (Details.schedule_store_boss_encounter_wipe) then
|
||||
if (not _detalhes.logoff_saving_data) then
|
||||
local successful, errortext = pcall (Details.Database.StoreWipe)
|
||||
local successful, errortext = pcall(Details.Database.StoreWipe)
|
||||
if (not successful) then
|
||||
_detalhes:Msg("error occurred on Details.Database.StoreWipe():", errortext)
|
||||
end
|
||||
@@ -5523,7 +5523,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
|
||||
local specIndex = DetailsFramework.GetSpecialization()
|
||||
if (specIndex) then
|
||||
local specID = DetailsFramework.GetSpecializationInfo (specIndex)
|
||||
local specID = DetailsFramework.GetSpecializationInfo(specIndex)
|
||||
if (specID and specID ~= 0) then
|
||||
local guid = UnitGUID("player")
|
||||
if (guid) then
|
||||
@@ -5555,7 +5555,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
if (_detalhes.zone_type == "none" and unit) then
|
||||
local serial = UnitGUID(unit)
|
||||
--the serial is valid and isn't THE player and the serial is from a player?
|
||||
if (serial and serial ~= UnitGUID("player") and serial:find ("Player")) then
|
||||
if (serial and serial ~= UnitGUID("player") and serial:find("Player")) then
|
||||
_detalhes.duel_candidates[serial] = GetTime()
|
||||
|
||||
local playerName = _detalhes:GetCLName(unit)
|
||||
@@ -5885,7 +5885,7 @@ local SPELL_POWER_PAIN = SPELL_POWER_PAIN or (PowerEnum and PowerEnum.Pain) or 1
|
||||
_detalhes.can_panic_mode = true
|
||||
end
|
||||
|
||||
if (_detalhes.CheckSwitchOnLogon and _detalhes.tabela_instancias[1] and _detalhes.tabela_instancias and getmetatable (_detalhes.tabela_instancias[1])) then
|
||||
if (_detalhes.CheckSwitchOnLogon and _detalhes.tabela_instancias[1] and _detalhes.tabela_instancias and getmetatable(_detalhes.tabela_instancias[1])) then
|
||||
tinsert(_detalhes_global.exit_log, "4 - Reversing switches.")
|
||||
currentStep = "Check Switch on Logon"
|
||||
xpcall (_detalhes.CheckSwitchOnLogon, saver_error)
|
||||
|
||||
+19
-19
@@ -29,7 +29,7 @@
|
||||
local instance = self:GetPluginInstance()
|
||||
if (instance) then
|
||||
self.row_info = self.row_info or {}
|
||||
_detalhes.table.copy (self.row_info, instance.row_info)
|
||||
_detalhes.table.copy(self.row_info, instance.row_info)
|
||||
self.bars_grow_direction = instance.bars_grow_direction
|
||||
self.row_height = instance.row_height
|
||||
self:SetBarGrowDirection()
|
||||
@@ -412,7 +412,7 @@
|
||||
Details.gump:ApplyStandardBackdrop(options_frame)
|
||||
Details.gump:CreateTitleBar (options_frame, title)
|
||||
|
||||
local bigdog = _detalhes.gump:NewImage (options_frame, [[Interface\MainMenuBar\UI-MainMenuBar-EndCap-Human]], 110, 120, nil, {1, 0, 0, 1}, "backgroundBigDog", "$parentBackgroundBigDog")
|
||||
local bigdog = _detalhes.gump:NewImage(options_frame, [[Interface\MainMenuBar\UI-MainMenuBar-EndCap-Human]], 110, 120, nil, {1, 0, 0, 1}, "backgroundBigDog", "$parentBackgroundBigDog")
|
||||
bigdog:SetPoint("bottomright", options_frame, "bottomright", -3, 0)
|
||||
bigdog:SetAlpha(.25)
|
||||
|
||||
@@ -486,7 +486,7 @@
|
||||
menuBackground:SetPoint("bottomright", f, "bottomleft", -2, 0)
|
||||
menuBackground:SetWidth(f.MenuButtonWidth + 6)
|
||||
|
||||
local bigdog = _detalhes.gump:NewImage (menuBackground, [[Interface\MainMenuBar\UI-MainMenuBar-EndCap-Human]], 180*0.7, 200*0.7, "overlay", {0, 1, 0, 1}, "backgroundBigDog", "$parentBackgroundBigDog")
|
||||
local bigdog = _detalhes.gump:NewImage(menuBackground, [[Interface\MainMenuBar\UI-MainMenuBar-EndCap-Human]], 180*0.7, 200*0.7, "overlay", {0, 1, 0, 1}, "backgroundBigDog", "$parentBackgroundBigDog")
|
||||
bigdog:SetPoint("bottomleft", custom_window, "bottomleft", 0, 1)
|
||||
bigdog:SetAlpha(0.3)
|
||||
|
||||
@@ -497,22 +497,22 @@
|
||||
bigdogRow:SetPoint("bottomleft", menuBackground, "bottomleft", 1, 1)
|
||||
bigdogRow:SetPoint("bottomright", menuBackground, "bottomright", -1, 1)
|
||||
bigdogRow:SetHeight(20)
|
||||
bigdogRow:SetColorTexture (.5, .5, .5, .1)
|
||||
bigdogRow:SetColorTexture(.5, .5, .5, .1)
|
||||
bigdogRow:Hide()
|
||||
|
||||
--
|
||||
--plugins menu title bar
|
||||
local titlebar_plugins = CreateFrame("frame", nil, menuBackground,"BackdropTemplate")
|
||||
PixelUtil.SetPoint (titlebar_plugins, "topleft", menuBackground, "topleft", 2, -3)
|
||||
PixelUtil.SetPoint (titlebar_plugins, "topright", menuBackground, "topright", -2, -3)
|
||||
PixelUtil.SetPoint(titlebar_plugins, "topleft", menuBackground, "topleft", 2, -3)
|
||||
PixelUtil.SetPoint(titlebar_plugins, "topright", menuBackground, "topright", -2, -3)
|
||||
titlebar_plugins:SetHeight(f.TitleHeight)
|
||||
titlebar_plugins:SetBackdrop({edgeFile = [[Interface\Buttons\WHITE8X8]], edgeSize = 1, bgFile = [[Interface\AddOns\Details\images\background]], tileSize = 64, tile = true})
|
||||
titlebar_plugins:SetBackdropColor(.5, .5, .5, 1)
|
||||
titlebar_plugins:SetBackdropBorderColor(0, 0, 0, 1)
|
||||
--title
|
||||
local titleLabel = _detalhes.gump:NewLabel(titlebar_plugins, titlebar_plugins, nil, "titulo", "Plugins", "GameFontHighlightLeft", 12, {227/255, 186/255, 4/255})
|
||||
PixelUtil.SetPoint (titleLabel, "center", titlebar_plugins , "center", 0, 0)
|
||||
PixelUtil.SetPoint (titleLabel, "top", titlebar_plugins , "top", 0, -5)
|
||||
PixelUtil.SetPoint(titleLabel, "center", titlebar_plugins , "center", 0, 0)
|
||||
PixelUtil.SetPoint(titleLabel, "top", titlebar_plugins , "top", 0, -5)
|
||||
|
||||
--plugins menu title bar
|
||||
local titlebar_tools = CreateFrame("frame", nil, menuBackground,"BackdropTemplate")
|
||||
@@ -522,8 +522,8 @@
|
||||
titlebar_tools:SetBackdropBorderColor(0, 0, 0, 1)
|
||||
--title
|
||||
local titleLabel = _detalhes.gump:NewLabel(titlebar_tools, titlebar_tools, nil, "titulo", "Tools", "GameFontHighlightLeft", 12, {227/255, 186/255, 4/255})
|
||||
PixelUtil.SetPoint (titleLabel, "center", titlebar_tools , "center", 0, 0)
|
||||
PixelUtil.SetPoint (titleLabel, "top", titlebar_tools , "top", 0, -5)
|
||||
PixelUtil.SetPoint(titleLabel, "center", titlebar_tools , "center", 0, 0)
|
||||
PixelUtil.SetPoint(titleLabel, "top", titlebar_tools , "top", 0, -5)
|
||||
|
||||
--scripts
|
||||
f:SetScript("OnShow", function()
|
||||
@@ -648,7 +648,7 @@
|
||||
--frame:SetScript("OnHide", on_hide)
|
||||
frame:HookScript ("OnHide", on_hide)
|
||||
frame:ClearAllPoints()
|
||||
PixelUtil.SetPoint (frame, "topleft", f, "topleft", 0, 0)
|
||||
PixelUtil.SetPoint(frame, "topleft", f, "topleft", 0, 0)
|
||||
frame:Show()
|
||||
end
|
||||
|
||||
@@ -695,13 +695,13 @@
|
||||
if (not addingTools) then
|
||||
--add the header
|
||||
addingTools = true
|
||||
PixelUtil.SetPoint (titlebar_tools, "topleft", menuBackground, "topleft", 2, f.MenuY + ( (index-1) * -f.MenuButtonHeight ) - index - 20)
|
||||
PixelUtil.SetPoint (titlebar_tools, "topright", menuBackground, "topright", -2, f.MenuY + ( (index-1) * -f.MenuButtonHeight ) - index - 20)
|
||||
PixelUtil.SetPoint(titlebar_tools, "topleft", menuBackground, "topleft", 2, f.MenuY + ( (index-1) * -f.MenuButtonHeight ) - index - 20)
|
||||
PixelUtil.SetPoint(titlebar_tools, "topright", menuBackground, "topright", -2, f.MenuY + ( (index-1) * -f.MenuButtonHeight ) - index - 20)
|
||||
end
|
||||
|
||||
PixelUtil.SetPoint (button, "top", menuBackground, "top", 0, f.MenuY + ( (index-1) * -f.MenuButtonHeight ) - index - 40)
|
||||
PixelUtil.SetPoint(button, "top", menuBackground, "top", 0, f.MenuY + ( (index-1) * -f.MenuButtonHeight ) - index - 40)
|
||||
else
|
||||
PixelUtil.SetPoint (button, "top", menuBackground, "top", 0, f.MenuY + ( (index-1) * -f.MenuButtonHeight ) - index)
|
||||
PixelUtil.SetPoint(button, "top", menuBackground, "top", 0, f.MenuY + ( (index-1) * -f.MenuButtonHeight ) - index)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -750,13 +750,13 @@
|
||||
end
|
||||
|
||||
--check if passed a plugin name, remove spaces and make it lower case
|
||||
wildcard = string.lower (wildcard)
|
||||
wildcard = wildcard:gsub ("%s", "")
|
||||
wildcard = string.lower(wildcard)
|
||||
wildcard = wildcard:gsub("%s", "")
|
||||
|
||||
for index, pluginInfoTable in ipairs(_detalhes.ToolBar.Menu) do
|
||||
local pluginName = pluginInfoTable [1]
|
||||
pluginName = string.lower (pluginName)
|
||||
pluginName = pluginName:gsub ("%s", "")
|
||||
pluginName = string.lower(pluginName)
|
||||
pluginName = pluginName:gsub("%s", "")
|
||||
|
||||
if (pluginName == wildcard) then
|
||||
local pluginObject = pluginInfoTable [3]
|
||||
|
||||
@@ -323,9 +323,9 @@
|
||||
end
|
||||
|
||||
if (custom ~= "") then
|
||||
custom = custom:gsub ("{spell}", spellname)
|
||||
custom = custom:gsub ("{target}", alvo_name or "")
|
||||
custom = custom:gsub ("{next}", next)
|
||||
custom = custom:gsub("{spell}", spellname)
|
||||
custom = custom:gsub("{target}", alvo_name or "")
|
||||
custom = custom:gsub("{next}", next)
|
||||
_detalhes:SendMsgToChannel (custom, channel, _detalhes.announce_interrupts.whisper)
|
||||
else
|
||||
local msg = _cstr (Loc ["STRING_OPTIONS_RT_INTERRUPT"], spellname)
|
||||
@@ -348,9 +348,9 @@
|
||||
end
|
||||
|
||||
if (custom ~= "") then
|
||||
custom = custom:gsub ("{spell}", spellname)
|
||||
custom = custom:gsub ("{next}", who_name)
|
||||
custom = custom:gsub ("{target}", alvo_name or "")
|
||||
custom = custom:gsub("{spell}", spellname)
|
||||
custom = custom:gsub("{next}", who_name)
|
||||
custom = custom:gsub("{target}", alvo_name or "")
|
||||
_detalhes:SendMsgToChannel (custom, "PRINT")
|
||||
else
|
||||
local minute, second = _detalhes:GetCombat():GetFormatedCombatTime()
|
||||
@@ -424,8 +424,8 @@
|
||||
local custom = _detalhes.announce_cooldowns.custom
|
||||
|
||||
if (custom ~= "") then
|
||||
custom = custom:gsub ("{spell}", spellname)
|
||||
custom = custom:gsub ("{target}", alvo_name or "")
|
||||
custom = custom:gsub("{spell}", spellname)
|
||||
custom = custom:gsub("{target}", alvo_name or "")
|
||||
_detalhes:SendMsgToChannel (custom, channel, _detalhes.announce_interrupts.whisper)
|
||||
else
|
||||
local msg
|
||||
|
||||
+11
-11
@@ -276,12 +276,12 @@
|
||||
|
||||
function _detalhes.StatusBar:SetPlugin (instance, absolute_name, anchor)
|
||||
if (absolute_name == -1) then --none
|
||||
anchor = string.lower (anchor)
|
||||
anchor = string.lower(anchor)
|
||||
ChoosePlugin (nil, nil, -1, instance.StatusBar [anchor], anchor)
|
||||
else
|
||||
local index = _detalhes.StatusBar:GetIndexFromAbsoluteName (absolute_name)
|
||||
if (index and anchor) then
|
||||
anchor = string.lower (anchor)
|
||||
anchor = string.lower(anchor)
|
||||
ChoosePlugin (nil, nil, index, instance.StatusBar [anchor], anchor)
|
||||
end
|
||||
end
|
||||
@@ -530,7 +530,7 @@
|
||||
|
||||
function _detalhes.StatusBar:ApplyOptions (child, option, value)
|
||||
|
||||
option = string.lower (option)
|
||||
option = string.lower(option)
|
||||
|
||||
if (option == "textxmod") then
|
||||
|
||||
@@ -558,7 +558,7 @@
|
||||
|
||||
child.options.textColor = value
|
||||
local r, g, b, a = _detalhes.gump:ParseColors(child.options.textColor)
|
||||
child.text:SetTextColor (r, g, b, a)
|
||||
child.text:SetTextColor(r, g, b, a)
|
||||
|
||||
elseif (option == "textsize") then
|
||||
|
||||
@@ -1115,17 +1115,17 @@ do
|
||||
if (threatpct) then
|
||||
child.text:SetText(_math_floor(threatpct).."%")
|
||||
if (Threat.isTank) then
|
||||
child.text:SetTextColor (abs(threatpct-100)*0.01, threatpct*0.01, 0, 1)
|
||||
child.text:SetTextColor(abs(threatpct-100)*0.01, threatpct*0.01, 0, 1)
|
||||
else
|
||||
child.text:SetTextColor (threatpct*0.01, abs(threatpct-100)*0.01, 0, 1)
|
||||
child.text:SetTextColor(threatpct*0.01, abs(threatpct-100)*0.01, 0, 1)
|
||||
end
|
||||
else
|
||||
child.text:SetText("0%")
|
||||
child.text:SetTextColor (1, 1, 1, 1)
|
||||
child.text:SetTextColor(1, 1, 1, 1)
|
||||
end
|
||||
else
|
||||
child.text:SetText("0%")
|
||||
child.text:SetTextColor (1, 1, 1, 1)
|
||||
child.text:SetTextColor(1, 1, 1, 1)
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -1298,7 +1298,7 @@ do
|
||||
texture:SetPoint("right", myframe.text.widget, "left", -2, -1)
|
||||
texture:SetWidth(10)
|
||||
texture:SetHeight(10)
|
||||
texture:SetTexCoord (0.216796875, 0.26171875, 0.0078125, 0.052734375)
|
||||
texture:SetTexCoord(0.216796875, 0.26171875, 0.0078125, 0.052734375)
|
||||
myframe.texture = texture
|
||||
|
||||
myframe.widget:SetScript("OnEvent", function()
|
||||
@@ -1548,7 +1548,7 @@ end)
|
||||
ColorPickerFrame:Show()
|
||||
end
|
||||
|
||||
_detalhes.gump:NewImage (window, nil, 160, 16, nil, nil, "textcolortexture", "$parentTextColorTexture")
|
||||
_detalhes.gump:NewImage(window, nil, 160, 16, nil, nil, "textcolortexture", "$parentTextColorTexture")
|
||||
window.textcolortexture:SetPoint("left", window.textcolor, "right", 2)
|
||||
window.textcolortexture:SetTexture(1, 1, 1)
|
||||
|
||||
@@ -1632,7 +1632,7 @@ end)
|
||||
|
||||
_G.DetailsStatusBarOptionsTextStyleDropdown.MyObject:Select(child.options.textStyle, true)
|
||||
|
||||
_G.DetailsStatusBarOptionsTextColorTexture:SetColorTexture (child.options.textColor[1], child.options.textColor[2], child.options.textColor[3], child.options.textColor[4])
|
||||
_G.DetailsStatusBarOptionsTextColorTexture:SetColorTexture(child.options.textColor[1], child.options.textColor[2], child.options.textColor[3], child.options.textColor[4])
|
||||
|
||||
_G.DetailsStatusBarOptionsSliderFontSize.MyObject:SetFixedParameter(child)
|
||||
_G.DetailsStatusBarOptionsSliderFontSize.MyObject:SetValue(child.options.textSize)
|
||||
|
||||
@@ -203,7 +203,7 @@ end
|
||||
_detalhes:SetFontFace (f.desc, _detalhes.font_faces.menus)
|
||||
|
||||
--f.background:SetTexture(_detalhes.tooltip.menus_bg_texture)
|
||||
f.background:SetTexCoord (unpack(_detalhes.tooltip.menus_bg_coords))
|
||||
f.background:SetTexCoord(unpack(_detalhes.tooltip.menus_bg_coords))
|
||||
f.background:SetVertexColor(unpack(_detalhes.tooltip.menus_bg_color))
|
||||
--f.background:SetDesaturated(true)
|
||||
|
||||
|
||||
@@ -99,8 +99,8 @@
|
||||
end
|
||||
|
||||
function timeMachine:Reiniciar()
|
||||
table.wipe (self.tabelas[1])
|
||||
table.wipe (self.tabelas[2])
|
||||
table.wipe(self.tabelas[1])
|
||||
table.wipe(self.tabelas[2])
|
||||
self.tabelas = {{}, {}} --1 dano 2 cura
|
||||
end
|
||||
|
||||
@@ -125,7 +125,7 @@
|
||||
end
|
||||
|
||||
local esta_tabela = timeMachine.tabelas [self.tipo]
|
||||
tinsert (esta_tabela, self)
|
||||
tinsert(esta_tabela, self)
|
||||
self.timeMachine = #esta_tabela
|
||||
end
|
||||
|
||||
|
||||
+13
-13
@@ -293,7 +293,7 @@
|
||||
function _detalhes:GetNpcIdFromGuid (guid)
|
||||
local NpcId = select( 6, strsplit( "-", guid ) )
|
||||
if (NpcId) then
|
||||
return tonumber ( NpcId )
|
||||
return tonumber( NpcId )
|
||||
end
|
||||
return 0
|
||||
end
|
||||
@@ -344,15 +344,15 @@
|
||||
return _math_random (1000, 9000) / 1000000
|
||||
end
|
||||
|
||||
--/script print(tonumber (4/1000000)) - 4e-006
|
||||
--/script print(tonumber(4/1000000)) - 4e-006
|
||||
--0.000004
|
||||
--set all table keys to lower
|
||||
local temptable = {}
|
||||
function _detalhes:LowerizeKeys (_table)
|
||||
for key, value in pairs(_table) do
|
||||
temptable [string.lower (key)] = value
|
||||
temptable [string.lower(key)] = value
|
||||
end
|
||||
temptable, _table = table.wipe (_table), temptable
|
||||
temptable, _table = table.wipe(_table), temptable
|
||||
return _table
|
||||
end
|
||||
|
||||
@@ -381,7 +381,7 @@
|
||||
|
||||
--do the override
|
||||
if (_detalhes.numerical_system_symbols ~= "auto") then
|
||||
local locale = string.lower (_detalhes.numerical_system_symbols)
|
||||
local locale = string.lower(_detalhes.numerical_system_symbols)
|
||||
|
||||
if (locale == "kr") then
|
||||
symbol_1K, symbol_10K, symbol_1B = "천", "만", "억"
|
||||
@@ -540,7 +540,7 @@
|
||||
--short numbers
|
||||
function _detalhes:ToK (numero)
|
||||
if (numero > 999999999) then
|
||||
return format ("%.2f", numero/1000000000) .. "B"
|
||||
return format("%.2f", numero/1000000000) .. "B"
|
||||
elseif (numero > 1000000) then
|
||||
return _string_format ("%.2f", numero/1000000) .. "M"
|
||||
elseif (numero > 999) then
|
||||
@@ -552,7 +552,7 @@
|
||||
|
||||
function _detalhes:ToK2 (numero)
|
||||
if (numero > 999999999) then
|
||||
return format ("%.2f", numero/1000000000) .. "B"
|
||||
return format("%.2f", numero/1000000000) .. "B"
|
||||
elseif (numero > 999999) then
|
||||
return _string_format ("%.2f", numero/1000000) .. "M"
|
||||
elseif (numero > 99999) then
|
||||
@@ -567,7 +567,7 @@
|
||||
--short numbers no numbers after comma
|
||||
function _detalhes:ToK0 (numero)
|
||||
if (numero > 999999999) then
|
||||
return format ("%.2f", numero/1000000000) .. "B"
|
||||
return format("%.2f", numero/1000000000) .. "B"
|
||||
elseif (numero > 1000000) then
|
||||
return _string_format ("%.0f", numero/1000000) .. "M"
|
||||
elseif (numero > 1000) then
|
||||
@@ -761,7 +761,7 @@
|
||||
parameters_cache [3] = v6
|
||||
parameters_cache [4] = v7
|
||||
|
||||
return (str:gsub ("{data(%d+)}", replace_arg):gsub ("{func(.-)}", run_function))
|
||||
return (str:gsub("{data(%d+)}", replace_arg):gsub("{func(.-)}", run_function))
|
||||
end
|
||||
|
||||
--remove a index from a hash table
|
||||
@@ -809,7 +809,7 @@
|
||||
end
|
||||
--yah, i know
|
||||
|
||||
function _detalhes.table.copy (t1, t2)
|
||||
function _detalhes.table.copy(t1, t2)
|
||||
for key, value in pairs(t2) do
|
||||
if (type(value) == "table") then
|
||||
t1 [key] = Details.CopyTable(value)
|
||||
@@ -1020,7 +1020,7 @@ end
|
||||
--font color
|
||||
function _detalhes:SetFontColor(fontString, r, g, b, a)
|
||||
r, g, b, a = gump:ParseColors(r, g, b, a)
|
||||
fontString:SetTextColor (r, g, b, a)
|
||||
fontString:SetTextColor(r, g, b, a)
|
||||
end
|
||||
|
||||
--font size
|
||||
@@ -1085,7 +1085,7 @@ end
|
||||
--internal functions
|
||||
|
||||
function _detalhes:HealthTick()
|
||||
if (UnitExists ("boss1") and IsInRaid() and IsInInstance()) then
|
||||
if (UnitExists("boss1") and IsInRaid() and IsInInstance()) then
|
||||
local health = (UnitHealth ("boss1") or 0) / (UnitHealthMax ("boss1") or 0)
|
||||
if (_detalhes.boss1_health_percent) then
|
||||
if (_detalhes.boss1_health_percent < health) then
|
||||
@@ -1304,7 +1304,7 @@ end
|
||||
|
||||
GradientFrameControl.gradientes [#GradientFrameControl.gradientes+1] = {
|
||||
Object = Object,
|
||||
ObjectType = string.lower (ObjectType),
|
||||
ObjectType = string.lower(ObjectType),
|
||||
Func = EndFunction,
|
||||
FuncParam = FuncParam,
|
||||
TimeStart = GetTime(),
|
||||
|
||||
+6
-6
@@ -834,7 +834,7 @@
|
||||
elseif (tabela._refresh_window) then
|
||||
tabela:_refresh_window (esta_barra, self)
|
||||
else
|
||||
tabela:RefreshBarra (esta_barra, self, true)
|
||||
tabela:RefreshBarra(esta_barra, self, true)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1112,9 +1112,9 @@
|
||||
local label = gump:CreateLabel(panel, Loc ["STRING_FEEDBACK_PREFERED_SITE"])
|
||||
label:SetPoint("topleft", panel, "topleft", 15, -60)
|
||||
|
||||
local wowi = gump:NewImage (panel, [[Interface\AddOns\Details\images\icons2]], 101, 34, "artwork", {0/512, 101/512, 163/512, 200/512})
|
||||
local curse = gump:NewImage (panel, [[Interface\AddOns\Details\images\icons2]], 101, 34, "artwork", {0/512, 101/512, 201/512, 242/512})
|
||||
local mmoc = gump:NewImage (panel, [[Interface\AddOns\Details\images\icons2]], 101, 34, "artwork", {0/512, 101/512, 243/512, 285/512})
|
||||
local wowi = gump:NewImage(panel, [[Interface\AddOns\Details\images\icons2]], 101, 34, "artwork", {0/512, 101/512, 163/512, 200/512})
|
||||
local curse = gump:NewImage(panel, [[Interface\AddOns\Details\images\icons2]], 101, 34, "artwork", {0/512, 101/512, 201/512, 242/512})
|
||||
local mmoc = gump:NewImage(panel, [[Interface\AddOns\Details\images\icons2]], 101, 34, "artwork", {0/512, 101/512, 243/512, 285/512})
|
||||
wowi:SetDesaturated(true)
|
||||
curse:SetDesaturated(true)
|
||||
mmoc:SetDesaturated(true)
|
||||
@@ -1259,11 +1259,11 @@
|
||||
updatewindow_frame.gnoma:SetPoint("topright", updatewindow_frame, "topright", -3, -59)
|
||||
updatewindow_frame.gnoma:SetTexture("Interface\\AddOns\\Details\\images\\icons2")
|
||||
updatewindow_frame.gnoma:SetSize(105*1.05, 107*1.05)
|
||||
updatewindow_frame.gnoma:SetTexCoord (0.2021484375, 0, 0.7919921875, 1)
|
||||
updatewindow_frame.gnoma:SetTexCoord(0.2021484375, 0, 0.7919921875, 1)
|
||||
|
||||
local editbox = Details.gump:NewTextEntry(updatewindow_frame, nil, "$parentTextEntry", "text", 387, 14)
|
||||
editbox:SetPoint(20, -136)
|
||||
editbox:SetAutoFocus (false)
|
||||
editbox:SetAutoFocus(false)
|
||||
editbox:SetHook("OnEditFocusGained", function()
|
||||
editbox.text = "http://www.curse.com/addons/wow/details"
|
||||
editbox:HighlightText()
|
||||
|
||||
Reference in New Issue
Block a user