@@ -315,7 +315,20 @@ You can get this from your web browser's cookies while logged into the Path of E
315315 self .build .viewMode = " TREE"
316316 end )
317317 elseif self .controls .importCodeMode .selIndex == 3 then
318- self .build :ImportLoadouts (self .importCodeXML )
318+ local controls = { }
319+ t_insert (controls , new (" LabelControl" , nil , {0 , 20 , 0 , 16 }, colorCodes .WARNING .. " Warning:^7 Importing many loadouts into the same build" ))
320+ t_insert (controls , new (" LabelControl" , nil , {0 , 36 , 0 , 16 }, " may cause performance issues. Use with caution." ))
321+ t_insert (controls , new (" LabelControl" , nil , {0 , 64 , 0 , 16 }, " ^7Prefix for imported loadouts (optional):" ))
322+ controls .prefix = new (" EditControl" , nil , {0 , 84 , 350 , 20 }, " " , nil , nil , 50 )
323+ controls .import = new (" ButtonControl" , nil , {- 45 , 114 , 80 , 20 }, " Import" , function ()
324+ local prefix = controls .prefix .buf
325+ main :ClosePopup ()
326+ self .build :ImportLoadouts (self .importCodeXML , prefix ~= " " and prefix or nil )
327+ end )
328+ t_insert (controls , new (" ButtonControl" , nil , {45 , 114 , 80 , 20 }, " Cancel" , function ()
329+ main :ClosePopup ()
330+ end ))
331+ main :OpenPopup (380 , 144 , " Import Loadouts" , controls , " import" )
319332 else
320333 self .build :Shutdown ()
321334 self .build :Init (false , " Imported build" , self .importCodeXML , false , self .importCodeSite and self .controls .importCodeIn .buf or nil )
0 commit comments