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.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user