Added Targets, Added Options

This commit is contained in:
Tercio Jose
2023-04-29 22:57:02 -03:00
parent 2a4d3e0d3e
commit 9222cc1491
11 changed files with 958 additions and 117 deletions
+13 -2
View File
@@ -145,7 +145,7 @@ function Details:OpenBreakdownWindow(instanceObject, actorObject, bFromAttribute
end
if (not breakdownWindow.RightSideBar) then
breakdownWindow:CreateRightSideBar()
--breakdownWindow:CreateRightSideBar()
end
--todo: all portuguese keys to english
@@ -223,7 +223,7 @@ function Details:OpenBreakdownWindow(instanceObject, actorObject, bFromAttribute
--spellsTab.ResetBars() --to be implemented
---@type string
local actorClass = actorObject.classe --classe not registered because it should be renamed to english
local actorClass = actorObject.classe --classe not registered because it should be renamed to english 'class'
if (not actorClass) then
actorClass = "monster"
@@ -422,6 +422,17 @@ function Details222.BreakdownWindow.SendSpellData(data, actorObject, combatObjec
end
end
function Details222.BreakdownWindow.SendTargetData(targetList, actorObject, combatObject, instance)
--need to get the tab showing the summary and transmit the data to it
local tab = Details222.BreakdownWindow.CurrentDefaultTab
if (tab) then
--tab is the tab button
if (tab.OnReceiveTargetData) then
tab.OnReceiveTargetData(targetList, actorObject, combatObject, instance)
end
end
end
function breakdownWindow.SetClassIcon(jogador, classe)
if (classe ~= "UNKNOW" and classe ~= "UNGROUPPLAYER") then
breakdownWindow.classIcon:SetTexCoord(Details.class_coords [classe][1], Details.class_coords [classe][2], Details.class_coords [classe][3], Details.class_coords [classe][4])