set the EMA team in the same order as slots
mooreatv opened this issue ยท 1 comments
info from jennifer:
EMAApi.FullTeamList
table.insert( EMA.db.newTeamList[character], {name = character, order = maxOrder + 1, class = CharacterClass, online = Online } )
this is how it changes when u move the char in the team list
local function TeamListSwapCharacterPositions( position1, position2 )
-- Get characters at positions.
local character1 = GetCharacterNameAtOrderPosition( position1 )
local character2 = GetCharacterNameAtOrderPosition( position2 )
for name, info in pairs (EMA.db.newTeamList) do
for _, charInfo in pairs (info) do
if name == character1 then
charInfo.order = position2
end
if name == character2 then
charInfo.order = position1
end
end
end
end