@@ -1341,10 +1341,15 @@ end
1341
1341
-- Open the spectre library popup
1342
1342
function buildMode :OpenSpectreLibrary (library )
1343
1343
local destList = { }
1344
+ local popularBeastList = { }
1345
+ local popularSpectreList = { }
1346
+ local popularList = { }
1344
1347
if library == " beast" then
1345
1348
destList = copyTable (self .beastList )
1349
+ popularList = popularBeastList
1346
1350
else
1347
1351
destList = copyTable (self .spectreList )
1352
+ popularList = popularSpectreList
1348
1353
end
1349
1354
local monsterTypeSort = {
1350
1355
Beast = true ,
@@ -1460,8 +1465,10 @@ function buildMode:OpenSpectreLibrary(library)
1460
1465
end
1461
1466
1462
1467
sortSourceList ()
1463
- controls .list = new (" MinionListControl" , nil , {- 230 , 40 , 210 , 250 }, self .data , destList )
1464
- controls .source = new (" MinionSearchListControl" , nil , {0 , 60 , 210 , 230 }, self .data , sourceList , controls .list )
1468
+ local label = (library == " beast" and " Beasts" or " Spectres" )
1469
+ controls .list = new (" MinionListControl" , nil , {- 230 , 40 , 210 , 175 }, self .data , destList , nil , label .. " in Build:" )
1470
+ controls .popularList = new (" MinionListControl" , {" TOP" ,controls .list ," BOTTOM" }, {0 , 25 , 210 , 175 }, self .data , popularList , nil ," ^7Popular " .. label .. " :" )
1471
+ controls .source = new (" MinionSearchListControl" , nil , {0 , 60 , 210 , 230 }, self .data , sourceList , controls .list , " ^7Available " .. label .. " :" )
1465
1472
local function monsterTypeCheckboxChange (name )
1466
1473
monsterTypeSort [name ] = true
1467
1474
return function (state )
@@ -1644,10 +1651,10 @@ function buildMode:OpenSpectreLibrary(library)
1644
1651
end
1645
1652
end
1646
1653
controls .minionNameLabel = new (" LabelControl" , {" TOP" ,controls .source ," TOPRIGHT" }, {130 , - 25 , 0 , 18 }, minion .name )
1647
- controls .lifeLabelNum = new (" LabelControl" , {" TOP" ,controls .lifeLabel ," BOTTOM" }, {0 , 6 , 0 , 16 }, round (totalLife ))
1648
- controls .energyshieldLabelNum = new (" LabelControl" , {" TOP" ,controls .energyshieldLabel ," BOTTOM" }, {0 , 6 , 0 , 16 }, (totalES ))
1654
+ controls .lifeLabelNum = new (" LabelControl" , {" TOP" ,controls .lifeLabel ," BOTTOM" }, {0 , 6 , 0 , 16 }, " ^7 " .. round (totalLife ))
1655
+ controls .energyshieldLabelNum = new (" LabelControl" , {" TOP" ,controls .energyshieldLabel ," BOTTOM" }, {0 , 6 , 0 , 16 }, round (totalES ))
1649
1656
controls .blockLabelNum = new (" LabelControl" , {" TOP" ,controls .blockLabel ," BOTTOM" }, {6 , 6 , 0 , 16 }, blockChance .. " %" )
1650
- controls .armourLabelNum = new (" LabelControl" , {" TOP" ,controls .armourLabel ," BOTTOM" }, {0 , 6 , 0 , 16 }, (totalArmour ))
1657
+ controls .armourLabelNum = new (" LabelControl" , {" TOP" ,controls .armourLabel ," BOTTOM" }, {0 , 6 , 0 , 16 }, round (totalArmour ))
1651
1658
controls .evasionLabelNum = new (" LabelControl" , {" TOP" ,controls .evasionLabel ," BOTTOM" }, {0 , 6 , 0 , 16 }, round (totalEvasion ))
1652
1659
controls .resistsLabelNum = new (" LabelControl" , {" TOP" ,controls .resistsLabel ," BOTTOM" }, {0 , 6 , 0 , 16 },
1653
1660
colorCodes .FIRE .. minion .fireResist .. " ^7/" ..
0 commit comments