@@ -22,6 +22,7 @@ Func Standard_LoadConfig()
2222 _GUICtrlComboBox_SetCurSel($cmbAny , IniRead ($configFile , " search" , " AnyAndOr" , " 0" ))
2323 _GUICtrlComboBox_SetCurSel($cmbDead , IniRead ($configFile , " search" , " DeadAndOr" , " 0" ))
2424
25+
2526 If IniRead ($configFile , " search" , " conditionDeadGoldElixir" , " 0" ) = 1 Then
2627 GUICtrlSetState ($chkDeadGE , $GUI_CHECKED )
2728 Else
@@ -100,6 +101,14 @@ Func Standard_LoadConfig()
100101 Standard_chkDeadActivate()
101102 Standard_chkAnyActivate()
102103
104+ ; Search reduction settings inside search tab
105+ GUICtrlSetData ($txtRedNumOfSerach , IniRead ($configFile , " search" , " RedutionNumOfSerach" , " 30" ))
106+ GUICtrlSetData ($txtRedGoldPercent , IniRead ($configFile , " search" , " ReductionGoldPercent" , " 5" ))
107+ GUICtrlSetData ($txtRedElixirPercent , IniRead ($configFile , " search" , " ReductionElixirPercent" , " 5" ))
108+ GUICtrlSetData ($txtRedDEPercent , IniRead ($configFile , " search" , " ReductionDEPercent" , " 5" ))
109+ GUICtrlSetData ($txtRedTrophyPercent , IniRead ($configFile , " search" , " ReductionTrophyPercent" , " 5" ))
110+ GUICtrlSetData ($txtRedNukePercent , IniRead ($configFile , " search" , " ReductionNukePercent" , " 5" ))
111+
103112 ; Attack Settings-------------------------------------------------------------------------
104113 _GUICtrlComboBox_SetCurSel($cmbDeadDeploy , IniRead ($configFile , " attack" , " deploy-dead" , " 0" ))
105114 _GUICtrlComboBox_SetCurSel($cmbDeadAlgorithm , IniRead ($configFile , " attack" , " algorithm-dead" , " 0" ))
@@ -314,6 +323,14 @@ Func Standard_SaveConfig($configFile)
314323 Else
315324 IniWrite ($configFile , " search" , " conditionSnipe" , 0 )
316325 EndIf
326+ ; Search reduction setting in search tab
327+ If GUICtrlRead ($txtRedNumOfSerach ) = 0 Then GUICtrlSetData ($txtRedNumOfSerach ,30 )
328+ IniWrite ($configFile , " search" , " RedutionNumOfSerach" , GUICtrlRead ($txtRedNumOfSerach ))
329+ IniWrite ($configFile , " search" , " ReductionGoldPercent" , GUICtrlRead ($txtRedGoldPercent ))
330+ IniWrite ($configFile , " search" , " ReductionElixirPercent" , GUICtrlRead ($txtRedElixirPercent ))
331+ IniWrite ($configFile , " search" , " ReductionDEPercent" , GUICtrlRead ($txtRedDEPercent ))
332+ IniWrite ($configFile , " search" , " ReductionTrophyPercent" , GUICtrlRead ($txtRedTrophyPercent ))
333+ IniWrite ($configFile , " search" , " ReductionNukePercent" , GUICtrlRead ($txtRedNukePercent ))
317334
318335 ; Attack Settings-------------------------------------------------------------------------
319336 IniWrite ($configFile , " attack" , " deploy-dead" , _GUICtrlComboBox_GetCurSel($cmbDeadDeploy ))
0 commit comments