Skip to content

Commit

Permalink
* **V7.1.3**
Browse files Browse the repository at this point in the history
 * Add Suspend Computer option to SmartWait and Attack Schedule (see https://mybot.run/forums/index.php?/topic/29562-how-to-use-new-suspendsleep-computer-support/ for more details)
 * Add Inferno lv4 , Mortar Lv9/10 , WizardTower lv10 , Xbow lv5 and AD lv9 to weakBase Images/GUI settings
 * Add ObjEvent Code to handle with Objects errors and Poor Connection on Notify.
 * Fix training not completing when out of resources detected but not restored or incorrectly detected in first place
 * Fix SmartWait initiating wait for heroes
 * Fix detect CoC App not installed (introduced in 7.1)
 * Fix MEmu wrong phone layout for new instances (only MEmu till 2.6.1 impacted)
 * Fix BlueStacks set screen size crashing bot due to recursion
 * Fix MEmu sometimes not starting
 * Fix watchdog restarting bots after computer resuming from sleep
 * Fix z order of detached shield (when docked in Windows 7)
 * Fix creation on imglog debug images when not configure with /lib/imglocdebug.txt
 * Fix eventual issue if the object 'WinHTTP' was not created on Notify
 * Fix Telegram last cmd on Stop/Start BOT
 * Fix Telegram LOG remote command
 * Fix Telegram Keyboard translate commands
 * Fix Wait for Spells
 * Improve CoC network reconnecting state detection and restart CoC during village search and home screen checks
 * Improve auto-start bot so auto-start can be stopped
 * Improve bot crashed handling during waiting for clouds
 * Arabic Language File by @awssaad
  • Loading branch information
cosote committed Apr 22, 2017
1 parent a860bec commit 98c811a
Show file tree
Hide file tree
Showing 76 changed files with 1,095 additions and 479 deletions.
25 changes: 24 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,27 @@
* **V7.1.2**
* **V7.1.3**
* Add Suspend Computer option to SmartWait and Attack Schedule (see https://mybot.run/forums/index.php?/topic/29562-how-to-use-new-suspendsleep-computer-support/ for more details)
* Add Inferno lv4 , Mortar Lv9/10 , WizardTower lv10 , Xbow lv5 and AD lv9 to weakBase Images/GUI settings
* Add ObjEvent Code to handle with Objects errors and Poor Connection on Notify.
* Fix training not completing when out of resources detected but not restored or incorrectly detected in first place
* Fix SmartWait initiating wait for heroes
* Fix detect CoC App not installed (introduced in 7.1)
* Fix MEmu wrong phone layout for new instances (only MEmu till 2.6.1 impacted)
* Fix BlueStacks set screen size crashing bot due to recursion
* Fix MEmu sometimes not starting
* Fix watchdog restarting bots after computer resuming from sleep
* Fix z order of detached shield (when docked in Windows 7)
* Fix creation on imglog debug images when not configure with /lib/imglocdebug.txt
* Fix eventual issue if the object 'WinHTTP' was not created on Notify
* Fix Telegram last cmd on Stop/Start BOT
* Fix Telegram LOG remote command
* Fix Telegram Keyboard translate commands
* Fix Wait for Spells
* Improve CoC network reconnecting state detection and restart CoC during village search and home screen checks
* Improve auto-start bot so auto-start can be stopped
* Improve bot crashed handling during waiting for clouds
* Arabic Language File by @awssaad

* **V7.1.2**
* Add Persian Alphabet Recognition for Donation
* Fix MEmu wrong phone layout used for window resizing introduced in 7.1
* Fix halt mode for Dark Elixir Full
Expand Down
14 changes: 14 additions & 0 deletions CHANGELOG_LANGUAGES
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
* **V7.1.3**
* Add Suspend Computer option to SmartWait and Attack Schedule
[634]
42=Suspend Computer
43=This option will suspend computer when not scheduled to Search & Attack!
[641]
47=Suspend Computer
48=Option will suspend computer when selected\r\nAdding this option may increase offline time slightly due to variable times required for startup
* Add missing translate in TH Snipe Attack GUI
[624]
2=Attack Type
6=Only drop these troops
19=Special troops to use

* **V7.1.2**
* Add auto slide bot when docked (when using new My Bot design Title Bar is used)
[636]
Expand Down
6 changes: 1 addition & 5 deletions COCBot/GUI/MBR GUI Control Bottom.au3
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,7 @@ Func btnStart()
Else
$g_iBotAction = $eBotStart
EndIf
$g_iActualTrainSkip = 0

$g_iActualTrainSkip = 0
EndFunc ;==>btnStart

Func btnStop()
Expand Down Expand Up @@ -274,9 +273,6 @@ Func btnEmbed()
WinGetAndroidHandle()
WinGetPos($g_hAndroidWindow)
If @error <> 0 Then Return SetError(0, 0, 0)
;If Not $g_bAndroidEmbedded And GetProcessDpiAwareness(GetAndroidPid()) And CheckDpiAwareness(False, True) Then
; DPI awareness changed
;EndIf
AndroidEmbed(Not $g_bAndroidEmbedded)
EndFunc ;==>btnHide

Expand Down
53 changes: 33 additions & 20 deletions COCBot/GUI/MBR GUI Control Child Army.au3
Original file line number Diff line number Diff line change
Expand Up @@ -271,8 +271,12 @@ Func chkCloseWaitEnable()
EndIf
If GUICtrlRead($g_hChkRandomClose) = $GUI_CHECKED Then
GUICtrlSetState($g_hChkCloseEmulator, BitOR($GUI_DISABLE, $GUI_UNCHECKED))
GUICtrlSetState($g_hChkSuspendComputer, BitOR($GUI_DISABLE, $GUI_UNCHECKED))
Else
If GUICtrlRead($g_hChkCloseWhileTraining) = $GUI_CHECKED Then GUICtrlSetState($g_hChkCloseEmulator, $GUI_ENABLE)
If GUICtrlRead($g_hChkCloseWhileTraining) = $GUI_CHECKED Then
GUICtrlSetState($g_hChkCloseEmulator, $GUI_ENABLE)
GUICtrlSetState($g_hChkSuspendComputer, $GUI_ENABLE)
EndIf
EndIf
EndFunc ;==>chkCloseWaitEnable

Expand All @@ -284,14 +288,23 @@ Func btnCloseWaitStop()
$g_bCloseEmulator = (GUICtrlRead($g_hChkCloseEmulator) = $GUI_CHECKED)
EndFunc ;==>btnCloseWaitStop

Func btnCloseWaitSuspendComputer()
$g_bSuspendComputer = (GUICtrlRead($g_hChkSuspendComputer) = $GUI_CHECKED)
EndFunc ;==>btnCloseWaitSuspendComputer

Func btnCloseWaitStopRandom()
If GUICtrlRead($g_hChkRandomClose) = $GUI_CHECKED Then
$g_bCloseRandom = True
$g_bCloseEmulator = False
$g_bSuspendComputer = False
GUICtrlSetState($g_hChkCloseEmulator, BitOR($GUI_DISABLE, $GUI_UNCHECKED))
GUICtrlSetState($g_hChkSuspendComputer, BitOR($GUI_DISABLE, $GUI_UNCHECKED))
Else
$g_bCloseRandom = False
If GUICtrlRead($g_hChkCloseWhileTraining) = $GUI_CHECKED Then GUICtrlSetState($g_hChkCloseEmulator, $GUI_ENABLE)
If GUICtrlRead($g_hChkCloseWhileTraining) = $GUI_CHECKED Then
GUICtrlSetState($g_hChkCloseEmulator, $GUI_ENABLE)
GUICtrlSetState($g_hChkSuspendComputer, $GUI_ENABLE)
EndIf
EndIf
EndFunc ;==>btnCloseWaitStopRandom

Expand Down Expand Up @@ -321,7 +334,7 @@ Func chkTroopOrder2()
chkTroopOrder()
EndFunc ;==>chkTroopOrder2

Func chkTroopOrder($bNoiseMode = True)
Func chkTroopOrder($bSetLog = True)
If GUICtrlRead($g_hChkCustomTrainOrderEnable) = $GUI_CHECKED Then
$g_bCustomTrainOrderEnable = True
GUICtrlSetState($g_hBtnTroopOrderSet, $GUI_ENABLE)
Expand All @@ -337,14 +350,14 @@ Func chkTroopOrder($bNoiseMode = True)
For $i = 0 To UBound($g_ahCmbTroopOrder) - 1
GUICtrlSetState($g_ahCmbTroopOrder[$i], $GUI_DISABLE) ; disable combo boxes
Next
SetDefaultTroopGroup($bNoiseMode) ; Reset troopgroup values to default
If $bNoiseMode Or $g_iDebugSetlogTrain = 1 Then
SetDefaultTroopGroup($bSetLog) ; Reset troopgroup values to default
If ($bSetLog Or $g_iDebugSetlogTrain = 1) And $g_bCustomTrainOrderEnable Then
Local $sNewTrainList = ""
For $i = 0 To $eTroopCount - 1
$sNewTrainList &= $g_asTroopShortNames[$g_aiTrainOrder[$i]] & ", "
Next
$sNewTrainList = StringTrimRight($sNewTrainList, 2)
Setlog("Current train order= " & $sNewTrainList, $COLOR_BLUE)
Setlog("Current train order= " & $sNewTrainList, $COLOR_INFO)
EndIf
EndIf
EndFunc ;==>chkTroopOrder
Expand All @@ -366,7 +379,7 @@ Func GUITrainOrder()
$bDuplicate = True
EndIf
Next
If $bDuplicate = True Then
If $bDuplicate Then
GUICtrlSetState($g_hBtnTroopOrderSet, $GUI_DISABLE) ; enable button to apply new order
Return
Else
Expand Down Expand Up @@ -453,25 +466,25 @@ Func BtnTroopOrderSet()
If @error Then
Switch @error
Case 1
Setlog("Code problem, can not continue till fixed!", $COLOR_RED)
Setlog("Code problem, can not continue till fixed!", $COLOR_ERROR)
Case 2
Setlog("Bad Combobox selections, please fix!", $COLOR_RED)
Setlog("Bad Combobox selections, please fix!", $COLOR_ERROR)
Case 3
Setlog("Unable to Change Troop Train Order due bad change count!", $COLOR_RED)
Setlog("Unable to Change Troop Train Order due bad change count!", $COLOR_ERROR)
Case Else
Setlog("Monkey ate bad banana, something wrong with ChangeTroopTrainOrder() code!", $COLOR_RED)
Setlog("Monkey ate bad banana, something wrong with ChangeTroopTrainOrder() code!", $COLOR_ERROR)
EndSwitch
GUICtrlSetImage($g_ahImgTroopOrderSet, $g_sLibIconPath, $eIcnRedLight)
Else
Setlog("Troop training order changed successfully!", $COLOR_GREEN)
Setlog("Troop training order changed successfully!", $COLOR_SUCCESS)
For $i = 0 To $eTroopCount - 1
$sNewTrainList &= $g_asTroopShortNames[$g_aiTrainOrder[$i]] & ", "
Next
$sNewTrainList = StringTrimRight($sNewTrainList, 2)
Setlog("Troop train order= " & $sNewTrainList, $COLOR_BLUE)
Setlog("Troop train order= " & $sNewTrainList, $COLOR_INFO)
EndIf
Else
Setlog("Must use all troops and No duplicate troop names!", $COLOR_RED)
Setlog("Must use all troops and No duplicate troop names!", $COLOR_ERROR)
GUICtrlSetImage($g_ahImgTroopOrderSet, $g_sLibIconPath, $eIcnRedLight)
EndIf
; GUICtrlSetState($g_hBtnTroopOrderSet, $GUI_DISABLE)
Expand All @@ -485,7 +498,7 @@ Func ChangeTroopTrainOrder()
Local $NewTroopOrder[$eTroopCount]
Local $iUpdateCount = 0

If IsUseCustomTroopOrder() = False Then ; check if no custom troop values saved yet.
If Not IsUseCustomTroopOrder() Then ; check if no custom troop values saved yet.
SetError(2, 0, False)
Return
EndIf
Expand All @@ -508,30 +521,30 @@ Func ChangeTroopTrainOrder()
Next
GUICtrlSetImage($g_ahImgTroopOrderSet, $g_sLibIconPath, $eIcnGreenLight)
Else
Setlog($iUpdateCount & "|" & $eTroopCount & " - Error - Bad troop assignment in ChangeTroopTrainOrder()", $COLOR_RED)
Setlog($iUpdateCount & "|" & $eTroopCount & " - Error - Bad troop assignment in ChangeTroopTrainOrder()", $COLOR_ERROR)
SetError(3, 0, False)
Return
EndIf

Return True
EndFunc ;==>ChangeTroopTrainOrder

Func SetDefaultTroopGroup($bNoiseMode = True)
Func SetDefaultTroopGroup($bSetLog = True)
For $i = 0 To $eTroopCount - 1
$g_aiTrainOrder[$i] = $i
Next

If $bNoiseMode Or $g_iDebugSetlogTrain = 1 Then Setlog("Default troop training order set", $COLOR_GREEN)
If ($bSetLog Or $g_iDebugSetlogTrain = 1) And $g_bCustomTrainOrderEnable Then Setlog("Default troop training order set", $COLOR_SUCCESS)
EndFunc ;==>SetDefaultTroopGroup

Func IsUseCustomTroopOrder()
For $i = 0 To UBound($g_aiCmbCustomTrainOrder) - 1 ; Check if custom train order has been used, to select log message
If $g_aiCmbCustomTrainOrder[$i] = -1 Then
If $g_iDebugSetlogTrain = 1 Then Setlog("Custom train order not used...", $COLOR_DEBUG) ;Debug
If $g_iDebugSetlogTrain = 1 And $g_bCustomTrainOrderEnable Then Setlog("Custom train order not used...", $COLOR_DEBUG) ;Debug
Return False
EndIf
Next
If $g_iDebugSetlogTrain = 1 Then Setlog("Custom train order used...", $COLOR_DEBUG) ;Debug
If $g_iDebugSetlogTrain = 1 And $g_bCustomTrainOrderEnable Then Setlog("Custom train order used...", $COLOR_DEBUG) ;Debug
Return True
EndFunc ;==>IsUseCustomTroopOrder

Expand Down
10 changes: 10 additions & 0 deletions COCBot/GUI/MBR GUI Control Child Attack.au3
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,7 @@ Func chkAttackPlannerEnable()
If GUICtrlRead($g_hChkAttackPlannerCloseAll) = $GUI_UNCHECKED Then
GUICtrlSetState($g_hChkAttackPlannerCloseAll, $GUI_ENABLE)
GUICtrlSetState($g_hChkAttackPlannerCloseCoC, $GUI_ENABLE)
GUICtrlSetState($g_hChkAttackPlannerSuspendComputer, $GUI_ENABLE)
Else
GUICtrlSetState($g_hChkAttackPlannerCloseAll, $GUI_ENABLE)
GUICtrlSetState($g_hChkAttackPlannerCloseCoC, BitOR($GUI_DISABLE, $GUI_UNCHECKED))
Expand Down Expand Up @@ -330,6 +331,7 @@ Func chkAttackPlannerEnable()
Else
$g_bAttackPlannerEnable = False
GUICtrlSetState($g_hChkAttackPlannerCloseCoC, $GUI_DISABLE)
GUICtrlSetState($g_hChkAttackPlannerSuspendComputer, $GUI_DISABLE)
GUICtrlSetState($g_hChkAttackPlannerCloseAll, $GUI_DISABLE)
GUICtrlSetState($g_hChkAttackPlannerRandom, $GUI_DISABLE)
GUICtrlSetState($g_hCmbAttackPlannerRandom, $GUI_DISABLE)
Expand Down Expand Up @@ -357,6 +359,14 @@ Func chkAttackPlannerCloseCoC()
EndIf
EndFunc ;==>chkAttackPlannerCloseCoC

Func chkAttackPlannerSuspendComputer()
If GUICtrlRead($g_hChkAttackPlannerSuspendComputer) = $GUI_CHECKED Then
$g_bAttackPlannerSuspendComputer = True
Else
$g_bAttackPlannerSuspendComputer = False
EndIf
EndFunc ;==>chkAttackPlannerCloseCoC

Func chkAttackPlannerCloseAll()
If GUICtrlRead($g_hChkAttackPlannerCloseAll) = $GUI_CHECKED Then
$g_bAttackPlannerCloseAll = True
Expand Down
6 changes: 3 additions & 3 deletions COCBot/GUI/MBR GUI Control Notify.au3
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ Func chkPBTGenabled()
GUICtrlSetState($g_hChkNotifyTGEnable, $GUI_ENABLE)
GUICtrlSetState($g_hTxtNotifyPBToken, $GUI_DISABLE)
GUICtrlSetState($g_hBtnNotifyDeleteMessages, $GUI_DISABLE)
GUICtrlSetState($g_hChkNotifyDeleteAllPBPushes, $GUI_ENABLE)
GUICtrlSetState($g_hChkNotifyDeleteOldPBPushes, $GUI_ENABLE)
GUICtrlSetState($g_hBtnNotifyDeleteMessages, $GUI_ENABLE)
GUICtrlSetState($g_hChkNotifyDeleteAllPBPushes, $GUI_DISABLE)
GUICtrlSetState($g_hChkNotifyDeleteOldPBPushes, $GUI_DISABLE)
GUICtrlSetState($g_hBtnNotifyDeleteMessages, $GUI_DISABLE)
GUICtrlSetState($g_hCmbNotifyPushHours, $GUI_DISABLE)
EndIf

Expand Down
2 changes: 1 addition & 1 deletion COCBot/GUI/MBR GUI Design About.au3
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Func CreateAboutTab()
GUICtrlCreateLabel($sText, $x - 5, $y, 410, 20, BITOR($WS_VISIBLE, $ES_AUTOVSCROLL, $SS_LEFT), 0)
GUICtrlSetFont(-1, 9.5, $FW_BOLD, Default, "Arial")
GUICtrlSetColor(-1, $COLOR_NAVY)
$sText = "Ezeck0001, IceCube, Kaganus, MR.ViPeR, RoroTiti, Sardo, TheRevenor, Zengzeng"
$sText = "Ezeck0001, IceCube, Kaganus, MR.ViPeR, Sardo, TheRevenor, Zengzeng"
GUICtrlCreateLabel($sText, $x + 5, $y + 15, 410, 50, BITOR($WS_VISIBLE, $ES_AUTOVSCROLL, $SS_LEFT), 0)
GUICtrlSetFont(-1, 9, $FW_MEDIUM, Default, "Arial")

Expand Down
10 changes: 5 additions & 5 deletions COCBot/GUI/MBR GUI Design Child Attack - Activebase-Search.au3
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ Func CreateAttackSearchActiveBaseSearch()
$g_ahCmbWeakMortar[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
$sTxtTip = GetTranslated(625,38, -1)
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8", "Lvl 5")
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9|Lvl 10", "Lvl 5")
GUICtrlSetState(-1, $GUI_DISABLE)
$g_ahPicWeakMortar[$LB] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnMortar, $x + 75, $y - 2, 24, 24)
_GUICtrlSetTip(-1, $sTxtTip)
Expand All @@ -297,7 +297,7 @@ Func CreateAttackSearchActiveBaseSearch()
$g_ahCmbWeakWizTower[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
$sTxtTip = GetTranslated(625,39, -1)
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9", "Lvl 4")
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9|Lvl 10", "Lvl 4")
GUICtrlSetState(-1, $GUI_DISABLE)
$g_ahPicWeakWizTower[$LB] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnWizTower, $x + 75, $y - 2, 24, 24)
_GUICtrlSetTip(-1, $sTxtTip)
Expand All @@ -309,7 +309,7 @@ Func CreateAttackSearchActiveBaseSearch()
$g_ahCmbWeakAirDefense[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
$sTxtTip = GetTranslated(625,81, -1)
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8", "Lvl 7")
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9", "Lvl 7")
GUICtrlSetState(-1, $GUI_DISABLE)
$g_ahPicWeakAirDefense[$LB] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnAirdefense, $x + 75, $y - 2, 24, 24)
_GUICtrlSetTip(-1, $sTxtTip)
Expand All @@ -322,7 +322,7 @@ Func CreateAttackSearchActiveBaseSearch()
$g_ahCmbWeakXBow[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
$sTxtTip = GetTranslated(625,51, -1)
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4", "Lvl 2")
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5", "Lvl 2")
GUICtrlSetState(-1, $GUI_DISABLE)
$g_ahPicWeakXBow[$LB] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnXBow3, $x + 75, $y - 2, 24, 24)
_GUICtrlSetTip(-1, $sTxtTip)
Expand All @@ -334,7 +334,7 @@ Func CreateAttackSearchActiveBaseSearch()
$g_ahCmbWeakInferno[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
$sTxtTip = GetTranslated(625,52, -1)
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3", "Lvl 2")
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4", "Lvl 2")
GUICtrlSetState(-1, $GUI_DISABLE)
$g_ahPicWeakInferno[$LB] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnInferno4, $x + 75, $y - 2, 24, 24)
_GUICtrlSetTip(-1, $sTxtTip)
Expand Down
10 changes: 5 additions & 5 deletions COCBot/GUI/MBR GUI Design Child Attack - Deadbase-Search.au3
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ Func CreateAttackSearchDeadBaseSearch()
$g_ahCmbWeakMortar[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
$sTxtTip = GetTranslated(625,38, "Set the Max. level of the Mortar to search for on a village to attack.")
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8", "Lvl 5")
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9|Lvl 10", "Lvl 5")
GUICtrlSetState(-1, $GUI_DISABLE)
$g_ahPicWeakMortar[$DB] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnMortar, $x + 75, $y - 2, 24, 24)
_GUICtrlSetTip(-1, $sTxtTip)
Expand All @@ -300,7 +300,7 @@ Func CreateAttackSearchDeadBaseSearch()
$g_ahCmbWeakWizTower[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
$sTxtTip = GetTranslated(625,39, "Set the Max. level of the Wizard Tower to search for on a village to attack.")
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9", "Lvl 4")
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9|Lvl 10", "Lvl 4")
GUICtrlSetState(-1, $GUI_DISABLE)
$g_ahPicWeakWizTower[$DB] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnWizTower, $x + 75, $y - 2, 24, 24)
_GUICtrlSetTip(-1, $sTxtTip)
Expand All @@ -312,7 +312,7 @@ Func CreateAttackSearchDeadBaseSearch()
$g_ahCmbWeakAirDefense[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
$sTxtTip = GetTranslated(625,81, "Set the Max. level of the Air Defense to search for on a village to attack.")
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8", "Lvl 7")
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9", "Lvl 7")
GUICtrlSetState(-1, $GUI_DISABLE)
$g_ahPicWeakAirDefense[$DB] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnAirdefense, $x + 75, $y - 2, 24, 24)
_GUICtrlSetTip(-1, $sTxtTip)
Expand All @@ -325,7 +325,7 @@ Func CreateAttackSearchDeadBaseSearch()
$g_ahCmbWeakXBow[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
$sTxtTip = GetTranslated(625,51, "Set the Max. level of the X-Bow to search for on a village to attack.")
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4", "Lvl 2")
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5", "Lvl 2")
GUICtrlSetState(-1, $GUI_DISABLE)
$g_ahPicWeakXBow[$DB] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnXBow3, $x + 75, $y - 2, 24, 24)
_GUICtrlSetTip(-1, $sTxtTip)
Expand All @@ -337,7 +337,7 @@ Func CreateAttackSearchDeadBaseSearch()
$g_ahCmbWeakInferno[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL))
$sTxtTip = GetTranslated(625,52, "Set the Max. level of the Inferno Tower to search for on a village to attack.")
_GUICtrlSetTip(-1, $sTxtTip)
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3", "Lvl 2")
GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4", "Lvl 2")
GUICtrlSetState(-1, $GUI_DISABLE)
$g_ahPicWeakInferno[$DB] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnInferno4, $x + 75, $y - 2, 24, 24)
_GUICtrlSetTip(-1, $sTxtTip)
Expand Down
Loading

0 comments on commit 98c811a

Please sign in to comment.