@@ -1341,10 +1341,15 @@ end
13411341-- Open the spectre library popup
13421342function buildMode :OpenSpectreLibrary (library )
13431343 local destList = { }
1344+ local popularBeastList = { }
1345+ local popularSpectreList = { }
1346+ local popularList = { }
13441347 if library == " beast" then
13451348 destList = copyTable (self .beastList )
1349+ popularList = popularBeastList
13461350 else
13471351 destList = copyTable (self .spectreList )
1352+ popularList = popularSpectreList
13481353 end
13491354 local monsterTypeSort = {
13501355 Beast = true ,
@@ -1460,8 +1465,10 @@ function buildMode:OpenSpectreLibrary(library)
14601465 end
14611466
14621467 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 .. " :" )
14651472 local function monsterTypeCheckboxChange (name )
14661473 monsterTypeSort [name ] = true
14671474 return function (state )
@@ -1644,10 +1651,10 @@ function buildMode:OpenSpectreLibrary(library)
16441651 end
16451652 end
16461653 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 ))
16491656 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 ))
16511658 controls .evasionLabelNum = new (" LabelControl" , {" TOP" ,controls .evasionLabel ," BOTTOM" }, {0 , 6 , 0 , 16 }, round (totalEvasion ))
16521659 controls .resistsLabelNum = new (" LabelControl" , {" TOP" ,controls .resistsLabel ," BOTTOM" }, {0 , 6 , 0 , 16 },
16531660 colorCodes .FIRE .. minion .fireResist .. " ^7/" ..
0 commit comments