Files
florian.berthold 5bb7be4968 chore: hoist plugins to root and move main into Details/
Each Details_* plugin and the main Details addon now lives in its own
repo-root folder, matching the Exiles fork-layout convention.
2026-05-25 10:59:28 +02:00

17 lines
538 B
Lua

local addonName, Details222 = ...
-- @windowN: number a a window to open the player details breakdown
-- /run Details:OpenPlayerDetails(windowN)
function Details:OpenPlayerDetails(window)
window = window or 1
local instance = Details:GetInstance(window)
if (instance) then
local display, subDisplay = instance:GetDisplay()
if (display == 1) then
Details:OpenBreakdownWindow(instance, Details:GetPlayer(false, 1))
elseif (display == 2) then
Details:OpenBreakdownWindow(instance, Details:GetPlayer(false, 2))
end
end
end