@@ -87,6 +87,7 @@ local SkillsTabClass = newClass("SkillsTab", "UndoHandler", "ControlHost", "Cont
8787 self .sortGemsByDPS = true
8888 self .sortGemsByDPSField = " CombinedDPS"
8989 self .showSupportGemTypes = " ALL"
90+ self .showAcquisitionSource = false
9091 self .showLegacyGems = false
9192 self .defaultGemLevel = " normalMaximum"
9293 self .defaultGemQuality = main .defaultGemQuality
@@ -120,7 +121,7 @@ local SkillsTabClass = newClass("SkillsTab", "UndoHandler", "ControlHost", "Cont
120121 -- Gem options
121122 local optionInputsX = 170
122123 local optionInputsY = 45
123- self .controls .optionSection = new (" SectionControl" , { " TOPLEFT" , self .controls .groupList , " BOTTOMLEFT" }, { 0 , optionInputsY + 50 , 360 , 156 }, " Gem Options" )
124+ self .controls .optionSection = new (" SectionControl" , { " TOPLEFT" , self .controls .groupList , " BOTTOMLEFT" }, { 0 , optionInputsY + 50 , 360 , 180 }, " Gem Options" )
124125 self .controls .sortGemsByDPS = new (" CheckBoxControl" , { " TOPLEFT" , self .controls .groupList , " BOTTOMLEFT" }, { optionInputsX , optionInputsY + 70 , 20 }, " Sort gems by DPS:" , function (state )
125126 self .sortGemsByDPS = state
126127 end , nil , true )
@@ -148,6 +149,9 @@ local SkillsTabClass = newClass("SkillsTab", "UndoHandler", "ControlHost", "Cont
148149 self .controls .showLegacyGems = new (" CheckBoxControl" , { " TOPLEFT" , self .controls .groupList , " BOTTOMLEFT" }, { optionInputsX , optionInputsY + 166 , 20 }, " ^7Show legacy gems:" , function (state )
149150 self .showLegacyGems = state
150151 end )
152+ self .controls .showAcquisitionSource = new (" CheckBoxControl" , { " TOPLEFT" , self .controls .groupList , " BOTTOMLEFT" }, { optionInputsX , optionInputsY + 190 , 20 }, " ^7Show acquisition source:" , function (state )
153+ self .showAcquisitionSource = state
154+ end )
151155
152156 -- Socket group details
153157 if main .portraitMode then
@@ -444,6 +448,10 @@ function SkillsTabClass:Load(xml, fileName)
444448 self .controls .sortGemsByDPSFieldControl :SelByValue (xml .attrib .sortGemsByDPSField or " CombinedDPS" , " type" )
445449 self .showSupportGemTypes = self .controls .showSupportGemTypes :GetSelValueByKey (" show" )
446450 self .sortGemsByDPSField = self .controls .sortGemsByDPSFieldControl :GetSelValueByKey (" type" )
451+ if xml .attrib .showAcquisitionSource then
452+ self .showAcquisitionSource = xml .attrib .showAcquisitionSource == " true"
453+ end
454+ self .controls .showAcquisitionSource .state = self .showAcquisitionSource
447455 for _ , node in ipairs (xml ) do
448456 if node .elem == " Skill" then
449457 -- Old format, initialize skill sets if needed
@@ -474,6 +482,7 @@ function SkillsTabClass:Save(xml)
474482 defaultGemQuality = tostring (self .defaultGemQuality ),
475483 sortGemsByDPS = tostring (self .sortGemsByDPS ),
476484 showSupportGemTypes = self .showSupportGemTypes ,
485+ showAcquisitionSource = tostring (self .showAcquisitionSource ),
477486 sortGemsByDPSField = self .sortGemsByDPSField ,
478487 showLegacyGems = tostring (self .showLegacyGems ),
479488 }
0 commit comments