@@ -107,6 +107,7 @@ function main:Init()
107107 self .dpiScaleOverridePercent = GetDPIScaleOverridePercent and GetDPIScaleOverridePercent () or 0
108108 self .showWarnings = true
109109 self .slotOnlyTooltips = true
110+ self .migrateEldritchImplicits = true
110111 self .notSupportedModTooltips = true
111112 self .notSupportedTooltipText = " ^8(Not supported in PoB yet)"
112113 self .POESESSID = " "
@@ -632,6 +633,9 @@ function main:LoadSettings(ignoreBuild)
632633 if node .attrib .slotOnlyTooltips then
633634 self .slotOnlyTooltips = node .attrib .slotOnlyTooltips == " true"
634635 end
636+ if node .attrib .migrateEldritchImplicits then
637+ self .migrateEldritchImplicits = node .attrib .migrateEldritchImplicits == " true"
638+ end
635639 if node .attrib .notSupportedModTooltips then
636640 self .notSupportedModTooltips = node .attrib .notSupportedModTooltips == " true"
637641 end
@@ -782,6 +786,7 @@ function main:SaveSettings()
782786 lastExportedWebsite = self .lastExportedWebsite ,
783787 showWarnings = tostring (self .showWarnings ),
784788 slotOnlyTooltips = tostring (self .slotOnlyTooltips ),
789+ migrateEldritchImplicits = tostring (self .migrateEldritchImplicits ),
785790 notSupportedModTooltips = tostring (self .notSupportedModTooltips ),
786791 POESESSID = self .POESESSID ,
787792 invertSliderScrollDirection = tostring (self .invertSliderScrollDirection ),
@@ -867,7 +872,7 @@ function main:OpenOptionsPopup()
867872 end
868873
869874 local defaultLabelSpacingPx = - 4
870- local defaultLabelPlacementX = 240
875+ local defaultLabelPlacementX = popupWidth * 0.45
871876
872877 drawSectionHeader (" app" , " Application options" )
873878
@@ -1064,7 +1069,14 @@ function main:OpenOptionsPopup()
10641069 self .slotOnlyTooltips = state
10651070 end )
10661071 controls .slotOnlyTooltips .state = self .slotOnlyTooltips
1067-
1072+
1073+ nextRow ()
1074+ controls .migrateEldritchImplicits = new (" CheckBoxControl" , { " TOPLEFT" , nil , " TOPLEFT" }, { defaultLabelPlacementX , currentY , 20 }, " ^7Copy Eldritch Implicits onto Display Item:" , function (state )
1075+ self .migrateEldritchImplicits = state
1076+ end )
1077+ controls .migrateEldritchImplicits .tooltipText = " Apply Eldritch Implicits from current gear when comparing new gear, given the new item doesn't have any influence"
1078+ controls .migrateEldritchImplicits .state = self .migrateEldritchImplicits
1079+
10681080 nextRow ()
10691081 controls .notSupportedModTooltips = new (" CheckBoxControl" , { " TOPLEFT" , nil , " TOPLEFT" }, { defaultLabelPlacementX , currentY , 20 }, " ^7Show tooltip for unsupported mods :" , function (state )
10701082 self .notSupportedModTooltips = state
@@ -1110,6 +1122,7 @@ function main:OpenOptionsPopup()
11101122 local initialDefaultItemAffixQuality = self .defaultItemAffixQuality or 0.5
11111123 local initialShowWarnings = self .showWarnings
11121124 local initialSlotOnlyTooltips = self .slotOnlyTooltips
1125+ local initialMigrateEldritchImplicits = self .migrateEldritchImplicits
11131126 local initialNotSupportedModTooltips = self .notSupportedModTooltips
11141127 local initialInvertSliderScrollDirection = self .invertSliderScrollDirection
11151128 local initialDisableDevAutoSave = self .disableDevAutoSave
@@ -1166,6 +1179,7 @@ function main:OpenOptionsPopup()
11661179 self .defaultItemAffixQuality = initialDefaultItemAffixQuality
11671180 self .showWarnings = initialShowWarnings
11681181 self .slotOnlyTooltips = initialSlotOnlyTooltips
1182+ self .migrateEldritchImplicits = initialMigrateEldritchImplicits
11691183 self .notSupportedModTooltips = initialNotSupportedModTooltips
11701184 self .invertSliderScrollDirection = initialInvertSliderScrollDirection
11711185 self .disableDevAutoSave = initialDisableDevAutoSave
0 commit comments