@@ -342,7 +342,7 @@ Func chkTroopOrder($bSetLog = True)
342342 For $i = 0 To UBound ($g_ahCmbTroopOrder ) - 1
343343 GUICtrlSetState ($g_ahCmbTroopOrder [$i ], $GUI_ENABLE )
344344 Next
345- If IsUseCustomTroopOrder() = True Then GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnRedLight )
345+ If IsUseCustomTroopOrder() = True Then _GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnRedLight )
346346 Else
347347 $g_bCustomTrainOrderEnable = False
348348 GUICtrlSetState ($g_hBtnTroopOrderSet , $GUI_DISABLE ) ; disable button
@@ -370,7 +370,7 @@ Func chkSpellsOrder()
370370 Next
371371 GUICtrlSetState ($g_hBtnRemoveSpells , $GUI_ENABLE )
372372 GUICtrlSetState ($g_hBtnSpellsOrderSet , $GUI_ENABLE )
373- If IsUseCustomSpellsOrder() = True Then GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnRedLight )
373+ If IsUseCustomSpellsOrder() = True Then _GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnRedLight )
374374 Else
375375 $g_bCustomBrewOrderEnable = False
376376 For $i = 0 To UBound ($g_ahCmbSpellsOrder ) - 1
@@ -389,12 +389,12 @@ Func GUISpellsOrder()
389389 Local $iCtrlIdImage = $iGUI_CtrlId + 1 ; record control ID for $g_ahImgTroopOrder[$z] based on control of combobox that called this function
390390 Local $iSpellsIndex = _GUICtrlComboBox_GetCurSel($iGUI_CtrlId ) + 1 ; find zero based index number of Spell selected in combo box, add one for enum of proper icon
391391
392- GUICtrlSetImage ($iCtrlIdImage , $g_sLibIconPath , $g_aiSpellsOrderIcon [$iSpellsIndex ]) ; set proper Spell icon
392+ _GUICtrlSetImage ($iCtrlIdImage , $g_sLibIconPath , $g_aiSpellsOrderIcon [$iSpellsIndex ]) ; set proper Spell icon
393393
394394 For $i = 0 To UBound ($g_ahCmbSpellsOrder ) - 1 ; check for duplicate combobox index and flag problem
395395 If $iGUI_CtrlId = $g_ahCmbSpellsOrder [$i ] Then ContinueLoop
396396 If _GUICtrlComboBox_GetCurSel($iGUI_CtrlId ) = _GUICtrlComboBox_GetCurSel($g_ahCmbSpellsOrder [$i ]) Then
397- GUICtrlSetImage ($g_ahImgSpellsOrder [$i ], $g_sLibIconPath , $eIcnOptions )
397+ _GUICtrlSetImage ($g_ahImgSpellsOrder [$i ], $g_sLibIconPath , $eIcnOptions )
398398 _GUICtrlComboBox_SetCurSel($g_ahCmbSpellsOrder [$i ], - 1 )
399399 GUISetState ()
400400 $bDuplicate = True
@@ -406,7 +406,7 @@ Func GUISpellsOrder()
406406 Return
407407 Else
408408 GUICtrlSetState ($g_hBtnSpellsOrderSet , $GUI_ENABLE ) ; enable button to apply new order
409- GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnRedLight ) ; set status indicator to show need to apply new order
409+ _GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnRedLight ) ; set status indicator to show need to apply new order
410410 EndIf
411411EndFunc ; ==>GUISpellsOrder
412412
@@ -420,9 +420,9 @@ Func BtnRemoveSpells()
420420 $g_aiCmbCustomBrewOrder [$i ] = - 1
421421 _GUICtrlComboBox_ResetContent($g_ahCmbSpellsOrder [$i ])
422422 GUICtrlSetData ($g_ahCmbSpellsOrder [$i ], $sComboData , " " )
423- GUICtrlSetImage ($g_ahImgSpellsOrder [$i ], $g_sLibIconPath , $eIcnOptions )
423+ _GUICtrlSetImage ($g_ahImgSpellsOrder [$i ], $g_sLibIconPath , $eIcnOptions )
424424 Next
425- GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnSilverStar )
425+ _GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnSilverStar )
426426 SetDefaultSpellsGroup(False )
427427 SetRedrawBotWindow($bWasRedraw , Default , Default , Default , " BtnRemoveSpells" )
428428EndFunc ; ==>BtnRemoveSpells
@@ -433,12 +433,12 @@ Func GUITrainOrder()
433433 Local $iCtrlIdImage = $iGUI_CtrlId + 1 ; record control ID for $g_ahImgTroopOrder[$z] based on control of combobox that called this function
434434 Local $iTroopIndex = _GUICtrlComboBox_GetCurSel($iGUI_CtrlId ) + 1 ; find zero based index number of troop selected in combo box, add one for enum of proper icon
435435
436- GUICtrlSetImage ($iCtrlIdImage , $g_sLibIconPath , $g_aiTroopOrderIcon [$iTroopIndex ]) ; set proper troop icon
436+ _GUICtrlSetImage ($iCtrlIdImage , $g_sLibIconPath , $g_aiTroopOrderIcon [$iTroopIndex ]) ; set proper troop icon
437437
438438 For $i = 0 To UBound ($g_ahCmbTroopOrder ) - 1 ; check for duplicate combobox index and flag problem
439439 If $iGUI_CtrlId = $g_ahCmbTroopOrder [$i ] Then ContinueLoop
440440 If _GUICtrlComboBox_GetCurSel($iGUI_CtrlId ) = _GUICtrlComboBox_GetCurSel($g_ahCmbTroopOrder [$i ]) Then
441- GUICtrlSetImage ($g_ahImgTroopOrder [$i ], $g_sLibIconPath , $eIcnOptions )
441+ _GUICtrlSetImage ($g_ahImgTroopOrder [$i ], $g_sLibIconPath , $eIcnOptions )
442442 _GUICtrlComboBox_SetCurSel($g_ahCmbTroopOrder [$i ], - 1 )
443443 GUISetState ()
444444 $bDuplicate = True
@@ -449,7 +449,7 @@ Func GUITrainOrder()
449449 Return
450450 Else
451451 GUICtrlSetState ($g_hBtnTroopOrderSet , $GUI_ENABLE ) ; enable button to apply new order
452- GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnRedLight ) ; set status indicator to show need to apply new order
452+ _GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnRedLight ) ; set status indicator to show need to apply new order
453453 EndIf
454454EndFunc ; ==>GUITrainOrder
455455
@@ -463,9 +463,9 @@ Func BtnRemoveTroops()
463463 $g_aiCmbCustomTrainOrder [$i ] = - 1
464464 _GUICtrlComboBox_ResetContent ($g_ahCmbTroopOrder [$i ])
465465 GUICtrlSetData ($g_ahCmbTroopOrder [$i ], $sComboData , " " )
466- GUICtrlSetImage ($g_ahImgTroopOrder [$i ], $g_sLibIconPath , $eIcnOptions )
466+ _GUICtrlSetImage ($g_ahImgTroopOrder [$i ], $g_sLibIconPath , $eIcnOptions )
467467 Next
468- GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnSilverStar )
468+ _GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnSilverStar )
469469 SetDefaultTroopGroup(False )
470470 SetRedrawBotWindow($bWasRedraw , Default , Default , Default , " BtnRemoveTroops" )
471471EndFunc ; ==>BtnRemoveTroops
@@ -488,7 +488,7 @@ Func BtnSpellsOrderSet()
488488 If _GUICtrlComboBox_GetCurSel($g_ahCmbSpellsOrder [$i ]) <> - 1 And _
489489 _GUICtrlComboBox_GetCurSel($g_ahCmbSpellsOrder [$i ]) = _GUICtrlComboBox_GetCurSel($g_ahCmbSpellsOrder [$j ]) Then
490490 _GUICtrlComboBox_SetCurSel($g_ahCmbSpellsOrder [$j ], - 1 )
491- GUICtrlSetImage ($g_ahImgSpellsOrder [$j ], $g_sLibIconPath , $eIcnOptions )
491+ _GUICtrlSetImage ($g_ahImgSpellsOrder [$j ], $g_sLibIconPath , $eIcnOptions )
492492 $bReady = False
493493 Else
494494 GUICtrlSetColor ($g_ahCmbSpellsOrder [$j ], $COLOR_BLACK )
@@ -517,7 +517,7 @@ Func BtnSpellsOrderSet()
517517 If $aiBrewOrder [$j ] <> - 1 Then ; loop till find a valid troop enum
518518 $g_aiCmbCustomBrewOrder [$i ] = $aiBrewOrder [$j ] ; assign unused troop
519519 _GUICtrlComboBox_SetCurSel($g_ahCmbSpellsOrder [$i ], $aiBrewOrder [$j ])
520- GUICtrlSetImage ($g_ahImgSpellsOrder [$i ], $g_sLibIconPath , $g_aiSpellsOrderIcon [$g_aiCmbCustomBrewOrder [$i ] + 1 ])
520+ _GUICtrlSetImage ($g_ahImgSpellsOrder [$i ], $g_sLibIconPath , $g_aiSpellsOrderIcon [$g_aiCmbCustomBrewOrder [$i ] + 1 ])
521521 $aiBrewOrder [$j ] = - 1 ; remove unused troop from array
522522 ExitLoop
523523 EndIf
@@ -539,7 +539,7 @@ Func BtnSpellsOrderSet()
539539 Case Else
540540 Setlog(" Monkey ate bad banana, something wrong with ChangeSpellsBrewOrder() code!" , $COLOR_ERROR )
541541 EndSwitch
542- GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnRedLight )
542+ _GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnRedLight )
543543 Else
544544 Setlog(" Spells Brew order changed successfully!" , $COLOR_SUCCESS )
545545 For $i = 0 To $eSpellCount - 1
@@ -550,7 +550,7 @@ Func BtnSpellsOrderSet()
550550 EndIf
551551 Else
552552 Setlog(" Must use all Spells and No duplicate troop names!" , $COLOR_ERROR )
553- GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnRedLight )
553+ _GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnRedLight )
554554 EndIf
555555 ; GUICtrlSetState($g_hBtnTroopOrderSet, $GUI_DISABLE)
556556 SetRedrawBotWindow($bWasRedraw , Default , Default , Default , " BtnSpellsOrderSet" )
@@ -575,7 +575,7 @@ Func BtnTroopOrderSet()
575575 If _GUICtrlComboBox_GetCurSel($g_ahCmbTroopOrder [$i ]) <> - 1 And _
576576 _GUICtrlComboBox_GetCurSel($g_ahCmbTroopOrder [$i ]) = _GUICtrlComboBox_GetCurSel($g_ahCmbTroopOrder [$j ]) Then
577577 _GUICtrlComboBox_SetCurSel($g_ahCmbTroopOrder [$j ], - 1 )
578- GUICtrlSetImage ($g_ahImgTroopOrder [$j ], $g_sLibIconPath , $eIcnOptions )
578+ _GUICtrlSetImage ($g_ahImgTroopOrder [$j ], $g_sLibIconPath , $eIcnOptions )
579579 $bReady = False
580580 Else
581581 GUICtrlSetColor ($g_ahCmbTroopOrder [$j ], $COLOR_BLACK )
@@ -604,7 +604,7 @@ Func BtnTroopOrderSet()
604604 If $aiUsedTroop [$j ] <> - 1 Then ; loop till find a valid troop enum
605605 $g_aiCmbCustomTrainOrder [$i ] = $aiUsedTroop [$j ] ; assign unused troop
606606 _GUICtrlComboBox_SetCurSel($g_ahCmbTroopOrder [$i ], $aiUsedTroop [$j ])
607- GUICtrlSetImage ($g_ahImgTroopOrder [$i ], $g_sLibIconPath , $g_aiTroopOrderIcon [$g_aiCmbCustomTrainOrder [$i ] + 1 ])
607+ _GUICtrlSetImage ($g_ahImgTroopOrder [$i ], $g_sLibIconPath , $g_aiTroopOrderIcon [$g_aiCmbCustomTrainOrder [$i ] + 1 ])
608608 $aiUsedTroop [$j ] = - 1 ; remove unused troop from array
609609 ExitLoop
610610 EndIf
@@ -626,7 +626,7 @@ Func BtnTroopOrderSet()
626626 Case Else
627627 Setlog(" Monkey ate bad banana, something wrong with ChangeTroopTrainOrder() code!" , $COLOR_ERROR )
628628 EndSwitch
629- GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnRedLight )
629+ _GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnRedLight )
630630 Else
631631 Setlog(" Troop training order changed successfully!" , $COLOR_SUCCESS )
632632 For $i = 0 To $eTroopCount - 1
@@ -637,7 +637,7 @@ Func BtnTroopOrderSet()
637637 EndIf
638638 Else
639639 Setlog(" Must use all troops and No duplicate troop names!" , $COLOR_ERROR )
640- GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnRedLight )
640+ _GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnRedLight )
641641 EndIf
642642; GUICtrlSetState($g_hBtnTroopOrderSet, $GUI_DISABLE)
643643 SetRedrawBotWindow($bWasRedraw , Default , Default , Default , " BtnTroopOrderSet" )
@@ -670,7 +670,7 @@ Func ChangeSpellsBrewOrder()
670670 For $i = 0 To $eSpellCount - 1
671671 $g_aiBrewOrder [$i ] = $NewTroopOrder [$i ]
672672 Next
673- GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnGreenLight )
673+ _GUICtrlSetImage ($g_ahImgSpellsOrderSet , $g_sLibIconPath , $eIcnGreenLight )
674674 Else
675675 Setlog($iUpdateCount & " |" & $eSpellCount & " - Error - Bad Spells assignment in ChangeSpellsBrewOrder()" , $COLOR_ERROR )
676676 SetError (3 , 0 , False )
@@ -709,7 +709,7 @@ Func ChangeTroopTrainOrder()
709709 For $i = 0 To $eTroopCount - 1
710710 $g_aiTrainOrder [$i ] = $NewTroopOrder [$i ]
711711 Next
712- GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnGreenLight )
712+ _GUICtrlSetImage ($g_ahImgTroopOrderSet , $g_sLibIconPath , $eIcnGreenLight )
713713 Else
714714 Setlog($iUpdateCount & " |" & $eTroopCount & " - Error - Bad troop assignment in ChangeTroopTrainOrder()" , $COLOR_ERROR )
715715 SetError (3 , 0 , False )
0 commit comments