- Finished another cosmetic revamp on options panel.

- Rewrite on Raid Plugins Support, now can open more then 1 plugins at once on diferent windows.
- Functions inside custom right text now receives the actor object as first parameter.
- Added a large text editor for make changes on custom texts.
- Added cosmetic menus for report and erase segments button.
- Added new option for add borders on the bars.
- Added Death Barrier as a absorb spell.
- Speed improvaments on bar animations.
- Fixed a bug on overheal tooltip where was showing the Hps instead of overheal.
- Fixed few issues when ignoring combats with 5 seconds or less.
- Fixed bug when reloging inside a raid or dungeon instance was erasing pet owner database.
- Fixed Data Broker text where was passing the total damage/healing instead of Dps/Hps.

- Fixed a issue with _detalhes:Hex(): where wasn't correctly formating number below 16.
- New Api: _detalhes:SetBarBackdropSettings (enabled, size, color, texture): set row border settings.
- New Api: _detalhes:GetInstanceAttributeText(): return the text to show on the title text.
- New Api: _detalhes.RaidTables:DisableRaidMode (instance): turn off the raid mode in the instance.
- New Api: _detalhes:RaidPluginInstalled (plugin_name): return is the plugin is installed.
- New Api: _detalhes.RaidTables:EnableRaidMode (instance, plugin_name): enable the raid mode on the instance.
- New Api: _detalhes.RaidTables:GetAvailablePlugins(): return all plugins which is installed, enabled and not in use.
- New Api: _detalhes.RaidTables:IsAvailable (plugin_name, instance): return if the plugin is available for use.
- New Api: _detalhes.RaidTables:SetInUse (absolute_name, instance_number): declare a plugin as in use by a instance.
- New Api: _detalhes.RaidTables:switch (_, plugin_name, instance): change the plugin shown on the instance.
This commit is contained in:
tercio
2014-05-23 20:58:57 -03:00
parent e2e13288c0
commit b74b58ada6
41 changed files with 2080 additions and 1524 deletions
@@ -375,7 +375,6 @@ Message: ..\AddOns\Details_EncounterDetails\frames.lua line 156:
GameCooltip:SetOption ("TextSize", 9.5)
GameCooltip:SetOption ("IconSize", 12)
GameCooltip:SetOption ("HeightAnchorMod", -15)
GameCooltip:SetOption ("TextHeightMod", -2)
GameCooltip:ShowCooltip (frame, "tooltip")
end
@@ -347,7 +347,6 @@ local function CreatePluginFrames (data)
GameCooltip:AddLine (string.format ("%.1f", TimeObject.FinishIlevel))
GameCooltip:AddIcon ("Interface\\TARGETINGFRAME\\PetBadge-Humanoid")
GameCooltip:SetOption ("TextHeightMod", -4)
GameCooltip:ShowCooltip (self.background, "tooltip")
else --> history
@@ -368,7 +367,6 @@ local function CreatePluginFrames (data)
GameCooltip:AddLine (string.format ("%.1f", TimeObject.ItemLevel))
GameCooltip:AddIcon ("Interface\\TARGETINGFRAME\\PetBadge-Humanoid")
GameCooltip:SetOption ("TextHeightMod", -4)
GameCooltip:ShowCooltip (self.background, "tooltip")
end
end
@@ -56,7 +56,7 @@ local function CreatePluginFrames (data)
ThreatMeter:Cancel()
elseif (event == "SHOW") then
instance = _detalhes.RaidTables.instancia
instance = ThreatMeter:GetInstance (ThreatMeter.instance_id)
ThreatMeter.RowWidth = instance.baseframe:GetWidth()-6
@@ -507,7 +507,7 @@ function ThreatMeter:OnEvent (_, event, ...)
local MINIMAL_DETAILS_VERSION_REQUIRED = 1
--> Install
local install, saveddata = _G._detalhes:InstallPlugin ("TANK", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\Ability_Paladin_ShieldofVengeance", ThreatMeter, "DETAILS_PLUGIN_TINY_THREAT", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.04")
local install, saveddata = _G._detalhes:InstallPlugin ("RAID", Loc ["STRING_PLUGIN_NAME"], "Interface\\Icons\\Ability_Paladin_ShieldofVengeance", ThreatMeter, "DETAILS_PLUGIN_TINY_THREAT", MINIMAL_DETAILS_VERSION_REQUIRED, "Details! Team", "v1.05")
if (type (install) == "table" and install.error) then
print (install.error)
end
+11 -4
View File
@@ -66,7 +66,8 @@ local function CreatePluginFrames (data)
elseif (event == "SHOW") then --> plugin shown, enabled
instancia = _detalhes.RaidTables.instancia
instancia = Vanguard:GetInstance (Vanguard.instance_id)
for index, tankframe in _ipairs (Vanguard.TankFrames) do
DetailsFrameWork:RegisterForDetailsMove (tankframe.Frame.frame, instancia)
end
@@ -85,7 +86,7 @@ local function CreatePluginFrames (data)
Vanguard:IdentifyTanks()
if (Vanguard:IsInCombat()) then
instancia = _detalhes.RaidTables.instancia
instancia = Vanguard:GetInstance (Vanguard.instance_id)
_combat_object = _detalhes.tabela_vigente
_track_player_object = nil
_track_player_name = nil
@@ -101,7 +102,8 @@ local function CreatePluginFrames (data)
elseif (event == "COMBAT_PLAYER_ENTER") then --> a new combat has been started
instancia = _detalhes.RaidTables.instancia
--instancia = _detalhes.RaidTables.instancia
instancia = Vanguard:GetInstance (Vanguard.instance_id)
_combat_object = select (1, ...)
_track_player_object = nil
_track_player_name = nil
@@ -127,7 +129,7 @@ local function CreatePluginFrames (data)
_combat_object = select (1, ...)
Vanguard.Running = false
VanguardFrame:SetScript ("OnUpdate", onupdate)
VanguardFrame:SetScript ("OnUpdate", nil)
Vanguard:ResetBars()
Vanguard:ResetDamage()
@@ -1190,6 +1192,11 @@ local function CreatePluginFrames (data)
end
end
if (not _track_player_object) then
_detalhes:ScheduleTimer ("VanguardWait", 1)
return
end
--print ("Vanguard: playername: ".. _track_player_name)
hits_last = 0