Skip to content

Commit

Permalink
MBR v6.5
Browse files Browse the repository at this point in the history
  • Loading branch information
ProMac committed Dec 21, 2016
1 parent 366d902 commit e20fa4f
Show file tree
Hide file tree
Showing 368 changed files with 3,075 additions and 1,987 deletions.
30 changes: 29 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,4 +1,32 @@
* **V6.4.1**
* **V6.5**
* Fix the Spells Factory and Brew Capacity issues
* Fix possible error or variables in IsGUICheckedForSpell
* Fix CleanYard log when not enabled
* Fix Button Search Mode
* Fix the Remain Time to request CC Troops|OCR
* Fix the Request CC troops (DEC Update)
* Fix the Donate CC troops (DEC Update)
* Fix the Army Overview detections (DEC Update)
* Fix the DE detection main page (DEC Update)
* Fix the Trophies detection main page (DEC Update)
* Fix the Trophies detection Attack page (DEC Update)
* Fix the Attack bar detection (DEC Update)
* Fix the train custom troops (DEC Update)
* Fix the OCR Language detection (DEC Update)
* Fix the Hero auto activation on low health (DEC Update)
* Fix the Colect Obstacles with snow (DEC Update)
* Fix the Notify Restart Loop
* Fix the Snow theme detection
* Improve the MyBotRunImgloc.dll
* Improve adding 34 more Chinese characters total 150 including elixir spells
* Improve the Gold Mines / Elixir Collector / Drills Snow detection
* Improve village search village measuring when returning home if failing
* Add Stat Donate Tab
* Add Portuguese GUI translation
* Add Auto Wall Upgrade Lv11
* Add Wizard Tower Snow Theme for weak base

* **V6.4.1**
* Fix bot ghosting/freezing jumping window when busy
* Fix minor GUI refresh issues
* Fix slow bot GUI when docked
Expand Down
12 changes: 12 additions & 0 deletions COCBot/GUI/MBR GUI Control BOT Options.au3
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ Func LoadLanguagesComboBox()
ReDim $aLanguageFile[$iFileIndex + 1][3]
$aLanguageFile[$iFileIndex][0] = StringLeft($sFilename, StringLen($sFilename) - 4)
Local $LangIcons
; All Language Icons are made by YummyGum and can be found here: https://www.iconfinder.com/iconsets/142-mini-country-flags-16x16px
Switch $aLanguageFile[$iFileIndex][0]
Case "BahasaIND"
$LangIcons = 192
Expand All @@ -49,6 +50,8 @@ Func LoadLanguagesComboBox()
$LangIcons = 201
Case "Turkish"
$LangIcons = 202
Case "Portuguese"
$LangIcons = 205
Case Else
$LangIcons = 203 ; Use Grey Icon when none of the Languages is matching
EndSwitch
Expand Down Expand Up @@ -236,6 +239,15 @@ Func chkDebugDisableVillageCentering()
SetDebugLog("DebugDisableVillageCentering " & ($debugDisableVillageCentering = 1 ? "enabled" : "disabled"))
EndFunc ;==>chkDebugDisableVillageCentering

Func chkDebugDeadbaseImage()
If GUICtrlRead($chkDebugDeadbaseImage) = $GUI_CHECKED Then
$debugDeadbaseImage = 1
Else
$debugDeadbaseImage = 0
EndIf
SetDebugLog("DebugDeadbaseImage " & ($debugDeadbaseImage = 1 ? "enabled" : "disabled"))
EndFunc ;==>chkDebugDeadbaseImage

Func chkDebugOcr()
If GUICtrlRead($chkDebugOcr) = $GUI_CHECKED Then
$debugOcr = 1
Expand Down
15 changes: 7 additions & 8 deletions COCBot/GUI/MBR GUI Control Bottom.au3
Original file line number Diff line number Diff line change
Expand Up @@ -336,12 +336,9 @@ Func btnAnalyzeVillage()
$debugDeadBaseImage = 0
EndFunc ;==>btnAnalyzeVillage

Func btnVillageStat()
If GUICtrlGetState($lblVillageReportTemp) <> $GUI_HIDE Then
GUICtrlSetState($lblVillageReportTemp, $GUI_HIDE)
EndIf
Func btnVillageStat($source = "")

SetTime(True)
If $FirstRun = 0 And $RunState = True And $TPaused = False Then SetTime(True)

If GUICtrlGetState($lblResultGoldNow) = $GUI_ENABLE + $GUI_SHOW Then
;hide normal values
Expand All @@ -355,9 +352,11 @@ Func btnVillageStat()
GUICtrlSetState($lblResultGoldHourNow, $GUI_ENABLE + $GUI_SHOW)
GUICtrlSetState($lblResultElixirHourNow, $GUI_ENABLE + $GUI_SHOW)
GUICtrlSetState($lblResultDEHourNow, $GUI_ENABLE + $GUI_SHOW)
GUICtrlSetState($lblResultRuntimeNow, $GUI_ENABLE + $GUI_SHOW)
GUICtrlSetState($lblResultAttackedHourNow, $GUI_ENABLE + $GUI_SHOW)
GUICtrlSetState($lblResultSkippedHourNow, $GUI_ENABLE + $GUI_SHOW)
If $FirstRun = 0 or $source = "UpdateStats" Then
GUICtrlSetState($lblResultRuntimeNow, $GUI_ENABLE + $GUI_SHOW)
GUICtrlSetState($lblResultAttackedHourNow, $GUI_ENABLE + $GUI_SHOW)
GUICtrlSetState($lblResultSkippedHourNow, $GUI_ENABLE + $GUI_SHOW)
EndIf
; hide normal pics
GUICtrlSetState($picResultTrophyNow, $GUI_ENABLE + $GUI_HIDE)
GUICtrlSetState($picResultBuilderNow, $GUI_ENABLE + $GUI_HIDE)
Expand Down
15 changes: 10 additions & 5 deletions COCBot/GUI/MBR GUI Control Child Army.au3
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,8 @@ Func lblTotalCount2()
Local $NbrOfDarkBarrack = 2 ;For the moment fix to 2 until fine detect level of each Barrack
For $i = 0 To UBound($TroopName) - 1
Local $NbrOfTroop = GUICtrlRead(Eval("txtNum" & $TroopName[$i]))
If $NbrOfTroop > 0 Then
Local $LevOfTroop = Eval("itxtLev" & $TroopName[$i])
If $NbrOfTroop > 0 And $LevOfTroop > 0 Then
If $TroopType[$i] = "e" Then
If IsInt($NbrOfTroop / $NbrOfBarrack) = 1 then
$TotalTotalTimeTroop += ($NbrOfTroop / $NbrOfBarrack) * $TroopTimes[$i]
Expand Down Expand Up @@ -898,14 +899,18 @@ EndFunc ;==>IsUseCustomDarkTroopOrder
;==============================================================
#Ce

Func LevUpDown($SelTroopSpell)
Func LevUpDown($SelTroopSpell, $NoChangeLev = True)
Local $MaxLev = UBound(Eval("Lev" & $SelTroopSpell & "Cost"), 1)
Local $LevColor = $COLOR_WHITE
Local $TempLev
If _IsPressed("10") Or _IsPressed("02") Then
$TempLev = Eval("itxtLev" & $SelTroopSpell) - 1
If $NoChangeLev Then
If _IsPressed("10") Or _IsPressed("02") Then
$TempLev = Eval("itxtLev" & $SelTroopSpell) - 1
Else
$TempLev = Eval("itxtLev" & $SelTroopSpell) + 1
EndIf
Else
$TempLev = Eval("itxtLev" & $SelTroopSpell) + 1
$TempLev = Eval("itxtLev" & $SelTroopSpell)
EndIf
If $TempLev > $MaxLev - 1 Or $TempLev = 0 Then
$TempLev = 0
Expand Down
13 changes: 10 additions & 3 deletions COCBot/GUI/MBR GUI Control Child Upgrade.au3
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,8 @@ Func cmbWalls()
$icmbWalls = _GUICtrlComboBox_GetCurSel($cmbWalls)
$WallCost = $WallCosts[_GUICtrlComboBox_GetCurSel($cmbWalls)]
GUICtrlSetData($lblWallCost, _NumberFormat($WallCost))
_GUI_Value_STATE("HIDE", $txtWall04ST & "#" & $txtWall05ST & "#" & $txtWall06ST & "#" & $txtWall07ST & "#" & $txtWall08ST & "#" & $txtWall09ST & "#" & $txtWall10ST & "#" & $txtWall11ST)
_GUI_Value_STATE("HIDE", $Wall04ST & "#" & $Wall05ST & "#" & $Wall06ST & "#" & $Wall07ST & "#" & $Wall08ST & "#" & $Wall09ST & "#" & $Wall10ST & "#" & $Wall11ST)
_GUI_Value_STATE("HIDE", $txtWall04ST & "#" & $txtWall05ST & "#" & $txtWall06ST & "#" & $txtWall07ST & "#" & $txtWall08ST & "#" & $txtWall09ST & "#" & $txtWall10ST & "#" & $txtWall11ST & "#" & $txtWall12ST)
_GUI_Value_STATE("HIDE", $Wall04ST & "#" & $Wall05ST & "#" & $Wall06ST & "#" & $Wall07ST & "#" & $Wall08ST & "#" & $Wall09ST & "#" & $Wall10ST & "#" & $Wall11ST & "#" & $Wall12ST)
Switch $icmbWalls ;
Case 0
_GUI_Value_STATE("SHOW", $txtWall04ST & "#" & $Wall04ST & "#" & $txtWall05ST & "#" & $Wall05ST)
Expand Down Expand Up @@ -332,13 +332,20 @@ Func cmbWalls()
GUICtrlSetState($txtWallMinElixir, $GUI_ENABLE)
Case 5
_GUI_Value_STATE("SHOW", $txtWall04ST & "#" & $Wall04ST & "#" & $txtWall05ST & "#" & $Wall05ST & "#" & $txtWall06ST & "#" & $Wall06ST & "#" & $txtWall07ST & "#" & $Wall07ST & "#" & $txtWall08ST & "#" & $Wall08ST & "#" & $txtWall09ST & "#" & $Wall09ST & "#" & $txtWall10ST & "#" & $Wall10ST)
$WallCost = 3000000
$WallCost = 2000000
GUICtrlSetData($lblWallCost, _NumberFormat($WallCost))
GUICtrlSetState($UseElixir, $GUI_ENABLE)
GUICtrlSetState($UseElixirGold, $GUI_ENABLE)
GUICtrlSetState($txtWallMinElixir, $GUI_ENABLE)
Case 6
_GUI_Value_STATE("SHOW", $txtWall04ST & "#" & $Wall04ST & "#" & $txtWall05ST & "#" & $Wall05ST & "#" & $txtWall06ST & "#" & $Wall06ST & "#" & $txtWall07ST & "#" & $Wall07ST & "#" & $txtWall08ST & "#" & $Wall08ST & "#" & $txtWall09ST & "#" & $Wall09ST & "#" & $txtWall10ST & "#" & $Wall10ST & "#" & $txtWall11ST & "#" & $Wall11ST)
$WallCost = 3000000
GUICtrlSetData($lblWallCost, _NumberFormat($WallCost))
GUICtrlSetState($UseElixir, $GUI_ENABLE)
GUICtrlSetState($UseElixirGold, $GUI_ENABLE)
GUICtrlSetState($txtWallMinElixir, $GUI_ENABLE)
Case 7
_GUI_Value_STATE("SHOW", $txtWall04ST & "#" & $Wall04ST & "#" & $txtWall05ST & "#" & $Wall05ST & "#" & $txtWall06ST & "#" & $Wall06ST & "#" & $txtWall07ST & "#" & $Wall07ST & "#" & $txtWall08ST & "#" & $Wall08ST & "#" & $txtWall09ST & "#" & $Wall09ST & "#" & $txtWall10ST & "#" & $Wall10ST & "#" & $txtWall11ST & "#" & $Wall11ST & "#" & $txtWall12ST & "#" & $Wall12ST)
$WallCost = 4000000
GUICtrlSetData($lblWallCost, _NumberFormat($WallCost))
GUICtrlSetState($UseElixir, $GUI_ENABLE)
Expand Down
6 changes: 0 additions & 6 deletions COCBot/GUI/MBR GUI Control Notify.au3
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,7 @@
; Example .......: No
; ===============================================================================================================================

Func PushBulletRemoteControl()
If ($NotifyPBEnabled = 1 Or $NotifyTGEnabled = 1) And $NotifyRemoteEnable = 1 Then NotifyRemoteControl()
EndFunc ;==>PushBulletRemoteControl

Func PushBulletDeleteOldPushes()
If $NotifyPBEnabled = 1 And $NotifyDeletePushesOlderThan = 1 Then _DeleteOldPushes() ; check every 30 min if must delete old pushbullet messages, increase delay time for anti ban pushbullet
EndFunc ;==>PushBulletDeleteOldPushes

Func chkPBTGenabled()
If GUICtrlRead($chkNotifyPBEnabled) = $GUI_CHECKED Then
Expand Down
6 changes: 3 additions & 3 deletions COCBot/GUI/MBR GUI Design Bottom.au3
Original file line number Diff line number Diff line change
Expand Up @@ -100,19 +100,19 @@ $arrowright = GUICtrlCreateIcon($pIconLib, $eIcnArrowRight, $x + 247 + 198, $y +
Local $x = 295, $y = $y_bottom + 20
$grpVillage = GUICtrlCreateGroup(GetTranslated(603,32, "Village"), $x - 20, $y - 20, 180, 85)
$lblResultGoldNow = GUICtrlCreateLabel("", $x - 5, $y + 2, 60, 15, $SS_RIGHT)
$lblResultGoldHourNow = GUICtrlCreateLabel("", $x, $y + 2, 50, 15, $SS_RIGHT)
$lblResultGoldHourNow = GUICtrlCreateLabel("", $x, $y + 2, 60, 15, $SS_RIGHT)
GUICtrlSetState(-1, $GUI_HIDE)
$picResultGoldNow = GUICtrlCreateIcon ($pIconLib, $eIcnGold, $x + 60, $y, 16, 16)
GUICtrlSetState(-1, $GUI_HIDE)
$picResultGoldTemp = GUICtrlCreateIcon ($pIconLib, $eIcnGold, $x - 5, $y, 16, 16)
$lblResultElixirNow = GUICtrlCreateLabel("", $x - 5, $y + 22, 60, 15, $SS_RIGHT)
$lblResultElixirHourNow = GUICtrlCreateLabel("", $x, $y + 22, 50, 15, $SS_RIGHT)
$lblResultElixirHourNow = GUICtrlCreateLabel("", $x, $y + 22, 60, 15, $SS_RIGHT)
GUICtrlSetState(-1, $GUI_HIDE)
$picResultElixirNow = GUICtrlCreateIcon ($pIconLib, $eIcnElixir, $x + 60, $y + 20, 16, 16)
GUICtrlSetState(-1, $GUI_HIDE)
$picResultElixirTemp = GUICtrlCreateIcon ($pIconLib, $eIcnElixir, $x - 5, $y + 20, 16, 16)
$lblResultDENow = GUICtrlCreateLabel("", $x, $y + 42, 55, 15, $SS_RIGHT)
$lblResultDEHourNow = GUICtrlCreateLabel("", $x - 5, $y + 42, 55, 15, $SS_RIGHT)
$lblResultDEHourNow = GUICtrlCreateLabel("", $x - 5, $y + 42, 60, 15, $SS_RIGHT)
GUICtrlSetState(-1, $GUI_HIDE)
$picResultDENow = GUICtrlCreateIcon ($pIconLib, $eIcnDark, $x + 60, $y + 40, 16, 16)
GUICtrlSetState(-1, $GUI_HIDE)
Expand Down
9 changes: 7 additions & 2 deletions COCBot/GUI/MBR GUI Design Child Bot - Debug.au3
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,13 @@ $grpDebug = GUICtrlCreateGroup(GetTranslated(636,34, "Debug"), $x - 20, $y - 20,
GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlSetState(-1, $GUI_HIDE)
$y += 20
$chkDebugDisableVillageCentering = GUICtrlCreateCheckbox(GetTranslated(636,113, "Disable Village Centering"), $x , $y-5, -1, -1)
_GUICtrlSetTip(-1, GetTranslated(636,114, "Debug: Disables centering of village."))
$chkDebugDisableVillageCentering = GUICtrlCreateCheckbox(GetTranslated(636,114, "Disable Village Centering"), $x , $y-5, -1, -1)
_GUICtrlSetTip(-1, GetTranslated(636,115, "Debug: Disables centering of village."))
GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlSetState(-1, $GUI_HIDE)
$y += 20
$chkDebugDeadbaseImage = GUICtrlCreateCheckbox(GetTranslated(636,116, "Deadbase Image save"), $x , $y-5, -1, -1)
_GUICtrlSetTip(-1, GetTranslated(636,117, "Debug: Saves images of skipped deadbase villages."))
GUICtrlSetState(-1, $GUI_DISABLE)
GUICtrlSetState(-1, $GUI_HIDE)

Expand Down
2 changes: 1 addition & 1 deletion COCBot/GUI/MBR GUI Design Child Bot - Options.au3
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ $grpLanguages = GUICtrlCreateGroup(GetTranslated(636,83, "GUI Language"), $x - 2

LoadLanguagesComboBox() ; full combo box languages reading from languages folders

_GUICtrlComboBoxEx_SetCurSel($cmbLanguage, _GUICtrlComboBoxEx_FindStringExact($cmbLanguage, $sLanguage))
_GUICtrlComboBoxEx_SetCurSel($cmbLanguage, _GUICtrlComboBoxEx_FindStringExact($cmbLanguage, $sLanguageDisp))
GUICtrlCreateGroup("", -99, -99, 1, 1)

$y += 54
Expand Down
158 changes: 157 additions & 1 deletion COCBot/GUI/MBR GUI Design Child Bot - Stats.au3
Original file line number Diff line number Diff line change
Expand Up @@ -934,6 +934,162 @@ $hGUI_STATS_TAB_ITEM3 = GUICtrlCreateTabItem(GetTranslated(600,40,"Attacks"))
GUICtrlCreateGroup("", -99, -99, 1, 1)

;--> TAB Attacks
;TAB Attacks
$hGUI_STATS_TAB_ITEM4 = GUICtrlCreateTabItem(GetTranslated(600, 55,"Donations"))

Local $x = 5, $y = 25, $z = 33

$grpElxTr = GUICtrlCreateGroup(GetTranslated(632,118,"Troops"), $x, $y, 425, 240, BitOR($GUI_SS_DEFAULT_GROUP,$BS_CENTER))

$x -= 12
$y += 20
$z += 20

GUICtrlCreateIcon($pIconLib, $eIcnBarbarian, $x + 60, $y, 32, 32)
$lblDonQ[1] = GUICtrlCreateLabel("0", $x + 20, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnArcher, $x + 140, $y, 32, 32)
$lblDonQ[2] = GUICtrlCreateLabel("0", $x + 100, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnGiant, $x + 220, $y, 32, 32)
$lblDonQ[3] = GUICtrlCreateLabel("0", $x + 180, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnGoblin, $x + 300, $y, 32, 32)
$lblDonQ[4] = GUICtrlCreateLabel("0", $x + 260, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnWallBreaker, $x + 380, $y, 32, 32)
$lblDonQ[5] = GUICtrlCreateLabel("0", $x + 340, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

$y += 35
$z += 35

GUICtrlCreateIcon($pIconLib, $eIcnBalloon, $x + 60, $y, 32, 32)
$lblDonQ[6] = GUICtrlCreateLabel("0", $x + 20, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnWizard, $x + 140, $y, 32, 32)
$lblDonQ[7] = GUICtrlCreateLabel("0", $x + 100, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnHealer, $x + 220, $y, 32, 32)
$lblDonQ[8] = GUICtrlCreateLabel("0", $x + 180, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnDragon, $x + 300, $y, 32, 32)
$lblDonQ[9] = GUICtrlCreateLabel("0", $x + 260, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnPekka, $x + 380, $y, 32, 32)
$lblDonQ[10] = GUICtrlCreateLabel("0", $x + 340, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

$y += 35
$z += 35

GUICtrlCreateIcon($pIconLib, $eIcnBabyDragon, $x + 60, $y, 32, 32)
$lblDonQ[11] = GUICtrlCreateLabel("0", $x + 20, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnMiner, $x + 140, $y, 32, 32)
$lblDonQ[12] = GUICtrlCreateLabel("0", $x + 100, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

$y += 40
$z += 40

GUICtrlCreateIcon($pIconLib, $eIcnMinion, $x + 60, $y, 32, 32)
$lblDonQ[13] = GUICtrlCreateLabel("0", $x + 20, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnHogRider, $x + 140, $y, 32, 32)
$lblDonQ[14] = GUICtrlCreateLabel("0", $x + 100, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnValkyrie, $x + 220, $y, 32, 32)
$lblDonQ[15] = GUICtrlCreateLabel("0", $x + 180, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnGolem, $x + 300, $y, 32, 32)
$lblDonQ[16] = GUICtrlCreateLabel("0", $x + 260, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnWitch, $x + 380, $y, 32, 32)
$lblDonQ[17] = GUICtrlCreateLabel("0", $x + 340, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

$y += 35
$z += 35

GUICtrlCreateIcon($pIconLib, $eIcnLavaHound, $x + 60, $y, 32, 32)
$lblDonQ[18] = GUICtrlCreateLabel("0", $x + 20, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnBowler, $x + 140, $y, 32, 32)
$lblDonQ[19] = GUICtrlCreateLabel("0", $x + 100, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

$x += 12
$y += 40

$lblTotalTroopsQ = GUICtrlCreateLabel(GetTranslated(632,120,"Total Donated") & " : 0", $x + 5, $y, 230, 27, $SS_CENTER)
GUICtrlSetFont(-1, 12, 800, 0, "Arial Black")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x808080)

$lblTotalTroopsXP = GUICtrlCreateLabel(GetTranslated(632,121,"XP Won") & " : 0", $x + 240, $y, 180, 27, $SS_CENTER)
GUICtrlSetFont(-1, 12, 800, 0, "Arial Black")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x808080)

GUICtrlCreateGroup("", -99, -99, 1, 1)

Local $x = 5, $y = 265, $z = 273

$grpDElxTrSp = GUICtrlCreateGroup(GetTranslated(632,119,"Spells"), $x, $y, 425, 95, BitOR($GUI_SS_DEFAULT_GROUP,$BS_CENTER))

$x -= 12
$x += 40
$y += 20
$z += 20

GUICtrlCreateIcon($pIconLib, $eIcnPoisonSpell, $x + 60, $y, 32, 32)
$lblDonQ[20] = GUICtrlCreateLabel("0", $x + 20, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnEarthQuakeSpell, $x + 140, $y, 32, 32)
$lblDonQ[21] = GUICtrlCreateLabel("0", $x + 100, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnHasteSpell, $x + 220, $y, 32, 32)
$lblDonQ[22] = GUICtrlCreateLabel("0", $x + 180, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

GUICtrlCreateIcon($pIconLib, $eIcnSkeletonSpell, $x + 300, $y, 32, 32)
$lblDonQ[23] = GUICtrlCreateLabel("0", $x + 260, $z, 35, 20, $SS_RIGHT)
GUICtrlSetFont(-1, 11, 800, 0, "Arial")

$x -= 40
$x += 12
$y += 40

$lblTotalSpellsQ = GUICtrlCreateLabel(GetTranslated(632,120,"Total Donated") & " : 0", $x + 5, $y, 230, 27, $SS_CENTER)
GUICtrlSetFont(-1, 12, 800, 0, "Arial Black")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x808080)

$lblTotalSpellsXP = GUICtrlCreateLabel(GetTranslated(632,121,"XP Won") & " : 0", $x + 240, $y, 180, 27, $SS_CENTER)
GUICtrlSetFont(-1, 12, 800, 0, "Arial Black")
GUICtrlSetColor(-1, 0xFFFFFF)
GUICtrlSetBkColor(-1, 0x808080)

GUICtrlCreateGroup("", -99, -99, 1, 1)

;--> TAB Don Stats

GUICtrlCreateTabItem("")
;GUISetState()
;GUISetState()
Loading

0 comments on commit e20fa4f

Please sign in to comment.