- Added an options to use a customized skin file.

- Added an options to use a customized bar texture file.
- A Package with photoshop files with examples and the skin file for Minimalistic skin are available at WoW Interface.
- Added 'API Custom Displays.txt' on Details! folder, this file explain how to create scripts for custom displays.
This commit is contained in:
Tercio
2015-09-21 18:30:01 -03:00
parent 2a9bc8317c
commit f7dccde8b9
9 changed files with 354 additions and 50 deletions
+19
View File
@@ -752,6 +752,25 @@
actors.new_actor.classe = actors.actor.classe
end
function atributo_custom:HasActor (actor)
return self._NameIndexTable [actor.nome or actor.name] and true or false
end
function atributo_custom:GetNumActors()
return #self._ActorTable
end
function atributo_custom:GetTotalAndHighestValue()
local total, top = 0, 0
for i, actor in ipairs (self._ActorTable) do
if (actor.value > top) then
top = actor.value
end
total = total + actor.value
end
return total, top
end
local icon_cache = {}
function atributo_custom:GetActorTable (actor, name_complement)
+4
View File
@@ -157,6 +157,10 @@
return self.grupo
end
--[[ exported]] function _detalhes:IsPetOrGuardian()
return self.owner and true or false
end
--[[ exported]] function _detalhes:IsPlayer()
if (self.flag_original) then
if (_bit_band (self.flag_original, OBJECT_TYPE_PLAYER) ~= 0) then
+3
View File
@@ -95,6 +95,7 @@ _detalhes.instance_defaults = {
ignore_mass_showhide = false,
--skin
skin = _detalhes.default_skin_to_use,
skin_custom = "",
--scale
window_scale = 1.0,
libwindow = {},
@@ -203,8 +204,10 @@ _detalhes.instance_defaults = {
font_face_file = SharedMedia:Fetch ("font", "Arial Narrow"),
--bar texture
texture = "Details D'ictum",
texture_custom = "",
--bar texture name
texture_file = [[Interface\AddOns\Details\images\bar4]],
texture_custom_file = "Interface\\",
--bar texture on mouse over
texture_highlight = [[Interface\FriendsFrame\UI-FriendsList-Highlight]],
--bar background texture