From 28c68ba2dc69927228644aaab48feb499dae48d8 Mon Sep 17 00:00:00 2001 From: MonkeyHunter Date: Tue, 26 Dec 2023 08:41:03 -0700 Subject: [PATCH] * v8.1.4 ** * Fixed Legend League Sign-up. * Improved LatinA OCR. * Try To Fix BS5.12+ resize issue. * Changed CheckObstacle Results from SetLog to SetDebugLog. * Improved blocking donate message on screen detection. * Improved sieges making. * Changed timings for detections on Clan Capital. * Improved Clan Games Challenges detection. * Improved Clan Games Rewards detection. * Improved District detection (Clan capital). * Improved Suggested upgrades (Builder Base). * Fixed TH Search Filter. * Improved Jungle scenery detection (Home village). * Improved New Buildings support (Builder Base). * Updated Heroes, Pets and Walls Costs. * Updated Walls Count. * Updated Lighting level and Hitpoint. * Updated few GUI images. ** Added Support for COC 16.0.4+ (TH16 Update) * Added support for Root Rider. * Added support for Spirit Fox (GUI for now) * Updated BB end of Battle images. * Added support for new training UI. * Added new GUI for Training. * Added GingerBread Scenery support (Attack only). * Added XBow lvl 11, TH lvl 16, Air def lvl 14 and Lab lvl 14 templates. * Added Root Rider templates for donation. * Updated Pet House upgrade function. * Improved Laboratory upgrades. * Improved Check Heroes Health Status while attacking. * Improved CG event time detection. * Improved attack bar 12+ slots detection. * Improved train remaining time OCR. * Added Boost button handle (Drop trophies). * Updated Boost barrack button template. * Improved Clan Games Purge code. * Improved Pet upgrade time detection. * Added new update window detection. --- CHANGELOG | 40 + .../GUI/MBR GUI Control Attack Scripted.au3 | 14 +- COCBot/GUI/MBR GUI Control Child Army.au3 | 531 +- COCBot/GUI/MBR GUI Control Child Upgrade.au3 | 286 +- COCBot/GUI/MBR GUI Control Donate.au3 | 2 +- COCBot/GUI/MBR GUI Design About.au3 | 4 +- COCBot/GUI/MBR GUI Design Attack.au3 | 6 +- ...esign Child Attack - Activebase-Search.au3 | 167 +- .../MBR GUI Design Child Attack - Bully.au3 | 10 +- ... Design Child Attack - Deadbase-Search.au3 | 167 +- .../MBR GUI Design Child Attack - Troops.au3 | 1173 ++-- .../GUI/MBR GUI Design Child Bot - Stats.au3 | 2944 +++++----- ...MBR GUI Design Child VIllage - Upgrade.au3 | 1031 ++-- .../MBR GUI Design Child Village - Donate.au3 | 5101 +++++++++-------- .../MBR GUI Design Child Village - Misc.au3 | 2 +- COCBot/MBR GUI Control Variables.au3 | 9 +- COCBot/MBR GUI Control.au3 | 2 +- COCBot/MBR Global Variables.au3 | 270 +- COCBot/MBR References.au3 | 9 +- .../Android/Android Status & Information.txt | 4 +- COCBot/functions/Android/Android.au3 | 4 +- COCBot/functions/Android/getBSPos.au3 | 3 + .../Attack/Attack Algorithms/SmartFarm.au3 | 3 +- .../Attack Algorithms/algorithm_AllTroops.au3 | 32 +- .../ParseAttackCSV_Settings_variables.au3 | 3 + .../functions/Attack/BuilderBase/AttackBB.au3 | 10 +- .../Attack/BuilderBase/GetAttackBarBB.au3 | 10 +- .../Attack/BuilderBase/PrepareAttackBB.au3 | 4 +- .../functions/Attack/GoldElixirChangeEBO.au3 | 9 + .../Attack/Troops/DropOrderTroops.au3 | 138 +- COCBot/functions/Config/ScreenCoordinates.au3 | 53 +- COCBot/functions/Config/applyConfig.au3 | 6 +- COCBot/functions/Config/readConfig.au3 | 2 +- COCBot/functions/Config/saveConfig.au3 | 2 +- COCBot/functions/CreateArmy/CheckFullArmy.au3 | 8 +- COCBot/functions/CreateArmy/DoubleTrain.au3 | 31 +- COCBot/functions/CreateArmy/QuickTrain.au3 | 6 +- COCBot/functions/CreateArmy/TrainIt.au3 | 116 +- COCBot/functions/CreateArmy/TrainSiege.au3 | 61 +- COCBot/functions/CreateArmy/TrainSystem.au3 | 103 +- .../getArmyCCSiegeMachines.au3 | 8 +- .../getArmyCCSpells/getArmyCCSpell.au3 | 6 +- .../getArmyCCTroops/getArmyCCTroops.au3 | 8 +- .../getArmyHeroes/getArmyHeroCount.au3 | 8 +- .../getArmyHeroes/getArmyHeroTime.au3 | 3 +- .../getArmySiegeMachines.au3 | 14 +- .../getArmySpells/getArmySpellTime.au3 | 2 +- .../getArmySpells/getArmySpells.au3 | 4 +- .../getArmyTroops/getArmyTroopTime.au3 | 2 +- .../getArmyTroops/getArmyTroops.au3 | 10 +- .../functions/CreateArmy/openArmyOverview.au3 | 48 +- COCBot/functions/Image Search/QuickMIS.au3 | 102 +- .../Image Search/imglocAuxiliary.au3 | 96 +- .../functions/Image Search/imglocTHSearch.au3 | 10 + .../functions/Main Screen/checkMainScreen.au3 | 4 +- .../functions/Main Screen/checkObstacles.au3 | 5 +- COCBot/functions/Other/UpdateStats.au3 | 2 +- COCBot/functions/Pixels/_CheckPixel.au3 | 12 +- COCBot/functions/Read Text/getOcr.au3 | 18 +- COCBot/functions/Search/PrepareSearch.au3 | 2 +- COCBot/functions/Village/Auto Upgrade.au3 | 3 + .../functions/Village/BuilderBase/Collect.au3 | 2 +- .../Village/BuilderBase/StarLaboratory.au3 | 4 +- .../Village/BuilderBase/SuggestedUpgrades.au3 | 263 +- .../Village/Clan Games/ClanGames.au3 | 56 +- COCBot/functions/Village/ClanCapital.au3 | 118 +- COCBot/functions/Village/DonateCC.au3 | 10 +- COCBot/functions/Village/DropTrophy.au3 | 14 +- COCBot/functions/Village/FreeMagicItems.au3 | 13 +- COCBot/functions/Village/Laboratory.au3 | 46 +- COCBot/functions/Village/LocatePetHouse.au3 | 20 +- COCBot/functions/Village/LocateUpgrade.au3 | 2 + COCBot/functions/Village/PetHouse.au3 | 101 +- COCBot/functions/Village/RequestCC.au3 | 17 +- COCBot/functions/Village/StarBonus.au3 | 22 +- .../Village/SwitchAccountVariablesReload.au3 | 2 +- COCBot/functions/Village/TreasuryCollect.au3 | 8 + COCBot/functions/Village/UpgradeBuilding.au3 | 6 +- Languages/English.ini | Bin 266960 -> 267772 bytes MyBot.run.MiniGui.exe | Bin 1626624 -> 1627136 bytes MyBot.run.Watchdog.exe | Bin 1159168 -> 1159168 bytes MyBot.run.Wmi.exe | Bin 1154048 -> 1154048 bytes MyBot.run.exe | Bin 2877440 -> 2884096 bytes MyBot.run.version.au3 | 6 +- README.md | 44 - .../RequestCC/AlreadyMade_0_92.xml | 2 +- .../ArmyOverview/RequestCC/Available_0_92.xml | 2 +- .../RequestCC/FullOrUnavail_0_90.xml | 2 +- .../RequestCC/FullOrUnavail_1_90.xml | 1 - .../SiegeMachines/BattleB_100_92.xml | 2 +- .../SiegeMachines/FlameF_100_92.xml | 2 +- .../SiegeMachines/LogL_100_92.xml | 2 +- .../SiegeMachines/SiegeB_100_91.xml | 1 + .../SiegeMachines/SiegeB_100_92.xml | 1 - .../SiegeMachines/StoneS_100_92.xml | 2 +- .../{WallW_100_93.xml => WallW_100_92.xml} | 0 .../SiegeMachinesQueued/BattleB_100_92.xml | 2 +- .../SiegeMachinesQueued/BattleD_100_91.xml | 1 + .../SiegeMachinesQueued/BattleD_100_94.xml | 1 - .../SiegeMachinesQueued/FlameF_100_90.xml | 1 + .../SiegeMachinesQueued/FlameF_100_92.xml | 1 - .../SiegeMachinesQueued/LogL_100_91.xml | 1 + .../SiegeMachinesQueued/LogL_100_92.xml | 1 - .../SiegeMachinesQueued/SiegeB_100_91.xml | 1 + .../SiegeMachinesQueued/SiegeB_100_92.xml | 1 - .../SiegeMachinesQueued/StoneS_100_91.xml | 1 + .../SiegeMachinesQueued/StoneS_100_92.xml | 1 - .../SiegeMachinesQueued/WallW_100_92.xml | 2 +- .../SpellsQueued/BtSpell_100_92.xml | 1 + .../SpellsQueued/BtSpell_100_93.xml | 1 - .../{CSpell_100_93.xml => CSpell_100_92.xml} | 0 .../SpellsQueued/ESpell_100_92.xml | 1 + .../SpellsQueued/ESpell_100_93.xml | 1 - .../{FSpell_100_93.xml => FSpell_100_92.xml} | 0 .../{HSpell_100_94.xml => HSpell_100_92.xml} | 0 ...{HaSpell_100_93.xml => HaSpell_100_92.xml} | 0 .../{JSpell_100_93.xml => JSpell_100_92.xml} | 0 .../{LSpell_100_93.xml => LSpell_100_92.xml} | 0 .../{PSpell_100_93.xml => PSpell_100_92.xml} | 0 ...{REspell_100_93.xml => REspell_100_92.xml} | 0 .../{RSpell_100_93.xml => RSpell_100_92.xml} | 0 .../SpellsQueued/SkSpell_100_92.xml | 1 + .../SpellsQueued/SkSpell_100_94.xml | 1 - .../ArmyOverview/Troops/InfernoD_100_92.xml | 2 +- imgxml/ArmyOverview/Troops/Lava_100_92.xml | 2 +- imgxml/ArmyOverview/Troops/Mine_100_92.xml | 2 +- imgxml/ArmyOverview/Troops/Mini_100_92.xml | 2 +- imgxml/ArmyOverview/Troops/RBall_100_91.xml | 2 +- imgxml/ArmyOverview/Troops/RootR_100_92.xml | 1 + imgxml/ArmyOverview/Troops/SBowl_100_92.xml | 2 +- imgxml/ArmyOverview/Troops/SGiant_100_92.xml | 2 +- imgxml/ArmyOverview/Troops/SMini_100_92.xml | 2 +- imgxml/ArmyOverview/Troops/SWitc_100_92.xml | 2 +- .../{SWiza_100_92.xml => SWiza_100_91.xml} | 0 imgxml/ArmyOverview/Troops/Wiza_100_91.xml | 2 +- .../ArmyOverview/TroopsQueued/Ball_100_90.xml | 1 - .../ArmyOverview/TroopsQueued/Ball_100_92.xml | 1 + .../ArmyOverview/TroopsQueued/Bowl_100_91.xml | 2 +- .../TroopsQueued/EDrag_100_92.xml | 2 +- .../TroopsQueued/Giant_100_92.xml | 2 +- .../ArmyOverview/TroopsQueued/Heal_100_92.xml | 2 +- .../ArmyOverview/TroopsQueued/Hogs_100_92.xml | 2 +- .../ArmyOverview/TroopsQueued/Hunt_100_92.xml | 2 +- .../TroopsQueued/InfernoD_100_92.xml | 2 +- .../ArmyOverview/TroopsQueued/Lava_100_92.xml | 2 +- .../ArmyOverview/TroopsQueued/Mine_100_92.xml | 2 +- .../ArmyOverview/TroopsQueued/Pekk_100_92.xml | 2 +- .../TroopsQueued/RDrag_100_92.xml | 2 +- .../TroopsQueued/RootR_100_92.xml | 1 + .../TroopsQueued/SBowl_100_91.xml | 2 +- .../TroopsQueued/SGiant_100_92.xml | 2 +- .../TroopsQueued/SMini_100_92.xml | 2 +- .../TroopsQueued/SWall_100_92.xml | 2 +- .../TroopsQueued/SWitc_100_92.xml | 2 +- .../ArmyOverview/TroopsQueued/Yeti_100_92.xml | 2 +- .../AttackBB/AttackBar/CannonCart_100_90.xml | 1 + .../AttackBB/AttackBar/CannonCart_100_92.xml | 1 - .../{BMDead_0_93.xml => BMDead_0_92.xml} | 0 ...achine_0_93.xml => BattleMachine_0_92.xml} | 0 ...achine_1_93.xml => BattleMachine_1_92.xml} | 0 ...achine_2_93.xml => BattleMachine_2_92.xml} | 0 .../AttackBonus/AttackBonusOkay_0_90.xml | 1 + .../AttackBonus/AttackBonusOkay_0_92.xml | 1 - .../AttackBB/ReturnHome/ReturnHome_0_90.xml | 1 + .../AttackBB/ReturnHome/ReturnHome_0_92.xml | 1 - .../Search/LegendLeague/SignUp_0_92.xml | 2 +- imgxml/AttackBar/Queen_100_93.xml | 2 +- imgxml/AttackBar/RootR_100_92.xml | 1 + .../{Warden_100_90.xml => Warden_100_92.xml} | 0 imgxml/Buildings/ADefense/AD_13_90.xml | 1 - imgxml/Buildings/ADefense/AD_13_91.xml | 1 + imgxml/Buildings/ADefense/AD_14_91.xml | 1 + imgxml/Buildings/Laboratory/Lab_14_90.xml | 1 + imgxml/Buildings/Townhall/TownHall_10_90.xml | 1 - imgxml/Buildings/Townhall/TownHall_10_92.xml | 1 + imgxml/Buildings/Townhall/TownHall_11_90.xml | 1 - imgxml/Buildings/Townhall/TownHall_11_92.xml | 1 + imgxml/Buildings/Townhall/TownHall_12_92.xml | 2 +- imgxml/Buildings/Townhall/TownHall_13_90.xml | 1 - imgxml/Buildings/Townhall/TownHall_13_92.xml | 1 + imgxml/Buildings/Townhall/TownHall_14_89.xml | 1 + imgxml/Buildings/Townhall/TownHall_15_90.xml | 1 + imgxml/Buildings/Townhall/TownHall_15_91.xml | 1 - imgxml/Buildings/Townhall/TownHall_16_90.xml | 1 + imgxml/Buildings/Townhall/TownHall_6_94.xml | 2 +- imgxml/Buildings/Townhall/TownHall_7_92.xml | 1 - imgxml/Buildings/Townhall/TownHall_7_93.xml | 1 + imgxml/Buildings/Townhall/TownHall_8_92.xml | 1 + imgxml/Buildings/Townhall/TownHall_8_93.xml | 1 - imgxml/Buildings/Townhall/TownHall_9_92.xml | 2 +- imgxml/Buildings/Townhall/Townhall_10_91.xml | 1 - imgxml/Buildings/Townhall/Townhall_14_90.xml | 1 - imgxml/Buildings/Xbow/XBow_11_90.xml | 1 + imgxml/CheckObstacles/COCUpdate_2_92.xml | 1 + imgxml/DonateCC/Army/RootR_100_92.xml | 1 + imgxml/DonateCC/Troops/RootR_100_92.xml | 1 + imgxml/Research/Laboratory/RootR_100_92.xml | 1 + .../NewBuildings/Slot/Slot_0_90.xml | 2 +- .../NewBuildings/Slot/Slot_0_92.xml | 1 - .../ClanCapital/CCMap/OldBuilder_0_92.xml | 2 +- .../Challenges/A-BattleB_0_90.xml | 1 - .../Challenges/A-BattleB_0_91.xml | 1 + .../Challenges/B-NoHero_0_92.xml | 1 + .../Challenges/B-NoHero_0_93.xml | 1 - .../Challenges/B-NoMagic_0_91.xml | 1 + .../Challenges/B-NoMagic_0_92.xml | 1 - ...rTimed_0_91.xml => BBB-StarTimed_0_90.xml} | 0 .../Challenges/BBD-BuildingDes_0_91.xml | 2 +- ...rtar_0_92.xml => BBD-MultiMortar_0_91.xml} | 0 ...rtar_1_92.xml => BBD-MultiMortar_1_91.xml} | 0 ...BT-SPekka_0_93.xml => BBT-SPekka_0_92.xml} | 0 .../Challenges/D-BBreakdown_0_91.xml | 2 +- ...{D-BKaltar_0_92.xml => D-BKaltar_0_91.xml} | 0 .../Challenges/D-ClanC_2_91.xml | 1 + .../{D-GoldM_0_92.xml => D-GoldM_0_90.xml} | 0 .../{D-GoldM_1_92.xml => D-GoldM_1_90.xml} | 0 .../{D-Mortar_1_93.xml => D-Mortar_1_92.xml} | 0 .../Challenges/D-ScatterShotSabotage_1_90.xml | 1 + .../Challenges/D-Tesla_2_91.xml | 1 + ...eTroop_0_92.xml => M-DonateTroop_0_91.xml} | 0 .../MainLoop/Versus/Builder_4_93.xml | 1 + .../Rewards/BookOfFighting_0_95.xml | 2 +- .../Rewards/FullBookOfFighting_0_95.xml | 2 +- ...2.xml => FullRuneOfBuilderElixir_0_93.xml} | 0 imgxml/Train/Siege_Train/FlameF_0_92.xml | 2 +- imgxml/Train/Siege_Train/SiegeB_0_92.xml | 2 +- imgxml/Train/Siege_Train/WallW_0_92.xml | 2 +- imgxml/Train/Spell_Train/ESpell_100_92.xml | 2 +- imgxml/Train/Train_Train/Ball_100_90.xml | 2 +- imgxml/Train/Train_Train/ETitan_100_92.xml | 2 +- imgxml/Train/Train_Train/GSkel_100_93.xml | 1 - imgxml/Train/Train_Train/Hunt_100_92.xml | 2 +- imgxml/Train/Train_Train/IWiza_100_93.xml | 1 - imgxml/Train/Train_Train/InfernoD_100_92.xml | 2 +- imgxml/Train/Train_Train/PWiza_100_93.xml | 1 - imgxml/Train/Train_Train/RDrag_100_92.xml | 2 +- imgxml/Train/Train_Train/RGhost_100_93.xml | 1 - imgxml/Train/Train_Train/RootR_100_92.xml | 1 + imgxml/Train/Train_Train/SBarb_100_92.xml | 2 +- imgxml/Train/Train_Train/SBowl_0_92.xml | 2 +- imgxml/Train/Train_Train/SHogs_100_91.xml | 1 + imgxml/Train/Train_Train/SHogs_100_92.xml | 1 - imgxml/Train/Train_Train/SMini_100_91.xml | 2 +- imgxml/Train/Train_Train/SValk_100_92.xml | 2 +- imgxml/Train/Train_Train/SWall_100_92.xml | 2 +- imgxml/Train/Train_Train/SWitc_100_92.xml | 2 +- imgxml/Train/Train_Train/Wiza_100_92.xml | 2 +- imgxml/imglocbuttons/ArmyTab_0_92.xml | 2 +- imgxml/imglocbuttons/BoostBarrack_0_89.xml | 2 +- .../BoostButtons/BoostButton_0_93.xml | 1 + imgxml/imglocbuttons/BrewSpellsTab_0_92.xml | 2 +- .../BuildSiegeMachinesTab_0_92.xml | 2 +- imgxml/imglocbuttons/QuickTrainTab_0_92.xml | 2 +- imgxml/imglocbuttons/TrainTroopsTab_0_92.xml | 2 +- imgxml/imglocbuttons/WeeklyDeals_0_92.xml | 2 +- .../stoneOO-62-437-78,409884580963_0_89.xml | 1 + .../stoneOO-66-435-76,160422792944_0_89.xml | 1 - .../treeOO-585-208-56,944797830881_0_92.xml | 1 - .../treeOO-593-204-61,281318523674_0_92.xml | 1 + ...stoneEW-112-471-58,4859495182289_0_91.xml} | 0 .../stoneGB-25-482-94,294220395525_0_92.xml | 1 + .../treeGB-626-83-106,178575993464_0_92.xml | 1 + ... treeJS-565-101-57,9181037233066_0_93.xml} | 0 .../BuilderBaseAttack_0_92.xml | 2 +- ...59_0_92.xml => villageJS-365-659_0_91.xml} | 0 lib/MBRBot.dll | Bin 17760768 -> 18438656 bytes lib/listSymbols_coc-Builders.xml | 2 +- lib/listSymbols_coc-NewCapacity.xml | 2 +- lib/listSymbols_coc-RemainTrain.xml | 2 +- lib/listSymbols_coc-camps.xml | 2 +- lib/listSymbols_coc-events.xml | 2 +- lib/listSymbols_coc-latinA.xml | 2 +- lib/listSymbols_coc-mapname.xml | 1 - lib/listSymbols_coc-newarmy.xml | 2 +- lib/listSymbols_coc-qqtroop.xml | 2 +- lib/listSymbols_coc-remainhero.xml | 2 +- lib/listSymbols_coc-uptime3.xml | 2 +- 277 files changed, 6912 insertions(+), 6828 deletions(-) delete mode 100644 README.md delete mode 100644 imgxml/ArmyOverview/RequestCC/FullOrUnavail_1_90.xml create mode 100644 imgxml/ArmyOverview/SiegeMachines/SiegeB_100_91.xml delete mode 100644 imgxml/ArmyOverview/SiegeMachines/SiegeB_100_92.xml rename imgxml/ArmyOverview/SiegeMachines/{WallW_100_93.xml => WallW_100_92.xml} (100%) create mode 100644 imgxml/ArmyOverview/SiegeMachinesQueued/BattleD_100_91.xml delete mode 100644 imgxml/ArmyOverview/SiegeMachinesQueued/BattleD_100_94.xml create mode 100644 imgxml/ArmyOverview/SiegeMachinesQueued/FlameF_100_90.xml delete mode 100644 imgxml/ArmyOverview/SiegeMachinesQueued/FlameF_100_92.xml create mode 100644 imgxml/ArmyOverview/SiegeMachinesQueued/LogL_100_91.xml delete mode 100644 imgxml/ArmyOverview/SiegeMachinesQueued/LogL_100_92.xml create mode 100644 imgxml/ArmyOverview/SiegeMachinesQueued/SiegeB_100_91.xml delete mode 100644 imgxml/ArmyOverview/SiegeMachinesQueued/SiegeB_100_92.xml create mode 100644 imgxml/ArmyOverview/SiegeMachinesQueued/StoneS_100_91.xml delete mode 100644 imgxml/ArmyOverview/SiegeMachinesQueued/StoneS_100_92.xml create mode 100644 imgxml/ArmyOverview/SpellsQueued/BtSpell_100_92.xml delete mode 100644 imgxml/ArmyOverview/SpellsQueued/BtSpell_100_93.xml rename imgxml/ArmyOverview/SpellsQueued/{CSpell_100_93.xml => CSpell_100_92.xml} (100%) create mode 100644 imgxml/ArmyOverview/SpellsQueued/ESpell_100_92.xml delete mode 100644 imgxml/ArmyOverview/SpellsQueued/ESpell_100_93.xml rename imgxml/ArmyOverview/SpellsQueued/{FSpell_100_93.xml => FSpell_100_92.xml} (100%) rename imgxml/ArmyOverview/SpellsQueued/{HSpell_100_94.xml => HSpell_100_92.xml} (100%) rename imgxml/ArmyOverview/SpellsQueued/{HaSpell_100_93.xml => HaSpell_100_92.xml} (100%) rename imgxml/ArmyOverview/SpellsQueued/{JSpell_100_93.xml => JSpell_100_92.xml} (100%) rename imgxml/ArmyOverview/SpellsQueued/{LSpell_100_93.xml => LSpell_100_92.xml} (100%) rename imgxml/ArmyOverview/SpellsQueued/{PSpell_100_93.xml => PSpell_100_92.xml} (100%) rename imgxml/ArmyOverview/SpellsQueued/{REspell_100_93.xml => REspell_100_92.xml} (100%) rename imgxml/ArmyOverview/SpellsQueued/{RSpell_100_93.xml => RSpell_100_92.xml} (100%) create mode 100644 imgxml/ArmyOverview/SpellsQueued/SkSpell_100_92.xml delete mode 100644 imgxml/ArmyOverview/SpellsQueued/SkSpell_100_94.xml create mode 100644 imgxml/ArmyOverview/Troops/RootR_100_92.xml rename imgxml/ArmyOverview/Troops/{SWiza_100_92.xml => SWiza_100_91.xml} (100%) delete mode 100644 imgxml/ArmyOverview/TroopsQueued/Ball_100_90.xml create mode 100644 imgxml/ArmyOverview/TroopsQueued/Ball_100_92.xml create mode 100644 imgxml/ArmyOverview/TroopsQueued/RootR_100_92.xml create mode 100644 imgxml/Attack/BuilderBase/AttackBB/AttackBar/CannonCart_100_90.xml delete mode 100644 imgxml/Attack/BuilderBase/AttackBB/AttackBar/CannonCart_100_92.xml rename imgxml/Attack/BuilderBase/AttackBB/AttackBar/Machine/{BMDead_0_93.xml => BMDead_0_92.xml} (100%) rename imgxml/Attack/BuilderBase/AttackBB/AttackBar/Machine/{BattleMachine_0_93.xml => BattleMachine_0_92.xml} (100%) rename imgxml/Attack/BuilderBase/AttackBB/AttackBar/Machine/{BattleMachine_1_93.xml => BattleMachine_1_92.xml} (100%) rename imgxml/Attack/BuilderBase/AttackBB/AttackBar/Machine/{BattleMachine_2_93.xml => BattleMachine_2_92.xml} (100%) create mode 100644 imgxml/Attack/BuilderBase/AttackBB/AttackBonus/AttackBonusOkay_0_90.xml delete mode 100644 imgxml/Attack/BuilderBase/AttackBB/AttackBonus/AttackBonusOkay_0_92.xml create mode 100644 imgxml/Attack/BuilderBase/AttackBB/ReturnHome/ReturnHome_0_90.xml delete mode 100644 imgxml/Attack/BuilderBase/AttackBB/ReturnHome/ReturnHome_0_92.xml create mode 100644 imgxml/AttackBar/RootR_100_92.xml rename imgxml/AttackBar/{Warden_100_90.xml => Warden_100_92.xml} (100%) delete mode 100644 imgxml/Buildings/ADefense/AD_13_90.xml create mode 100644 imgxml/Buildings/ADefense/AD_13_91.xml create mode 100644 imgxml/Buildings/ADefense/AD_14_91.xml create mode 100644 imgxml/Buildings/Laboratory/Lab_14_90.xml delete mode 100644 imgxml/Buildings/Townhall/TownHall_10_90.xml create mode 100644 imgxml/Buildings/Townhall/TownHall_10_92.xml delete mode 100644 imgxml/Buildings/Townhall/TownHall_11_90.xml create mode 100644 imgxml/Buildings/Townhall/TownHall_11_92.xml delete mode 100644 imgxml/Buildings/Townhall/TownHall_13_90.xml create mode 100644 imgxml/Buildings/Townhall/TownHall_13_92.xml create mode 100644 imgxml/Buildings/Townhall/TownHall_14_89.xml create mode 100644 imgxml/Buildings/Townhall/TownHall_15_90.xml delete mode 100644 imgxml/Buildings/Townhall/TownHall_15_91.xml create mode 100644 imgxml/Buildings/Townhall/TownHall_16_90.xml delete mode 100644 imgxml/Buildings/Townhall/TownHall_7_92.xml create mode 100644 imgxml/Buildings/Townhall/TownHall_7_93.xml create mode 100644 imgxml/Buildings/Townhall/TownHall_8_92.xml delete mode 100644 imgxml/Buildings/Townhall/TownHall_8_93.xml delete mode 100644 imgxml/Buildings/Townhall/Townhall_10_91.xml delete mode 100644 imgxml/Buildings/Townhall/Townhall_14_90.xml create mode 100644 imgxml/Buildings/Xbow/XBow_11_90.xml create mode 100644 imgxml/CheckObstacles/COCUpdate_2_92.xml create mode 100644 imgxml/DonateCC/Army/RootR_100_92.xml create mode 100644 imgxml/DonateCC/Troops/RootR_100_92.xml create mode 100644 imgxml/Research/Laboratory/RootR_100_92.xml delete mode 100644 imgxml/Resources/BuildersBase/AutoUpgrade/NewBuildings/Slot/Slot_0_92.xml delete mode 100644 imgxml/Resources/ClanGamesImages/Challenges/A-BattleB_0_90.xml create mode 100644 imgxml/Resources/ClanGamesImages/Challenges/A-BattleB_0_91.xml create mode 100644 imgxml/Resources/ClanGamesImages/Challenges/B-NoHero_0_92.xml delete mode 100644 imgxml/Resources/ClanGamesImages/Challenges/B-NoHero_0_93.xml create mode 100644 imgxml/Resources/ClanGamesImages/Challenges/B-NoMagic_0_91.xml delete mode 100644 imgxml/Resources/ClanGamesImages/Challenges/B-NoMagic_0_92.xml rename imgxml/Resources/ClanGamesImages/Challenges/{BBB-StarTimed_0_91.xml => BBB-StarTimed_0_90.xml} (100%) rename imgxml/Resources/ClanGamesImages/Challenges/{BBD-MultiMortar_0_92.xml => BBD-MultiMortar_0_91.xml} (100%) rename imgxml/Resources/ClanGamesImages/Challenges/{BBD-MultiMortar_1_92.xml => BBD-MultiMortar_1_91.xml} (100%) rename imgxml/Resources/ClanGamesImages/Challenges/{BBT-SPekka_0_93.xml => BBT-SPekka_0_92.xml} (100%) rename imgxml/Resources/ClanGamesImages/Challenges/{D-BKaltar_0_92.xml => D-BKaltar_0_91.xml} (100%) create mode 100644 imgxml/Resources/ClanGamesImages/Challenges/D-ClanC_2_91.xml rename imgxml/Resources/ClanGamesImages/Challenges/{D-GoldM_0_92.xml => D-GoldM_0_90.xml} (100%) rename imgxml/Resources/ClanGamesImages/Challenges/{D-GoldM_1_92.xml => D-GoldM_1_90.xml} (100%) rename imgxml/Resources/ClanGamesImages/Challenges/{D-Mortar_1_93.xml => D-Mortar_1_92.xml} (100%) create mode 100644 imgxml/Resources/ClanGamesImages/Challenges/D-ScatterShotSabotage_1_90.xml create mode 100644 imgxml/Resources/ClanGamesImages/Challenges/D-Tesla_2_91.xml rename imgxml/Resources/ClanGamesImages/Challenges/{M-DonateTroop_0_92.xml => M-DonateTroop_0_91.xml} (100%) create mode 100644 imgxml/Resources/ClanGamesImages/MainLoop/Versus/Builder_4_93.xml rename imgxml/Resources/ClanGamesImages/Rewards/{FullRuneOfBuilderElixir_0_92.xml => FullRuneOfBuilderElixir_0_93.xml} (100%) delete mode 100644 imgxml/Train/Train_Train/GSkel_100_93.xml delete mode 100644 imgxml/Train/Train_Train/IWiza_100_93.xml delete mode 100644 imgxml/Train/Train_Train/PWiza_100_93.xml delete mode 100644 imgxml/Train/Train_Train/RGhost_100_93.xml create mode 100644 imgxml/Train/Train_Train/RootR_100_92.xml create mode 100644 imgxml/Train/Train_Train/SHogs_100_91.xml delete mode 100644 imgxml/Train/Train_Train/SHogs_100_92.xml create mode 100644 imgxml/imglocbuttons/BoostButtons/BoostButton_0_93.xml create mode 100644 imgxml/village/BuilderBase/stoneOO-62-437-78,409884580963_0_89.xml delete mode 100644 imgxml/village/BuilderBase/stoneOO-66-435-76,160422792944_0_89.xml delete mode 100644 imgxml/village/BuilderBase/treeOO-585-208-56,944797830881_0_92.xml create mode 100644 imgxml/village/BuilderBase/treeOO-593-204-61,281318523674_0_92.xml rename imgxml/village/NormalVillage/{stoneEW-112-471-58,4859495182289_0_92.xml => stoneEW-112-471-58,4859495182289_0_91.xml} (100%) create mode 100644 imgxml/village/NormalVillage/stoneGB-25-482-94,294220395525_0_92.xml create mode 100644 imgxml/village/NormalVillage/treeGB-626-83-106,178575993464_0_92.xml rename imgxml/village/NormalVillage/{treeJS-565-101-57,9181037233066_0_94.xml => treeJS-565-101-57,9181037233066_0_93.xml} (100%) rename imgxml/village/VillageScenery/{villageJS-365-659_0_92.xml => villageJS-365-659_0_91.xml} (100%) delete mode 100644 lib/listSymbols_coc-mapname.xml diff --git a/CHANGELOG b/CHANGELOG index ccef0241c..ce28d748a 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,43 @@ +* v8.1.4 ** +* Fixed Legend League Sign-up. +* Improved LatinA OCR. +* Try To Fix BS5.12+ resize issue. +* Changed CheckObstacle Results from SetLog to SetDebugLog. +* Improved blocking donate message on screen detection. +* Improved sieges making. +* Changed timings for detections on Clan Capital. +* Improved Clan Games Challenges detection. +* Improved Clan Games Rewards detection. +* Improved District detection (Clan capital). +* Improved Suggested upgrades (Builder Base). +* Fixed TH Search Filter. +* Improved Jungle scenery detection (Home village). +* Improved New Buildings support (Builder Base). +* Updated Heroes, Pets and Walls Costs. +* Updated Walls Count. +* Updated Lighting level and Hitpoint. +* Updated few GUI images. +** Added Support for COC 16.0.4+ +* Added support for Root Rider. +* Added support for Spirit Fox (GUI for now) +* Updated BB end of Battle images. +* Added support for new training UI. +* Added new GUI for Training. +* Added GingerBread Scenery support (Attack only). +* Added XBow lvl 11, TH lvl 16, Air def lvl 14 and Lab lvl 14 templates. +* Added Root Rider templates for donation. +* Updated Pet House upgrade function. +* Improved Laboratory upgrades. +* Improved Check Heroes Health Status while attacking. +* Improved CG event time detection. +* Improved attack bar 12+ slots detection. +* Improved train remaining time OCR. +* Added Boost button handle (Drop trophies). +* Updated Boost barrack button template. +* Improved Clan Games Purge code. +* Improved Pet upgrade time detection. +* Added new update window detection. + * v8.1.3 ** * Fixed Costs OCR in Labs. * Improved Super Dragon Training. diff --git a/COCBot/GUI/MBR GUI Control Attack Scripted.au3 b/COCBot/GUI/MBR GUI Control Attack Scripted.au3 index 254e19b20..afa12e726 100644 --- a/COCBot/GUI/MBR GUI Control Attack Scripted.au3 +++ b/COCBot/GUI/MBR GUI Control Attack Scripted.au3 @@ -268,7 +268,7 @@ Func ApplyScriptDB() Local $iApply = 0 Local $iApplySieges = 0 Local $iSlot = 0 - Local $aiCSVTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + Local $aiCSVTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Local $aiCSVSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Local $sCSVCCSpl[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Local $ToIgnore[$eSpellCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] @@ -304,8 +304,8 @@ Func ApplyScriptDB() $g_aiArmyCompSiegeMachines = $aiCSVSieges ApplyConfig_600_52_2("Read") SetComboTroopComp() ; GUI refresh - lblTotalCountSpell2() - lblTotalCountSiege2() + lblTotalCountSpell() + lblTotalCountSiege() SetLog("CSV Train settings applied", $COLOR_SUCCESS) EndIf @@ -422,7 +422,7 @@ Func ApplyScriptAB() Local $iApply = 0 Local $iApplySieges = 0 Local $iSlot = 0 - Local $aiCSVTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + Local $aiCSVTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Local $aiCSVSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ,0] Local $sCSVCCSpl[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ,0] Local $ToIgnore[$eSpellCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] @@ -458,11 +458,11 @@ Func ApplyScriptAB() $g_aiArmyCompSiegeMachines = $aiCSVSieges ApplyConfig_600_52_2("Read") SetComboTroopComp() ; GUI refresh - lblTotalCountSpell2() - lblTotalCountSiege2() + lblTotalCountSpell() + lblTotalCountSiege() SetLog("CSV Train settings applied", $COLOR_SUCCESS) EndIf - + If IsArray($aiCSVSieges) And $iApplySieges > 0 Then Local $aMachine = _ArrayMaxIndex($aiCSVSieges, 0, 1) _GUICtrlComboBox_SetCurSel($g_hCmbABSiege, $aMachine + 1) diff --git a/COCBot/GUI/MBR GUI Control Child Army.au3 b/COCBot/GUI/MBR GUI Control Child Army.au3 index a932da2ff..512048661 100644 --- a/COCBot/GUI/MBR GUI Control Child Army.au3 +++ b/COCBot/GUI/MBR GUI Control Child Army.au3 @@ -22,7 +22,7 @@ Func radSelectTrainType() Next _GUI_Value_STATE("ENABLE", $grpTrainTroops & "#" & $grpCookSpell) lblTotalCountTroop1() - TotalSpellCountClick() + lblTotalCountSpell() Else _GUICtrlTab_ClickTab($g_hGUI_TRAINARMY_ARMY_TAB, 1) _GUI_Value_STATE("ENABLE", $g_ahChkArmy[0] & "#" & $g_ahChkArmy[1] & "#" & $g_ahChkArmy[2]) @@ -97,6 +97,7 @@ Func _chkUseInGameArmy($i) EndFunc ;==>_chkUseInGameArmy Func SetComboTroopComp() + $g_iTotalCampSpace = $g_iTotalCampForcedValue Local $bWasRedraw = SetRedrawBotWindow(False, Default, Default, Default, "SetComboTroopComp") Local $ArmyCampTemp = 0 @@ -109,6 +110,10 @@ Func SetComboTroopComp() Local $TotalTroopsToTrain = 0 lblTotalCountTroop1() + HideSpellsFctTH() + lblTotalCountSpell() + HideSiegesFctTH() + lblTotalCountSiege() SetRedrawBotWindow($bWasRedraw, Default, Default, Default, "SetComboTroopComp") EndFunc ;==>SetComboTroopComp @@ -127,17 +132,28 @@ Func lblTotalCountTroop1() $ArmyCampTemp = Floor($g_iTotalCampSpace * GUICtrlRead($g_hTxtFullTroop) / 100) EndIf + RemoveAllTmpTrain("Troop") + Local $iTmpTroops = 0 For $i = 0 To $eTroopCount - 1 Local $iCount = GUICtrlRead($g_ahTxtTrainArmyTroopCount[$i]) If $iCount > 0 Then $TotalTroopsToTrain += $iCount * $g_aiTroopSpace[$i] - Else - GUICtrlSetData($g_ahTxtTrainArmyTroopCount[$i], 0) + ;Set Troop Train Info + If $iTmpTroops > UBound($g_ahPicTrainArmyTroopTmp) - 1 Then ContinueLoop + _GUICtrlSetImage($g_ahPicTrainArmyTroopTmp[$iTmpTroops], $g_sLibIconPath, $g_aTroopsIcon[$i]) + GUICtrlSetState($g_ahPicTrainArmyTroopTmp[$iTmpTroops], $GUI_SHOW) + GUICtrlSetData($g_ahLblTrainArmyTroopTmp[$iTmpTroops], $iCount) + GUICtrlSetState($g_ahLblTrainArmyTroopTmp[$iTmpTroops], $GUI_SHOW) + $iTmpTroops += 1 EndIf Next GUICtrlSetData($g_hLblCountTotal, String($TotalTroopsToTrain)) + For $i = 0 To $eTroopCount - 1 + If $g_iTotalCampForcedValue > 0 Then GUICtrlSetBkColor($g_ahTxtTrainArmyTroopCount[$i], $TotalTroopsToTrain <= GUICtrlRead($g_hTxtTotalCampForced) ? $COLOR_WHITE : $COLOR_RED) + Next + If GUICtrlRead($g_hChkTotalCampForced) = $GUI_CHECKED And GUICtrlRead($g_hLblCountTotal) = GUICtrlRead($g_hTxtTotalCampForced) Then GUICtrlSetBkColor($g_hLblCountTotal, $COLOR_GREEN) ElseIf GUICtrlRead($g_hLblCountTotal) = $ArmyCampTemp Then @@ -145,7 +161,7 @@ Func lblTotalCountTroop1() ElseIf GUICtrlRead($g_hLblCountTotal) > $ArmyCampTemp / 2 And GUICtrlRead($g_hLblCountTotal) < $ArmyCampTemp Then GUICtrlSetBkColor($g_hLblCountTotal, $COLOR_OLIVE) Else - GUICtrlSetBkColor($g_hLblCountTotal, $COLOR_RED) + If $g_iTotalCampForcedValue > 0 Then GUICtrlSetBkColor($g_hLblCountTotal, $COLOR_RED) EndIf Local $fPctOfForced = Floor((GUICtrlRead($g_hLblCountTotal) / GUICtrlRead($g_hTxtTotalCampForced)) * 100) @@ -157,21 +173,26 @@ Func lblTotalCountTroop1() GUICtrlSetData($g_hCalTotalTroops, $fPctOfCalculated < 1 ? (GUICtrlRead($g_hLblCountTotal) > 0 ? 1 : 0) : $fPctOfCalculated) EndIf - If GUICtrlRead($g_hChkTotalCampForced) = $GUI_CHECKED And GUICtrlRead($g_hLblCountTotal) > GUICtrlRead($g_hTxtTotalCampForced) Then - GUICtrlSetState($g_hLblTotalProgress, $GUI_SHOW) - ElseIf GUICtrlRead($g_hLblCountTotal) > $ArmyCampTemp Then - GUICtrlSetState($g_hLblTotalProgress, $GUI_SHOW) + If GUICtrlRead($g_hChkTotalCampForced) = $GUI_CHECKED Then + If Number(GUICtrlRead($g_hLblCountTotal)) <= Number(GUICtrlRead($g_hTxtTotalCampForced)) Then + GUICtrlSetState($g_hCalTotalTroops, $GUI_SHOW) + Else + GUICtrlSetState($g_hCalTotalTroops, $GUI_HIDE) + EndIf Else - GUICtrlSetState($g_hLblTotalProgress, $GUI_HIDE) + If Number(GUICtrlRead($g_hLblCountTotal)) >= $ArmyCampTemp Then + GUICtrlSetState($g_hCalTotalTroops, $GUI_SHOW) + Else + GUICtrlSetState($g_hCalTotalTroops, $GUI_HIDE) + EndIf EndIf - lblTotalCountTroop2() EndFunc ;==>lblTotalCountTroop1 Func lblTotalCountTroop2() ; Calculate time for troops Local $TotalTotalTimeTroop = 0 - + For $i = 0 To $eTroopCount - 1 $TotalTotalTimeTroop += $g_aiArmyCustomTroops[$i] * $g_aiTroopTrainTime[$i] Next @@ -180,41 +201,100 @@ Func lblTotalCountTroop2() GUICtrlSetData($g_hLblTotalTimeCamp, $TotalTotalTimeTroop) EndFunc ;==>lblTotalCountTroop2 -Func lblTotalCountSpell2() +Func lblTotalCountSpell() ; calculate total space and time for spell composition Local $iTotalTotalTimeSpell = 0 $g_iTotalTrainSpaceSpell = 0 + RemoveAllTmpTrain("Spell") + Local $iTmpSpells = 0 For $i = 0 To $eSpellCount - 1 - $g_iTotalTrainSpaceSpell += $g_aiArmyCustomSpells[$i] * $g_aiSpellSpace[$i] - $iTotalTotalTimeSpell += $g_aiArmyCustomSpells[$i] * $g_aiSpellTrainTime[$i] + Local $iCount = GUICtrlRead($g_ahTxtTrainArmySpellCount[$i]) + If $iCount > 0 Then + $g_iTotalTrainSpaceSpell += $g_aiArmyCustomSpells[$i] * $g_aiSpellSpace[$i] + + ;Set Spell Train Info + If $iTmpSpells > UBound($g_ahPicTrainArmySpellTmp) - 1 Then ContinueLoop + _GUICtrlSetImage($g_ahPicTrainArmySpellTmp[$iTmpSpells], $g_sLibIconPath, $g_aSpellsIcon[$i]) + GUICtrlSetState($g_ahPicTrainArmySpellTmp[$iTmpSpells], $GUI_SHOW) + GUICtrlSetData($g_ahLblTrainArmySpellTmp[$iTmpSpells], $iCount) + GUICtrlSetState($g_ahLblTrainArmySpellTmp[$iTmpSpells], $GUI_SHOW) + $iTmpSpells += 1 + EndIf Next For $i = 0 To $eSpellCount - 1 - GUICtrlSetBkColor($g_ahTxtTrainArmySpellCount[$i], $g_iTotalTrainSpaceSpell <= GUICtrlRead($g_hTxtTotalCountSpell) ? $COLOR_WHITE : $COLOR_RED) + GUICtrlSetBkColor($g_ahTxtTrainArmySpellCount[$i], $g_iTotalTrainSpaceSpell <= Number(GUICtrlRead($g_hTxtTotalCountSpell)) ? $COLOR_WHITE : $COLOR_RED) Next - GUICtrlSetData($g_hLblTotalTimeSpell, CalculTimeTo($iTotalTotalTimeSpell)) + GUICtrlSetBkColor($g_hLblCountTotalSpells, $g_iTotalTrainSpaceSpell <= Number(GUICtrlRead($g_hTxtTotalCountSpell)) ? $COLOR_GREEN : $COLOR_RED) + + Local $iSpellProgress = Floor(($g_iTotalTrainSpaceSpell / Number(GUICtrlRead($g_hTxtTotalCountSpell))) * 100) + If $iSpellProgress <= 100 Then + GUICtrlSetData($g_hCalTotalSpells, $iSpellProgress) + GUICtrlSetState($g_hCalTotalSpells, $GUI_SHOW) + Else + GUICtrlSetState($g_hCalTotalSpells, $GUI_HIDE) + EndIf + + If $g_iTotalSpellValue > 0 Then + If $g_iTotalTrainSpaceSpell = $g_iTotalSpellValue Then + GUICtrlSetBkColor($g_hLblCountTotalSpells, $COLOR_GREEN) + ElseIf $g_iTotalTrainSpaceSpell > $g_iTotalSpellValue / 2 Then + GUICtrlSetBkColor($g_hLblCountTotalSpells, $COLOR_OLIVE) + Else + GUICtrlSetBkColor($g_hLblCountTotalSpells, $COLOR_RED) + EndIf + EndIf - ;CalCostSpell() + GUICtrlSetData($g_hLblCountTotalSpells, String($g_iTotalTrainSpaceSpell)) + lblTotalCountSpell2() +EndFunc ;==>lblTotalCountSpell + +Func lblTotalCountSpell2() + ; calculate total space and time for spell composition + Local $iTotalTotalTimeSpell = 0 + + For $i = 0 To $eSpellCount - 1 + $iTotalTotalTimeSpell += $g_aiArmyCustomSpells[$i] * $g_aiSpellTrainTime[$i] + Next + + $iTotalTotalTimeSpell = CalculTimeTo($iTotalTotalTimeSpell) + GUICtrlSetData($g_hLblTotalTimeSpell, $iTotalTotalTimeSpell) EndFunc ;==>lblTotalCountSpell2 -Func lblTotalCountSiege2() +Func lblTotalCountSiege() ; calculate total space and time for Siege composition Local $iTotalTotalTimeSiege = 0, $indexLevel = 0 $g_iTotalTrainSpaceSiege = 0 - + RemoveAllTmpTrain("Siege") + Local $iTmpSieges = 0 For $i = 0 To $eSiegeMachineCount - 1 - $g_iTotalTrainSpaceSiege += $g_aiArmyCompSiegeMachines[$i] * $g_aiSiegeMachineSpace[$i] - $iTotalTotalTimeSiege = $iTotalTotalTimeSiege + $g_aiArmyCompSiegeMachines[$i] * 1200 + + Local $iCount = GUICtrlRead($g_ahTxtTrainArmySiegeCount[$i]) + If $iCount > 0 Then + $g_iTotalTrainSpaceSiege += $g_aiArmyCompSiegeMachines[$i] * $g_aiSiegeMachineSpace[$i] + + ;Set Siege Train Info + If $iTmpSieges > UBound($g_ahPicTrainArmySiegeTmp) - 1 Then ContinueLoop + _GUICtrlSetImage($g_ahPicTrainArmySiegeTmp[$iTmpSieges], $g_sLibIconPath, $g_aSiegesIcon[$i]) + GUICtrlSetState($g_ahPicTrainArmySiegeTmp[$iTmpSieges], $GUI_SHOW) + GUICtrlSetData($g_ahLblTrainArmySiegeTmp[$iTmpSieges], $iCount) + GUICtrlSetState($g_ahLblTrainArmySiegeTmp[$iTmpSieges], $GUI_SHOW) + $iTmpSieges += 1 + EndIf Next - GUICtrlSetData($g_hLblTotalTimeSiege, CalculTimeTo($iTotalTotalTimeSiege)) - GUICtrlSetData($g_hLblCountTotalSiege, $g_iTotalTrainSpaceSiege) - GUICtrlSetBkColor($g_hLblCountTotalSiege, $g_iTotalTrainSpaceSiege <= 3 ? $COLOR_GREEN : $COLOR_RED) -EndFunc + For $i = 0 To $eSiegeMachineCount - 1 + If ($g_iTotalTrainSpaceSiege <= 3) Then + GUICtrlSetBkColor($g_ahTxtTrainArmySiegeCount[$i], $COLOR_WHITE) + Else + GUICtrlSetBkColor($g_ahTxtTrainArmySiegeCount[$i], $COLOR_RED) + EndIf + Next +EndFunc ;==>lblTotalCountSiege -Func lblTotalCountSiege() +Func HideSiegesFctTH() $g_iTownHallLevel = Int($g_iTownHallLevel) $g_iTotalTrainSpaceSiege = 0 _GUI_Value_STATE("DISABLE", $groupListSieges) @@ -252,11 +332,9 @@ Func lblTotalCountSiege() GUICtrlSetData($g_aiArmyCompSiegeMachines[$i], GUICtrlRead($g_ahTxtTrainArmySiegeCount[$i])) Next - lblTotalCountSiege2() -EndFunc ;==>lblTotalCountSiege +EndFunc ;==>HideSiegesFctTH -Func TotalSpellCountClick() - Local $bWasRedraw = SetRedrawBotWindow(False, Default, Default, Default, "TotalSpellCountClick") +Func HideSpellsFctTH() _GUI_Value_STATE("DISABLE", $groupListSpells) $g_iTownHallLevel = Int($g_iTownHallLevel) @@ -329,9 +407,7 @@ Func TotalSpellCountClick() _GUI_Value_STATE("ENABLE", $groupRecall) EndIf - lblTotalCountSpell2() - SetRedrawBotWindow($bWasRedraw, Default, Default, Default, "TotalSpellCountClick") -EndFunc ;==>TotalSpellCountClick +EndFunc ;==>HideSpellsFctTH Func chkBoostBarracksHoursE1() If GUICtrlRead($g_hChkBoostBarracksHoursE1) = $GUI_CHECKED And GUICtrlRead($g_hChkBoostBarracksHours[0]) = $GUI_CHECKED Then @@ -861,205 +937,6 @@ Func IsUseCustomTroopOrder() Return True EndFunc ;==>IsUseCustomTroopOrder -#cs -Func LevUpDownTroop($iTroopIndex, $NoChangeLev = True) - Local $MaxLev = $g_aiTroopCostPerLevel[$iTroopIndex][0] - Local $TempLev = 0 - - If $NoChangeLev Then - If _IsPressed("10") Or _IsPressed("02") Then - $TempLev = $g_aiTrainArmyTroopLevel[$iTroopIndex] - 1 - Else - $TempLev = $g_aiTrainArmyTroopLevel[$iTroopIndex] + 1 - EndIf - Else - $TempLev = $g_aiTrainArmyTroopLevel[$iTroopIndex] - EndIf - - Local $hLevel = $g_ahLblTrainArmyTroopLevel[$iTroopIndex] - - If $TempLev > $MaxLev Or $TempLev = 0 Then - $TempLev = 0 - If $NoChangeLev Then lblTotalCountTroop1() - ElseIf $TempLev < 0 Then - $TempLev = $MaxLev - EndIf - - $g_aiTrainArmyTroopLevel[$iTroopIndex] = $TempLev - - Local $iColor = ($TempLev = $MaxLev ? $COLOR_YELLOW : $COLOR_WHITE) - GUICtrlSetData($hLevel, $TempLev) - If GUICtrlGetBkColor($hLevel) <> $iColor Then GUICtrlSetBkColor($hLevel, $iColor) -EndFunc ;==>LevUpDownTroop - -Func LevUpDownSiege($iSiege, $NoChangeLev = True) - Local $MaxLev = $g_aiSiegeMachineCostPerLevel[$iSiege][0] - Local $TempLev = 0 - - If $NoChangeLev Then - If _IsPressed("10") Or _IsPressed("02") Then - $TempLev = $g_aiTrainArmySiegeMachineLevel[$iSiege] - 1 - Else - $TempLev = $g_aiTrainArmySiegeMachineLevel[$iSiege] + 1 - EndIf - Else - $TempLev = $g_aiTrainArmySiegeMachineLevel[$iSiege] - EndIf - - Local $hLevel = $g_ahLblTrainArmySiegeLevel[$iSiege] - - If $TempLev > $MaxLev Or $TempLev = 0 Then - $TempLev = 0 - ElseIf $TempLev < 0 Then - $TempLev = $MaxLev - EndIf - - $g_aiTrainArmySiegeMachineLevel[$iSiege] = $TempLev - - Local $iColor = ($TempLev = $MaxLev ? $COLOR_YELLOW : $COLOR_WHITE) - GUICtrlSetData($hLevel, $TempLev) - If GUICtrlGetBkColor($hLevel) <> $iColor Then GUICtrlSetBkColor($hLevel, $iColor) - lblTotalCountSiege() - CalCostSiege() -EndFunc ;==>LevUpDownSiege - -Func LevUpDownSpell($iSpellIndex, $NoChangeLev = True) - Local $MaxLev = $g_aiSpellCostPerLevel[$iSpellIndex][0] - Local $TempLev = 0 - - If $NoChangeLev Then - If _IsPressed("10") Or _IsPressed("02") Then - $TempLev = $g_aiTrainArmySpellLevel[$iSpellIndex] - 1 - Else - $TempLev = $g_aiTrainArmySpellLevel[$iSpellIndex] + 1 - EndIf - Else - $TempLev = $g_aiTrainArmySpellLevel[$iSpellIndex] - EndIf - - Local $hLevel = $g_ahLblTrainArmySpellLevel[$iSpellIndex] - - If $TempLev > $MaxLev Or $TempLev = 0 Then - $TempLev = 0 - If $NoChangeLev Then lblTotalCountSpell2() - ElseIf $TempLev < 0 Then - $TempLev = $MaxLev - EndIf - - $g_aiTrainArmySpellLevel[$iSpellIndex] = $TempLev - - Local $iColor = ($TempLev = $MaxLev ? $COLOR_YELLOW : $COLOR_WHITE) - GUICtrlSetData($hLevel, $TempLev) - If GUICtrlGetBkColor($hLevel) <> $iColor Then GUICtrlSetBkColor($hLevel, $iColor) -EndFunc ;==>LevUpDownSpell - -Func TrainTroopLevelClick() - If $g_bRunState = True Then Return - - Local $iTroop = -1 - For $i = 0 To $eTroopCount - 1 - If @GUI_CtrlId = $g_ahPicTrainArmyTroop[$i] Then - $iTroop = $i - ExitLoop - EndIf - Next - - If $iTroop = -1 Then Return - - While _IsPressed(01) - LevUpDownTroop($iTroop) - Sleep($DELAYLVUP) - lblTotalCountTroop2() - WEnd -EndFunc ;==>TrainTroopLevelClick - -Func TrainSiegeLevelClick() - If $g_bRunState = True Then Return - - Local $iSiege = -1 - For $i = 0 To $eSiegeMachineCount - 1 - If @GUI_CtrlId = $g_ahPicTrainArmySiege[$i] Then - $iSiege = $i - ExitLoop - EndIf - Next - - If $iSiege = -1 Then Return - - While _IsPressed(01) - LevUpDownSiege($iSiege) - Sleep($DELAYLVUP) - lblTotalCountSiege() - WEnd -EndFunc ;==>TrainSiegeLevelClick - -Func TrainSpellLevelClick() - If $g_bRunState = True Then Return - - Local $iSpell = -1 - For $i = 0 To $eSpellCount - 1 - If @GUI_CtrlId = $g_ahPicTrainArmySpell[$i] Then - $iSpell = $i - ExitLoop - EndIf - Next - - If $iSpell = -1 Then Return - - While _IsPressed(01) - LevUpDownSpell($iSpell) - Sleep($DELAYLVUP) - lblTotalCountSpell2() - WEnd -EndFunc ;==>TrainSpellLevelClick - -Func CalCostCamp() - Local $iElixirCostCamp = 0, $iDarkCostCamp = 0, $indexLevel = 0 - - For $i = $eTroopBarbarian To $eTroopDragonRider - $indexLevel = $g_aiTrainArmyTroopLevel[$i] > 0 ? $g_aiTrainArmyTroopLevel[$i] : $g_aiTroopCostPerLevel[$i][0] - $iElixirCostCamp += $g_aiArmyCustomTroops[$i] * $g_aiTroopCostPerLevel[$i][$indexLevel] - Next - - For $i = $eTroopMinion To $eTroopHeadhunter - $indexLevel = $g_aiTrainArmyTroopLevel[$i] > 0 ? $g_aiTrainArmyTroopLevel[$i] : $g_aiTroopCostPerLevel[$i][0] - $iDarkCostCamp += $g_aiArmyCustomTroops[$i] * $g_aiTroopCostPerLevel[$i][$indexLevel] - Next - - GUICtrlSetData($g_hLblElixirCostCamp, _NumberFormat($iElixirCostCamp, True)) - GUICtrlSetData($g_hLblDarkCostCamp, _NumberFormat($iDarkCostCamp, True)) -EndFunc ;==>CalCostCamp - -Func CalCostSpell() - Local $iElixirCostSpell = 0, $iDarkCostSpell = 0, $indexLevel = 0 - - For $i = $eSpellLightning To $eSpellInvisibility - $indexLevel = $g_aiTrainArmySpellLevel[$i] > 0 ? $g_aiTrainArmySpellLevel[$i] : $g_aiSpellCostPerLevel[$i][0] - $iElixirCostSpell += $g_aiArmyCustomSpells[$i] * $g_aiSpellCostPerLevel[$i][$indexLevel] - Next - - For $i = $eSpellPoison To $eSpellBat - $indexLevel = $g_aiTrainArmySpellLevel[$i] > 0 ? $g_aiTrainArmySpellLevel[$i] : $g_aiSpellCostPerLevel[$i][0] - $iDarkCostSpell += $g_aiArmyCustomSpells[$i] * $g_aiSpellCostPerLevel[$i][$indexLevel] - Next - - GUICtrlSetData($g_hLblElixirCostSpell, _NumberFormat($iElixirCostSpell, True)) - GUICtrlSetData($g_hLblDarkCostSpell, _NumberFormat($iDarkCostSpell, True)) -EndFunc ;==>CalCostSpell - -Func CalCostSiege() - Local $iGoldCostSiege = 0, $indexLevel = 0 - - For $i = 0 To $eSiegeMachineCount - 1 - $indexLevel = $g_aiTrainArmySiegeMachineLevel[$i] > 0 ? $g_aiTrainArmySiegeMachineLevel[$i] : $g_aiSiegeMachineCostPerLevel[$i][0] - $iGoldCostSiege += $g_aiArmyCompSiegeMachines[$i] * $g_aiSiegeMachineCostPerLevel[$i][$indexLevel] - Next - - GUICtrlSetData($g_hLblGoldCostSiege, _NumberFormat($iGoldCostSiege, True)) -EndFunc ;==>CalCostSiege -#ce - - Func CalculTimeTo($TotalTotalTime) Local $HourToTrain = 0 Local $MinToTrain = 0 @@ -1084,24 +961,24 @@ EndFunc ;==>CalculTimeTo Func Removecamp() For $T = 0 To $eTroopCount - 1 $g_aiArmyCustomTroops[$T] = 0 - ;$g_aiTrainArmyTroopLevel[$T] = 0 GUICtrlSetData($g_ahTxtTrainArmyTroopCount[$T], $g_aiArmyCustomTroops[$T]) - ;GUICtrlSetData($g_ahLblTrainArmyTroopLevel[$T], $g_aiTrainArmyTroopLevel[$T]) + GUICtrlSetBkColor($g_ahTxtTrainArmyTroopCount[$T], $COLOR_WHITE) Next For $S = 0 To $eSpellCount - 1 $g_aiArmyCustomSpells[$S] = 0 - ;$g_aiTrainArmySpellLevel[$S] = 0 GUICtrlSetData($g_ahTxtTrainArmySpellCount[$S], $g_aiArmyCustomSpells[$S]) - ;GUICtrlSetData($g_ahLblTrainArmySpellLevel[$S], $g_aiTrainArmySpellLevel[$S]) + GUICtrlSetBkColor($g_ahTxtTrainArmyTroopCount[$S], $COLOR_WHITE) Next For $S = 0 To $eSiegeMachineCount - 1 $g_aiArmyCompSiegeMachines[$S] = 0 - ;$g_aiTrainArmySiegeMachineLevel[$S] = 0 GUICtrlSetData($g_ahTxtTrainArmySiegeCount[$S], $g_aiArmyCompSiegeMachines[$S]) - ;GUICtrlSetData($g_ahLblTrainArmySiegeLevel[$S], $g_aiTrainArmySiegeMachineLevel[$S]) + GUICtrlSetBkColor($g_ahTxtTrainArmySiegeCount[$S], $COLOR_WHITE) Next + RemoveAllTmpTrain("All") + GUICtrlSetData($g_hCalTotalTroops, 0) + GUICtrlSetData($g_hCalTotalSpells, 0) GUICtrlSetData($g_hLblTotalTimeCamp, " 0s") GUICtrlSetData($g_hLblTotalTimeSpell, " 0s") GUICtrlSetData($g_hLblElixirCostCamp, "0") @@ -1109,14 +986,9 @@ Func Removecamp() GUICtrlSetData($g_hLblElixirCostSpell, "0") GUICtrlSetData($g_hLblDarkCostSpell, "0") GUICtrlSetData($g_hLblCountTotal, 0) - GUICtrlSetData($g_hLblGoldCostSiege, "0") - GUICtrlSetData($g_hLblCountTotalSiege, 0) - GUICtrlSetData($g_hLblTotalTimeSiege, " 0s") - GUICtrlSetBkColor($g_hLblCountTotal, $COLOR_GREEN) - For $i = 0 To $eSpellCount - 1 - GUICtrlSetBkColor($g_ahTxtTrainArmySpellCount[$i], $COLOR_WHITE) - Next - GUICtrlSetBkColor($g_hLblCountTotalSiege, $COLOR_GREEN) + GUICtrlSetData($g_hLblCountTotalSpells, 0) + GUICtrlSetBkColor($g_hLblCountTotal, $COLOR_RED) + GUICtrlSetBkColor($g_hLblCountTotalSpells, $COLOR_RED) EndFunc ;==>Removecamp Func TrainTroopCountEdit() @@ -1133,7 +1005,7 @@ Func TrainSiegeCountEdit() For $i = 0 To $eSiegeMachineCount - 1 If @GUI_CtrlId = $g_ahTxtTrainArmySiegeCount[$i] Then $g_aiArmyCompSiegeMachines[$i] = GUICtrlRead($g_ahTxtTrainArmySiegeCount[$i]) - lblTotalCountSiege2() + lblTotalCountSiege() Return EndIf Next @@ -1143,7 +1015,7 @@ Func TrainSpellCountEdit() For $i = 0 To $eSpellCount - 1 If @GUI_CtrlId = $g_ahTxtTrainArmySpellCount[$i] Then $g_aiArmyCustomSpells[$i] = GUICtrlRead($g_ahTxtTrainArmySpellCount[$i]) - lblTotalCountSpell2() + lblTotalCountSpell() Return EndIf Next @@ -1223,9 +1095,9 @@ Func SelectTroop_QTEdit() EndFunc ;==>SelectTroop_QTEdit Func AddTroop_QTEdit($iTroop) - Local $bOverSpace = False, $bOverSlot = False, $iTotalCampSpace=0 + Local $bOverSpace = False, $bOverSlot = False, $iTotalCampSpace = 0 - $iTotalCampSpace=Number(GUICtrlRead($g_hTxtTotalCampForced)) + $iTotalCampSpace = Number(GUICtrlRead($g_hTxtTotalCampForced)) If $g_iQTEdit_TotalTroop + $g_aiTroopSpace[$iTroop] > $iTotalCampSpace Then $bOverSpace = True @@ -1341,9 +1213,9 @@ Func SelectSpell_QTEdit() EndFunc ;==>SelectSpell_QTEdit Func AddSpell_QTEdit($iSpell) - Local $bOverSpace = False, $bOverSlot = False, $iTotalSpellSpace=0 + Local $bOverSpace = False, $bOverSlot = False, $iTotalSpellSpace = 0 - $iTotalSpellSpace=Number(GUICtrlRead($g_hTxtTotalCountSpell)) + $iTotalSpellSpace = Number(GUICtrlRead($g_hTxtTotalCountSpell)) If $g_iQTEdit_TotalSpell + $g_aiSpellSpace[$iSpell] > $iTotalSpellSpace Then $bOverSpace = True @@ -1510,11 +1382,11 @@ Func ApplyQuickTrainArmy($Army) EndFunc ;==>ApplyQuickTrainArmy Func TxtQTEdit_Troop() - Local $iTroop, $iQty, $iSpace, $iSlot, $iTotalCampSpace=0 + Local $iTroop, $iQty, $iSpace, $iSlot, $iTotalCampSpace = 0 - $iTotalCampSpace=Number(GUICtrlRead($g_hTxtTotalCampForced)) + $iTotalCampSpace = Number(GUICtrlRead($g_hTxtTotalCampForced)) - For $j = 0 To 6 + For $j = 0 To 6 If @GUI_CtrlId = $g_ahTxtQTEdit_Troop[$j] Then $iTroop = $g_aiQTEdit_TroopType[$j] $iQty = GUICtrlRead($g_ahTxtQTEdit_Troop[$j]) @@ -1530,7 +1402,7 @@ Func TxtQTEdit_Troop() If $g_iQTEdit_TotalTroop > $iTotalCampSpace Then Local $iSpaceLeft = $iTotalCampSpace - ($g_iQTEdit_TotalTroop - $iSpace) Local $iMaxQtyLeft = Int($iSpaceLeft / $g_aiTroopSpace[$iTroop]) - ToolTip("Your input of " & $iQty & "x " & $g_asTroopNames[$iTroop] & " makes total troops to exceed possible camp capacity (" & $iTotalCampSpace & ")." & @CRLF & "Automatically changing to: " & $iMaxQtyLeft & "x " & $g_asTroopNames[$iTroop]) + ToolTip("Your input of " & $iQty & "x " & $g_asTroopNames[$iTroop] & " makes total troops to exceed possible camp capacity (" & $iTotalCampSpace & ")." & @CRLF & "Automatically changing to: " & $iMaxQtyLeft & "x " & $g_asTroopNames[$iTroop]) Sleep(2000) ToolTip('') GUICtrlSetData($g_ahTxtQTEdit_Troop[$iSlot], $iMaxQtyLeft) @@ -1539,9 +1411,9 @@ Func TxtQTEdit_Troop() EndFunc ;==>TxtQTEdit_Troop Func TxtQTEdit_Spell() - Local $iSpell, $iQty, $iSpace, $iSlot, $iTotalSpellSpace=0 + Local $iSpell, $iQty, $iSpace, $iSlot, $iTotalSpellSpace = 0 - $iTotalSpellSpace=Number(GUICtrlRead($g_hTxtTotalCountSpell)) + $iTotalSpellSpace = Number(GUICtrlRead($g_hTxtTotalCountSpell)) For $j = 0 To 6 If @GUI_CtrlId = $g_ahTxtQTEdit_Spell[$j] Then @@ -1620,7 +1492,7 @@ Func chkSuperTroops() Else $g_bSuperTroopsBoostUsePotionFirst = False EndIf -EndFunc +EndFunc ;==>chkSuperTroops Func cmbSuperTroops() For $i = 0 To $iMaxSupersTroop - 1 @@ -1634,4 +1506,143 @@ Func cmbSuperTroops() EndIf Next Next - EndFunc +EndFunc ;==>cmbSuperTroops + +Func ChkPreciseArmy() + If GUICtrlRead($g_hChkPreciseArmy) = $GUI_CHECKED Then + $g_bPreciseArmy = True + Else + $g_bPreciseArmy = False + EndIf +EndFunc ;==>ChkPreciseArmy + +Func RemoveAllTmpTrain($sWhat = "All") + If $sWhat = "All" Or $sWhat = "Troop" Then + For $i = 0 To UBound($g_ahPicTrainArmyTroopTmp) - 1 + GUICtrlSetState($g_ahPicTrainArmyTroopTmp[$i], $GUI_HIDE) + GUICtrlSetState($g_ahLblTrainArmyTroopTmp[$i], $GUI_HIDE) + Next + EndIf + + If $sWhat = "All" Or $sWhat = "Spell" Then + For $i = 0 To UBound($g_ahPicTrainArmySpellTmp) - 1 + GUICtrlSetState($g_ahPicTrainArmySpellTmp[$i], $GUI_HIDE) + GUICtrlSetState($g_ahLblTrainArmySpellTmp[$i], $GUI_HIDE) + Next + EndIf + + If $sWhat = "All" Or $sWhat = "Siege" Then + For $i = 0 To UBound($g_ahPicTrainArmySiegeTmp) - 1 + GUICtrlSetState($g_ahPicTrainArmySiegeTmp[$i], $GUI_HIDE) + GUICtrlSetState($g_ahLblTrainArmySiegeTmp[$i], $GUI_HIDE) + Next + EndIf +EndFunc ;==>RemoveAllTmpTrain + +Func HideAllTroops() + For $i = $g_ahPicTrainArmyTroop[$eTroopMinion] To $g_ahPicTrainArmyTroop[$eTroopAppWard] + GUICtrlSetState($i, $GUI_HIDE) + Next + For $i = $g_ahTxtTrainArmyTroopCount[$eTroopMinion] To $g_ahTxtTrainArmyTroopCount[$eTroopAppWard] + GUICtrlSetState($i, $GUI_HIDE) + Next + For $i = $g_ahPicTrainArmyTroop[$eTroopBarbarian] To $g_ahPicTrainArmyTroop[$eTroopRootRider] + GUICtrlSetState($i, $GUI_HIDE) + Next + For $i = $g_ahTxtTrainArmyTroopCount[$eTroopBarbarian] To $g_ahTxtTrainArmyTroopCount[$eTroopRootRider] + GUICtrlSetState($i, $GUI_HIDE) + Next + For $i = $g_ahPicTrainArmyTroop[$eTroopSuperBarbarian] To $g_ahPicTrainArmyTroop[$eTroopSuperHogRider] + GUICtrlSetState($i, $GUI_HIDE) + Next + For $i = $g_ahTxtTrainArmyTroopCount[$eTroopSuperBarbarian] To $g_ahTxtTrainArmyTroopCount[$eTroopSuperHogRider] + GUICtrlSetState($i, $GUI_HIDE) + Next + For $i = $g_ahPicTrainArmySpell[$eSpellLightning] To $g_ahPicTrainArmySpell[$eSpellBat] + GUICtrlSetState($i, $GUI_HIDE) + Next + For $i = $g_ahTxtTrainArmySpellCount[$eSpellLightning] To $g_ahTxtTrainArmySpellCount[$eSpellBat] + GUICtrlSetState($i, $GUI_HIDE) + Next + For $i = $g_ahPicTrainArmySiege[$eSiegeWallWrecker] To $g_ahPicTrainArmySiege[$eSiegeBattleDrill] + GUICtrlSetState($i, $GUI_HIDE) + Next + For $i = $g_ahTxtTrainArmySiegeCount[$eSiegeWallWrecker] To $g_ahTxtTrainArmySiegeCount[$eSiegeBattleDrill] + GUICtrlSetState($i, $GUI_HIDE) + Next +EndFunc ;==>HideAllTroops + +Func SetBtnSelector($sType = "All") + For $i = $g_hBtnElixirTroops To $g_hBtnSieges + GUICtrlSetBkColor($i, $COLOR_BLACK) + GUICtrlSetColor($i, $COLOR_WHITE) + GUICtrlSetFont($i, 11, $FW_BOLD, Default, "Segoe UI Semibold", $CLEARTYPE_QUALITY) + Next + Switch $sType + Case "ElixirTroops" + GUICtrlSetColor($g_hBtnElixirTroops, $COLOR_YELLOW) + Case "DarkElixirTroops" + GUICtrlSetColor($g_hBtnDarkElixirTroops, $COLOR_YELLOW) + Case "SuperTroops" + GUICtrlSetColor($g_hBtnSuperTroops, $COLOR_YELLOW) + Case "Spells" + GUICtrlSetColor($g_hBtnSpells, $COLOR_YELLOW) + Case "Sieges" + GUICtrlSetColor($g_hBtnSieges, $COLOR_YELLOW) + EndSwitch +EndFunc ;==>SetBtnSelector + +Func BtnElixirTroops() + HideAllTroops() + For $i = $g_ahPicTrainArmyTroop[$eTroopBarbarian] To $g_ahPicTrainArmyTroop[$eTroopRootRider] + GUICtrlSetState($i, $GUI_SHOW) + Next + For $i = $g_ahTxtTrainArmyTroopCount[$eTroopBarbarian] To $g_ahTxtTrainArmyTroopCount[$eTroopRootRider] + GUICtrlSetState($i, $GUI_SHOW) + Next + SetBtnSelector("ElixirTroops") +EndFunc ;==>BtnElixirTroops + +Func BtnDarkElixirTroops() + HideAllTroops() + For $i = $g_ahPicTrainArmyTroop[$eTroopMinion] To $g_ahPicTrainArmyTroop[$eTroopAppWard] + GUICtrlSetState($i, $GUI_SHOW) + Next + For $i = $g_ahTxtTrainArmyTroopCount[$eTroopMinion] To $g_ahTxtTrainArmyTroopCount[$eTroopAppWard] + GUICtrlSetState($i, $GUI_SHOW) + Next + SetBtnSelector("DarkElixirTroops") +EndFunc ;==>BtnDarkElixirTroops + +Func BtnSuperTroops() + HideAllTroops() + For $i = $g_ahPicTrainArmyTroop[$eTroopSuperBarbarian] To $g_ahPicTrainArmyTroop[$eTroopSuperHogRider] + GUICtrlSetState($i, $GUI_SHOW) + Next + For $i = $g_ahTxtTrainArmyTroopCount[$eTroopSuperBarbarian] To $g_ahTxtTrainArmyTroopCount[$eTroopSuperHogRider] + GUICtrlSetState($i, $GUI_SHOW) + Next + SetBtnSelector("SuperTroops") +EndFunc ;==>BtnSuperTroops + +Func BtnSpells() + HideAllTroops() + For $i = $g_ahPicTrainArmySpell[$eSpellLightning] To $g_ahPicTrainArmySpell[$eSpellBat] + GUICtrlSetState($i, $GUI_SHOW) + Next + For $i = $g_ahTxtTrainArmySpellCount[$eSpellLightning] To $g_ahTxtTrainArmySpellCount[$eSpellBat] + GUICtrlSetState($i, $GUI_SHOW) + Next + SetBtnSelector("Spells") +EndFunc ;==>BtnSpells + +Func BtnSieges() + HideAllTroops() + For $i = $g_ahPicTrainArmySiege[$eSiegeWallWrecker] To $g_ahPicTrainArmySiege[$eSiegeBattleDrill] + GUICtrlSetState($i, $GUI_SHOW) + Next + For $i = $g_ahTxtTrainArmySiegeCount[$eSiegeWallWrecker] To $g_ahTxtTrainArmySiegeCount[$eSiegeBattleDrill] + GUICtrlSetState($i, $GUI_SHOW) + Next + SetBtnSelector("Sieges") +EndFunc ;==>BtnSieges diff --git a/COCBot/GUI/MBR GUI Control Child Upgrade.au3 b/COCBot/GUI/MBR GUI Control Child Upgrade.au3 index 96fc39be0..419797b19 100644 --- a/COCBot/GUI/MBR GUI Control Child Upgrade.au3 +++ b/COCBot/GUI/MBR GUI Control Child Upgrade.au3 @@ -17,13 +17,13 @@ Func InitTranslatedTextUpgradeTab() GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "MsgBox_Warning_Title", "Warning about your settings...") GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "MsgBox_Warning_Text", "Warning ! You selected 2 resources to ignore... That can be a problem,\r\n" & _ - "and Auto Upgrade can be ineffective, by not launching any upgrade...\r\n" & _ - "I recommend you to select only one resource, not more...") + "and Auto Upgrade can be ineffective, by not launching any upgrade...\r\n" & _ + "I recommend you to select only one resource, not more...") GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "MsgBox_Invalid_Title", "Invalid settings...") GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "MsgBox_Invalid_Text", "Warning ! You selected 3 resources to ignore... And you can't...\r\n" & _ - "With your settings, Auto Upgrade will be completely ineffective\r\n" & _ - "and will not launch any upgrade... You must deselect one or more\r\n" & _ - "ignored resource.") + "With your settings, Auto Upgrade will be completely ineffective\r\n" & _ + "and will not launch any upgrade... You must deselect one or more\r\n" & _ + "ignored resource.") EndFunc ;==>InitTranslatedTextUpgradeTab Func btnLocateUpgrades() @@ -84,122 +84,122 @@ Func picUpgradeTypeLocation() EndFunc ;==>picUpgradeTypeLocation Func btnResetUpgrade() - Local $iEmptyRow=-1 ;-1 means no empty row found yet. - Local $j=0 ;temp upgrade type or status + Local $iEmptyRow = -1 ;-1 means no empty row found yet. + Local $j = 0 ;temp upgrade type or status ;Sleep(5000) ;SetDebugLog("Reset Upgarde *******************************************") For $i = 0 To UBound($g_avBuildingUpgrades, 1) - 1 If GUICtrlRead($g_hChkUpgradeRepeat[$i]) = $GUI_CHECKED Then - ;SetDebugLog("Row to keep " & $i) - If $iEmptyRow<>-1 Then ;Is there an empty row to fill? - ;SetDebugLog("Moving from " & $i) - ;SetDebugLog("Moving to " & $iEmptyRow) - ;Move this row up... - $g_aiPicUpgradeStatus[$iEmptyRow] = $g_aiPicUpgradeStatus[$i] ; Upgrade status - $g_avBuildingUpgrades[$iEmptyRow][0] = $g_avBuildingUpgrades[$i][0] ;Upgrade Location X - $g_avBuildingUpgrades[$iEmptyRow][1] = $g_avBuildingUpgrades[$i][1] ;Upgrade Location Y - $g_avBuildingUpgrades[$iEmptyRow][2] = $g_avBuildingUpgrades[$i][2] ;Upgrade Value - ;SetDebugLog("Type setting to " & $g_avBuildingUpgrades[$i][3]) - $g_avBuildingUpgrades[$iEmptyRow][3] = $g_avBuildingUpgrades[$i][3] ;Upgrade Type - ;SetDebugLog("Name in global setting to " & $g_avBuildingUpgrades[$i][4]) - $g_avBuildingUpgrades[$iEmptyRow][4] = $g_avBuildingUpgrades[$i][4] ;Upgrade Unit Name - ;SetDebugLog("Level in global setting to " & $g_avBuildingUpgrades[$i][5]) - $g_avBuildingUpgrades[$iEmptyRow][5] = $g_avBuildingUpgrades[$i][5] ;Upgrade Level - $g_avBuildingUpgrades[$iEmptyRow][6] = $g_avBuildingUpgrades[$i][6] ;Upgrade Duration - $g_avBuildingUpgrades[$iEmptyRow][7] = $g_avBuildingUpgrades[$i][7] ;Upgrade Finish Time - - ;Set the GUI data for new row and clear the GUI data for the cleared row. - ;GUI Unit Name - ;SetDebugLog("Setting name " & $g_avBuildingUpgrades[$iEmptyRow][4]) - GUICtrlSetData($g_hTxtUpgradeName[$iEmptyRow], $g_avBuildingUpgrades[$iEmptyRow][4]) - GUICtrlSetData($g_hTxtUpgradeName[$i], "") - ;GUI Unit Level - ;SetDebugLog("Setting level " & $g_avBuildingUpgrades[$iEmptyRow][5]) - GUICtrlSetData($g_hTxtUpgradeLevel[$iEmptyRow], $g_avBuildingUpgrades[$iEmptyRow][5]) - GUICtrlSetData($g_hTxtUpgradeLevel[$i], "") - ;Upgrade value in GUI - GUICtrlSetData($g_hTxtUpgradeValue[$iEmptyRow], $g_avBuildingUpgrades[$iEmptyRow][2]) - GUICtrlSetData($g_hTxtUpgradeValue[$i], "") - ;Upgrade duration in GUI - GUICtrlSetData($g_hTxtUpgradeTime[$iEmptyRow], $g_avBuildingUpgrades[$iEmptyRow][6]) - GUICtrlSetData($g_hTxtUpgradeTime[$i], "") - - ;GUI upgrade type image - $j = $eIcnElixir - If $g_avBuildingUpgrades[$iEmptyRow][3] = "GOLD" Then $j = $eIcnGold - ;SetDebugLog("Setting GUI type to " & $j) - _GUICtrlSetImage($g_hPicUpgradeType[$iEmptyRow], $g_sLibIconPath, $j) - _GUICtrlSetImage($g_hPicUpgradeType[$i], $g_sLibIconPath, $eIcnBlank) - - ;GUI Status icon : Still not working right! - ;$eIcnTroops=43, $eIcnGreenLight=69, $eIcnRedLight=71 or $eIcnYellowLight=73 - ;SetDebugLog("Setting status to " & $g_aiPicUpgradeStatus[$i]) - ;$j=$g_aiPicUpgradeStatus[$i] - ;No idea why this crap is needed, but I can't pass a variable to _GUICtrlSetImage - $j=$eIcnGreenLight - If $g_aiPicUpgradeStatus[$i] = $eIcnYellowLight Then $j=$eIcnYellowLight - $g_aiPicUpgradeStatus[$iEmptyRow] = $j - _GUICtrlSetImage($g_hPicUpgradeStatus[$iEmptyRow], $g_sLibIconPath, $j) - ;SetDebugLog("Clearing old status to red light " & $eIcnRedLight) - $g_aiPicUpgradeStatus[$i] = $eIcnRedLight ;blank row goes red - _GUICtrlSetImage($g_hPicUpgradeStatus[$i], $g_sLibIconPath, $eIcnRedLight) - - ;Upgrade selection box - GUICtrlSetState($g_hChkUpgrade[$iEmptyRow], $GUI_CHECKED) - GUICtrlSetState($g_hChkUpgrade[$i], $GUI_UNCHECKED) - ;Upgrade finish time in GUI - GUICtrlSetData($g_hTxtUpgradeEndTime[$iEmptyRow], $g_avBuildingUpgrades[$iEmptyRow][7]) - GUICtrlSetData($g_hTxtUpgradeEndTime[$i], "") - ;Repeat box - GUICtrlSetState($g_hChkUpgradeRepeat[$iEmptyRow], $GUI_CHECKED) - GUICtrlSetState($g_hChkUpgradeRepeat[$i], $GUI_UNCHECKED) - - ;Now clear the row we just moved from. - $g_avBuildingUpgrades[$i][0] = -1 ;Upgrade Location X - $g_avBuildingUpgrades[$i][1] = -1 ;Upgrade Location Y - $g_avBuildingUpgrades[$i][2] = -1 ;Upgrade Value - $g_avBuildingUpgrades[$i][3] = "" ;Upgrade Type - $g_avBuildingUpgrades[$i][4] = "" ;Upgrade Unit Name - $g_avBuildingUpgrades[$i][5] = "" ;Upgrade Level - $g_avBuildingUpgrades[$i][6] = "" ;Upgrade Duration - $g_avBuildingUpgrades[$i][7] = "" ;Upgrade Finish Time - - - $i = $iEmptyRow ;Reset counter to this row so we continue forward from here. - $iEmptyRow = -1 ;This should be the first empty row now. - - Else - ;set these to clear up old status icon issues on rows not moved - ;SetDebugLog("Not moving row " & $i) - $j=$g_aiPicUpgradeStatus[$i] - ;SetDebugLog("Setting GUI status to " & $j) ; - ;Following works if a constant is used, but not an variable? - if $j=69 then _GUICtrlSetImage($g_hPicUpgradeStatus[$i], $g_sLibIconPath, 69) - if $j=73 then _GUICtrlSetImage($g_hPicUpgradeStatus[$i], $g_sLibIconPath, 73) - ContinueLoop - Endif + ;SetDebugLog("Row to keep " & $i) + If $iEmptyRow <> -1 Then ;Is there an empty row to fill? + ;SetDebugLog("Moving from " & $i) + ;SetDebugLog("Moving to " & $iEmptyRow) + ;Move this row up... + $g_aiPicUpgradeStatus[$iEmptyRow] = $g_aiPicUpgradeStatus[$i] ; Upgrade status + $g_avBuildingUpgrades[$iEmptyRow][0] = $g_avBuildingUpgrades[$i][0] ;Upgrade Location X + $g_avBuildingUpgrades[$iEmptyRow][1] = $g_avBuildingUpgrades[$i][1] ;Upgrade Location Y + $g_avBuildingUpgrades[$iEmptyRow][2] = $g_avBuildingUpgrades[$i][2] ;Upgrade Value + ;SetDebugLog("Type setting to " & $g_avBuildingUpgrades[$i][3]) + $g_avBuildingUpgrades[$iEmptyRow][3] = $g_avBuildingUpgrades[$i][3] ;Upgrade Type + ;SetDebugLog("Name in global setting to " & $g_avBuildingUpgrades[$i][4]) + $g_avBuildingUpgrades[$iEmptyRow][4] = $g_avBuildingUpgrades[$i][4] ;Upgrade Unit Name + ;SetDebugLog("Level in global setting to " & $g_avBuildingUpgrades[$i][5]) + $g_avBuildingUpgrades[$iEmptyRow][5] = $g_avBuildingUpgrades[$i][5] ;Upgrade Level + $g_avBuildingUpgrades[$iEmptyRow][6] = $g_avBuildingUpgrades[$i][6] ;Upgrade Duration + $g_avBuildingUpgrades[$iEmptyRow][7] = $g_avBuildingUpgrades[$i][7] ;Upgrade Finish Time + + ;Set the GUI data for new row and clear the GUI data for the cleared row. + ;GUI Unit Name + ;SetDebugLog("Setting name " & $g_avBuildingUpgrades[$iEmptyRow][4]) + GUICtrlSetData($g_hTxtUpgradeName[$iEmptyRow], $g_avBuildingUpgrades[$iEmptyRow][4]) + GUICtrlSetData($g_hTxtUpgradeName[$i], "") + ;GUI Unit Level + ;SetDebugLog("Setting level " & $g_avBuildingUpgrades[$iEmptyRow][5]) + GUICtrlSetData($g_hTxtUpgradeLevel[$iEmptyRow], $g_avBuildingUpgrades[$iEmptyRow][5]) + GUICtrlSetData($g_hTxtUpgradeLevel[$i], "") + ;Upgrade value in GUI + GUICtrlSetData($g_hTxtUpgradeValue[$iEmptyRow], $g_avBuildingUpgrades[$iEmptyRow][2]) + GUICtrlSetData($g_hTxtUpgradeValue[$i], "") + ;Upgrade duration in GUI + GUICtrlSetData($g_hTxtUpgradeTime[$iEmptyRow], $g_avBuildingUpgrades[$iEmptyRow][6]) + GUICtrlSetData($g_hTxtUpgradeTime[$i], "") + + ;GUI upgrade type image + $j = $eIcnElixir + If $g_avBuildingUpgrades[$iEmptyRow][3] = "GOLD" Then $j = $eIcnGold + ;SetDebugLog("Setting GUI type to " & $j) + _GUICtrlSetImage($g_hPicUpgradeType[$iEmptyRow], $g_sLibIconPath, $j) + _GUICtrlSetImage($g_hPicUpgradeType[$i], $g_sLibIconPath, $eIcnBlank) + + ;GUI Status icon : Still not working right! + ;$eIcnTroops=43, $eIcnGreenLight=69, $eIcnRedLight=71 or $eIcnYellowLight=73 + ;SetDebugLog("Setting status to " & $g_aiPicUpgradeStatus[$i]) + ;$j=$g_aiPicUpgradeStatus[$i] + ;No idea why this crap is needed, but I can't pass a variable to _GUICtrlSetImage + $j = $eIcnGreenLight + If $g_aiPicUpgradeStatus[$i] = $eIcnYellowLight Then $j = $eIcnYellowLight + $g_aiPicUpgradeStatus[$iEmptyRow] = $j + _GUICtrlSetImage($g_hPicUpgradeStatus[$iEmptyRow], $g_sLibIconPath, $j) + ;SetDebugLog("Clearing old status to red light " & $eIcnRedLight) + $g_aiPicUpgradeStatus[$i] = $eIcnRedLight ;blank row goes red + _GUICtrlSetImage($g_hPicUpgradeStatus[$i], $g_sLibIconPath, $eIcnRedLight) + + ;Upgrade selection box + GUICtrlSetState($g_hChkUpgrade[$iEmptyRow], $GUI_CHECKED) + GUICtrlSetState($g_hChkUpgrade[$i], $GUI_UNCHECKED) + ;Upgrade finish time in GUI + GUICtrlSetData($g_hTxtUpgradeEndTime[$iEmptyRow], $g_avBuildingUpgrades[$iEmptyRow][7]) + GUICtrlSetData($g_hTxtUpgradeEndTime[$i], "") + ;Repeat box + GUICtrlSetState($g_hChkUpgradeRepeat[$iEmptyRow], $GUI_CHECKED) + GUICtrlSetState($g_hChkUpgradeRepeat[$i], $GUI_UNCHECKED) + + ;Now clear the row we just moved from. + $g_avBuildingUpgrades[$i][0] = -1 ;Upgrade Location X + $g_avBuildingUpgrades[$i][1] = -1 ;Upgrade Location Y + $g_avBuildingUpgrades[$i][2] = -1 ;Upgrade Value + $g_avBuildingUpgrades[$i][3] = "" ;Upgrade Type + $g_avBuildingUpgrades[$i][4] = "" ;Upgrade Unit Name + $g_avBuildingUpgrades[$i][5] = "" ;Upgrade Level + $g_avBuildingUpgrades[$i][6] = "" ;Upgrade Duration + $g_avBuildingUpgrades[$i][7] = "" ;Upgrade Finish Time + + + $i = $iEmptyRow ;Reset counter to this row so we continue forward from here. + $iEmptyRow = -1 ;This should be the first empty row now. + + Else + ;set these to clear up old status icon issues on rows not moved + ;SetDebugLog("Not moving row " & $i) + $j = $g_aiPicUpgradeStatus[$i] + ;SetDebugLog("Setting GUI status to " & $j) ; + ;Following works if a constant is used, but not an variable? + If $j = 69 Then _GUICtrlSetImage($g_hPicUpgradeStatus[$i], $g_sLibIconPath, 69) + If $j = 73 Then _GUICtrlSetImage($g_hPicUpgradeStatus[$i], $g_sLibIconPath, 73) + ContinueLoop + EndIf Else ;Row not checked. Clear it. - ;SetDebugLog("Row not checked, clearing row " & $i) - $g_avBuildingUpgrades[$i][0] = -1 ;Upgrade position x - $g_avBuildingUpgrades[$i][1] = -1 ;Upgrade position y - $g_avBuildingUpgrades[$i][2] = -1 ;Upgrade value - $g_avBuildingUpgrades[$i][3] = "" ;Upgrade Type - $g_avBuildingUpgrades[$i][4] = "" ;Upgrade Unit Name - $g_avBuildingUpgrades[$i][5] = "" ;Upgrade Level - $g_avBuildingUpgrades[$i][6] = "" ;Upgrade Duration - $g_avBuildingUpgrades[$i][7] = "" ;Upgrade Finish Time - GUICtrlSetData($g_hTxtUpgradeName[$i], "") ;GUI Unit Name - GUICtrlSetData($g_hTxtUpgradeLevel[$i], "") ;GUI Unit Level - GUICtrlSetData($g_hTxtUpgradeValue[$i], "") ;Upgrade value in GUI - GUICtrlSetData($g_hTxtUpgradeTime[$i], "") ;Upgrade duration in GUI - _GUICtrlSetImage($g_hPicUpgradeType[$i], $g_sLibIconPath, $eIcnBlank) ;Upgrade type blank - $g_aiPicUpgradeStatus[$i] = $eIcnRedLight - _GUICtrlSetImage($g_hPicUpgradeStatus[$i], $g_sLibIconPath, $eIcnRedLight) ;Upgrade status to not ready - GUICtrlSetState($g_hChkUpgrade[$i], $GUI_UNCHECKED) ;Change upgrade selection box to unchecked - GUICtrlSetData($g_hTxtUpgradeEndTime[$i], "") ;Clear Upgrade time in GUI - GUICtrlSetState($g_hChkUpgradeRepeat[$i], $GUI_UNCHECKED) ;Change repeat box to unchecked - If $iEmptyRow = -1 Then $iEmptyRow=$i ;This row is now empty. - Endif + ;SetDebugLog("Row not checked, clearing row " & $i) + $g_avBuildingUpgrades[$i][0] = -1 ;Upgrade position x + $g_avBuildingUpgrades[$i][1] = -1 ;Upgrade position y + $g_avBuildingUpgrades[$i][2] = -1 ;Upgrade value + $g_avBuildingUpgrades[$i][3] = "" ;Upgrade Type + $g_avBuildingUpgrades[$i][4] = "" ;Upgrade Unit Name + $g_avBuildingUpgrades[$i][5] = "" ;Upgrade Level + $g_avBuildingUpgrades[$i][6] = "" ;Upgrade Duration + $g_avBuildingUpgrades[$i][7] = "" ;Upgrade Finish Time + GUICtrlSetData($g_hTxtUpgradeName[$i], "") ;GUI Unit Name + GUICtrlSetData($g_hTxtUpgradeLevel[$i], "") ;GUI Unit Level + GUICtrlSetData($g_hTxtUpgradeValue[$i], "") ;Upgrade value in GUI + GUICtrlSetData($g_hTxtUpgradeTime[$i], "") ;Upgrade duration in GUI + _GUICtrlSetImage($g_hPicUpgradeType[$i], $g_sLibIconPath, $eIcnBlank) ;Upgrade type blank + $g_aiPicUpgradeStatus[$i] = $eIcnRedLight + _GUICtrlSetImage($g_hPicUpgradeStatus[$i], $g_sLibIconPath, $eIcnRedLight) ;Upgrade status to not ready + GUICtrlSetState($g_hChkUpgrade[$i], $GUI_UNCHECKED) ;Change upgrade selection box to unchecked + GUICtrlSetData($g_hTxtUpgradeEndTime[$i], "") ;Clear Upgrade time in GUI + GUICtrlSetState($g_hChkUpgradeRepeat[$i], $GUI_UNCHECKED) ;Change repeat box to unchecked + If $iEmptyRow = -1 Then $iEmptyRow = $i ;This row is now empty. + EndIf Next EndFunc ;==>btnResetUpgrade @@ -287,7 +287,7 @@ Func ResetLabUpgradeTime() Local $stext = @CRLF & GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_07", "Are you 100% sure you want to reset lab upgrade timer?") & @CRLF & _ GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_08", "Click OK to reset") & @CRLF & GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_09", "Or Click Cancel to exit") & @CRLF Local $MsgBox = _ExtMsgBox(0, GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_10", "Reset timer") & "|" & GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_11", "Cancel and Return"), _ - GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_12", "Reset laboratory upgrade timer?"), $stext, 120, $g_hFrmBot) + GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_12", "Reset laboratory upgrade timer?"), $stext, 120, $g_hFrmBot) If $g_bDebugSetlog Then SetDebugLog("$MsgBox= " & $MsgBox, $COLOR_DEBUG) If $MsgBox = 1 Then $g_sLabUpgradeTime = "" @@ -312,7 +312,7 @@ Func ResetStarLabUpgradeTime() Local $stext = @CRLF & GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_07", "Are you 100% sure you want to reset lab upgrade timer?") & @CRLF & _ GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_08", "Click OK to reset") & @CRLF & GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_09", "Or Click Cancel to exit") & @CRLF Local $MsgBox = _ExtMsgBox(0, GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_10", "Reset timer") & "|" & GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_11", "Cancel and Return"), _ - GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_12", "Reset laboratory upgrade timer?"), $stext, 120, $g_hFrmBot) + GetTranslatedFileIni("MBR Func_Village_Upgrade", "Lab_GUIUpdate_Info_12", "Reset laboratory upgrade timer?"), $stext, 120, $g_hFrmBot) If $g_bDebugSetlog Then SetDebugLog("$MsgBox= " & $MsgBox, $COLOR_DEBUG) If $MsgBox = 1 Then $g_sStarLabUpgradeTime = "" @@ -329,7 +329,7 @@ Func ResetStarLabUpgradeTime() GUICtrlSetState($g_hBtnResetStarLabUpgradeTime, $GUI_HIDE) GUICtrlSetState($g_hBtnResetStarLabUpgradeTime, $GUI_DISABLE) EndIf -EndFunc ;==>ResetLabUpgradeTime +EndFunc ;==>ResetStarLabUpgradeTime Func chkUpgradeKing() If $g_iTownHallLevel > 6 Then ; Must be TH7 or above to have King @@ -343,7 +343,7 @@ Func chkUpgradeKing() Local $ahGroupKingWait[4] = [$g_hChkDBKingWait, $g_hChkABKingWait, $g_hPicDBKingWait, $g_hPicABKingWait] Local $TxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtKingWait_Info_01", -1) & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtKingWait_Info_02", -1) + GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtKingWait_Info_02", -1) Local $TxtWarningTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtKingWait_Info_03", "ATTENTION: King auto upgrade is currently enable.") If GUICtrlRead($g_hChkUpgradeKing) = $GUI_CHECKED Then $g_bUpgradeKingEnable = True @@ -376,7 +376,7 @@ Func chkUpgradeQueen() Local $ahGroupQueenWait[4] = [$g_hChkDBQueenWait, $g_hChkABQueenWait, $g_hPicDBQueenWait, $g_hPicABQueenWait] Local $TxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtQueenWait_Info_01", -1) & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtQueenWait_Info_02", -1) + GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtQueenWait_Info_02", -1) Local $TxtWarningTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtQueenWait_Info_03", "ATTENTION: Queen auto upgrade is currently enable.") If GUICtrlRead($g_hChkUpgradeQueen) = $GUI_CHECKED Then $g_bUpgradeQueenEnable = True @@ -408,7 +408,7 @@ Func chkUpgradeWarden() Local $ahGroupWardenWait[4] = [$g_hChkDBWardenWait, $g_hChkABWardenWait, $g_hPicDBWardenWait, $g_hPicABWardenWait] Local $TxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtWardenWait_Info_01", -1) & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtWardenWait_Info_02", -1) + GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtWardenWait_Info_02", -1) Local $TxtWarningTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtWardenWait_Info_03", "ATTENTION: Warden auto upgrade is currently enable.") If GUICtrlRead($g_hChkUpgradeWarden) = $GUI_CHECKED Then $g_bUpgradeWardenEnable = True @@ -440,7 +440,7 @@ Func chkUpgradeChampion() Local $ahGroupChampionWait[4] = [$g_hChkDBChampionWait, $g_hChkABChampionWait, $g_hPicDBChampionWait, $g_hPicABChampionWait] Local $TxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtChampionWait_Info_01", -1) & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtChampionWait_Info_02", -1) + GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtChampionWait_Info_02", -1) Local $TxtWarningTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "TxtChampionWait_Info_03", "ATTENTION: Champion auto upgrade is currently enable.") If GUICtrlRead($g_hChkUpgradeChampion) = $GUI_CHECKED Then $g_bUpgradeChampionEnable = True @@ -462,7 +462,7 @@ EndFunc ;==>chkUpgradeChampion Func chkUpgradePets() If $g_iTownHallLevel = 14 Then ; Must be TH14 to have Pets 1->4 - For $i = 0 To $ePetCount - 5 + For $i = 0 To $ePetCount - 6 GUICtrlSetState($g_hChkUpgradePets[$i], $GUI_ENABLE) If GUICtrlRead($g_hChkUpgradePets[$i]) = $GUI_CHECKED Then $g_bUpgradePetsEnable[$i] = True @@ -472,12 +472,26 @@ Func chkUpgradePets() SetDebugLog("Upgrade: " & $g_asPetNames[$i] & " disabled") EndIf Next - For $i = $ePetCount - 4 To $ePetCount - 1 + For $i = $ePetCount - 5 To $ePetCount - 1 GUICtrlSetState($g_hChkUpgradePets[$i], $GUI_DISABLE + $GUI_UNCHECKED) $g_bUpgradePetsEnable[$i] = False SetDebugLog("Upgrade: " & $g_asPetNames[$i] & " disabled") Next - ElseIf $g_iTownHallLevel > 14 Then ; Must be TH15 to have all Pets + ElseIf $g_iTownHallLevel = 15 Then ; TH15 : Pets 1->8 + For $i = 0 To $ePetCount - 2 + GUICtrlSetState($g_hChkUpgradePets[$i], $GUI_ENABLE) + If GUICtrlRead($g_hChkUpgradePets[$i]) = $GUI_CHECKED Then + $g_bUpgradePetsEnable[$i] = True + SetDebugLog("Upgrade: " & $g_asPetNames[$i] & " enabled") + Else + $g_bUpgradePetsEnable[$i] = False + SetDebugLog("Upgrade: " & $g_asPetNames[$i] & " disabled") + EndIf + Next + GUICtrlSetState($g_hChkUpgradePets[$ePetCount - 1], $GUI_DISABLE + $GUI_UNCHECKED) + $g_bUpgradePetsEnable[$ePetCount - 1] = False + SetDebugLog("Upgrade: " & $g_asPetNames[$ePetCount - 1] & " disabled") + ElseIf $g_iTownHallLevel = 16 Then ; TH16 : Pets 1->9 For $i = 0 To $ePetCount - 1 GUICtrlSetState($g_hChkUpgradePets[$i], $GUI_ENABLE) If GUICtrlRead($g_hChkUpgradePets[$i]) = $GUI_CHECKED Then @@ -489,12 +503,12 @@ Func chkUpgradePets() EndIf Next Else - For $i = 0 to $ePetCount - 1 + For $i = 0 To $ePetCount - 1 GUICtrlSetState($g_hChkUpgradePets[$i], $GUI_DISABLE + $GUI_UNCHECKED) $g_bUpgradePetsEnable[$i] = False Next EndIf -EndFunc +EndFunc ;==>chkUpgradePets Func cmbHeroReservedBuilder() $g_iHeroReservedBuilder = _GUICtrlComboBox_GetCurSel($g_hCmbHeroReservedBuilder) @@ -549,15 +563,15 @@ Func cmbWalls() $g_iWallCost = $g_aiWallCost[$g_iCmbUpgradeWallsLevel] GUICtrlSetData($g_hLblWallCost, _NumberFormat($g_iWallCost)) - For $i = 4 To $g_iCmbUpgradeWallsLevel+5 + For $i = 4 To $g_iCmbUpgradeWallsLevel + 5 GUICtrlSetState($g_ahWallsCurrentCount[$i], $GUI_SHOW) - GUICtrlSetState($g_ahPicWallsLevel[$i], $GUI_SHOW) + GUICtrlSetState($g_ahPicWallsLevel[$i], $GUI_SHOW) + Next + + For $i = $g_iCmbUpgradeWallsLevel + 6 To 17 + GUICtrlSetState($g_ahWallsCurrentCount[$i], $GUI_HIDE) + GUICtrlSetState($g_ahPicWallsLevel[$i], $GUI_HIDE) Next - - For $i = $g_iCmbUpgradeWallsLevel+6 To 16 - GUICtrlSetState($g_ahWallsCurrentCount[$i], $GUI_HIDE) - GUICtrlSetState($g_ahPicWallsLevel[$i], $GUI_HIDE) - Next EndFunc ;==>cmbWalls Func btnWalls() @@ -604,7 +618,7 @@ Func chkResourcesToIgnore() EndFunc ;==>chkResourcesToIgnore Func chkUpgradesToIgnore() - For $i = 0 To Ubound($g_iChkUpgradesToIgnore) - 1 + For $i = 0 To UBound($g_iChkUpgradesToIgnore) - 1 $g_iChkUpgradesToIgnore[$i] = GUICtrlRead($g_hChkUpgradesToIgnore[$i]) = $GUI_CHECKED ? 1 : 0 Next EndFunc ;==>chkUpgradesToIgnore diff --git a/COCBot/GUI/MBR GUI Control Donate.au3 b/COCBot/GUI/MBR GUI Control Donate.au3 index 432f75f2b..d1ba64a8d 100644 --- a/COCBot/GUI/MBR GUI Control Donate.au3 +++ b/COCBot/GUI/MBR GUI Control Donate.au3 @@ -17,7 +17,7 @@ Global $g_aiDonIcons[$eTroopCount + 1] = [$eIcnDonBarbarian, $eIcnSuperBarbarian, $eIcnDonArcher, $eIcnSuperArcher, $eIcnDonGiant, $eIcnSuperGiant, $eIcnDonGoblin, $eIcnSneakyGoblin, _ $eIcnDonWallBreaker, $eIcnSuperWallBreaker, $eIcnDonBalloon, $eIcnRocketBalloon, $eIcnDonWizard, $eIcnSuperWizard, _ $eIcnDonHealer, $eIcnDonDragon, $eIcnSuperDragon, $eIcnDonPekka, $eIcnDonBabyDragon, _ - $eIcnInfernoDragon, $eIcnDonMiner, $eIcnSuperMiner, $eIcnElectroDragon, $eIcnYeti, $eIcnDragonRider, $eIcnElectroTitan, _ + $eIcnInfernoDragon, $eIcnDonMiner, $eIcnSuperMiner, $eIcnElectroDragon, $eIcnYeti, $eIcnDragonRider, $eIcnElectroTitan, $eIcnRootRider, _ $eIcnDonMinion, $eIcnSuperMinion, $eIcnDonHogRider, $eIcnSuperHogRider, $eIcnDonValkyrie, $eIcnSuperValkyrie, $eIcnDonGolem, _ $eIcnDonWitch, $eIcnSuperWitch, $eIcnDonLavaHound, $eIcnIceHound, $eIcnDonBowler, $eIcnSuperBowler, $eIcnIceGolem, $eIcnHeadhunter, $eIcnAppWard, $eIcnDonBlank] diff --git a/COCBot/GUI/MBR GUI Design About.au3 b/COCBot/GUI/MBR GUI Design About.au3 index 4fad2af6e..17037da25 100644 --- a/COCBot/GUI/MBR GUI Design About.au3 +++ b/COCBot/GUI/MBR GUI Design About.au3 @@ -48,7 +48,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 = "HarchH, MikeD, Moebius14" + $sText = "HarchH, Moebius14" GUICtrlCreateLabel($sText, $x + 5, $y + 15, 410, 50, BitOR($WS_VISIBLE, $ES_AUTOVSCROLL, $SS_LEFT), 0) GUICtrlSetFont(-1, 9, $FW_MEDIUM, Default, "Arial") @@ -57,7 +57,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 = "Anondad, MonkeyHunter and of course Beta/Alpha Tester Teams" + $sText = "MikeD, Anondad, MonkeyHunter and of course Beta/Alpha Tester Teams" GUICtrlCreateLabel($sText, $x + 5, $y + 15, 410, 50, BitOR($WS_VISIBLE, $ES_AUTOVSCROLL, $SS_LEFT), 0) GUICtrlSetFont(-1, 9, $FW_MEDIUM, Default, "Arial") diff --git a/COCBot/GUI/MBR GUI Design Attack.au3 b/COCBot/GUI/MBR GUI Design Attack.au3 index 80025c0bd..2b35bc9a2 100644 --- a/COCBot/GUI/MBR GUI Design Attack.au3 +++ b/COCBot/GUI/MBR GUI Design Attack.au3 @@ -27,14 +27,14 @@ Func LoadTranslatedDropOrderList() "Barbarians", "Super Barbarians", "Archers", "Super Archers", "Giants", "Super Giants", "Goblins", "Sneaky Goblins", _ "Wall Breakers", "Super Wall Breakers", "Balloons", "Rocket Balloons", "Wizards", "Super Wizards", "Healers", _ "Dragons", "Super Dragons", "Pekkas", "Baby Dragons", "Inferno Dragons", "Miners", "Super Miners", "Electro Dragons", "Yetis", "Dragon Riders", _ - "Electro Titans", "Minions", "Super Minions", "Hog Riders", "Super Hog Riders", "Valkyries", "Super Valkyries", "Golems", _ + "Electro Titans", "Root Riders", "Minions", "Super Minions", "Hog Riders", "Super Hog Riders", "Valkyries", "Super Valkyries", "Golems", _ "Witchs", "Super Witchs", "Lava Hounds", "Ice Hounds", "Bowlers", "Super Bowlers", "Ice Golems", "Headhunters", "Apprentice Wardens", _ "Clan Castle", "Heroes"] EndFunc ;==>LoadTranslatedDropOrderList Global $g_hChkCustomDropOrderEnable = 0 -Global $g_ahCmbDropOrder[$eDropOrderCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -Global $g_ahImgDropOrder[$eDropOrderCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahCmbDropOrder[$eDropOrderCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahImgDropOrder[$eDropOrderCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_hBtnDropOrderSet = 0, $g_ahImgDropOrderSet = 0 Global $g_hBtnRemoveDropOrder = 0 diff --git a/COCBot/GUI/MBR GUI Design Child Attack - Activebase-Search.au3 b/COCBot/GUI/MBR GUI Design Child Attack - Activebase-Search.au3 index e672050ba..05faabdd8 100644 --- a/COCBot/GUI/MBR GUI Design Child Attack - Activebase-Search.au3 +++ b/COCBot/GUI/MBR GUI Design Child Attack - Activebase-Search.au3 @@ -34,7 +34,7 @@ Global $g_hChkABMeetTrophy = 0, $g_hTxtABMinTrophy = 0, $g_hTxtABMaxTrophy = 0 Global $g_hChkABMeetTH = 0, $g_hCmbABTH = 0, $g_hChkABMeetTHO = 0 Global $g_hGrpABFilter = 0, $g_hPicABMinGold = 0, $g_hPicABMinElixir = 0, $g_hPicABMinGPEGold = 0, $g_hPicABMinDarkElixir = 0, $g_hPicABMinTrophies = 0 -Global $g_ahPicABMaxTH[15] +Global $g_ahPicABMaxTH[16] Func CreateAttackSearchActiveBaseSearch() Local $sTxtLightningSpells = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtShortLightningSpells", -1) @@ -249,7 +249,7 @@ Func CreateAttackSearchActiveBaseSearch() $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbDBTH", -1) _GUICtrlSetTip(-1, $sTxtTip) GUICtrlSetState(-1, $GUI_DISABLE) - GUICtrlSetData(-1, "4-6|7|8|9|10|11|12|13|14", "4-6") + GUICtrlSetData(-1, "4-6|7|8|9|10|11|12|13|14|15", "4-6") GUICtrlSetOnEvent(-1, "CmbABTH") $g_ahPicABMaxTH[6] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV06, $x + 137, $y - 3, 24, 24) _GUICtrlSetTip(-1, $sTxtTip) @@ -278,6 +278,9 @@ Func CreateAttackSearchActiveBaseSearch() $g_ahPicABMaxTH[14] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV14, $x + 137, $y - 3, 24, 24) _GUICtrlSetTip(-1, $sTxtTip) GUICtrlSetState (-1, $GUI_HIDE) + $g_ahPicABMaxTH[15] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV15, $x + 137, $y - 3, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetState (-1, $GUI_HIDE) $y += 24 $g_hChkABMeetTHO = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMeetTHO", "Townhall Outside"), $x, $y, -1, -1) @@ -289,100 +292,100 @@ Func CreateAttackSearchActiveBaseSearch() $y += 20 Local $xStartColumn = $x, $yStartColumn = $y $g_ahChkMaxMortar[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxMortar", "Search for a base that has Mortar below or equal this level.")) - GUICtrlSetOnEvent(-1, "chkABWeakBase") - $g_ahCmbWeakMortar[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxMortar_Info_01", "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 9|Lvl 10|Lvl 11|Lvl 12|Lvl 13|Lvl 14", "Lvl 5") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakMortar[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMortar, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxMortar", "Search for a base that has Mortar below or equal this level.")) + GUICtrlSetOnEvent(-1, "chkABWeakBase") + $g_ahCmbWeakMortar[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxMortar_Info_01", "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 9|Lvl 10|Lvl 11|Lvl 12|Lvl 13|Lvl 14|Lvl 15", "Lvl 5") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakMortar[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMortar, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 24 - $g_ahChkMaxWizTower[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxWizTower", "Search for a base that has Wizard Tower below or equal this level")) - GUICtrlSetOnEvent(-1, "chkABWeakBase") - $g_ahCmbWeakWizTower[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxWizTower_Info_01", "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 10|Lvl 11|Lvl 12|Lvl 13|Lvl 14", "Lvl 4") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakWizTower[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWizTower, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxWizTower[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxWizTower", "Search for a base that has Wizard Tower below or equal this level")) + GUICtrlSetOnEvent(-1, "chkABWeakBase") + $g_ahCmbWeakWizTower[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxWizTower_Info_01", "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 10|Lvl 11|Lvl 12|Lvl 13|Lvl 14|Lvl 15", "Lvl 4") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakWizTower[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWizTower, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 24 - $g_ahChkMaxAirDefense[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxAirDefense", "Search for a base that has Air Defense below or equal this level")) - GUICtrlSetOnEvent(-1, "chkABWeakBase") - $g_ahCmbWeakAirDefense[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxAirDefense_Info_01", "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 9|Lvl 10|Lvl 11|Lvl 12", "Lvl 7") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakAirDefense[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnAirdefense, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxAirDefense[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxAirDefense", "Search for a base that has Air Defense below or equal this level")) + GUICtrlSetOnEvent(-1, "chkABWeakBase") + $g_ahCmbWeakAirDefense[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxAirDefense_Info_01", "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 9|Lvl 10|Lvl 11|Lvl 12|Lvl 13", "Lvl 7") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakAirDefense[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnAirdefense, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 24 - $g_ahChkMaxXBow[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxXBow", "Search for a base that has X-Bow below or equal this level")) - GUICtrlSetOnEvent(-1, "chkABWeakBase") - $g_ahCmbWeakXBow[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxXBow_Info_01", "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 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9", "Lvl 2") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakXBow[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnXBow3, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxXBow[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxXBow", "Search for a base that has X-Bow below or equal this level")) + GUICtrlSetOnEvent(-1, "chkABWeakBase") + $g_ahCmbWeakXBow[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxXBow_Info_01", "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 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9|Lvl 10", "Lvl 2") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakXBow[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnXBow3, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $x = $xStartColumn + 105 $y = $yStartColumn - $g_ahChkMaxScatter[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxScatter", "Search for a base that has ScatterShot below or equal this level")) - GUICtrlSetOnEvent(-1, "chkABWeakBase") - $g_ahCmbWeakScatter[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxScatter_Info_01", "Set the Max. level of the ScatterShot to search for on a village to attack.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3", "Lvl 1") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakScatter[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnScattershot, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxScatter[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxScatter", "Search for a base that has ScatterShot below or equal this level")) + GUICtrlSetOnEvent(-1, "chkABWeakBase") + $g_ahCmbWeakScatter[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxScatter_Info_01", "Set the Max. level of the ScatterShot to search for on a village to attack.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3", "Lvl 1") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakScatter[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnScattershot, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 24 - $g_ahChkMaxInferno[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxInferno", "Search for a base that has Inferno below or equal this level")) - GUICtrlSetOnEvent(-1, "chkABWeakBase") - $g_ahCmbWeakInferno[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxInferno_Info_01", "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 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8", "Lvl 2") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakInferno[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInferno4, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxInferno[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxInferno", "Search for a base that has Inferno below or equal this level")) + GUICtrlSetOnEvent(-1, "chkABWeakBase") + $g_ahCmbWeakInferno[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxInferno_Info_01", "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 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8", "Lvl 2") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakInferno[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInferno4, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 24 - $g_ahChkMaxEagle[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxEagle", "Search for a base that has Eagle Artillery below or equal this level")) - GUICtrlSetOnEvent(-1, "chkABWeakBase") - $g_ahCmbWeakEagle[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxEagle_Info_01", "Set the Max. level of the Eagle Artillery to search for on a village to attack.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5", "Lvl 1") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakEagle[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnEagleArt, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) - + $g_ahChkMaxEagle[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxEagle", "Search for a base that has Eagle Artillery below or equal this level")) + GUICtrlSetOnEvent(-1, "chkABWeakBase") + $g_ahCmbWeakEagle[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxEagle_Info_01", "Set the Max. level of the Eagle Artillery to search for on a village to attack.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5", "Lvl 1") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakEagle[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnEagleArt, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) + $y += 24 - $g_ahChkMaxMonolith[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxMonolith", "Search for a base that has Monolith below or equal this level")) - GUICtrlSetOnEvent(-1, "chkABWeakBase") - $g_ahCmbWeakMonolith[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxMonolith_Info_01", "Set the Max. level of the Monolith to search for on a village to attack.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetData(-1, "-|Lvl 1", "Lvl 1") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakMonolith[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMonolith, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxMonolith[$LB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxMonolith", "Search for a base that has Monolith below or equal this level")) + GUICtrlSetOnEvent(-1, "chkABWeakBase") + $g_ahCmbWeakMonolith[$LB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxMonolith_Info_01", "Set the Max. level of the Monolith to search for on a village to attack.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetData(-1, "-|Lvl 1", "Lvl 1") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakMonolith[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMonolith, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 44 $y += 24 diff --git a/COCBot/GUI/MBR GUI Design Child Attack - Bully.au3 b/COCBot/GUI/MBR GUI Design Child Attack - Bully.au3 index b074b7bbb..b743f807a 100644 --- a/COCBot/GUI/MBR GUI Design Child Attack - Bully.au3 +++ b/COCBot/GUI/MBR GUI Design Child Attack - Bully.au3 @@ -19,7 +19,7 @@ Global $g_hGUI_BULLY = 0 Global $g_hTxtATBullyMode = 0, $g_hCmbBullyMaxTH = 0, $g_hRadBullyUseDBAttack = 0, $g_hRadBullyUseLBAttack = 0 Global $g_hGrpBullyAtkCombo = 0, $g_hLblBullyMode = 0, $g_hLblATBullyMode = 0 -Global $g_ahPicBullyMaxTH[15] +Global $g_ahPicBullyMaxTH[16] Func CreateAttackSearchBully() @@ -46,7 +46,7 @@ Func CreateAttackSearchBully() $g_hCmbBullyMaxTH = GUICtrlCreateCombo("", $x + 85, $y, 50, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Bully", "CmbBullyMaxTH_Info_01", "TH Bully: Max. Townhall level to bully.") _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetData(-1, "4-6|7|8|9|10|11|12|13|14", "4-6") + GUICtrlSetData(-1, "4-6|7|8|9|10|11|12|13|14|15", "4-6") GUICtrlSetOnEvent(-1, "CmbBullyMaxTH") $g_ahPicBullyMaxTH[6] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV06, $x + 137, $y - 3, 24, 24) _GUICtrlSetTip(-1, $sTxtTip) @@ -72,6 +72,12 @@ Func CreateAttackSearchBully() $g_ahPicBullyMaxTH[13] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV13, $x + 137, $y - 3, 24, 24) _GUICtrlSetTip(-1, $sTxtTip) GUICtrlSetState (-1, $GUI_HIDE) + $g_ahPicBullyMaxTH[14] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV14, $x + 137, $y - 3, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetState (-1, $GUI_HIDE) + $g_ahPicBullyMaxTH[15] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV15, $x + 137, $y - 3, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetState (-1, $GUI_HIDE) $y += 24 GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Attack - Bully", "LblWhenFound", "When found, Attack with settings from") & ":", $x + 10, $y, -1, -1, $SS_RIGHT) diff --git a/COCBot/GUI/MBR GUI Design Child Attack - Deadbase-Search.au3 b/COCBot/GUI/MBR GUI Design Child Attack - Deadbase-Search.au3 index c5626c5fb..0de01a173 100644 --- a/COCBot/GUI/MBR GUI Design Child Attack - Deadbase-Search.au3 +++ b/COCBot/GUI/MBR GUI Design Child Attack - Deadbase-Search.au3 @@ -34,7 +34,7 @@ Global $g_hChkDBMeetTrophy = 0, $g_hTxtDBMinTrophy = 0, $g_hTxtDBMaxTrophy = 0 Global $g_hChkDBMeetTH = 0, $g_hCmbDBTH = 0, $g_hChkDBMeetTHO = 0, $g_hChkDBMeetDeadEagle = 0, $g_hTxtDeadEagleSearch = 0 Global $g_hGrpDBFilter = 0, $g_hPicDBMinGold = 0, $g_hPicDBMinElixir = 0, $g_hPicDBMinGPEGold = 0, $g_hPicDBMinDarkElixir = 0, $g_hPicDBMinTrophies = 0 -Global $g_ahPicDBMaxTH[15] +Global $g_ahPicDBMaxTH[16] Func CreateAttackSearchDeadBaseSearch() Local $sTxtLightningSpells = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtShortLightningSpells", -1) @@ -251,7 +251,7 @@ Func CreateAttackSearchDeadBaseSearch() $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbDBTH", "Set the Max. level of the Townhall to search for on a village to attack.") _GUICtrlSetTip(-1, $sTxtTip) GUICtrlSetState(-1, $GUI_DISABLE) - GUICtrlSetData(-1, "4-6|7|8|9|10|11|12|13|14", "4-6") + GUICtrlSetData(-1, "4-6|7|8|9|10|11|12|13|14|15", "4-6") GUICtrlSetOnEvent(-1, "CmbDBTH") $g_ahPicDBMaxTH[6] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV06, $x + 137, $y - 3, 24, 24) _GUICtrlSetTip(-1, $sTxtTip) @@ -280,6 +280,9 @@ Func CreateAttackSearchDeadBaseSearch() $g_ahPicDBMaxTH[14] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV14, $x + 137, $y - 3, 24, 24) _GUICtrlSetTip(-1, $sTxtTip) GUICtrlSetState (-1, $GUI_HIDE) + $g_ahPicDBMaxTH[15] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV15, $x + 137, $y - 3, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetState (-1, $GUI_HIDE) $y += 24 ; create checkbox with handle $g_hChkDBMeetDeadEagle @@ -300,100 +303,100 @@ Func CreateAttackSearchDeadBaseSearch() $y += 20 Local $xStartColumn = $x, $yStartColumn = $y $g_ahChkMaxMortar[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxMortar", "Search for a base that has Mortar below or equal this level.")) - GUICtrlSetOnEvent(-1, "chkDBWeakBase") - $g_ahCmbWeakMortar[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxMortar_Info_01", "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 9|Lvl 10|Lvl 11|Lvl 12|Lvl 13|Lvl 14", "Lvl 5") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakMortar[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMortar, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxMortar", "Search for a base that has Mortar below or equal this level.")) + GUICtrlSetOnEvent(-1, "chkDBWeakBase") + $g_ahCmbWeakMortar[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxMortar_Info_01", "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 9|Lvl 10|Lvl 11|Lvl 12|Lvl 13|Lvl 14|Lvl 15", "Lvl 5") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakMortar[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMortar, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 24 - $g_ahChkMaxWizTower[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxWizTower", "Search for a base that has Wizard Tower below or equal this level")) - GUICtrlSetOnEvent(-1, "chkDBWeakBase") - $g_ahCmbWeakWizTower[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxWizTower_Info_01", "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 10|Lvl 11|Lvl 12|Lvl 13|Lvl 14", "Lvl 4") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakWizTower[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWizTower, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxWizTower[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxWizTower", "Search for a base that has Wizard Tower below or equal this level")) + GUICtrlSetOnEvent(-1, "chkDBWeakBase") + $g_ahCmbWeakWizTower[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxWizTower_Info_01", "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 10|Lvl 11|Lvl 12|Lvl 13|Lvl 14|Lvl 15", "Lvl 4") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakWizTower[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWizTower, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 24 - $g_ahChkMaxAirDefense[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxAirDefense", "Search for a base that has Air Defense below or equal this level")) - GUICtrlSetOnEvent(-1, "chkDBWeakBase") - $g_ahCmbWeakAirDefense[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxAirDefense_Info_01", "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 9|Lvl 10|Lvl 11|Lvl 12", "Lvl 7") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakAirDefense[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnAirdefense, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxAirDefense[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxAirDefense", "Search for a base that has Air Defense below or equal this level")) + GUICtrlSetOnEvent(-1, "chkDBWeakBase") + $g_ahCmbWeakAirDefense[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxAirDefense_Info_01", "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 9|Lvl 10|Lvl 11|Lvl 12|Lvl 13", "Lvl 7") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakAirDefense[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnAirdefense, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 24 - $g_ahChkMaxXBow[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxXBow", "Search for a base that has X-Bow below or equal this level")) - GUICtrlSetOnEvent(-1, "chkDBWeakBase") - $g_ahCmbWeakXBow[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxXBow_Info_01", "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 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9", "Lvl 2") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakXBow[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnXBow3, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxXBow[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxXBow", "Search for a base that has X-Bow below or equal this level")) + GUICtrlSetOnEvent(-1, "chkDBWeakBase") + $g_ahCmbWeakXBow[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 54, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxXBow_Info_01", "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 5|Lvl 6|Lvl 7|Lvl 8|Lvl 9|Lvl 10", "Lvl 2") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakXBow[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnXBow3, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $x = $xStartColumn + 105 $y = $yStartColumn - $g_ahChkMaxScatter[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxScatter", "Search for a base that has ScatterShot below or equal this level")) - GUICtrlSetOnEvent(-1, "chkDBWeakBase") - $g_ahCmbWeakScatter[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxScatter_Info_01", "Set the Max. level of the ScatterShot to search for on a village to attack.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3", "Lvl 1") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakScatter[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnScattershot, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxScatter[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxScatter", "Search for a base that has ScatterShot below or equal this level")) + GUICtrlSetOnEvent(-1, "chkDBWeakBase") + $g_ahCmbWeakScatter[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxScatter_Info_01", "Set the Max. level of the ScatterShot to search for on a village to attack.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3", "Lvl 1") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakScatter[$LB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnScattershot, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 24 - $g_ahChkMaxInferno[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxInferno", "Search for a base that has Inferno below or equal this level")) - GUICtrlSetOnEvent(-1, "chkDBWeakBase") - $g_ahCmbWeakInferno[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxInferno_Info_01", "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 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8", "Lvl 2") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakInferno[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInferno4, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxInferno[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxInferno", "Search for a base that has Inferno below or equal this level")) + GUICtrlSetOnEvent(-1, "chkDBWeakBase") + $g_ahCmbWeakInferno[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxInferno_Info_01", "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 4|Lvl 5|Lvl 6|Lvl 7|Lvl 8", "Lvl 2") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakInferno[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInferno4, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 24 - $g_ahChkMaxEagle[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxEagle", "Search for a base that has Eagle Artillery below or equal this level")) - GUICtrlSetOnEvent(-1, "chkDBWeakBase") - $g_ahCmbWeakEagle[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxEagle_Info_01", "Set the Max. level of the Eagle Artillery to search for on a village to attack.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5", "Lvl 1") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakEagle[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnEagleArt, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) - + $g_ahChkMaxEagle[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxEagle", "Search for a base that has Eagle Artillery below or equal this level")) + GUICtrlSetOnEvent(-1, "chkDBWeakBase") + $g_ahCmbWeakEagle[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxEagle_Info_01", "Set the Max. level of the Eagle Artillery to search for on a village to attack.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetData(-1, "-|Lvl 1|Lvl 2|Lvl 3|Lvl 4|Lvl 5", "Lvl 1") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakEagle[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnEagleArt, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) + $y += 24 - $g_ahChkMaxMonolith[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxMonolith", "Search for a base that has Monolith below or equal this level")) - GUICtrlSetOnEvent(-1, "chkDBWeakBase") - $g_ahCmbWeakMonolith[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxMonolith_Info_01", "Set the Max. level of the Monolith to search for on a village to attack.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetData(-1, "-|Lvl 1", "Lvl 1") - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahPicWeakMonolith[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMonolith, $x + 76, $y - 2, 24, 24) - _GUICtrlSetTip(-1, $sTxtTip) + $g_ahChkMaxMonolith[$DB] = GUICtrlCreateCheckbox("", $x, $y, 17, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "ChkMaxMonolith", "Search for a base that has Monolith below or equal this level")) + GUICtrlSetOnEvent(-1, "chkDBWeakBase") + $g_ahCmbWeakMonolith[$DB] = GUICtrlCreateCombo("", $x + 19, $y, 51, -1, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Attack - Search", "CmbMaxMonolith_Info_01", "Set the Max. level of the Monolith to search for on a village to attack.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetData(-1, "-|Lvl 1", "Lvl 1") + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahPicWeakMonolith[$DB] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMonolith, $x + 76, $y - 2, 24, 24) + _GUICtrlSetTip(-1, $sTxtTip) $y += 44 $y += 24 diff --git a/COCBot/GUI/MBR GUI Design Child Attack - Troops.au3 b/COCBot/GUI/MBR GUI Design Child Attack - Troops.au3 index 4f7eae57d..44abe0d23 100644 --- a/COCBot/GUI/MBR GUI Design Child Attack - Troops.au3 +++ b/COCBot/GUI/MBR GUI Design Child Attack - Troops.au3 @@ -25,27 +25,33 @@ Global $g_hGUI_TRAINARMY_ORDER_TAB = 0, $g_hGUI_TRAINARMY_ORDER_TAB_ITEM1 = 0, $ ; Custom train tab & Quick train tab Global $g_hGUI_TRAINTYPE = 0 Global $g_hGUI_TRAINTYPE_TAB = 0, $g_hGUI_TRAINTYPE_TAB_ITEM1 = 0, $g_hGUI_TRAINTYPE_TAB_ITEM2 = 0, $g_hGUI_TRAINTYPE_TAB_ITEM3 = 0, $g_hGUI_TRAINTYPE_TAB_ITEM4 = 0 +Global $g_hBtnElixirTroops = 0, $g_hBtnDarkElixirTroops = 0, $g_hBtnSuperTroops = 0, $g_hBtnSpells = 0, $g_hBtnSieges = 0 ; Troops/Spells sub-tab Global $g_hRadCustomTrain = 0, $g_hRadQuickTrain = 0, $g_ahChkArmy[3] = [0, 0, 0] -Global $g_ahTxtTrainArmyTroopCount[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahTxtTrainArmyTroopCount[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_ahTxtTrainArmySpellCount[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_ahTxtTrainArmySiegeCount[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] Global $g_hTxtFullTroop = 0, $g_hChkTotalCampForced = 0, $g_hTxtTotalCampForced = 0 Global $g_hChkDoubleTrain = 0, $g_hChkPreciseArmy = 0 Global $g_hGrpTrainTroops = 0 -Global $g_ahPicTrainArmyTroop[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahPicTrainArmyTroop[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahPicTrainArmyTroopTmp[7] = [0, 0, 0, 0, 0, 0, 0] +Global $g_ahLblTrainArmyTroopTmp[7] = [0, 0, 0, 0, 0, 0, 0] Global $g_ahPicTrainArmySpell[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -Global $g_ahPicTrainArmySiege[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] -Global $g_hLblTotalTimeCamp = 0, $g_hLblElixirCostCamp = 0, $g_hLblDarkCostCamp = 0, $g_hCalTotalTroops = 0, $g_hLblTotalProgress = 0, $g_hLblCountTotal = 0, _ - $g_hTxtTotalCountSpell = 0, $g_hLblTotalTimeSpell = 0, $g_hLblElixirCostSpell = 0, $g_hLblDarkCostSpell = 0, _ - $g_hLblTotalTimeSiege = 0, $g_hLblCountTotalSiege = 0, $g_hLblGoldCostSiege = 0 +Global $g_ahPicTrainArmySpellTmp[7] = [0, 0, 0, 0, 0, 0, 0] +Global $g_ahLblTrainArmySpellTmp[7] = [0, 0, 0, 0, 0, 0, 0] +Global $g_ahPicTrainArmySiege[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0] +Global $g_ahPicTrainArmySiegeTmp[3] = [0, 0, 0] +Global $g_ahLblTrainArmySiegeTmp[3] = [0, 0, 0] +Global $g_hLblTotalTimeCamp = 0, $g_hLblElixirCostCamp = 0, $g_hLblDarkCostCamp = 0, $g_hCalTotalTroops = 0, $g_hCalTotalSpells = 0, $g_hLblCountTotalSpells = 0, $g_hLblCountTotal = 0, _ + $g_hTxtTotalCountSpell = 0, $g_hLblTotalTimeSpell = 0, $g_hLblElixirCostSpell = 0, $g_hLblDarkCostSpell = 0 ; Quick Train sub-tab Global $g_aQuickTroopIcon[$eTroopCount] = [$eIcnBarbarian, $eIcnSuperBarbarian, $eIcnArcher, $eIcnSuperArcher, $eIcnGiant, $eIcnSuperGiant, $eIcnGoblin, $eIcnSneakyGoblin, $eIcnWallBreaker, $eIcnSuperWallBreaker, _ - $eIcnBalloon, $eIcnRocketBalloon, $eIcnWizard, $eIcnSuperWizard, $eIcnHealer, $eIcnDragon, $eIcnSuperDragon, $eIcnPekka, $eIcnBabyDragon, $eIcnInfernoDragon, $eIcnMiner, $eIcnSuperMiner, $eIcnElectroDragon, $eIcnYeti, $eIcnDragonRider, $eIcnElectroTitan, $eIcnMinion, $eIcnSuperMinion, _ - $eIcnHogRider, $eIcnValkyrie, $eIcnSuperValkyrie, $eIcnGolem, $eIcnWitch, $eIcnSuperWitch, $eIcnLavaHound, $eIcnIceHound, $eIcnBowler, $eIcnSuperBowler, $eIcnIceGolem, $eIcnHeadhunter] + $eIcnBalloon, $eIcnRocketBalloon, $eIcnWizard, $eIcnSuperWizard, $eIcnHealer, $eIcnDragon, $eIcnSuperDragon, $eIcnPekka, $eIcnBabyDragon, $eIcnInfernoDragon, $eIcnMiner, $eIcnSuperMiner, $eIcnElectroDragon, $eIcnYeti, $eIcnDragonRider, $eIcnElectroTitan, $eIcnRootRider, $eIcnMinion, _ + $eIcnSuperMinion, $eIcnHogRider, $eIcnValkyrie, $eIcnSuperValkyrie, $eIcnGolem, $eIcnWitch, $eIcnSuperWitch, $eIcnLavaHound, $eIcnIceHound, $eIcnBowler, $eIcnSuperBowler, $eIcnIceGolem, $eIcnHeadhunter] Global $g_aQuickSpellIcon[$eSpellCount] = [$eIcnLightSpell, $eIcnHealSpell, $eIcnRageSpell, $eIcnJumpSpell, $eIcnFreezeSpell, $eIcnCloneSpell, $eIcnInvisibilitySpell, $eIcnRecallSpell, $eIcnPoisonSpell, $eIcnEarthQuakeSpell, $eIcnHasteSpell, $eIcnSkeletonSpell, $eIcnBatSpell] Global $g_ahChkUseInGameArmy[3], $g_ahPicTotalQTroop[3], $g_ahPicTotalQSpell[3], $g_ahLblTotalQTroop[3], $g_ahLblTotalQSpell[3] Global $g_ahBtnEditArmy[3], $g_ahLblEditArmy[3], $g_ahPicQuickTroop[3][22], $g_ahLblQuickTroop[3][22], $g_ahPicQuickSpell[3][11], $g_ahLblQuickSpell[3][11] @@ -55,7 +61,7 @@ Global $g_hGUI_QuickTrainEdit = 0, $g_hGrp_QTEdit = 0 Global $g_hBtnRemove_QTEdit, $g_hBtnSave_QTEdit, $g_hBtnCancel_QTEdit Global $g_ahPicQTEdit_Troop[7], $g_ahTxtQTEdit_Troop[7], $g_ahPicQTEdit_Spell[7], $g_ahTxtQTEdit_Spell[7] Global $g_ahLblQTEdit_TotalTroop, $g_ahLblQTEdit_TotalSpell -Global $g_ahPicTroop_QTEdit[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahPicTroop_QTEdit[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_ahPicSpell_QTEdit[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; Boost sub-tab @@ -96,6 +102,7 @@ Func LoadTranslatedTrainTroopsOrderList() GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtYetis", "Yetis"), _ GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragonRiders", "Dragon Riders"), _ GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtElectroTitans", "Electro Titans"), _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtRootRiders", "Root Riders"), _ GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtMinions", "Minions"), _ GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperMinions", "Super Minions"), _ GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHogRiders", "Hog Riders"), _ @@ -115,8 +122,8 @@ Func LoadTranslatedTrainTroopsOrderList() EndFunc ;==>LoadTranslatedTrainTroopsOrderList Global $g_hChkCustomTrainOrderEnable = 0 -Global $g_ahCmbTroopOrder[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -Global $g_ahImgTroopOrder[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahCmbTroopOrder[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahImgTroopOrder[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_hBtnTroopOrderSet = 0, $g_ahImgTroopOrderSet = 0 Global $g_hBtnRemoveTroops @@ -216,19 +223,17 @@ Func CreateTrainArmy() $g_hTxtTotalCountSpell = GUICtrlCreateCombo("", $x + 380, $y + 1, 35, 16, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL)) _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "TxtTotalCountSpell_Info_01", "Enter the No. of Spells Capacity.")) GUICtrlSetData(-1, "0|2|4|6|7|8|9|10|11", "0") - GUICtrlSetOnEvent(-1, "TotalSpellCountClick") - $g_hChkPreciseArmy = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "ChkPreciseArmy", "Precise Army"), $x + 242, $y + 26, -1, -1) + $g_hChkPreciseArmy = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "ChkPreciseArmy", "Precise Army"), $x + 220, $y + 26, -1, -1) _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Precise ArmyTip", "Always check and remove wrong troops or spells exist in army")) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetOnEvent(-1, "ChkPreciseArmy") - $g_hChkDoubleTrain = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "ChkDoubleTrain", "Double Train"), $x + 332, $y + 26, -1, -1) + $g_hChkDoubleTrain = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "ChkDoubleTrain", "Double Train"), $x + 310, $y + 26, -1, -1) _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "DoubleTrainTip", "Train 2nd set of Troops & Spells after training 1st combo") & @CRLF & _ GetTranslatedFileIni("MBR Global GUI Design", "DoubleTrainTip1", "Make sure to enter exactly the 'Total Camp',") & @CRLF & _ GetTranslatedFileIni("MBR Global GUI Design", "DoubleTrainTip2", "'Total Spell' and number of Troops/Spells in your Setting") & @CRLF & _ GetTranslatedFileIni("MBR Global GUI Design", "DoubleTrainTip3", "Note: Donations + Double Train can produce an unbalanced army!")) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - + $g_hGUI_TRAINARMY_ARMY_TAB = GUICtrlCreateTab(0, 30, $g_iSizeWGrpTab3, $g_iSizeHGrpTab3 - 30, BitOR($TCS_FORCELABELLEFT, $TCS_FIXEDWIDTH)) _GUICtrlTab_SetItemSize($g_hGUI_TRAINARMY_ARMY_TAB, 90, 20) CreateCustomTrainSubTab() @@ -269,11 +274,11 @@ Func CreateQuickTrainSubTab() $g_ahPicTotalQSpell[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSpellsCost, $x + 350, $y + 65, 24, 24) $g_ahLblQuickTrainNote[$i] = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "LblQuickTrainNote", "Use button 'Edit Army' to create troops and spells in quick Army ") & $i + 1, $x + 120, $y + 30, 200, 70, $SS_CENTER) - GUICtrlSetFont(-1, 12, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_SKYBLUE) + GUICtrlSetFont(-1, 12, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_SKYBLUE) $g_ahLblUseInGameArmyNote[$i] = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "LblUseInGameArmyNote", "Quick train using in-game troops and spells preset Army ") & $i + 1, $x + 120, $y + 30, 270, 70, $SS_CENTER) - GUICtrlSetFont(-1, 12, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_SKYBLUE) + GUICtrlSetFont(-1, 12, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_SKYBLUE) For $j = 0 To 6 $g_ahPicQuickTroop[$i][$j] = _GUICtrlCreateIcon($g_sLibIconPath, $eEmpty3, $x + 100 + $j * 36, $y + 10, 32, 32) @@ -301,71 +306,71 @@ Func CreateQuickTrainEdit() Local $y = 5 $g_hGrp_QTEdit = GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "GUI_QuickTrainEdit", "Edit troops and spells for quick train"), $x, $y, 454, 280) - $x = 12 - $y = 20 - GUICtrlCreateGroup("", $x, $y - 3, 444, 125) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnResetButton, $x + 10, $y + 15, 22, 22) - GUICtrlSetOnEvent(-1, "RemoveArmy_QTEdit") - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Btn_Remove", "Remove"), $x + 35, $y + 20, -1, 15, $SS_LEFT) - GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Btn_Cancel", "Cancel"), $x + 10, $y + 40, 65, 20, $SS_LEFT) - GUICtrlSetOnEvent(-1, "ExitQuickTrainEdit") - GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Btn_Save", "Save"), $x + 10, $y + 65, 65, 20, $SS_LEFT) - GUICtrlSetOnEvent(-1, "SaveArmy_QTEdit") - - For $i = 0 To 6 - $g_ahPicQTEdit_Troop[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eEmpty3, $x + 100 + $i * 36, $y + 10, 32, 32) - GUICtrlSetOnEvent(-1, "RemoveTroop_QTEdit") - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtQTEdit_Troop[$i] = GUICtrlCreateInput(0, $x + 101 + $i * 36, $y + 45, 30, 15, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - GUICtrlSetOnEvent(-1, "TxtQTEdit_Troop") - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicQTEdit_Spell[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eEmpty3, $x + 100 + $i * 36, $y + 65, 32, 32) - GUICtrlSetOnEvent(-1, "RemoveSpell_QTEdit") - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtQTEdit_Spell[$i] = GUICtrlCreateInput(0, $x + 101 + $i * 36, $y + 100, 30, 15, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - GUICtrlSetOnEvent(-1, "TxtQTEdit_Spell") - GUICtrlSetState(-1, $GUI_HIDE) - Next + $x = 12 + $y = 20 + GUICtrlCreateGroup("", $x, $y - 3, 444, 125) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnResetButton, $x + 10, $y + 15, 22, 22) + GUICtrlSetOnEvent(-1, "RemoveArmy_QTEdit") + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Btn_Remove", "Remove"), $x + 35, $y + 20, -1, 15, $SS_LEFT) + GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Btn_Cancel", "Cancel"), $x + 10, $y + 40, 65, 20, $SS_LEFT) + GUICtrlSetOnEvent(-1, "ExitQuickTrainEdit") + GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Btn_Save", "Save"), $x + 10, $y + 65, 65, 20, $SS_LEFT) + GUICtrlSetOnEvent(-1, "SaveArmy_QTEdit") + + For $i = 0 To 6 + $g_ahPicQTEdit_Troop[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eEmpty3, $x + 100 + $i * 36, $y + 10, 32, 32) + GUICtrlSetOnEvent(-1, "RemoveTroop_QTEdit") + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtQTEdit_Troop[$i] = GUICtrlCreateInput(0, $x + 101 + $i * 36, $y + 45, 30, 15, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + GUICtrlSetOnEvent(-1, "TxtQTEdit_Troop") + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicQTEdit_Spell[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eEmpty3, $x + 100 + $i * 36, $y + 65, 32, 32) + GUICtrlSetOnEvent(-1, "RemoveSpell_QTEdit") + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtQTEdit_Spell[$i] = GUICtrlCreateInput(0, $x + 101 + $i * 36, $y + 100, 30, 15, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + GUICtrlSetOnEvent(-1, "TxtQTEdit_Spell") + GUICtrlSetState(-1, $GUI_HIDE) + Next - $g_ahLblQTEdit_TotalTroop = GUICtrlCreateLabel(0, $x + 390, $y + 25, 40, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, $COLOR_GRAY) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTroopsCost, $x + 380, $y + 20, 24, 24) + $g_ahLblQTEdit_TotalTroop = GUICtrlCreateLabel(0, $x + 390, $y + 25, 40, 15, $SS_RIGHT) + GUICtrlSetBkColor(-1, $COLOR_GRAY) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTroopsCost, $x + 380, $y + 20, 24, 24) - $g_ahLblQTEdit_TotalSpell = GUICtrlCreateLabel(0, $x + 390, $y + 85, 40, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, $COLOR_GRAY) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSpellsCost, $x + 380, $y + 80, 24, 24) + $g_ahLblQTEdit_TotalSpell = GUICtrlCreateLabel(0, $x + 390, $y + 85, 40, 15, $SS_RIGHT) + GUICtrlSetBkColor(-1, $COLOR_GRAY) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSpellsCost, $x + 380, $y + 80, 24, 24) - GUICtrlCreateGroup("", -99, -99, 1, 1) + GUICtrlCreateGroup("", -99, -99, 1, 1) - For $i = 0 To $eTroopCount - 1 - If $i <= 12 Then - $x = 14 + (34 * $i) - $y = 160 - ElseIf $i > 12 And $i <= 25 Then - $x = 14 + (34 * ($i - 13)) - $y = 200 - Else - $x = 14 + (34 * ($i - 26)) - $y = 240 - EndIf - $g_ahPicTroop_QTEdit[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $g_aQuickTroopIcon[$i], $x, $y, 32, 32) - GUICtrlSetTip(-1, $g_asTroopNames[$i]) - GUICtrlSetOnEvent(-1, "SelectTroop_QTEdit") - Next + For $i = 0 To $eTroopCount - 1 + If $i <= 12 Then + $x = 14 + (34 * $i) + $y = 160 + ElseIf $i > 12 And $i <= 25 Then + $x = 14 + (34 * ($i - 13)) + $y = 200 + Else + $x = 14 + (34 * ($i - 26)) + $y = 240 + EndIf + $g_ahPicTroop_QTEdit[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $g_aQuickTroopIcon[$i], $x, $y, 32, 32) + GUICtrlSetTip(-1, $g_asTroopNames[$i]) + GUICtrlSetOnEvent(-1, "SelectTroop_QTEdit") + Next - $x = 14 - $y = 290 - For $i = 0 To $eSpellCount - 1 - $g_ahPicSpell_QTEdit[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $g_aQuickSpellIcon[$i], $x, $y, 32, 32) - GUICtrlSetTip(-1, $g_asSpellNames[$i]) - GUICtrlSetOnEvent(-1, "SelectSpell_QTEdit") - $x += 34 - Next + $x = 14 + $y = 290 + For $i = 0 To $eSpellCount - 1 + $g_ahPicSpell_QTEdit[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $g_aQuickSpellIcon[$i], $x, $y, 32, 32) + GUICtrlSetTip(-1, $g_asSpellNames[$i]) + GUICtrlSetOnEvent(-1, "SelectSpell_QTEdit") + $x += 34 + Next GUICtrlCreateGroup("", -99, -99, 1, 1) EndFunc ;==>CreateQuickTrainEdit @@ -374,958 +379,666 @@ Func CreateCustomTrainSubTab() $g_hGUI_TRAINARMY_ARMY_TAB_ITEM1 = GUICtrlCreateTabItem(GetTranslatedFileIni("MBR Main GUI", "Tab_03_STab_01_STab_01_STab_01", "Custom Train")) + Local $iStartX = 4, $iStartY = 200 + Local $x = $iStartX, $y = 70 + GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "TrainTroops", "Train Troops"), $x, $y - 15, $g_iSizeWGrpTab3 - 150, 85) + Local $x1 = 39, $xx = 10 + For $i = 0 To UBound($g_ahPicTrainArmyTroopTmp) - 1 + $g_ahPicTrainArmyTroopTmp[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBarbarian, $xx + ($x1 * $i), $y, 38, 38) + $g_ahLblTrainArmyTroopTmp[$i] = GUICtrlCreateLabel("0", $xx + ($x1 * $i) + 1, $y + 37, 40, 12, $SS_CENTER) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetColor(-1, $COLOR_BLUE) + GUICtrlSetFont(-1, 9, 900) + Next + $g_hCalTotalTroops = GUICtrlCreateProgress($x + 5, $y + 53, 235, 10) + $g_hLblCountTotal = GUICtrlCreateLabel(0, $x + 245, $y + 51, 35, 15, $SS_CENTER) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "TrainSieges", "Train Sieges"), $g_iSizeWGrpTab3 - 140, $y - 15, 130, 75) + Local $x1 = 39, $xx = $g_iSizeWGrpTab3 - 133 + For $i = 0 To UBound($g_ahPicTrainArmySiegeTmp) - 1 + $g_ahPicTrainArmySiegeTmp[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallW, $xx + ($x1 * $i), $y, 38, 38) + $g_ahLblTrainArmySiegeTmp[$i] = GUICtrlCreateLabel("0", $xx + ($x1 * $i) + 1, $y + 37, 40, 12, $SS_CENTER) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetColor(-1, $COLOR_BLUE) + GUICtrlSetFont(-1, 9, 900) + Next + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $y += 88 + GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "TrainSpells", "Train Spells"), $x, $y - 15, $g_iSizeWGrpTab3 - 150, 85) + Local $x1 = 39, $xx = 10 + For $i = 0 To UBound($g_ahPicTrainArmySpellTmp) - 1 + $g_ahPicTrainArmySpellTmp[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPoisonSpell, $xx + ($x1 * $i), $y, 38, 38) + $g_ahLblTrainArmySpellTmp[$i] = GUICtrlCreateLabel("0", $xx + ($x1 * $i) + 1, $y + 37, 40, 12, $SS_CENTER) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetColor(-1, $COLOR_BLUE) + GUICtrlSetFont(-1, 9, 900) + Next + + $g_hCalTotalSpells = GUICtrlCreateProgress($x + 5, $y + 53, 235, 10) + $g_hLblCountTotalSpells = GUICtrlCreateLabel(0, $x + 245, $y + 51, 35, 15, $SS_CENTER) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTroopsCost, $g_iSizeWGrpTab3 - 125, $y - 1, 24, 24) + $g_hLblTotalTimeCamp = GUICtrlCreateLabel(" 0s", $g_iSizeWGrpTab3 - 99, $y + 4, 70, 15, $SS_RIGHT) + GUICtrlSetBkColor(-1, $COLOR_GRAY) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_WHITE) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSpellsCost, $g_iSizeWGrpTab3 - 125, $y + 24, 24, 24) + $g_hLblTotalTimeSpell = GUICtrlCreateLabel(" 0s", $g_iSizeWGrpTab3 - 99, $y + 29, 70, 15, $SS_RIGHT) + GUICtrlSetBkColor(-1, $COLOR_GRAY) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_WHITE) + + $x = $iStartX + 10 + $y = $iStartY + 33 + $g_hBtnElixirTroops = GUICtrlCreateButton("Elixir Troops", $x, $y, 100, 21) + GUICtrlSetOnEvent(-1, "BtnElixirTroops") + $g_hBtnDarkElixirTroops = GUICtrlCreateButton("Dark Troops", $x + 100, $y, 90, 21) + GUICtrlSetOnEvent(-1, "BtnDarkElixirTroops") + $g_hBtnSuperTroops = GUICtrlCreateButton("Super Troops", $x + 190, $y, 100, 21) + GUICtrlSetOnEvent(-1, "BtnSuperTroops") + $g_hBtnSpells = GUICtrlCreateButton("Spells", $x + 290, $y, 50, 21) + GUICtrlSetOnEvent(-1, "BtnSpells") + $g_hBtnSieges = GUICtrlCreateButton("Sieges", $x + 340, $y, 60, 21) + GUICtrlSetOnEvent(-1, "BtnSieges") + + $iStartY += 60 + Local $xsplit = 42, $ysplit = 60 + $x = $iStartX + $y = $iStartY Local $sTxtSetPerc = GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "TxtSetTroop_Info_01", "Enter the No. of") Local $sTxtSetPerc2 = GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "TxtSetTroop_Info_02", "to make.") - Local $iStartX = 1 - Local $iIconAndSpace = 33 - Local $x = $iStartX - Local $y = 60 ; Barbarians Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBarbarians", "Barbarians") - $g_ahPicTrainArmyTroop[$eTroopBarbarian] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBarbarian, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", "Level") & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", "Mouse Left Click to Up level" & @CRLF & "Shift + Mouse Left Click to Down level")) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopBarbarian] = GUICtrlCreateLabel("1", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopBarbarian] = GUICtrlCreateInput("58", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopBarbarian] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBarbarian, $x + 3, $y, 36, 36) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", "Level") & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", "Mouse Left Click to Up level" & @CRLF & "Shift + Mouse Left Click to Down level")) + $g_ahTxtTrainArmyTroopCount[$eTroopBarbarian] = GUICtrlCreateInput("58", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 3) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit + ; Archers + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtArchers", "Archers") + $g_ahPicTrainArmyTroop[$eTroopArcher] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnArcher, $x + 3, $y, 36, 36) + + $g_ahTxtTrainArmyTroopCount[$eTroopArcher] = GUICtrlCreateInput("115", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) + GUICtrlSetLimit(-1, 3) + GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") + + $x += $xsplit ; Giants Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGiants", "Giants") - $g_ahPicTrainArmyTroop[$eTroopGiant] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGiant, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopGiant] = GUICtrlCreateLabel("1", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopGiant] = GUICtrlCreateInput("4", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopGiant] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGiant, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopGiant] = GUICtrlCreateInput("4", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit + ;Goblins + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGoblins", "Goblins") + $g_ahPicTrainArmyTroop[$eTroopGoblin] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGoblin, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopGoblin] = GUICtrlCreateInput("19", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) + GUICtrlSetLimit(-1, 3) + GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") + + $x += $xsplit ; WallBreakers Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWallBreakers", "Wall Breakers") - $g_ahPicTrainArmyTroop[$eTroopWallBreaker] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallBreaker, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopWallBreaker] = GUICtrlCreateLabel("1", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopWallBreaker] = GUICtrlCreateInput("4", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopWallBreaker] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallBreaker, $x + 3, $y, 36, 36) + + $g_ahTxtTrainArmyTroopCount[$eTroopWallBreaker] = GUICtrlCreateInput("4", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 3) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit + ; Balloons + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBalloons", "Balloons") + $g_ahPicTrainArmyTroop[$eTroopBalloon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBalloon, $x + 3, $y, 36, 36) + + $g_ahTxtTrainArmyTroopCount[$eTroopBalloon] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) + GUICtrlSetLimit(-1, 2) + GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") + + $x += $xsplit ; Wizards Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWizards", "Wizards") - $g_ahPicTrainArmyTroop[$eTroopWizard] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWizard, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopWizard] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopWizard] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopWizard] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWizard, $x + 3, $y, 36, 36) + + $g_ahTxtTrainArmyTroopCount[$eTroopWizard] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Dragon - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragons", "Dragons") - $g_ahPicTrainArmyTroop[$eTroopDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDragon, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopDragon] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopDragon] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Healers + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHealers", "Healers") + $g_ahPicTrainArmyTroop[$eTroopHealer] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealer, $x + 3, $y, 36, 36) + + $g_ahTxtTrainArmyTroopCount[$eTroopHealer] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; BDragon - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBabyDragons", "Baby Dragons") - $g_ahPicTrainArmyTroop[$eTroopBabyDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBabyDragon, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopBabyDragon] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopBabyDragon] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Dragon + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragons", "Dragons") + $g_ahPicTrainArmyTroop[$eTroopDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDragon, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopDragon] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Electro Dragon - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtElectroDragons", "Electro Dragons") - $g_ahPicTrainArmyTroop[$eTroopElectroDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroDragon, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopElectroDragon] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopElectroDragon] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Pekkas + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtPekkas", "Pekkas") + $g_ahPicTrainArmyTroop[$eTroopPekka] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPekka, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopPekka] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Dragon Rider - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragonRiders", "Dragon Riders") - $g_ahPicTrainArmyTroop[$eTroopDragonRider] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDragonRider, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopDragonRider] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopDragonRider] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + ; Next Row + $x = $iStartX + $y += $ysplit + + ; BDragon + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBabyDragons", "Baby Dragons") + $g_ahPicTrainArmyTroop[$eTroopBabyDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBabyDragon, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopBabyDragon] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Hogs - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHogRiders", "Hog Riders") - $g_ahPicTrainArmyTroop[$eTroopHogRider] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHogRider, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopHogRider] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopHogRider] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Miners + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtMiners", "Miners") + $g_ahPicTrainArmyTroop[$eTroopMiner] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMiner, $x + 3, $y, 36, 36) + + $g_ahTxtTrainArmyTroopCount[$eTroopMiner] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Golems - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGolems", "Golems") - $g_ahPicTrainArmyTroop[$eTroopGolem] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGolem, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopGolem] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopGolem] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Electro Dragon + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtElectroDragons", "Electro Dragons") + $g_ahPicTrainArmyTroop[$eTroopElectroDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroDragon, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopElectroDragon] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Lavas - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtLavaHounds", "Lava Hounds") - $g_ahPicTrainArmyTroop[$eTroopLavaHound] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLavaHound, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopLavaHound] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopLavaHound] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Yeti + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtYetis", "Yetis") + $g_ahPicTrainArmyTroop[$eTroopYeti] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnYeti, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopYeti] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; IceGolems - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtIceGolems", "IceGolems") - $g_ahPicTrainArmyTroop[$eTroopIceGolem] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceGolem, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopIceGolem] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopIceGolem] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Dragon Rider + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragonRiders", "Dragon Riders") + $g_ahPicTrainArmyTroop[$eTroopDragonRider] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDragonRider, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopDragonRider] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Apprentice Warden - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtAppWards", "Apprentice Wardens") - $g_ahPicTrainArmyTroop[$eTroopAppWard] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnAppWard, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopAppWard] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopAppWard] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Electro Titan + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtElectroTitans", "Electro Titans") + $g_ahPicTrainArmyTroop[$eTroopElectroTitan] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroTitan, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopElectroTitan] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - ; Next Row - $x = $iStartX - $y += 53 - - ; Archers - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtArchers", "Archers") - $g_ahPicTrainArmyTroop[$eTroopArcher] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnArcher, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopArcher] = GUICtrlCreateLabel("1", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopArcher] = GUICtrlCreateInput("115", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Root Rider + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtRootRiders", "Root Riders") + $g_ahPicTrainArmyTroop[$eTroopRootRider] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRootRider, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopRootRider] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) - GUICtrlSetLimit(-1, 3) + GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Goblins - ; $SS_CENTER - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGoblins", "Goblins") - $g_ahPicTrainArmyTroop[$eTroopGoblin] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGoblin, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopGoblin] = GUICtrlCreateLabel("1", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopGoblin] = GUICtrlCreateInput("19", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x = $iStartX + $y = $iStartY + ; Minions + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtMinions", "Minions") + $g_ahPicTrainArmyTroop[$eTroopMinion] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMinion, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopMinion] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 3) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Balloons - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBalloons", "Balloons") - $g_ahPicTrainArmyTroop[$eTroopBalloon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBalloon, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopBalloon] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopBalloon] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Hogs + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHogRiders", "Hog Riders") + $g_ahPicTrainArmyTroop[$eTroopHogRider] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHogRider, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopHogRider] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Healers - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHealers", "Healers") - $g_ahPicTrainArmyTroop[$eTroopHealer] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealer, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopHealer] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopHealer] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Valkyries + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtValkyries", "Valkyries") + $g_ahPicTrainArmyTroop[$eTroopValkyrie] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnValkyrie, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopValkyrie] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += 34 - ; Pekkas - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtPekkas", "Pekkas") - $g_ahPicTrainArmyTroop[$eTroopPekka] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPekka, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopPekka] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopPekka] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Golems + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGolems", "Golems") + $g_ahPicTrainArmyTroop[$eTroopGolem] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGolem, $x + 3, $y, 36, 36) + + $g_ahTxtTrainArmyTroopCount[$eTroopGolem] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Miners - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtMiners", "Miners") - $g_ahPicTrainArmyTroop[$eTroopMiner] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMiner, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopMiner] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopMiner] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Witches + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWitches", "Witches") + $g_ahPicTrainArmyTroop[$eTroopWitch] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWitch, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopWitch] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Yeti - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtYetis", "Yetis") - $g_ahPicTrainArmyTroop[$eTroopYeti] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnYeti, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopYeti] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopYeti] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Lavas + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtLavaHounds", "Lava Hounds") + $g_ahPicTrainArmyTroop[$eTroopLavaHound] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLavaHound, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopLavaHound] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") -$x += $iIconAndSpace - ; ElectroTitan - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtElectroTitan", "Electro Titan") - $g_ahPicTrainArmyTroop[$eTroopElectroTitan] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroTitan, $x, $y - 5, 32, 32) - $g_ahTxtTrainArmyTroopCount[$eTroopElectroTitan] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Bowlers + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBowlers", "Bowlers") + $g_ahPicTrainArmyTroop[$eTroopBowler] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBowler, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopBowler] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Minions - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtMinions", "Minions") - $g_ahPicTrainArmyTroop[$eTroopMinion] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMinion, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopMinion] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopMinion] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) - GUICtrlSetLimit(-1, 3) - GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Valkyries - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtValkyries", "Valkyries") - $g_ahPicTrainArmyTroop[$eTroopValkyrie] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnValkyrie, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopValkyrie] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopValkyrie] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; IceGolems + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtIceGolems", "IceGolems") + $g_ahPicTrainArmyTroop[$eTroopIceGolem] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceGolem, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopIceGolem] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Witches - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWitches", "Witches") - $g_ahPicTrainArmyTroop[$eTroopWitch] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWitch, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopWitch] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopWitch] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) - GUICtrlSetLimit(-1, 2) - GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") + $x += $xsplit + ; Headhunters + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHeadhunters", "Headhunters") + $g_ahPicTrainArmyTroop[$eTroopHeadhunter] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHeadhunter, $x + 3, $y, 36, 36) - $x += $iIconAndSpace - ; Bowlers - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBowlers", "Bowlers") - $g_ahPicTrainArmyTroop[$eTroopBowler] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBowler, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopBowler] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopBowler] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahTxtTrainArmyTroopCount[$eTroopHeadhunter] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace - ; Headhunters - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHeadhunters", "Headhunters") - $g_ahPicTrainArmyTroop[$eTroopHeadhunter] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHeadhunter, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopHeadhunter] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopHeadhunter] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $x += $xsplit + ; Apprentice Warden + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtAppWards", "Apprentice Wardens") + $g_ahPicTrainArmyTroop[$eTroopAppWard] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnAppWard, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopAppWard] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - ; Next Row $x = $iStartX - $y += 53 - ; Super Barbarians Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperBarbarians", "Super Barbarians") - $g_ahPicTrainArmyTroop[$eTroopSuperBarbarian] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBarbarian, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperBarbarian] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperBarbarian] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopSuperBarbarian] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBarbarian, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperBarbarian] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 3) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Super Archers Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperArchers", "Super Archers") - $g_ahPicTrainArmyTroop[$eTroopSuperArcher] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperArcher, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperArcher] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperArcher] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopSuperArcher] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperArcher, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperArcher] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 3) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += 34 - ; Super Giants - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperGiants", "Super Giants") - $g_ahPicTrainArmyTroop[$eTroopSuperGiant] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperGiant, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperGiant] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperGiant] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) - GUICtrlSetLimit(-1, 2) - GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - - $x += $iIconAndSpace + $x += $xsplit ; SneakyGoblins Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSneakyGoblins", "Sneaky Goblins") - $g_ahPicTrainArmyTroop[$eTroopSneakyGoblin] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSneakyGoblin, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSneakyGoblin] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSneakyGoblin] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopSneakyGoblin] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSneakyGoblin, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSneakyGoblin] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 3) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Super WallBreakers Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperWallBreakers", "Super Wall Breakers") - $g_ahPicTrainArmyTroop[$eTroopSuperWallBreaker] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWallBreaker, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperWallBreaker] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperWallBreaker] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopSuperWallBreaker] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWallBreaker, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperWallBreaker] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 3) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit + ; Super Giants + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperGiants", "Super Giants") + $g_ahPicTrainArmyTroop[$eTroopSuperGiant] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperGiant, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperGiant] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) + GUICtrlSetLimit(-1, 2) + GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") + + $x += $xsplit ; Rocket Balloons Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtRocketBalloons", "Rocket Balloons") - $g_ahPicTrainArmyTroop[$eTroopRocketBalloon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRocketBalloon, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopRocketBalloon] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopRocketBalloon] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopRocketBalloon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRocketBalloon, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopRocketBalloon] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Super Wizards Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperWizards", "Super Wizards") - $g_ahPicTrainArmyTroop[$eTroopSuperWizard] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWizard, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperWizard] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperWizard] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopSuperWizard] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWizard, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperWizard] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Super Dragon - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperDragons", "Super Dragons") - $g_ahPicTrainArmyTroop[$eTroopSuperDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperDragon, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperDragon] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperDragon] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperDragon", "Super Dragon") + $g_ahPicTrainArmyTroop[$eTroopSuperDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperDragon, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperDragon] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Inferno Dragon Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtInfernoDragons", "Inferno Dragons") - $g_ahPicTrainArmyTroop[$eTroopInfernoDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInfernoDragon, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopInfernoDragon] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopInfernoDragon] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopInfernoDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInfernoDragon, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopInfernoDragon] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") -$x += $iIconAndSpace - ; Super Miner - Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperMiners", "Super Miners") - $g_ahPicTrainArmyTroop[$eTroopInfernoDragon] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMiner, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopInfernoDragon] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperMiner] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) - GUICtrlSetLimit(-1, 2) - GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - - $x += $iIconAndSpace + $x += $xsplit ; Super Minions Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperMinions", "SuperMinions") - $g_ahPicTrainArmyTroop[$eTroopSuperMinion] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMinion, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperMinion] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperMinion] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopSuperMinion] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMinion, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperMinion] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 3) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x = $iStartX + $y += $ysplit ; Super Valkyries Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperValkyries", "Super Valkyries") - $g_ahPicTrainArmyTroop[$eTroopSuperValkyrie] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperValkyrie, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperValkyrie] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperValkyrie] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopSuperValkyrie] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperValkyrie, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperValkyrie] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Super Witches Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperWitches", "Super Witches") - $g_ahPicTrainArmyTroop[$eTroopSuperWitch] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWitch, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperWitch] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperWitch] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopSuperWitch] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWitch, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperWitch] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - ; Next Row - $x = $iStartX ; = 12 - $y += 53 - + $x += $xsplit ; Ice Hound Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtIceHounds", "Ice Hounds") - $g_ahPicTrainArmyTroop[$eTroopIceHound] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceHound, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopIceHound] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopIceHound] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopIceHound] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceHound, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopIceHound] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Super Bowler Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperBowlers", "Super Bowlers") - $g_ahPicTrainArmyTroop[$eTroopSuperBowler] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBowler, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperBowler] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperBowler] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopSuperBowler] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBowler, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperBowler] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 3) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $x += $iIconAndSpace + $x += $xsplit + ; Super Miners + Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperMiner", "Super Miner") + $g_ahPicTrainArmyTroop[$eTroopSuperMiner] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMiner, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperMiner] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) + GUICtrlSetLimit(-1, 2) + GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") + + $x += $xsplit ; Super Hog Riders Local $sTroopName = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSuperHogRider", "Super Hog Rider") - $g_ahPicTrainArmyTroop[$eTroopSuperHogRider] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperHogRider, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sTroopName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainTroopLevelClick") - ;$g_ahLblTrainArmyTroopLevel[$eTroopSuperHogRider] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmyTroopCount[$eTroopSuperHogRider] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmyTroop[$eTroopSuperHogRider] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperHogRider, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmyTroopCount[$eTroopSuperHogRider] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sTroopName & " " & $sTxtSetPerc2) - GUICtrlSetLimit(-1, 3) + GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainTroopCountEdit") - $y -= 15 - ;$x = 170 - $x = $iStartX ; same row as above - - ; troop count - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTroopsCost, $x + 241, $y + 10, 24, 24) - $g_hLblTotalTimeCamp = GUICtrlCreateLabel(" 0s", $x + 267, $y + 15, 70, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, $COLOR_GRAY) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_WHITE) - ;$g_hLblElixirCostCamp = GUICtrlCreateLabel(" 0", $x + 103, $y + 15, 77, 15, $SS_RIGHT) - ;GUICtrlSetBkColor(-1, $COLOR_GRAY) - ;GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - ;GUICtrlSetColor(-1, $COLOR_WHITE) - ;_GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 101, $y + 14, 16, 16) - ;$g_hLblDarkCostCamp = GUICtrlCreateLabel(" 0", $x + 185, $y + 15, 62, 15, $SS_RIGHT) - ;GUICtrlSetBkColor(-1, $COLOR_GRAY) - ;GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - ;GUICtrlSetColor(-1, $COLOR_WHITE) - ;_GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 183, $y + 14, 16, 16) - - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "LblCountTotal", "Total"), $x + 351, $y + 15, -1, -1) - $g_hLblCountTotal = GUICtrlCreateLabel(0, $x + 378, $y + 15, 30, 15, $SS_CENTER) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "LblCountTotal_Info_01", "The total Units of Troops should equal Total Army Camps.")) - GUICtrlSetBkColor(-1, $COLOR_GREEN) ;lime, moneygreen - GUICtrlCreateLabel("x", $x + 410, $y + 15, -1, -1) - - $x = $iStartX - $y += 26 - $g_hCalTotalTroops = GUICtrlCreateProgress($x + 241, $y + 9, 175, 10) - $g_hLblTotalProgress = GUICtrlCreateLabel("", $x + 241, $y + 9, 150, 10) - GUICtrlSetBkColor(-1, $COLOR_RED) - GUICtrlSetState(-1, BitOR($GUI_DISABLE, $GUI_HIDE)) - - ;GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "LblCountTotal", "Total"), $x + 341, $y + 7, -1, -1) - ;$g_hLblCountTotal = GUICtrlCreateLabel(0, $x + 368, $y + 7, 30, 15, $SS_CENTER) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "LblCountTotal_Info_01", "The total Units of Troops should equal Total Army Camps.")) - ;GUICtrlSetBkColor(-1, $COLOR_GREEN) ;lime, moneygreen - ;GUICtrlCreateLabel("x", $x + 400, $y + 7, -1, -1) - - $x = $iStartX - $y += 28 + $y = $iStartY ; Lightning Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtLightningSpells", "Lightning Spell") - $g_ahPicTrainArmySpell[$eSpellLightning] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLightSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellLightning] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellLightning] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellLightning] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLightSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellLightning] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Healing Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtHealingSpells", "Healing Spell") - $g_ahPicTrainArmySpell[$eSpellHeal] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellHeal] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellHeal] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellHeal] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellHeal] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Rage Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtRageSpells", "Rage Spell") - $g_ahPicTrainArmySpell[$eSpellRage] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRageSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellRage] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellRage] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellRage] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRageSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellRage] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Jump Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtJumpSpells", "Jump Spell") - $g_ahPicTrainArmySpell[$eSpellJump] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnJumpSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellJump] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellJump] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellJump] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnJumpSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellJump] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Freeze Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtFreezeSpells", "Freeze Spell") - $g_ahPicTrainArmySpell[$eSpellFreeze] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFreezeSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellFreeze] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellFreeze] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellFreeze] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFreezeSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellFreeze] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Clone Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtCloneSpells", "Clone Spell") - $g_ahPicTrainArmySpell[$eSpellClone] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCloneSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellClone] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellClone] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellClone] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCloneSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellClone] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += 34 + $x += $xsplit ; Invisibility Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtInvisibilitySpells", "Invisibility Spell") - $g_ahPicTrainArmySpell[$eSpellInvisibility] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInvisibilitySpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellInvisibility] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellInvisibility] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellInvisibility] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInvisibilitySpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellInvisibility] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Recall Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtRecallSpells", "Recall Spell") - $g_ahPicTrainArmySpell[$eSpellRecall] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRecallSpell, $x, $y + 10, 32, 32) - $g_ahTxtTrainArmySpellCount[$eSpellRecall] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellRecall] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRecallSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellRecall] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Poison Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtPoisonSpells", "Poison Spell") - $g_ahPicTrainArmySpell[$eSpellPoison] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPoisonSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellPoison] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellPoison] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellPoison] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPoisonSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellPoison] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; EarthQuake Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtEarthQuakeSpells", "EarthQuake Spell") - $g_ahPicTrainArmySpell[$eSpellEarthquake] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnEarthquakeSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellEarthquake] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellEarthquake] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellEarthquake] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnEarthquakeSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellEarthquake] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x = $iStartX + $y += $ysplit ; Haste Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtHasteSpells", "Haste Spell") - $g_ahPicTrainArmySpell[$eSpellHaste] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHasteSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellHaste] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellHaste] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellHaste] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHasteSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellHaste] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Skeleton Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtSkeletonSpells", "Skeleton Spell") - $g_ahPicTrainArmySpell[$eSpellSkeleton] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSkeletonSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellSkeleton] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellSkeleton] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellSkeleton] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSkeletonSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellSkeleton] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Bat Local $sSpellName = GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtBatSpells", "Bat Spell") - $g_ahPicTrainArmySpell[$eSpellBat] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBatSpell, $x, $y + 10, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSpellName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSpellLevelClick") - ;$g_ahLblTrainArmySpellLevel[$eSpellBat] = GUICtrlCreateLabel("0", $x + 2, $y + 29, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySpellCount[$eSpellBat] = GUICtrlCreateInput("0", $x + 1, $y + 44, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySpell[$eSpellBat] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBatSpell, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySpellCount[$eSpellBat] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSpellName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSpellCountEdit") - $y += 52 - ;$x = 180 $x = $iStartX - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSpellsCost, $x + 276, $y + 15, 24, 24) - $g_hLblTotalTimeSpell = GUICtrlCreateLabel(" 0s", $x + 302, $y + 20, 55, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, $COLOR_GRAY) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_WHITE) - ;$g_hLblElixirCostSpell = GUICtrlCreateLabel(" 0", $x + 120, $y + 20, 70, 15, $SS_RIGHT) - ;GUICtrlSetBkColor(-1, $COLOR_GRAY) - ;GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - ;GUICtrlSetColor(-1, $COLOR_WHITE) - ;_GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 122, $y + 20, 16, 16) - ;$g_hLblDarkCostSpell = GUICtrlCreateLabel(" 0", $x + 192, $y + 20, 55, 15, $SS_RIGHT) - ;GUICtrlSetBkColor(-1, $COLOR_GRAY) - ;GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - ;GUICtrlSetColor(-1, $COLOR_WHITE) - ;_GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 194, $y + 20, 16, 16) - - $x = $iStartX - $y += 17 + $y = $iStartY ; Wall Wrecker Local $sSiegeName = GetTranslatedFileIni("MBR Global GUI Design Names Siege Machines", "TxtWallWrecker", "Wall Wrecker") - $g_ahPicTrainArmySiege[$eSiegeWallWrecker] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallW, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSiegeName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSiegeLevelClick") - ;$g_ahLblTrainArmySiegeLevel[$eSiegeWallWrecker] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySiegeCount[$eSiegeWallWrecker] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySiege[$eSiegeWallWrecker] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallW, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySiegeCount[$eSiegeWallWrecker] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSiegeName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSiegeCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Battle Blimp Local $sSiegeName = GetTranslatedFileIni("MBR Global GUI Design Names Siege Machines", "TxtBattleBlimp", "Battle Blimp") - $g_ahPicTrainArmySiege[$eSiegeBattleBlimp] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleB, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSiegeName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSiegeLevelClick") - ;$g_ahLblTrainArmySiegeLevel[$eSiegeBattleBlimp] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySiegeCount[$eSiegeBattleBlimp] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySiege[$eSiegeBattleBlimp] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleB, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySiegeCount[$eSiegeBattleBlimp] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSiegeName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSiegeCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Stone Slammer Local $sSiegeName = GetTranslatedFileIni("MBR Global GUI Design Names Siege Machines", "TxtStoneSlammer", "Stone Slammer") - $g_ahPicTrainArmySiege[$eSiegeStoneSlammer] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnStoneS, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSiegeName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSiegeLevelClick") - ;$g_ahLblTrainArmySiegeLevel[$eSiegeStoneSlammer] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySiegeCount[$eSiegeStoneSlammer] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySiege[$eSiegeStoneSlammer] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnStoneS, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySiegeCount[$eSiegeStoneSlammer] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSiegeName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSiegeCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Siege Barracks Local $sSiegeName = GetTranslatedFileIni("MBR Global GUI Design Names Siege Machines", "TxtSiegeBarracks", "Siege Barracks") - $g_ahPicTrainArmySiege[$eSiegeBarracks] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSiegeB, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSiegeName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSiegeLevelClick") - ;$g_ahLblTrainArmySiegeLevel[$eSiegeBarracks] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySiegeCount[$eSiegeBarracks] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySiege[$eSiegeBarracks] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSiegeB, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySiegeCount[$eSiegeBarracks] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSiegeName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSiegeCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Log Launcher Local $sSiegeName = GetTranslatedFileIni("MBR Global GUI Design Names Siege Machines", "TxtLogLauncher", "Log Launcher") - $g_ahPicTrainArmySiege[$eSiegeLogLauncher] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLogL, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSiegeName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSiegeLevelClick") - ;$g_ahLblTrainArmySiegeLevel[$eSiegeLogLauncher] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySiegeCount[$eSiegeLogLauncher] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySiege[$eSiegeLogLauncher] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLogL, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySiegeCount[$eSiegeLogLauncher] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSiegeName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSiegeCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Flame Finger Local $sSiegeName = GetTranslatedFileIni("MBR Global GUI Design Names Siege Machines", "TxtFlameFinger", "Flame Flinger") - $g_ahPicTrainArmySiege[$eSiegeFlameFlinger] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFlameF, $x, $y - 5, 32, 32) - ;_GUICtrlSetTip(-1, GetTranslatedFileIni("MBR Global GUI Design", "Level", -1) & " " & $sSiegeName & ":" & @CRLF & GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "Mouse_Left_Click", -1)) - ;GUICtrlSetOnEvent(-1, "TrainSiegeLevelClick") - ;$g_ahLblTrainArmySiegeLevel[$eSiegeFlameFlinger] = GUICtrlCreateLabel("0", $x + 2, $y + 14, 10, 11, $SS_CENTER) - ;GUICtrlSetBkColor(-1, $COLOR_WHITE) - ;GUICtrlSetFont(-1, 7, 400) - $g_ahTxtTrainArmySiegeCount[$eSiegeFlameFlinger] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySiege[$eSiegeFlameFlinger] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFlameF, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySiegeCount[$eSiegeFlameFlinger] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSiegeName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSiegeCountEdit") - $x += $iIconAndSpace + $x += $xsplit ; Battle Drill Local $sSiegeName = GetTranslatedFileIni("MBR Global GUI Design Names Siege Machines", "TxtBattleDrill", "Battle Drill") - $g_ahPicTrainArmySiege[$eSiegeBattleDrill] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleD, $x, $y - 5, 32, 32) - $g_ahTxtTrainArmySiegeCount[$eSiegeBattleDrill] = GUICtrlCreateInput("0", $x + 1, $y + 29, 30, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + $g_ahPicTrainArmySiege[$eSiegeBattleDrill] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleD, $x + 3, $y, 36, 36) + $g_ahTxtTrainArmySiegeCount[$eSiegeBattleDrill] = GUICtrlCreateInput("0", $x + 1, $y + 39, 40, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) _GUICtrlSetTip(-1, $sTxtSetPerc & " " & $sSiegeName & " " & $sTxtSetPerc2) GUICtrlSetLimit(-1, 2) GUICtrlSetOnEvent(-1, "TrainSiegeCountEdit") - - - - $x = $iStartX - ;$x = 180 - $y += 19 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSiegeCost, $x + 276, $y + 5, 24, 24) - $g_hLblTotalTimeSiege = GUICtrlCreateLabel(" 0s", $x + 302, $y + 10, 55, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, $COLOR_GRAY) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_WHITE) - ;$g_hLblGoldCostSiege = GUICtrlCreateLabel(" 0", $x + 120, $y + 10, 70, 15, $SS_RIGHT) - ;GUICtrlSetBkColor(-1, $COLOR_GRAY) - ;GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - ;GUICtrlSetColor(-1, $COLOR_WHITE) - ;_GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 122, $y + 9, 16, 16) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "LblCountTotal", "Total"), $x + 360, $y + 10, -1, -1) - $g_hLblCountTotalSiege = GUICtrlCreateLabel(0, $x + 387, $y + 10, 20, 15, $SS_CENTER) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Troops", "LblCountTotal_Info_02", "The total units of Siege Machines")) - GUICtrlSetBkColor(-1, $COLOR_GREEN) ;lime, moneygreen - GUICtrlCreateLabel("x", $x + 410, $y + 10, -1, -1) + RemoveAllTmpTrain() + HideAllTroops() + BtnElixirTroops() EndFunc ;==>CreateCustomTrainSubTab @@ -1508,27 +1221,27 @@ Func CreateTrainBoost() GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops_Boost", "Group_05", "Boost Super Troops"), $x - 20, $y - 20, $g_iSizeWGrpTab3 - 12, 90) $x += 200 $g_hChkSkipBoostSuperTroopOnHalt = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops_Boost", "ChkSkipBoostSuperTroopOnHalt", "Skip Boost on Halt"), $x - 14, $y - 10, -1, -1) - GUICtrlSetOnEvent(-1, "chkSuperTroops") - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Troops_Boost", "Group_05", "Will Skip boost If Enabled Halt Attack and Account got on HaltAttack Mode")) + GUICtrlSetOnEvent(-1, "chkSuperTroops") + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Troops_Boost", "Group_05", "Will Skip boost If Enabled Halt Attack and Account got on HaltAttack Mode")) $g_hChkUsePotionFirst = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops_Boost", "ChkusePotionFirst", "Use Potion First"), $x - 14, $y + 10, -1, -1) - GUICtrlSetOnEvent(-1, "chkSuperTroops") - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Troops_Boost", "Group_05", "Will Skip boost If Enabled Halt Attack and Account got on HaltAttack Mode")) + GUICtrlSetOnEvent(-1, "chkSuperTroops") + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Attack - Troops_Boost", "Group_05", "Will Skip boost If Enabled Halt Attack and Account got on HaltAttack Mode")) $x -= 200 Local $sCmbTroopList = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtListOfSuperTroops", "Disabled|" & _ArrayToString($g_asSuperTroopNames)) $g_hChkSuperTroops = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Attack - Troops_Boost", "ChkSuperTroops", "Enable Super Troops"), $x - 14, $y + 5, -1, -1) - GUICtrlSetOnEvent(-1, "chkSuperTroops") + GUICtrlSetOnEvent(-1, "chkSuperTroops") For $i = 0 To $iMaxSupersTroop - 1 $g_ahLblSuperTroops[$i] = GUICtrlCreateLabel($i + 1 & ":", $x - 14, $y + 38, 50, -1) - GUICtrlSetState(-1, $GUI_DISABLE) + GUICtrlSetState(-1, $GUI_DISABLE) $g_ahCmbSuperTroops[$i] = GUICtrlCreateCombo("", $x + 1, $y + 35, 115, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL, $WS_VSCROLL)) - GUICtrlSetData(-1, $sCmbTroopList, "Disabled") - GUICtrlSetState(-1, $GUI_DISABLE) - GUICtrlSetOnEvent(-1, "cmbSuperTroops") + GUICtrlSetData(-1, $sCmbTroopList, "Disabled") + GUICtrlSetState(-1, $GUI_DISABLE) + GUICtrlSetOnEvent(-1, "cmbSuperTroops") $g_ahPicSuperTroops[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnOptions, $x + 120, $y + 10, 48, 48) - GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetState(-1, $GUI_HIDE) $x += 200 Next GUICtrlCreateGroup("", -99, -99, 1, 1) diff --git a/COCBot/GUI/MBR GUI Design Child Bot - Stats.au3 b/COCBot/GUI/MBR GUI Design Child Bot - Stats.au3 index f7ab7af9f..e8e5d9617 100644 --- a/COCBot/GUI/MBR GUI Design Child Bot - Stats.au3 +++ b/COCBot/GUI/MBR GUI Design Child Bot - Stats.au3 @@ -18,7 +18,7 @@ Global $g_hGUI_STATS = 0, $g_hGUI_STATS_TAB = 0, $g_hGUI_STATS_TAB_ITEM1 = 0, $g Global $btnResetStats = 0 ; Gain -Global $g_ahPicTHLevels[16], $g_hLblTHLevels = 0 +Global $g_ahPicTHLevels[17], $g_hLblTHLevels = 0 Global $g_ahPicLeague[$eLeagueCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0], $g_hLblLeague = 0 Global $g_ahLblStatsStartedWith[$eLootCount] = [0, 0, 0, 0], $g_ahLblStatsGainPerHour[$eLootCount] = [0, 0, 0, 0] Global $g_ahLblStatsTotalGain[$eLootCount] = [0, 0, 0, 0], $g_ahLblStatsLastAttack[$eLootCount] = [0, 0, 0, 0] @@ -38,7 +38,7 @@ Global $g_hLblNbrOfDetectedMines[$g_iModeCount] = [0, 0, 0], $g_hLblNbrOfDetecte $g_hLblNbrOfDetectedDrills[$g_iModeCount] = [0, 0, 0], $g_hLblSmartZap = 0, $g_hLblSmartLightningUsed = 0, $g_hLblSmartEarthQuakeUsed = 0 ; Donations -Global $g_hLblDonTroop[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_hLblDonTroop[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_hLblDonSpell[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_hLblDonSiegel[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] Global $g_hLblTotalTroopsQ = 0, $g_hLblTotalTroopsXP = 0, $g_hLblTotalSiegesQ = 0, $g_hLblTotalSiegesXP = 0, $g_hLblTotalSpellsQ = 0, $g_hLblTotalSpellsXP = 0 @@ -92,1617 +92,1631 @@ Func CreateGainSubTab() $x = $xStart + 276 $y = $yStart - 14 ;Boju Display TH Level in Stats - $g_ahPicTHLevels[4] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV04, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[5] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV05, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[6] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV06, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[7] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV07, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[8] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV08, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[9] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV09, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[10] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV10, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[11] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV11, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[12] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV12, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[13] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV13, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[14] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV14, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicTHLevels[15] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV15, $x - 11, $y + 15, 52, 52) - GUICtrlSetState(-1, $GUI_HIDE) - - GUICtrlCreateLabel(GetTranslatedFileIni("MBR Global GUI Design", "LblTownhall", "TownHall"), $x - 11, $y, -1, -1, $SS_CENTER) - - ;-->Display TH Level in Stats - $g_hLblTHLevels = GUICtrlCreateLabel("", $x + 38, $y + 53, 17, 17, $SS_CENTER) - GUICtrlSetFont($g_hLblTHLevels, 11, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) + $g_ahPicTHLevels[4] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV04, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[5] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV05, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[6] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV06, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[7] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV07, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[8] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV08, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[9] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV09, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[10] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV10, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[11] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV11, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[12] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV12, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[13] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV13, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[14] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV14, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[15] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV15, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicTHLevels[16] = _GUICtrlCreateIcon($g_sLibIconPath, $eHdV16, $x - 11, $y + 15, 52, 52) + GUICtrlSetState(-1, $GUI_HIDE) + + GUICtrlCreateLabel(GetTranslatedFileIni("MBR Global GUI Design", "LblTownhall", "TownHall"), $x - 11, $y, -1, -1, $SS_CENTER) + + ;-->Display TH Level in Stats + $g_hLblTHLevels = GUICtrlCreateLabel("", $x + 38, $y + 53, 17, 17, $SS_CENTER) + GUICtrlSetFont($g_hLblTHLevels, 11, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 340 $y = $yStart - 14 ;Display League in Stats ==> - $g_ahPicLeague[$eLeagueUnranked] = _GUICtrlCreateIcon($g_sLibIconPath, $eUnranked, $x - 2, $y - 5 + 15, 56, 56) - GUICtrlSetState(-1, $GUI_SHOW) - $g_ahPicLeague[$eLeagueBronze] = _GUICtrlCreateIcon($g_sLibIconPath, $eBronze, $x - 2, $y - 5 + 15, 56, 56) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicLeague[$eLeagueSilver] = _GUICtrlCreateIcon($g_sLibIconPath, $eSilver, $x - 2, $y - 5 + 15, 56, 56) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicLeague[$eLeagueGold] = _GUICtrlCreateIcon($g_sLibIconPath, $eGold, $x - 2, $y - 5 + 15, 56, 56) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicLeague[$eLeagueCrystal] = _GUICtrlCreateIcon($g_sLibIconPath, $eCrystal, $x - 2, $y - 5 + 15, 56, 56) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicLeague[$eLeagueMaster] = _GUICtrlCreateIcon($g_sLibIconPath, $eMaster, $x - 2, $y - 5 + 15, 56, 56) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicLeague[$eLeagueChampion] = _GUICtrlCreateIcon($g_sLibIconPath, $eLChampion, $x - 2, $y - 5 + 15, 56, 56) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicLeague[$eLeagueTitan] = _GUICtrlCreateIcon($g_sLibIconPath, $eTitan, $x - 2, $y - 5 + 15, 56, 56) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicLeague[$eLeagueLegend] = _GUICtrlCreateIcon($g_sLibIconPath, $eLegend, $x - 2, $y - 5 + 15, 56, 56) - GUICtrlSetState(-1, $GUI_HIDE) - - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLeague", "League"), $x + 3, $y, -1, -1, $SS_CENTER) - - ;-->Display League Level in Stats - $g_hLblLeague = GUICtrlCreateLabel("", $x + 43, $y + 53, 17, 17, $SS_CENTER) - GUICtrlSetFont(-1, 11, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) + $g_ahPicLeague[$eLeagueUnranked] = _GUICtrlCreateIcon($g_sLibIconPath, $eUnranked, $x - 2, $y - 5 + 15, 56, 56) + GUICtrlSetState(-1, $GUI_SHOW) + $g_ahPicLeague[$eLeagueBronze] = _GUICtrlCreateIcon($g_sLibIconPath, $eBronze, $x - 2, $y - 5 + 15, 56, 56) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicLeague[$eLeagueSilver] = _GUICtrlCreateIcon($g_sLibIconPath, $eSilver, $x - 2, $y - 5 + 15, 56, 56) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicLeague[$eLeagueGold] = _GUICtrlCreateIcon($g_sLibIconPath, $eGold, $x - 2, $y - 5 + 15, 56, 56) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicLeague[$eLeagueCrystal] = _GUICtrlCreateIcon($g_sLibIconPath, $eCrystal, $x - 2, $y - 5 + 15, 56, 56) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicLeague[$eLeagueMaster] = _GUICtrlCreateIcon($g_sLibIconPath, $eMaster, $x - 2, $y - 5 + 15, 56, 56) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicLeague[$eLeagueChampion] = _GUICtrlCreateIcon($g_sLibIconPath, $eLChampion, $x - 2, $y - 5 + 15, 56, 56) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicLeague[$eLeagueTitan] = _GUICtrlCreateIcon($g_sLibIconPath, $eTitan, $x - 2, $y - 5 + 15, 56, 56) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicLeague[$eLeagueLegend] = _GUICtrlCreateIcon($g_sLibIconPath, $eLegend, $x - 2, $y - 5 + 15, 56, 56) + GUICtrlSetState(-1, $GUI_HIDE) + + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLeague", "League"), $x + 3, $y, -1, -1, $SS_CENTER) + + ;-->Display League Level in Stats + $g_hLblLeague = GUICtrlCreateLabel("", $x + 43, $y + 53, 17, 17, $SS_CENTER) + GUICtrlSetFont(-1, 11, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 3 $y = $yStart + 100 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStats", "Stats"), $x - 20, $y - 32, 87, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblGold", "Gold"), $x - 18 + 85, $y - 32, 95, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblElixir", "Elixir"), $x - 18 + (60 * 3), $y - 32, 75, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDarkE", "DarkE"), $x - 23 + (65 * 4), $y - 32, 90, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTrophy", "Trophy"), $x - 23 + (70 * 5), $y - 32, 75, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStats", "Stats"), $x - 20, $y - 32, 87, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblGold", "Gold"), $x - 18 + 85, $y - 32, 95, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblElixir", "Elixir"), $x - 18 + (60 * 3), $y - 32, 75, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDarkE", "DarkE"), $x - 23 + (65 * 4), $y - 32, 90, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTrophy", "Trophy"), $x - 23 + (70 * 5), $y - 32, 75, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) GUICtrlCreateGroup("", $x - 20, $y - 20, 422, 28) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStartedWith", "Started with") & ":", $x - 15, $y - 11, - 1, - 1) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStartedWith", "Started with") & ":", $x - 15, $y - 11, -1, -1) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsStartedWith_Info_01", "The amount of Gold you had when the bot started.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsStartedWith[$eLootGold] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsStartedWith_Info_01", "The amount of Gold you had when the bot started.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsStartedWith[$eLootGold] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsStartedWith_Info_02", "The amount of Elixir you had when the bot started.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsStartedWith[$eLootElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsStartedWith_Info_02", "The amount of Elixir you had when the bot started.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsStartedWith[$eLootElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - $g_hPicResultDEStart = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsStartedWith_Info_03", "The amount of Dark Elixir you had when the bot started.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsStartedWith[$eLootDarkElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + $g_hPicResultDEStart = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsStartedWith_Info_03", "The amount of Dark Elixir you had when the bot started.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsStartedWith[$eLootDarkElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 75 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsStartedWith_Info_04", "The amount of Trophies you had when the bot started.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsStartedWith[$eLootTrophy] = GUICtrlCreateLabel("0", $x - 18 + 5, $y - 12, 60, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsStartedWith_Info_04", "The amount of Trophies you had when the bot started.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsStartedWith[$eLootTrophy] = GUICtrlCreateLabel("0", $x - 18 + 5, $y - 12, 60, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 3 $y = $yStart + 125 GUICtrlCreateGroup("", $x - 20, $y - 20, 422, 28) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblGainPerHour", "Gain per Hour") & ":", $x - 15, $y - 11, - 1, - 1) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblGainPerHour", "Gain per Hour") & ":", $x - 15, $y - 11, -1, -1) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsGainPerHour_Info_01", "Gold gain per hour") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsGainPerHour[$eLootGold] = GUICtrlCreateLabel("0/h", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsGainPerHour_Info_01", "Gold gain per hour") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsGainPerHour[$eLootGold] = GUICtrlCreateLabel("0/h", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsGainPerHour_Info_02", "Elixir gain per hour") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsGainPerHour[$eLootElixir] = GUICtrlCreateLabel("0/h", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsGainPerHour_Info_02", "Elixir gain per hour") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsGainPerHour[$eLootElixir] = GUICtrlCreateLabel("0/h", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - $g_hPicHourlyStatsDark = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsGainPerHour_Info_03", "Dark Elixir gain per hour") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsGainPerHour[$eLootDarkElixir] = GUICtrlCreateLabel("0/h", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + $g_hPicHourlyStatsDark = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsGainPerHour_Info_03", "Dark Elixir gain per hour") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsGainPerHour[$eLootDarkElixir] = GUICtrlCreateLabel("0/h", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 75 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsGainPerHour_Info_04", "Trophy gain per hour") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsGainPerHour[$eLootTrophy] = GUICtrlCreateLabel("0/h", $x - 18 + 5, $y - 12, 60, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsGainPerHour_Info_04", "Trophy gain per hour") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsGainPerHour[$eLootTrophy] = GUICtrlCreateLabel("0/h", $x - 18 + 5, $y - 12, 60, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 3 $y = $yStart + 150 GUICtrlCreateGroup("", $x - 20, $y - 20, 422, 28) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTotalGain", "Total Gain") & ":", $x - 15, $y - 11, - 1, - 1) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTotalGain", "Total Gain") & ":", $x - 15, $y - 11, -1, -1) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_01", "The total amount of Gold you gained or lost while the Bot is running.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_02", "(This includes manual spending of resources on upgrade of buildings)") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsTotalGain[$eLootGold] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_01", "The total amount of Gold you gained or lost while the Bot is running.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_02", "(This includes manual spending of resources on upgrade of buildings)") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsTotalGain[$eLootGold] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_03", "The total amount of Elixir you gained or lost while the Bot is running.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_02", "(This includes manual spending of resources on upgrade of buildings)") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsTotalGain[$eLootElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_03", "The total amount of Elixir you gained or lost while the Bot is running.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_02", "(This includes manual spending of resources on upgrade of buildings)") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsTotalGain[$eLootElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - $g_hPicDarkLoot = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_04", "The total amount of Dark Elixir you gained or lost while the Bot is running.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_02", "(This includes manual spending of resources on upgrade of buildings)") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsTotalGain[$eLootDarkElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + $g_hPicDarkLoot = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_04", "The total amount of Dark Elixir you gained or lost while the Bot is running.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_02", "(This includes manual spending of resources on upgrade of buildings)") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsTotalGain[$eLootDarkElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 75 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_05", "The amount of Trophies you gained or lost while the Bot is running.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsTotalGain[$eLootTrophy] = GUICtrlCreateLabel("0", $x - 18 + 5, $y - 12, 60, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTotalGain_Info_05", "The amount of Trophies you gained or lost while the Bot is running.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsTotalGain[$eLootTrophy] = GUICtrlCreateLabel("0", $x - 18 + 5, $y - 12, 60, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 3 $y = $yStart + 195 GUICtrlCreateGroup("", $x - 20, $y - 20, 422, 28) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLastAttack", "Last Attack") & ":", $x - 15, $y - 11, - 1, - 1) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLastAttack", "Last Attack") & ":", $x - 15, $y - 11, -1, -1) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsLastAttack_Info_01", "The amount of Gold you gained on the last attack.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsLastAttack[$eLootGold] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsLastAttack_Info_01", "The amount of Gold you gained on the last attack.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsLastAttack[$eLootGold] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsLastAttack_Info_02", "The amount of Elixir you gained on the last attack.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsLastAttack[$eLootElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsLastAttack_Info_02", "The amount of Elixir you gained on the last attack.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsLastAttack[$eLootElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - $g_hPicDarkLastAttack = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsLastAttack_Info_03", "The amount of Dark Elixir you gained on the last attack.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsLastAttack[$eLootDarkElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + $g_hPicDarkLastAttack = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsLastAttack_Info_03", "The amount of Dark Elixir you gained on the last attack.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsLastAttack[$eLootDarkElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 75 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsLastAttack_Info_04", "The amount of Trophies you gained or lost on the last attack.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsLastAttack[$eLootTrophy] = GUICtrlCreateLabel("0", $x - 18 + 5, $y - 12, 60, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsLastAttack_Info_04", "The amount of Trophies you gained or lost on the last attack.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsLastAttack[$eLootTrophy] = GUICtrlCreateLabel("0", $x - 18 + 5, $y - 12, 60, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 3 $y = $yStart + 220 GUICtrlCreateGroup("", $x - 20, $y - 20, 422, 28) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLeagueBonus", "League Bonus") & ":", $x - 15, $y - 11, - 1, - 1) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLeagueBonus", "League Bonus") & ":", $x - 15, $y - 11, -1, -1) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsBonusLast_Info_01", "The amount of Bonus Gold you gained on the last attack.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsBonusLast[$eLootGold] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsBonusLast_Info_01", "The amount of Bonus Gold you gained on the last attack.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsBonusLast[$eLootGold] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsBonusLast_Info_02", "The amount of Bonus Elixir you gained on the last attack.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsBonusLast[$eLootElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsBonusLast_Info_02", "The amount of Bonus Elixir you gained on the last attack.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsBonusLast[$eLootElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsBonusLast_Info_03", "The amount of Bonus Dark Elixir you gained on the last attack.") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsBonusLast[$eLootDarkElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsBonusLast_Info_03", "The amount of Bonus Dark Elixir you gained on the last attack.") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsBonusLast[$eLootDarkElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 3 $y = $yStart + 265 GUICtrlCreateGroup("", $x - 20, $y - 20, 422, 28) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTopLoot", "Top Loot") & ":", $x - 15, $y - 11, - 1, - 1) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTopLoot", "Top Loot") & ":", $x - 15, $y - 11, -1, -1) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTop_Info_01","Top Gold gained") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsTop[$eLootGold] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTop_Info_01", "Top Gold gained") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsTop[$eLootGold] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTop_Info_02", "Top Elixir gained") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsTop[$eLootElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTop_Info_02", "Top Elixir gained") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsTop[$eLootElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 85 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTop_Info_03", "Top Dark gained") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsTop[$eLootDarkElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTop_Info_03", "Top Dark gained") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsTop[$eLootDarkElixir] = GUICtrlCreateLabel("0", $x - 18, $y - 12, 65, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 75 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 50, $y - 12, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTop_Info_04", "Top Trophy gained") - _GUICtrlSetTip(-1, $sTxtTip) - $g_ahLblStatsTop[$eLootTrophy] = GUICtrlCreateLabel("0", $x - 18 + 5, $y - 12, 60, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 50, $y - 12, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsTop_Info_04", "Top Trophy gained") + _GUICtrlSetTip(-1, $sTxtTip) + $g_ahLblStatsTop[$eLootTrophy] = GUICtrlCreateLabel("0", $x - 18 + 5, $y - 12, 60, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) EndFunc ;==>CreateGainSubTab -#EndRegion +#EndRegion Gain SubTab #Region Misc SubTab Func CreateMiscSubTab() Local $sTxtTip = "" Local $xStart = 25, $yStart = 45 Local $x = $xStart + 3, $y = $yStart + 20 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblRun", "Run"), $x - 20, $y - 32, 187, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblCost-Collect", "Cost && Collect"), $x - 18 + 212, $y - 32, 207, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblRun", "Run"), $x - 20, $y - 32, 187, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblCost-Collect", "Cost && Collect"), $x - 18 + 212, $y - 32, 207, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) $x -= 10 $y -= 10 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHourGlass, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblRuntime_Info_01", "The total Running Time of the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblRuntime", "Runtime") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblResultRuntime = GUICtrlCreateLabel("00:00:00", $x + 35, $y + 2, 150, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHourGlass, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblRuntime_Info_01", "The total Running Time of the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblRuntime", "Runtime") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblResultRuntime = GUICtrlCreateLabel("00:00:00", $x + 35, $y + 2, 150, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRecycle, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblNbr-of-OoS_Info_01", "The number of Out of Sync error occurred") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblNbr-of-OoS", "Nbr of OoS") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblNbrOfOoS = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRecycle, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblNbr-of-OoS_Info_01", "The number of Out of Sync error occurred") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblNbr-of-OoS", "Nbr of OoS") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblNbrOfOoS = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgTarget, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblAttacked_Info_01", "The No. of Villages that were attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblAttacked", "Attacked") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblResultVillagesAttacked = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgTarget, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblAttacked_Info_01", "The No. of Villages that were attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblAttacked", "Attacked") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblResultVillagesAttacked = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgX, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblSkipped_Info_01", "The No. of Villages that were skipped during search by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblSkipped", "Skipped")& ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblResultVillagesSkipped = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgX, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblSkipped_Info_01", "The No. of Villages that were skipped during search by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblSkipped", "Skipped") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblResultVillagesSkipped = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDropped_Info_01", "The amount of Trophies dropped by the Bot due to Trophy Settings (on Misc Tab).") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDropped", "Dropped") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblResultTrophiesDropped = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDropped_Info_01", "The amount of Trophies dropped by the Bot due to Trophy Settings (on Misc Tab).") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDropped", "Dropped") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblResultTrophiesDropped = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 180 $y = $yStart + 25 $y += 5 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMagnifier, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblSearch-Cost_Info_01", "Search cost for skipping villages in gold") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblSearch-Cost", "Search Cost") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblSearchCost = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) -#cs - $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnArcher, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTrain-Cost-Elixir_Info_01", "Elixir spent for training Barrack Troops") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTrain-Cost-Elixir", "Train Cost Elixir") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTrainCostElixir = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMinion, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTrain-Cost-DElixir_Info_01", "Dark Elixir spent for training Dark Barrack Troops") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTrain-Cost-DElixir", "Train Cost DElixir") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTrainCostDElixir = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMagnifier, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblSearch-Cost_Info_01", "Search cost for skipping villages in gold") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblSearch-Cost", "Search Cost") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblSearchCost = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallW, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTrain-Cost-Gold_Info_01", "Gold spent for Building Siege Machines") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTrain-Cost-Gold", "Build Cost Gold") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTrainCostGold = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) -#ce - $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMine, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblGold-collected_Info_01", "Gold gained by collecting mines") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblGold-collected", "Gold collected") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblGoldFromMines = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMine, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblGold-collected_Info_01", "Gold gained by collecting mines") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblGold-collected", "Gold collected") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblGoldFromMines = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCollector, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblElixir-collected_Info_01", "Elixir gained by collecting collectors") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblElixir-collected", "Elixir collected") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblElixirFromCollectors = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCollector, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblElixir-collected_Info_01", "Elixir gained by collecting collectors") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblElixir-collected", "Elixir collected") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblElixirFromCollectors = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDrill, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDElixir-collected_Info_01", "Dark Elixir gained by collecting drills") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDElixir-collected", "DElixir collected") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblDElixirFromDrills = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDrill, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDElixir-collected_Info_01", "Dark Elixir gained by collecting drills") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDElixir-collected", "DElixir collected") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblDElixirFromDrills = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 5 $y = $yStart + 185 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpgrades-Made", "Upgrades Made"), $x - 20, $y - 32, 187, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xD4D4D4) - GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xD4D4D4) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpgrade-Costs", "Upgrade Costs"), $x - 18 + 212, $y - 32, 207, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpgrades-Made", "Upgrades Made"), $x - 20, $y - 32, 187, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpgrade-Costs", "Upgrade Costs"), $x - 18 + 212, $y - 32, 207, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xD4D4D4) $x -= 10 $y -= 10 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallGold, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-by-Gold_Info_01", "The No. of Walls upgraded by Gold.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpg-by-Gold", "Upg. by Gold") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblWallGoldMake = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallGold, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-by-Gold_Info_01", "The No. of Walls upgraded by Gold.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpg-by-Gold", "Upg. by Gold") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblWallGoldMake = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallElixir, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-by-Elixir_Info_01", "The No. of Walls upgraded by Elixir.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpg-by-Elixir", "Upg. by Elixir") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblWallElixirMake = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallElixir, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-by-Elixir_Info_01", "The No. of Walls upgraded by Elixir.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpg-by-Elixir", "Upg. by Elixir") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblWallElixirMake = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgGold, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-by-Gold_Info_01", "The number of buildings upgraded using gold") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpg-by-Gold", "Upg. by Gold") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblNbrOfBuildingUpgGold = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgGold, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-by-Gold_Info_01", "The number of buildings upgraded using gold") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpg-by-Gold", "Upg. by Gold") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblNbrOfBuildingUpgGold = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgElixir, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-by-Elixir_Info_01", "The number of buildings upgraded using elixir") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpg-by-Elixir", "Upg. by Elixir") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblNbrOfBuildingUpgElixir = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgElixir, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-by-Elixir_Info_01", "The number of buildings upgraded using elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpg-by-Elixir", "Upg. by Elixir") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblNbrOfBuildingUpgElixir = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMonolith, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-by-Dark_Info_01", "The number of buildings upgraded using dark elixir") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpg-by-DElixir", "Upg. by DElixir") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblNbrOfBuildingUpgDElixir = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMonolith, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-by-Dark_Info_01", "The number of buildings upgraded using dark elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblUpg-by-DElixir", "Upg. by DElixir") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblNbrOfBuildingUpgDElixir = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHeroes, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblHeroesUpg_Info_01", "The number of dark heroes upgraded") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblHeroesUpg", "Dark Hero Upgrade") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblNbrOfHeroUpg = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHeroes, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblHeroesUpg_Info_01", "The number of dark heroes upgraded") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblHeroesUpg", "Dark Hero Upgrade") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblNbrOfHeroUpg = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWardenUpgr, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWardenUpg_Info_01", "The number of Grand Warden upgraded") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWardenUpg", "Warden Upgrade") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblNbrOfWardenUpg = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWardenUpgr, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWardenUpg_Info_01", "The number of Grand Warden upgraded") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWardenUpg", "Warden Upgrade") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblNbrOfWardenUpg = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 180 $y = $yStart + 185 $y -= 10 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallGold, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Gold_Info_01", "The cost of gold used by bot while upgrading walls") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Gold", "Upg. Cost Gold") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblWallUpgCostGold = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallGold, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Gold_Info_01", "The cost of gold used by bot while upgrading walls") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Gold", "Upg. Cost Gold") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblWallUpgCostGold = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallElixir, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Elixir_Info_01", "The cost of elixir used by bot while upgrading walls") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Elixir", "Upg. Cost Elixir") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblWallUpgCostElixir = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallElixir, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Elixir_Info_01", "The cost of elixir used by bot while upgrading walls") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Elixir", "Upg. Cost Elixir") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblWallUpgCostElixir = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgGold, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-Cost-by-Gold_Info_01", "The cost of gold used by bot while upgrading buildings") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Gold", "Upg. Cost Gold") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblBuildingUpgCostGold = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgGold, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-Cost-by-Gold_Info_01", "The cost of gold used by bot while upgrading buildings") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Gold", "Upg. Cost Gold") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblBuildingUpgCostGold = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgElixir, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-Cost-by-Elixir_Info_01", "The cost of elixir used by bot while upgrading buildings") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Elixir", "Upg. Cost Elixir") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblBuildingUpgCostElixir = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgElixir, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-Cost-by-Elixir_Info_01", "The cost of elixir used by bot while upgrading buildings") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-Elixir", "Upg. Cost Elixir") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblBuildingUpgCostElixir = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMonolith, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-Cost-by-DElixir_Info_01", "The cost of dark elixir used by bot while upgrading buildings") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-DElixir", "Upg. Cost DElixir") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblBuildingUpgCostDElixir = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMonolith, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBuilUpg-Cost-by-DElixir_Info_01", "The cost of dark elixir used by bot while upgrading buildings") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWallUpg-Cost-by-DElixir", "Upg. Cost DElixir") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblBuildingUpgCostDElixir = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHeroes, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblheroesUpg-Cost_Info_01", "The cost of dark elixir used by bot while upgrading dark heroes") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblheroesUpg-Cost", "Upg. Cost DElixir") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblHeroUpgCost = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHeroes, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblheroesUpg-Cost_Info_01", "The cost of dark elixir used by bot while upgrading dark heroes") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblheroesUpg-Cost", "Upg. Cost DElixir") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblHeroUpgCost = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWardenUpgr, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWardenUpg-Cost_Info_01", "The cost of elixir used by bot while upgrading Grand Warden") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWardenUpg-Cost", "Upg. Cost Elixir") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblWardenUpgCost = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWardenUpgr, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWardenUpg-Cost_Info_01", "The cost of elixir used by bot while upgrading Grand Warden") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblWardenUpg-Cost", "Upg. Cost Elixir") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblWardenUpgCost = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x -= 20 $y -= 85 - GUICtrlCreateLabel("", $x + 28, $y - 180, 5, 280) - GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel("", $x + 28, $y - 180, 5, 280) + GUICtrlSetBkColor(-1, 0xC3C3C3) GUICtrlCreateGroup("", -99, -99, 1, 1) EndFunc ;==>CreateMiscSubTab -#EndRegion +#EndRegion Misc SubTab #Region Attacks SubTab Func CreateAttacksSubTab() Local $sTxtTip = "" Local $xStart = 25, $yStart = 45 Local $x = $xStart + 3, $y = $yStart + 20 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base", "Dead Base"), $x - 20, $y - 32, 187, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base", "Live Base"), $x - 18 + 212, $y - 32, 207, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel("", $x + 187, $y - 32, 5, 300) - GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base", "Dead Base"), $x - 20, $y - 32, 187, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base", "Live Base"), $x - 18 + 212, $y - 32, 207, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel("", $x + 187, $y - 32, 5, 300) + GUICtrlSetBkColor(-1, 0xC3C3C3) $x -= 10 $y -= 10 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgTarget, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base_Info_01", "The No. of Dead Base that were attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBase-Attacked", "Attacked") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblAttacked[$DB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgTarget, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base_Info_01", "The No. of Dead Base that were attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBase-Attacked", "Attacked") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblAttacked[$DB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain-Gold_Info_01", "The amount of Gold gained from Dead Bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain","gain") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalGoldGain[$DB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain-Gold_Info_01", "The amount of Gold gained from Dead Bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", "gain") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalGoldGain[$DB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain-Elixir_Info_01", "The amount of Elixir gained from Dead Bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalElixirGain[$DB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain-Elixir_Info_01", "The amount of Elixir gained from Dead Bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalElixirGain[$DB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain-Dark_Info_01", "The amount of Dark Elixir gained from Dead Bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalDElixirGain[$DB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain-Dark_Info_01", "The amount of Dark Elixir gained from Dead Bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalDElixirGain[$DB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain-Trophies_Info_01", "The amount of Trophies gained from Dead Bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalTrophyGain[$DB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain-Trophies_Info_01", "The amount of Trophies gained from Dead Bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalTrophyGain[$DB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 30 $y += 25 - $g_hLblNbrOfDetectedMines[$DB] = GUICtrlCreateLabel("0", $x - 18, $y - 2, 20, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMine, $x + 6, $y - 4, 16, 16) + $g_hLblNbrOfDetectedMines[$DB] = GUICtrlCreateLabel("0", $x - 18, $y - 2, 20, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMine, $x + 6, $y - 4, 16, 16) $x += 20 - $g_hLblNbrOfDetectedCollectors[$DB] = GUICtrlCreateLabel("0", $x + 18, $y - 2, 20, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCollector, $x + 43, $y - 4, 16, 16) + $g_hLblNbrOfDetectedCollectors[$DB] = GUICtrlCreateLabel("0", $x + 18, $y - 2, 20, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCollector, $x + 43, $y - 4, 16, 16) $x += 20 - $g_hLblNbrOfDetectedDrills[$DB] = GUICtrlCreateLabel("0", $x + 54, $y - 2, 20, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDrill, $x + 79, $y - 4, 16, 16) + $g_hLblNbrOfDetectedDrills[$DB] = GUICtrlCreateLabel("0", $x + 54, $y - 2, 20, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDrill, $x + 79, $y - 4, 16, 16) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 180 $y = $yStart + 25 $y -= 15 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgTarget, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base_Info_01", "The No. of Live Base that were attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBase-Attacked", "Attacked") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblAttacked[$LB] = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgTarget, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base_Info_01", "The No. of Live Base that were attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBase-Attacked", "Attacked") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblAttacked[$LB] = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base-Gain-Gold_Info_01", "The amount of Gold gained from Live Bases attacked by the Bot") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalGoldGain[$LB] = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base-Gain-Gold_Info_01", "The amount of Gold gained from Live Bases attacked by the Bot") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalGoldGain[$LB] = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base-Gain-Elixir_Info_01", "The amount of Elixir gained from Live Bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalElixirGain[$LB] = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base-Gain-Elixir_Info_01", "The amount of Elixir gained from Live Bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalElixirGain[$LB] = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base-Gain-Dark_Info_01", "The amount of Dark Elixir gained from Live Bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalDElixirGain[$LB] = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base-Gain-Dark_Info_01", "The amount of Dark Elixir gained from Live Bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalDElixirGain[$LB] = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 22, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base-Gain-Trophy_Info_01", "The amount of Trophy gained from Live Bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalTrophyGain[$LB] = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 22, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblLive-Base-Gain-Trophy_Info_01", "The amount of Trophy gained from Live Bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalTrophyGain[$LB] = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 62 $y += 25 - $g_hLblNbrOfDetectedMines[$LB] = GUICtrlCreateLabel("0", $x - 18, $y - 2, 20, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMine, $x + 6, $y - 4, 16, 16) + $g_hLblNbrOfDetectedMines[$LB] = GUICtrlCreateLabel("0", $x - 18, $y - 2, 20, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMine, $x + 6, $y - 4, 16, 16) $x += 20 - $g_hLblNbrOfDetectedCollectors[$LB] = GUICtrlCreateLabel("0", $x + 18, $y - 2, 20, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCollector, $x + 43, $y - 4, 16, 16) + $g_hLblNbrOfDetectedCollectors[$LB] = GUICtrlCreateLabel("0", $x + 18, $y - 2, 20, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCollector, $x + 43, $y - 4, 16, 16) $x += 20 - $g_hLblNbrOfDetectedDrills[$LB] = GUICtrlCreateLabel("0", $x + 54, $y - 2, 20, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDrill, $x + 79, $y - 4, 16, 16) + $g_hLblNbrOfDetectedDrills[$LB] = GUICtrlCreateLabel("0", $x + 54, $y - 2, 20, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDrill, $x + 79, $y - 4, 16, 16) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 5 $y = $yStart + 165 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully", "TH Bully"), $x - 20, $y - 32, 187, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - $g_hLblStatsSZRev2 = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSZRev2", "Smart Zap"), $x - 18 + 212, $y - 32, 207, 17, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully", "TH Bully"), $x - 20, $y - 32, 187, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + $g_hLblStatsSZRev2 = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSZRev2", "Smart Zap"), $x - 18 + 212, $y - 32, 207, 17, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + $x -= 10 $y -= 10 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgTarget, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully_Info_01", "The No. of TH Bully bases that were attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBase-Attacked", "Attacked") & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblAttacked[$TB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgTarget, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully_Info_01", "The No. of TH Bully bases that were attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblBase-Attacked", "Attacked") & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblAttacked[$TB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully-Gain-Gold_Info_01", "The amount of Gold gained from TH Bully bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalGoldGain[$TB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully-Gain-Gold_Info_01", "The amount of Gold gained from TH Bully bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalGoldGain[$TB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully-Gain-Elixir_Info_01", "The amount of Elixir gained from TH Bully bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalElixirGain[$TB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully-Gain-Elixir_Info_01", "The amount of Elixir gained from TH Bully bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalElixirGain[$TB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully-Gain-Dark_Info_01", "The amount of Dark Elixir gained from TH Bully bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalDElixirGain[$TB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully-Gain-Dark_Info_01", "The amount of Dark Elixir gained from TH Bully bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalDElixirGain[$TB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x - 10, $y, 16, 16) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully-Gain-Trophy_Info_01", "The amount of Trophy gained from TH Bully bases attacked by the Bot.") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 13, $y + 2, -1, 17) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hLblTotalTrophyGain[$TB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x - 10, $y, 16, 16) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblTH-Bully-Gain-Trophy_Info_01", "The amount of Trophy gained from TH Bully bases attacked by the Bot.") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 13, $y + 2, -1, 17) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblTotalTrophyGain[$TB] = GUICtrlCreateLabel("0", $x + 115, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x += 30 $y += 25 - $g_hLblNbrOfDetectedMines[$TB] = GUICtrlCreateLabel("0", $x - 18, $y - 2, 18, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMine, $x + 6, $y - 4, 16, 16) + $g_hLblNbrOfDetectedMines[$TB] = GUICtrlCreateLabel("0", $x - 18, $y - 2, 18, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMine, $x + 6, $y - 4, 16, 16) $x += 20 - $g_hLblNbrOfDetectedCollectors[$TB] = GUICtrlCreateLabel("0", $x + 18, $y - 2, 18, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCollector, $x + 43, $y - 4, 16, 16) + $g_hLblNbrOfDetectedCollectors[$TB] = GUICtrlCreateLabel("0", $x + 18, $y - 2, 18, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCollector, $x + 43, $y - 4, 16, 16) $x += 20 - $g_hLblNbrOfDetectedDrills[$TB] = GUICtrlCreateLabel("0", $x + 54, $y - 2, 18, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDrill, $x + 79, $y - 4, 16, 16) + $g_hLblNbrOfDetectedDrills[$TB] = GUICtrlCreateLabel("0", $x + 54, $y - 2, 18, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDrill, $x + 79, $y - 4, 16, 16) $x = $xStart + 180 $y = $yStart + 165 $y -= 10 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLightSpell, $x + 22, $y, 16, 16) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartLightningUsed_Info_01", "The amount of Lightning Spells used to zap")) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSZRev2-Used", "Used") & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartLightningUsed_Info_01", -1)) - $g_hLblSmartLightningUsed = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartLightningUsed_Info_01", -1)) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLightSpell, $x + 22, $y, 16, 16) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartLightningUsed_Info_01", "The amount of Lightning Spells used to zap")) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSZRev2-Used", "Used") & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartLightningUsed_Info_01", -1)) + $g_hLblSmartLightningUsed = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartLightningUsed_Info_01", -1)) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnEarthQuakeSpell, $x + 22, $y, 16, 16) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartEarthQuakeUsed_Info_01", "The amount of Earthquake Spells used to zap")) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSZRev2-Used", -1) & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartEarthQuakeUsed_Info_01", -1)) - $g_hLblSmartEarthQuakeUsed = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartEarthQuakeUsed_Info_01", -1)) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnEarthQuakeSpell, $x + 22, $y, 16, 16) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartEarthQuakeUsed_Info_01", "The amount of Earthquake Spells used to zap")) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSZRev2-Used", -1) & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartEarthQuakeUsed_Info_01", -1)) + $g_hLblSmartEarthQuakeUsed = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartEarthQuakeUsed_Info_01", -1)) $y += 20 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 22, $y, 18, 18) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartZap_Info_01", "The amount of Dark Elixir won while zapping")) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain",-1) & ":", $x + 45, $y + 2, -1, 17) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartZap_Info_01", -1)) - $g_hLblSmartZap = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartZap_Info_01", -1)) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 22, $y, 18, 18) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartZap_Info_01", "The amount of Dark Elixir won while zapping")) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblDead-Base-Gain", -1) & ":", $x + 45, $y + 2, -1, 17) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartZap_Info_01", -1)) + $g_hLblSmartZap = GUICtrlCreateLabel("0", $x + 150, $y + 2, 70, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsSmartZap_Info_01", -1)) GUICtrlCreateGroup("", -99, -99, 1, 1) EndFunc ;==>CreateAttacksSubTab -#EndRegion +#EndRegion Attacks SubTab #Region Donations SubTab Func CreateDonationsSubTab() Local $sTxtTip = "" Local $xStart = 25, $yStart = 40 Local $x = $xStart, $y = $yStart + 20 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDon-AllTroops", "All Troops"), $x - 20, $y - 32, 431, 15, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - $x += 5 + Local $xOffset = 54 + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDon-AllTroops", "All Troops"), $x - 20, $y - 32, 431, 15, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + $x = 5 $y -= 12 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBarbarian, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopBarbarian] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWizard, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopWizard] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroDragon, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopElectroDragon] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnValkyrie, $x + 161, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopValkyrie] = GUICtrlCreateLabel("0", $x + 164, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBarbarian, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopBarbarian] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWizard, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopWizard] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroDragon, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopElectroDragon] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHogRider, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopHogRider] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceGolem, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopIceGolem] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSneakyGoblin, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSneakyGoblin] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMinion, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperMinion] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperHogRider, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperHogRider] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x = 5 $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnArcher, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopArcher] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealer, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopHealer] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnYeti, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopYeti] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGolem, $x + 161, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopGolem] = GUICtrlCreateLabel("0", $x + 164, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnArcher, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopArcher] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealer, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopHealer] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnYeti, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopYeti] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnValkyrie, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopValkyrie] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHeadhunter, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopHeadhunter] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWallBreaker, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperWallBreaker] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperValkyrie, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperValkyrie] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x = 5 $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGiant, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopGiant] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDragon, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopDragon] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDragonRider, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopDragonRider] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWitch, $x + 161, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopWitch] = GUICtrlCreateLabel("0", $x + 164, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGiant, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopGiant] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDragon, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopDragon] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDragonRider, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopDragonRider] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGolem, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopGolem] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnAppWard, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopAppWard] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRocketBalloon, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopRocketBalloon] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWitch, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperWitch] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x = 5 $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGoblin, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopGoblin] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPekka, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopPekka] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroTitan, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopElectroTitan] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLavaHound, $x + 161, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopLavaHound] = GUICtrlCreateLabel("0", $x + 164, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGoblin, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopGoblin] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPekka, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopPekka] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroTitan, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopElectroTitan] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWitch, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopWitch] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBarbarian, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperBarbarian] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWizard, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperWizard] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceHound, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopIceHound] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x = 5 $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallBreaker, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopWallBreaker] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMinion, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopMinion] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBabyDragon, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopBabyDragon] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBowler, $x + 161, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopBowler] = GUICtrlCreateLabel("0", $x + 164, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBalloon, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopBalloon] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMiner, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopMiner] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHogRider, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopHogRider] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceGolem, $x + 161, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopIceGolem] = GUICtrlCreateLabel("0", $x + 164, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart + 235 - $y = $yStart + 23 - $y -= 15 - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHeadhunter, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopHeadhunter] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWallBreaker, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperWallBreaker] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperValkyrie, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperValkyrie] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnAppWard, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopAppWard] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRocketBalloon, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopRocketBalloon] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWitch, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperWitch] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBarbarian, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperBarbarian] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWizard, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperWizard] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceHound, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopIceHound] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallBreaker, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopWallBreaker] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMinion, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopMinion] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRootRider, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopRootRider] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLavaHound, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopLavaHound] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperArcher, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperArcher] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperDragon, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperDragon] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBowler, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperBowler] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x = 5 $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperArcher, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperArcher] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperDragon, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperDragon] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBowler, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperBowler] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBalloon, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopBalloon] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMiner, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopMiner] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBabyDragon, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopBabyDragon] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBowler, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopBowler] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperGiant, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperGiant] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInfernoDragon, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopInfernoDragon] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += $xOffset + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMiner, $x, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 28, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonTroop[$eTroopSuperMiner] = GUICtrlCreateLabel("0", $x + 15, $y + 6, 35, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 8, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) - $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperGiant, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperGiant] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInfernoDragon, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopInfernoDragon] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMiner, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperMiner] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSneakyGoblin, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSneakyGoblin] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMinion, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperMinion] = GUICtrlCreateLabel("0", $x + 50, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperHogRider, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonTroop[$eTroopSuperHogRider] = GUICtrlCreateLabel("0", $x + 107, $y + 4, 50, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart $y = $yStart + 208 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotal", "Total Donated") & ":", $x - 20, $y - 32, 217, 15) - GUICtrlSetBkColor(-1, 0xD4D4D4) - GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 15, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xD4D4D4) - $g_hLblTotalTroopsQ = GUICtrlCreateLabel("0", $x + 105, $y - 32, 70, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, 0xD4D4D4) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotalXP", "Total XP") & ":", $x - 18 + 212, $y - 32, 216, 15) - GUICtrlSetBkColor(-1, 0xD4D4D4) - $g_hLblTotalTroopsXP = GUICtrlCreateLabel("0", $x + 320, $y - 32, 70, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotal", "Total Donated") & ":", $x - 20, $y - 32, 217, 15) + GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 15, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xD4D4D4) + $g_hLblTotalTroopsQ = GUICtrlCreateLabel("0", $x + 105, $y - 32, 70, 15, $SS_RIGHT) + GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotalXP", "Total XP") & ":", $x - 18 + 212, $y - 32, 216, 15) + GUICtrlSetBkColor(-1, 0xD4D4D4) + $g_hLblTotalTroopsXP = GUICtrlCreateLabel("0", $x + 320, $y - 32, 70, 15, $SS_RIGHT) + GUICtrlSetBkColor(-1, 0xD4D4D4) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart $y = $yStart + 231 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDon-Sieges", "Sieges"), $x - 20, $y - 32, 430, 15, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDon-Sieges", "Sieges"), $x - 20, $y - 32, 430, 15, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) $x += 5 $y -= 12 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallW, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSiegel[$eSiegeWallWrecker] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleB, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSiegel[$eSiegeBattleBlimp] = GUICtrlCreateLabel("0", $x + 60, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnStoneS, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSiegel[$eSiegeStoneSlammer] = GUICtrlCreateLabel("0", $x + 117, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSiegeB, $x + 161, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSiegel[$eSiegeBarracks] = GUICtrlCreateLabel("0", $x + 174, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLogL, $x + 218, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 246, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSiegel[$eSiegeLogLauncher] = GUICtrlCreateLabel("0", $x + 231, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFlameF, $x + 275, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 303, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSiegel[$eSiegeFlameFlinger] = GUICtrlCreateLabel("0", $x + 288, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleD, $x + 332, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 360, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSiegel[$eSiegeBattleDrill] = GUICtrlCreateLabel("0", $x + 345, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallW, $x - 10, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSiegel[$eSiegeWallWrecker] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleB, $x + 47, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSiegel[$eSiegeBattleBlimp] = GUICtrlCreateLabel("0", $x + 60, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnStoneS, $x + 104, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSiegel[$eSiegeStoneSlammer] = GUICtrlCreateLabel("0", $x + 117, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSiegeB, $x + 161, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSiegel[$eSiegeBarracks] = GUICtrlCreateLabel("0", $x + 174, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLogL, $x + 218, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 246, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSiegel[$eSiegeLogLauncher] = GUICtrlCreateLabel("0", $x + 231, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFlameF, $x + 275, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 303, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSiegel[$eSiegeFlameFlinger] = GUICtrlCreateLabel("0", $x + 288, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleD, $x + 332, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 360, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSiegel[$eSiegeBattleDrill] = GUICtrlCreateLabel("0", $x + 345, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $x = $xStart $y = $yStart + 279 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotal", "Total Donated") & ":", $x - 20, $y - 32, 217, 15) - GUICtrlSetBkColor(-1, 0xD4D4D4) - GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 15, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xD4D4D4) - $g_hLblTotalSiegesQ = GUICtrlCreateLabel("0", $x + 105, $y - 32, 70, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, 0xD4D4D4) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotalXP", "Total XP") & ":", $x - 18 + 212, $y - 32, 216, 15) - GUICtrlSetBkColor(-1, 0xD4D4D4) - $g_hLblTotalSiegesXP = GUICtrlCreateLabel("0", $x + 320, $y - 32, 70, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotal", "Total Donated") & ":", $x - 20, $y - 32, 217, 15) + GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 15, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xD4D4D4) + $g_hLblTotalSiegesQ = GUICtrlCreateLabel("0", $x + 105, $y - 32, 70, 15, $SS_RIGHT) + GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotalXP", "Total XP") & ":", $x - 18 + 212, $y - 32, 216, 15) + GUICtrlSetBkColor(-1, 0xD4D4D4) + $g_hLblTotalSiegesXP = GUICtrlCreateLabel("0", $x + 320, $y - 32, 70, 15, $SS_RIGHT) + GUICtrlSetBkColor(-1, 0xD4D4D4) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart $y = $yStart + 302 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonElixir-Spells", "Elixir Spells"), $x - 20, $y - 32, 217, 15, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonDark-Spells", "Dark Elixir Spells"), $x - 18 + 212, $y - 32, 216, 15, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonElixir-Spells", "Elixir Spells"), $x - 20, $y - 32, 217, 15, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonDark-Spells", "Dark Elixir Spells"), $x - 18 + 212, $y - 32, 216, 15, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xC3C3C3) $x -= 10 $y -= 12 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLightSpell, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellLightning] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealSpell, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellHeal] = GUICtrlCreateLabel("0", $x + 60, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRageSpell, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellRage] = GUICtrlCreateLabel("0", $x + 117, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnJumpSpell, $x + 161, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellJump] = GUICtrlCreateLabel("0", $x + 174, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLightSpell, $x - 10, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellLightning] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealSpell, $x + 47, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellHeal] = GUICtrlCreateLabel("0", $x + 60, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRageSpell, $x + 104, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellRage] = GUICtrlCreateLabel("0", $x + 117, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnJumpSpell, $x + 161, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellJump] = GUICtrlCreateLabel("0", $x + 174, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFreezeSpell, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellFreeze] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCloneSpell, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellClone] = GUICtrlCreateLabel("0", $x + 60, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInvisibilitySpell, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellInvisibility] = GUICtrlCreateLabel("0", $x + 117, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRecallSpell, $x + 161, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellRecall] = GUICtrlCreateLabel("0", $x + 174, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFreezeSpell, $x - 10, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellFreeze] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCloneSpell, $x + 47, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellClone] = GUICtrlCreateLabel("0", $x + 60, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInvisibilitySpell, $x + 104, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellInvisibility] = GUICtrlCreateLabel("0", $x + 117, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRecallSpell, $x + 161, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 189, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellRecall] = GUICtrlCreateLabel("0", $x + 174, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart + 238 $y = $yStart + 290 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPoisonSpell, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellPoison] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnEarthQuakeSpell, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellEarthquake] = GUICtrlCreateLabel("0", $x + 60, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHasteSpell, $x + 104, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellHaste] = GUICtrlCreateLabel("0", $x + 117, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPoisonSpell, $x - 10, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellPoison] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnEarthQuakeSpell, $x + 47, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellEarthquake] = GUICtrlCreateLabel("0", $x + 60, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHasteSpell, $x + 104, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 132, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellHaste] = GUICtrlCreateLabel("0", $x + 117, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) $y += 28 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSkeletonSpell, $x - 10, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellSkeleton] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBatSpell, $x + 47, $y, 24, 24) - $sTxtTip = "" - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - $g_hLblDonSpell[$eSpellBat] = GUICtrlCreateLabel("0", $x + 60, $y + 4, 40, 17, $SS_RIGHT) - GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) - GUICtrlSetColor(-1, $COLOR_BLACK) - _GUICtrlSetTip(-1, $sTxtTip) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSkeletonSpell, $x - 10, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 18, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellSkeleton] = GUICtrlCreateLabel("0", $x + 3, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBatSpell, $x + 47, $y, 24, 24) + $sTxtTip = "" + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlCreateLabel(":", $x + 75, $y + 4, -1, 17) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + $g_hLblDonSpell[$eSpellBat] = GUICtrlCreateLabel("0", $x + 60, $y + 4, 40, 17, $SS_RIGHT) + GUICtrlSetFont(-1, 9, $FW_BOLD, Default, "Arial", $CLEARTYPE_QUALITY) + GUICtrlSetColor(-1, $COLOR_BLACK) + _GUICtrlSetTip(-1, $sTxtTip) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart $y = $yStart + 378 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotal", "Total Donated") & ":", $x - 20, $y - 32, 217, 15) - GUICtrlSetBkColor(-1, 0xD4D4D4) - GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 15, $SS_CENTER) - GUICtrlSetBkColor(-1, 0xD4D4D4) - $g_hLblTotalSpellsQ = GUICtrlCreateLabel("0", $x + 105, $y - 32, 70, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, 0xD4D4D4) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotalXP", "Total XP") & ":", $x - 18 + 212, $y - 32, 216, 15) - GUICtrlSetBkColor(-1, 0xD4D4D4) - $g_hLblTotalSpellsXP = GUICtrlCreateLabel("0", $x + 320, $y - 32, 70, 15, $SS_RIGHT) - GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotal", "Total Donated") & ":", $x - 20, $y - 32, 217, 15) + GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel("", $x + 35 + 130, $y - 32, 30, 15, $SS_CENTER) + GUICtrlSetBkColor(-1, 0xD4D4D4) + $g_hLblTotalSpellsQ = GUICtrlCreateLabel("0", $x + 105, $y - 32, 70, 15, $SS_RIGHT) + GUICtrlSetBkColor(-1, 0xD4D4D4) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Bot - Stats", "LblStatsDonTotalXP", "Total XP") & ":", $x - 18 + 212, $y - 32, 216, 15) + GUICtrlSetBkColor(-1, 0xD4D4D4) + $g_hLblTotalSpellsXP = GUICtrlCreateLabel("0", $x + 320, $y - 32, 70, 15, $SS_RIGHT) + GUICtrlSetBkColor(-1, 0xD4D4D4) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart $y = $yStart + 302 - GUICtrlCreateLabel("", $x + 213, $y - 32, 5, 76) - GUICtrlSetBkColor(-1, 0xC3C3C3) + GUICtrlCreateLabel("", $x + 213, $y - 32, 5, 76) + GUICtrlSetBkColor(-1, 0xC3C3C3) GUICtrlCreateGroup("", -99, -99, 1, 1) EndFunc ;==>CreateDonationsSubTab -#EndRegion +#EndRegion Donations SubTab #Region MultiStats SubTab Func CreateMultiStatsSubTab() @@ -1716,100 +1730,100 @@ Func CreateMultiStatsSubTab() $g_ahGrpVillageAcc[$i] = GUICtrlCreateGroup("", $x - 3 + $i_X * $delX2, $y + $i_Y * $delY2, 180, 90) - ; Village report (resource & info) - $g_ahLblResultGoldNowAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahPicResultGoldNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 75 + $i_X * $delX2, $y + $delY + $i_Y * $delY2, 16, 16) - $g_ahPic2ResultGoldNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 75 + $i_X * $delX2, $y + $delY + $i_Y * $delY2, 16, 16) - $g_ahLblResultTrophyNowAcc[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) - $g_ahPicResultTrophyNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 60 + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2, 16, 16) - - $g_ahLblResultElixirNowAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahPicResultElixirNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 75 + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 16) - $g_ahPic2ResultElixirNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 75 + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 16) - $g_ahLblResultBuilderNowAcc[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) - $g_ahPicResultBuilderNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBuilder, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 16, 14) - - $g_ahLblResultDENowAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahPicResultDENowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 75 + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2, 16, 16) - $g_ahPic2ResultDENowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 75 + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2, 16, 16) - $g_ahLblResultGemNowAcc[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) - $g_ahPicResultGemNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnGem, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2, 16, 14) - - $g_ahLblLabTime[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahPicLabTime[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnLabUpgrade, $x + 75 + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2, 16, 16) - - $g_ahLblPetTime[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahPicPetTime[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetHouse, $x + 75 + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2, 16, 16) - - $g_ahPicArrowLeft[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnArrowLeft, $x - 20 + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 16) - Local $sTxtTip = GetTranslatedFileIni("MBR GUI Design Bottom", "GrpVillage_Info_01", "Switch between village info and stats") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "SwitchVillageInfo") - - $g_ahPicArrowRight[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnArrowRight, $x + 180 + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 16) - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "SwitchVillageInfo2") - - ; Statistics & Runtime - $g_ahLblHourlyStatsGoldAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahLblResultRuntimeNowAcc[$i] = GUICtrlCreateLabel("00:00:00", $x + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) - $g_ahPicResultRuntimeNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnHourGlass, $x + 60 + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2, 16, 16) - - $g_ahLblHourlyStatsElixirAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahLblResultAttacked[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) - $g_ahPicResultAttacked[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgTarget, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 14) - - $g_ahLblHourlyStatsDarkAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahLblResultSkipped[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) - $g_ahPicResultSkipped[$i] = GUICtrlCreateIcon ($g_sLibIconPath, $eIcnBldgX, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2, 16, 14) - - $g_ahLblTroopTime[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) - $g_ahPicTroopTime[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrain, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 15, 14) - $g_ahLblTroopTimeRep[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) - $g_ahPicTroopTimeRep[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrain, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 15, 14) - - ;Third page - $g_ahLbLLootBB[$i][$eLootGoldBB] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahPicResultLootBBGold[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBBGold, $x + 75 + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 15, 15) - - $g_ahLbLLootBB[$i][$eLootElixirBB] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahPicResultLootBBElix[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBBElix, $x + 75 + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 15, 15) - - $g_ahLbLLootBB[$i][$eLootTrophyBB] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahPicResultLootBBTr[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBBTrophy, $x + 75 + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 15, 15) - - $g_ahLbLLootCCGold[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) - $g_ahPicResultCCGold[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnCapitalGold, $x + 60 + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2 - 1, 16, 16) - - $g_ahLbLLootCCMedal[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 2, 55, 17, $SS_RIGHT) - $g_ahPicResultCCMedal[$i] = GUICtrlCreateIcon ($g_sLibIconPath, $eIcnCapitalMedal, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 16) - - $g_ahLblStarLabTime[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) - $g_ahPicStarLabTime[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnStarLaboratory, $x + 75 + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2, 15, 16) - - $g_ahLblTrophiesCC[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 2, 55, 17, $SS_RIGHT) - $g_ahPicTrophiesCC[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnCapitalTrophy, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2, 17, 17) - - $g_ahLblResultBBuilderNowAcc[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) - $g_ahPicResultBBuilderNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBuilder, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 15, 14) - - ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; - - $g_ahGrpDefaultAcc[$i] = $g_ahGrpVillageAcc[$i] & "#" & $g_ahPicArrowLeft[$i] & "#" & $g_ahPicArrowRight[$i] - $g_ahGrpReportAcc[$i] = $g_ahLblResultGoldNowAcc[$i] & "#" & $g_ahLblResultTrophyNowAcc[$i] & "#" & $g_ahPicResultTrophyNowAcc[$i] & "#" & _ - $g_ahPicResultGoldNowAcc[$i] & "#" & $g_ahPicResultElixirNowAcc[$i] & "#" & $g_ahPicResultDENowAcc[$i] & "#" & _ - $g_ahLblResultElixirNowAcc[$i] & "#" & $g_ahLblResultBuilderNowAcc[$i] & "#" & $g_ahPicResultBuilderNowAcc[$i] & "#" & _ - $g_ahLblResultDENowAcc[$i] & "#" & $g_ahLblResultGemNowAcc[$i] & "#" & $g_ahPicResultGemNowAcc[$i] & "#" & $g_ahLblLabTime[$i] & "#" & $g_ahPicLabTime[$i] & "#" & _ - $g_ahLblTroopTime[$i] & "#" & $g_ahPicTroopTime[$i] - $g_ahGrpStatsAcc[$i] = $g_ahLblHourlyStatsGoldAcc[$i] & "#" & $g_ahLblResultRuntimeNowAcc[$i] & "#" & $g_ahPicResultRuntimeNowAcc[$i] & "#" & _ - $g_ahPic2ResultGoldNowAcc[$i] & "#" & $g_ahPic2ResultElixirNowAcc[$i] & "#" & $g_ahPic2ResultDENowAcc[$i] & "#" & _ - $g_ahLblHourlyStatsElixirAcc[$i] & "#" & $g_ahLblResultAttacked[$i] & "#" & $g_ahPicResultAttacked[$i] & "#" & _ - $g_ahLblHourlyStatsDarkAcc[$i] & "#" & $g_ahLblResultSkipped[$i] & "#" & $g_ahPicResultSkipped[$i] & "#" & $g_ahLblPetTime[$i] & "#" & $g_ahPicPetTime[$i] & "#" & _ - $g_ahLblTroopTimeRep[$i] & "#" & $g_ahPicTroopTimeRep[$i] - $g_ahGrpStats2Acc[$i] = $g_ahLbLLootCCGold[$i] & "#" & $g_ahPicResultCCGold[$i] & "#" & $g_ahLbLLootBB[$i][$eLootGoldBB] & "#" & $g_ahPicResultLootBBGold[$i] & "#" & _ - $g_ahLbLLootBB[$i][$eLootElixirBB] & "#" & $g_ahPicResultLootBBElix[$i] & "#" & $g_ahLbLLootBB[$i][$eLootTrophyBB] & "#" & $g_ahPicResultLootBBTr[$i] & "#" & _ - $g_ahLbLLootCCMedal[$i] & "#" & $g_ahPicResultCCMedal[$i] & "#" & $g_ahLblStarLabTime[$i] & "#" & $g_ahPicStarLabTime[$i] & "#" & _ - $g_ahLblTrophiesCC[$i] & "#" & $g_ahPicTrophiesCC[$i] & "#" & $g_ahLblResultBBuilderNowAcc[$i] & "#" & $g_ahPicResultBBuilderNowAcc[$i] + ; Village report (resource & info) + $g_ahLblResultGoldNowAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahPicResultGoldNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 75 + $i_X * $delX2, $y + $delY + $i_Y * $delY2, 16, 16) + $g_ahPic2ResultGoldNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 75 + $i_X * $delX2, $y + $delY + $i_Y * $delY2, 16, 16) + $g_ahLblResultTrophyNowAcc[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) + $g_ahPicResultTrophyNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrophy, $x + 60 + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2, 16, 16) + + $g_ahLblResultElixirNowAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahPicResultElixirNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 75 + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 16) + $g_ahPic2ResultElixirNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 75 + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 16) + $g_ahLblResultBuilderNowAcc[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) + $g_ahPicResultBuilderNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBuilder, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 16, 14) + + $g_ahLblResultDENowAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahPicResultDENowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 75 + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2, 16, 16) + $g_ahPic2ResultDENowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 75 + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2, 16, 16) + $g_ahLblResultGemNowAcc[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) + $g_ahPicResultGemNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnGem, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2, 16, 14) + + $g_ahLblLabTime[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahPicLabTime[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnLabUpgrade, $x + 75 + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2, 16, 16) + + $g_ahLbLPetTime[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahPicPetTime[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetHouse, $x + 75 + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2, 16, 16) + + $g_ahPicArrowLeft[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnArrowLeft, $x - 20 + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 16) + Local $sTxtTip = GetTranslatedFileIni("MBR GUI Design Bottom", "GrpVillage_Info_01", "Switch between village info and stats") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "SwitchVillageInfo") + + $g_ahPicArrowRight[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnArrowRight, $x + 180 + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 16) + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "SwitchVillageInfo2") + + ; Statistics & Runtime + $g_ahLblHourlyStatsGoldAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahLblResultRuntimeNowAcc[$i] = GUICtrlCreateLabel("00:00:00", $x + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) + $g_ahPicResultRuntimeNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnHourGlass, $x + 60 + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2, 16, 16) + + $g_ahLblHourlyStatsElixirAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahLblResultAttacked[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) + $g_ahPicResultAttacked[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgTarget, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 14) + + $g_ahLblHourlyStatsDarkAcc[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahLblResultSkipped[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) + $g_ahPicResultSkipped[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBldgX, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2, 16, 14) + + $g_ahLblTroopTime[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) + $g_ahPicTroopTime[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrain, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 15, 14) + $g_ahLblTroopTimeRep[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) + $g_ahPicTroopTimeRep[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnTrain, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 15, 14) + + ;Third page + $g_ahLbLLootBB[$i][$eLootGoldBB] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahPicResultLootBBGold[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBBGold, $x + 75 + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 15, 15) + + $g_ahLbLLootBB[$i][$eLootElixirBB] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahPicResultLootBBElix[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBBElix, $x + 75 + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 1, 15, 15) + + $g_ahLbLLootBB[$i][$eLootTrophyBB] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahPicResultLootBBTr[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBBTrophy, $x + 75 + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 1, 15, 15) + + $g_ahLbLLootCCGold[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) + $g_ahPicResultCCGold[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnCapitalGold, $x + 60 + $delX + $i_X * $delX2, $y + $delY + $i_Y * $delY2 - 1, 16, 16) + + $g_ahLbLLootCCMedal[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2 + 2, 55, 17, $SS_RIGHT) + $g_ahPicResultCCMedal[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnCapitalMedal, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 2 + $i_Y * $delY2, 16, 16) + + $g_ahLbLStarLabTime[$i] = GUICtrlCreateLabel("", $x + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 70, 17, $SS_RIGHT) + $g_ahPicStarLabTime[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnStarLaboratory, $x + 75 + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2, 15, 16) + + $g_ahLblTrophiesCC[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2 + 2, 55, 17, $SS_RIGHT) + $g_ahPicTrophiesCC[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnCapitalTrophy, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 3 + $i_Y * $delY2, 17, 17) + + $g_ahLblResultBBuilderNowAcc[$i] = GUICtrlCreateLabel("", $x + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 55, 17, $SS_RIGHT) + $g_ahPicResultBBuilderNowAcc[$i] = GUICtrlCreateIcon($g_sLibIconPath, $eIcnBuilder, $x + 60 + $delX + $i_X * $delX2, $y + $delY * 4 + $i_Y * $delY2 + 1, 15, 14) + + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + + $g_ahGrpDefaultAcc[$i] = $g_ahGrpVillageAcc[$i] & "#" & $g_ahPicArrowLeft[$i] & "#" & $g_ahPicArrowRight[$i] + $g_ahGrpReportAcc[$i] = $g_ahLblResultGoldNowAcc[$i] & "#" & $g_ahLblResultTrophyNowAcc[$i] & "#" & $g_ahPicResultTrophyNowAcc[$i] & "#" & _ + $g_ahPicResultGoldNowAcc[$i] & "#" & $g_ahPicResultElixirNowAcc[$i] & "#" & $g_ahPicResultDENowAcc[$i] & "#" & _ + $g_ahLblResultElixirNowAcc[$i] & "#" & $g_ahLblResultBuilderNowAcc[$i] & "#" & $g_ahPicResultBuilderNowAcc[$i] & "#" & _ + $g_ahLblResultDENowAcc[$i] & "#" & $g_ahLblResultGemNowAcc[$i] & "#" & $g_ahPicResultGemNowAcc[$i] & "#" & $g_ahLblLabTime[$i] & "#" & $g_ahPicLabTime[$i] & "#" & _ + $g_ahLblTroopTime[$i] & "#" & $g_ahPicTroopTime[$i] + $g_ahGrpStatsAcc[$i] = $g_ahLblHourlyStatsGoldAcc[$i] & "#" & $g_ahLblResultRuntimeNowAcc[$i] & "#" & $g_ahPicResultRuntimeNowAcc[$i] & "#" & _ + $g_ahPic2ResultGoldNowAcc[$i] & "#" & $g_ahPic2ResultElixirNowAcc[$i] & "#" & $g_ahPic2ResultDENowAcc[$i] & "#" & _ + $g_ahLblHourlyStatsElixirAcc[$i] & "#" & $g_ahLblResultAttacked[$i] & "#" & $g_ahPicResultAttacked[$i] & "#" & _ + $g_ahLblHourlyStatsDarkAcc[$i] & "#" & $g_ahLblResultSkipped[$i] & "#" & $g_ahPicResultSkipped[$i] & "#" & $g_ahLbLPetTime[$i] & "#" & $g_ahPicPetTime[$i] & "#" & _ + $g_ahLblTroopTimeRep[$i] & "#" & $g_ahPicTroopTimeRep[$i] + $g_ahGrpStats2Acc[$i] = $g_ahLbLLootCCGold[$i] & "#" & $g_ahPicResultCCGold[$i] & "#" & $g_ahLbLLootBB[$i][$eLootGoldBB] & "#" & $g_ahPicResultLootBBGold[$i] & "#" & _ + $g_ahLbLLootBB[$i][$eLootElixirBB] & "#" & $g_ahPicResultLootBBElix[$i] & "#" & $g_ahLbLLootBB[$i][$eLootTrophyBB] & "#" & $g_ahPicResultLootBBTr[$i] & "#" & _ + $g_ahLbLLootCCMedal[$i] & "#" & $g_ahPicResultCCMedal[$i] & "#" & $g_ahLbLStarLabTime[$i] & "#" & $g_ahPicStarLabTime[$i] & "#" & _ + $g_ahLblTrophiesCC[$i] & "#" & $g_ahPicTrophiesCC[$i] & "#" & $g_ahLblResultBBuilderNowAcc[$i] & "#" & $g_ahPicResultBBuilderNowAcc[$i] GUICtrlCreateGroup("", -99, -99, 1, 1) @@ -1817,4 +1831,4 @@ Func CreateMultiStatsSubTab() Next EndFunc ;==>CreateMultiStatsSubTab -#EndRegion \ No newline at end of file +#EndRegion MultiStats SubTab \ No newline at end of file diff --git a/COCBot/GUI/MBR GUI Design Child VIllage - Upgrade.au3 b/COCBot/GUI/MBR GUI Design Child VIllage - Upgrade.au3 index 7bb784603..8fdb64d7e 100644 --- a/COCBot/GUI/MBR GUI Design Child VIllage - Upgrade.au3 +++ b/COCBot/GUI/MBR GUI Design Child VIllage - Upgrade.au3 @@ -15,7 +15,7 @@ #include-once Global $g_hGUI_UPGRADE = 0, $g_hGUI_UPGRADE_TAB = 0, $g_hGUI_UPGRADE_TAB_ITEM1 = 0, $g_hGUI_UPGRADE_TAB_ITEM2 = 0, $g_hGUI_UPGRADE_TAB_ITEM3 = 0, _ - $g_hGUI_UPGRADE_TAB_ITEM4 = 0, $g_hGUI_UPGRADE_TAB_ITEM5 = 0 + $g_hGUI_UPGRADE_TAB_ITEM4 = 0, $g_hGUI_UPGRADE_TAB_ITEM5 = 0 ; Lab Global $g_hChkAutoLabUpgrades = 0, $g_hCmbLaboratory = 0, $g_hLblNextUpgrade = 0, $g_hBtnResetLabUpgradeTime = 0, $g_hPicLabUpgrade = 0 @@ -42,10 +42,10 @@ Global $g_hTxtUpgrMinGold = 0, $g_hTxtUpgrMinElixir = 0, $g_hTxtUpgrMinDark = 0 ; Walls Global $g_hChkWalls = 0, $g_hTxtWallMinGold = 0, $g_hTxtWallMinElixir = 0, $g_hRdoUseGold = 0, $g_hRdoUseElixir = 0, $g_hRdoUseElixirGold = 0, $g_hChkSaveWallBldr = 0, _ - $g_hCmbWalls = 4 + $g_hCmbWalls = 4 Global $g_hLblWallCost = 0, $g_hBtnFindWalls = 0 -Global $g_ahWallsCurrentCount[17] = [-1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; elements 0 to 3 are not referenced -Global $g_ahPicWallsLevel[17] = [-1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; elements 0 to 3 are not referenced +Global $g_ahWallsCurrentCount[18] = [-1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; elements 0 to 3 are not referenced +Global $g_ahPicWallsLevel[18] = [-1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; elements 0 to 3 are not referenced ; Auto Upgrade Global $g_hChkAutoUpgrade = 0, $g_hLblAutoUpgrade = 0, $g_hTxtAutoUpgradeLog = 0 @@ -64,141 +64,142 @@ Func CreateVillageUpgrade() GUISwitch($g_hGUI_UPGRADE) $g_hGUI_UPGRADE_TAB = GUICtrlCreateTab(0, 0, $g_iSizeWGrpTab2, $g_iSizeHGrpTab2, BitOR($TCS_MULTILINE, $TCS_RIGHTJUSTIFY)) $g_hGUI_UPGRADE_TAB_ITEM1 = GUICtrlCreateTabItem(GetTranslatedFileIni("MBR Main GUI", "Tab_02_STab_03_STab_01", "Laboratory")) - CreateLaboratorySubTab() + CreateLaboratorySubTab() $g_hGUI_UPGRADE_TAB_ITEM2 = GUICtrlCreateTabItem(GetTranslatedFileIni("MBR Main GUI", "Tab_02_STab_03_STab_02", "Heroes")) - CreateHeroesSubTab() + CreateHeroesSubTab() $g_hGUI_UPGRADE_TAB_ITEM3 = GUICtrlCreateTabItem(GetTranslatedFileIni("MBR Main GUI", "Tab_02_STab_03_STab_03", "Buildings")) - CreateBuildingsSubTab() + CreateBuildingsSubTab() $g_hGUI_UPGRADE_TAB_ITEM5 = GUICtrlCreateTabItem(GetTranslatedFileIni("MBR Main GUI", "Tab_02_STab_03_STab_05", "Auto Upgrade")) - CreateAutoUpgradeSubTab() + CreateAutoUpgradeSubTab() $g_hGUI_UPGRADE_TAB_ITEM4 = GUICtrlCreateTabItem(GetTranslatedFileIni("MBR Main GUI", "Tab_02_STab_03_STab_04", "Walls")) - CreateWallsSubTab() + CreateWallsSubTab() GUICtrlCreateTabItem("") EndFunc ;==>CreateVillageUpgrade Func CreateLaboratorySubTab() Local $sTxtNames = GetTranslatedFileIni("MBR Global GUI Design", "Any", "Any") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBarbarians", "Barbarians") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtArchers", "Archers") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGiants", "Giants") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGoblins", "Goblins") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWallBreakers", "Wall Breakers") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBalloons", "Balloons") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWizards", "Wizards") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHealers", "Healers") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragons", "Dragons") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtPekkas", "Pekkas") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBabyDragons", "Baby Dragons") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtMiners", "Miners") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtEDragon", "Electro Dragon") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtYeti", "Yeti") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragonRider", "Dragon Rider") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtElectroTitans", "Electro Titans") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtLightningSpells", "Lightning Spell") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtHealingSpells", "Healing Spell") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtRageSpells", "Rage Spell") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtJumpSpells", "Jump Spell") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtFreezeSpells", "Freeze Spell") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtCloneSpells", "Clone Spell")& "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtInvisibilitySpells", "Invisibility Spell")& "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtRecallSpells", "Recall Spell")& "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtPoisonSpells", "Poison Spell") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtEarthQuakeSpells", "EarthQuake Spell") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtHasteSpells", "Haste Spell") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtSkeletonSpells", "Skeleton Spell") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtBatSpells", "Bat Spell") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtMinions", "Minions") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHogRiders", "Hog Riders") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtValkyries", "Valkyries") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGolems", "Golems") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWitches", "Witches") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtLavaHounds", "Lava Hounds") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBowlers", "Bowlers") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtIceGolems", "Ice Golems") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHeadhunters", "Headhunters") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtAppWards", "App. Warden") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWallWreckers", "Wall Wreckers") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBattleBlimps", "Battle Blimps") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtStoneSlammers", "Stone Slammers") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSiegeBarracks", "Siege Barracks") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtLogLaunchers", "Log Launchers") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtFlameFlingers", "Flame Flingers") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBattleDrills", "Battle Drills") + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBarbarians", "Barbarians") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtArchers", "Archers") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGiants", "Giants") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGoblins", "Goblins") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWallBreakers", "Wall Breakers") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBalloons", "Balloons") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWizards", "Wizards") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHealers", "Healers") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragons", "Dragons") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtPekkas", "Pekkas") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBabyDragons", "Baby Dragons") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtMiners", "Miners") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtEDragon", "Electro Dragon") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtYeti", "Yeti") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragonRider", "Dragon Rider") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtElectroTitans", "Electro Titans") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtRootRiders", "Root Riders") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtLightningSpells", "Lightning Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtHealingSpells", "Healing Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtRageSpells", "Rage Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtJumpSpells", "Jump Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtFreezeSpells", "Freeze Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtCloneSpells", "Clone Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtInvisibilitySpells", "Invisibility Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtRecallSpells", "Recall Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtPoisonSpells", "Poison Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtEarthQuakeSpells", "EarthQuake Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtHasteSpells", "Haste Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtSkeletonSpells", "Skeleton Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtBatSpells", "Bat Spell") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtMinions", "Minions") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHogRiders", "Hog Riders") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtValkyries", "Valkyries") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtGolems", "Golems") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWitches", "Witches") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtLavaHounds", "Lava Hounds") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBowlers", "Bowlers") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtIceGolems", "Ice Golems") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtHeadhunters", "Headhunters") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtAppWards", "App. Warden") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWallWreckers", "Wall Wreckers") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBattleBlimps", "Battle Blimps") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtStoneSlammers", "Stone Slammers") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtSiegeBarracks", "Siege Barracks") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtLogLaunchers", "Log Launchers") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtFlameFlingers", "Flame Flingers") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBattleDrills", "Battle Drills") Local $sTxtSLNames = GetTranslatedFileIni("MBR Global GUI Design", "Any", "Any") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtRagedBarbarian", "Raged Barbarian") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtSneakyArcher", "Sneaky Archer") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtBoxerGiant", "Boxer Giant") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtBetaMinion", "Beta Minion") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtBomber", "Bomber") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtBabyDragon", "Baby Dragon") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtCannonCart", "Cannon Cart") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtNightWitch", "Night Witch") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtDropShip", "Drop Ship") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtSuperPekka", "Super Pekka") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtHogGlider", "Hog Glider") & "|" & _ - GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtEFWizard", "ElectroFire Wizard") + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtRagedBarbarian", "Raged Barbarian") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtSneakyArcher", "Sneaky Archer") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtBoxerGiant", "Boxer Giant") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtBetaMinion", "Beta Minion") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtBomber", "Bomber") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtBabyDragon", "Baby Dragon") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtCannonCart", "Cannon Cart") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtNightWitch", "Night Witch") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtDropShip", "Drop Ship") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtSuperPekka", "Super Pekka") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtHogGlider", "Hog Glider") & "|" & _ + GetTranslatedFileIni("MBR Global GUI Design Names Builderbase Troops", "TxtEFWizard", "ElectroFire Wizard") Local $x = 25, $y = 45 GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "Group_01", "Laboratory"), $x - 20, $y - 20, $g_iSizeWGrpTab3, 100) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLabUpgrade, $x, $y, 64, 64) - $g_hChkAutoLabUpgrades = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "ChkAutoLabUpgrades", "Auto Laboratory Upgrades"), $x + 80, $y + 5, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "ChkAutoLabUpgrades_Info_01", "Check box to enable automatically starting Upgrades in laboratory")) - GUICtrlSetOnEvent(-1, "chkLab") - $g_hLblNextUpgrade = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "LblNextUpgrade", "Next one") & ":", $x + 80, $y + 38, 50, -1) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_hCmbLaboratory = GUICtrlCreateCombo("", $x + 135, $y + 35, 140, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL, $WS_VSCROLL)) - GUICtrlSetData(-1, $sTxtNames, GetTranslatedFileIni("MBR Global GUI Design", "Any", "Any")) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "CmbLaboratory_Info_01", "Select the troop type to upgrade with this pull down menu") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "CmbLaboratory_Info_02", "The troop icon will appear on the right.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "CmbLaboratory_Info_03", "Any Dark Spell/Troop have priority over Upg Heroes!")) - GUICtrlSetState(-1, $GUI_DISABLE) - GUICtrlSetOnEvent(-1, "cmbLab") - ; Red button, will show on upgrade in progress. Temp unhide here and in Func ChkLab() if GUI needs editing. - $g_hBtnResetLabUpgradeTime = GUICtrlCreateButton("", $x + 120 + 172, $y + 36, 18, 18, BitOR($BS_PUSHLIKE,$BS_DEFPUSHBUTTON)) - GUICtrlSetBkColor(-1, $COLOR_ERROR) - ;_GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRedLight) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_01", "Visible Red button means that laboratory upgrade in process") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_02", "This will automatically disappear when near time for upgrade to be completed.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_03", "If upgrade has been manually finished with gems before normal end time,") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_04", "Click red button to reset internal upgrade timer BEFORE STARTING NEW UPGRADE") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_05", "Caution - Unnecessary timer reset will force constant checks for lab status")) - GUICtrlSetState(-1, $GUI_DISABLE) - GUICtrlSetState(-1, $GUI_HIDE) ; comment this line out to edit GUI - GUICtrlSetOnEvent(-1, "ResetLabUpgradeTime") - $g_hPicLabUpgrade = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBlank, $x + 330, $y, 64, 64) - GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLabUpgrade, $x, $y, 64, 64) + $g_hChkAutoLabUpgrades = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "ChkAutoLabUpgrades", "Auto Laboratory Upgrades"), $x + 80, $y + 5, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "ChkAutoLabUpgrades_Info_01", "Check box to enable automatically starting Upgrades in laboratory")) + GUICtrlSetOnEvent(-1, "chkLab") + $g_hLblNextUpgrade = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "LblNextUpgrade", "Next one") & ":", $x + 80, $y + 38, 50, -1) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_hCmbLaboratory = GUICtrlCreateCombo("", $x + 135, $y + 35, 140, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL, $WS_VSCROLL)) + GUICtrlSetData(-1, $sTxtNames, GetTranslatedFileIni("MBR Global GUI Design", "Any", "Any")) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "CmbLaboratory_Info_01", "Select the troop type to upgrade with this pull down menu") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "CmbLaboratory_Info_02", "The troop icon will appear on the right.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "CmbLaboratory_Info_03", "Any Dark Spell/Troop have priority over Upg Heroes!")) + GUICtrlSetState(-1, $GUI_DISABLE) + GUICtrlSetOnEvent(-1, "cmbLab") + ; Red button, will show on upgrade in progress. Temp unhide here and in Func ChkLab() if GUI needs editing. + $g_hBtnResetLabUpgradeTime = GUICtrlCreateButton("", $x + 120 + 172, $y + 36, 18, 18, BitOR($BS_PUSHLIKE, $BS_DEFPUSHBUTTON)) + GUICtrlSetBkColor(-1, $COLOR_ERROR) + ;_GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRedLight) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_01", "Visible Red button means that laboratory upgrade in process") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_02", "This will automatically disappear when near time for upgrade to be completed.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_03", "If upgrade has been manually finished with gems before normal end time,") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_04", "Click red button to reset internal upgrade timer BEFORE STARTING NEW UPGRADE") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_05", "Caution - Unnecessary timer reset will force constant checks for lab status")) + GUICtrlSetState(-1, $GUI_DISABLE) + GUICtrlSetState(-1, $GUI_HIDE) ; comment this line out to edit GUI + GUICtrlSetOnEvent(-1, "ResetLabUpgradeTime") + $g_hPicLabUpgrade = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBlank, $x + 330, $y, 64, 64) + GUICtrlSetState(-1, $GUI_HIDE) GUICtrlCreateGroup("", -99, -99, 1, 1) $y += 110 GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "Group_02", "Star Laboratory"), $x - 20, $y - 20, $g_iSizeWGrpTab3, 100) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnStarLaboratory, $x, $y, 64, 64) - $g_hChkAutoStarLabUpgrades = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "ChkAutoStarLabUpgrades", "Auto Star Laboratory Upgrades"), $x + 80, $y + 5, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "ChkAutoStarLabUpgrades_Info_01", "Check box to enable automatically starting Upgrades in star laboratory")) - GUICtrlSetOnEvent(-1, "chkStarLab") - $g_hLblNextSLUpgrade = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "LblNextUpgrade", "Next one") & ":", $x + 80, $y + 38, 50, -1) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_hCmbStarLaboratory = GUICtrlCreateCombo("", $x + 135, $y + 35, 140, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL, $WS_VSCROLL)) - GUICtrlSetData(-1, $sTxtSLNames, GetTranslatedFileIni("MBR Global GUI Design", "Any", "Any")) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "CmbLaboratory_Info_01", "Select the troop type to upgrade with this pull down menu") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "CmbLaboratory_Info_02", "The troop icon will appear on the right.")) - GUICtrlSetState(-1, $GUI_DISABLE) - GUICtrlSetOnEvent(-1, "cmbStarLab") - ; Red button, will show on upgrade in progress. Temp unhide here and in Func ChkLab() if GUI needs editing. - $g_hBtnResetStarLabUpgradeTime = GUICtrlCreateButton("", $x + 120 + 172, $y + 36, 18, 18, BitOR($BS_PUSHLIKE,$BS_DEFPUSHBUTTON)) - GUICtrlSetBkColor(-1, $COLOR_ERROR) - ;_GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRedLight) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_01", "Visible Red button means that laboratory upgrade in process") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_02", "This will automatically disappear when near time for upgrade to be completed.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_03", "If upgrade has been manually finished with gems before normal end time,") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_04", "Click red button to reset internal upgrade timer BEFORE STARTING NEW UPGRADE") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_05", "Caution - Unnecessary timer reset will force constant checks for lab status")) - GUICtrlSetState(-1, $GUI_DISABLE) - GUICtrlSetState(-1, $GUI_HIDE) ; comment this line out to edit GUI - GUICtrlSetOnEvent(-1, "ResetStarLabUpgradeTime") - $g_hPicStarLabUpgrade = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBlank, $x + 330, $y, 64, 64) - GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnStarLaboratory, $x, $y, 64, 64) + $g_hChkAutoStarLabUpgrades = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "ChkAutoStarLabUpgrades", "Auto Star Laboratory Upgrades"), $x + 80, $y + 5, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "ChkAutoStarLabUpgrades_Info_01", "Check box to enable automatically starting Upgrades in star laboratory")) + GUICtrlSetOnEvent(-1, "chkStarLab") + $g_hLblNextSLUpgrade = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "LblNextUpgrade", "Next one") & ":", $x + 80, $y + 38, 50, -1) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_hCmbStarLaboratory = GUICtrlCreateCombo("", $x + 135, $y + 35, 140, 25, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL, $WS_VSCROLL)) + GUICtrlSetData(-1, $sTxtSLNames, GetTranslatedFileIni("MBR Global GUI Design", "Any", "Any")) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "CmbLaboratory_Info_01", "Select the troop type to upgrade with this pull down menu") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "CmbLaboratory_Info_02", "The troop icon will appear on the right.")) + GUICtrlSetState(-1, $GUI_DISABLE) + GUICtrlSetOnEvent(-1, "cmbStarLab") + ; Red button, will show on upgrade in progress. Temp unhide here and in Func ChkLab() if GUI needs editing. + $g_hBtnResetStarLabUpgradeTime = GUICtrlCreateButton("", $x + 120 + 172, $y + 36, 18, 18, BitOR($BS_PUSHLIKE, $BS_DEFPUSHBUTTON)) + GUICtrlSetBkColor(-1, $COLOR_ERROR) + ;_GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRedLight) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_01", "Visible Red button means that laboratory upgrade in process") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_02", "This will automatically disappear when near time for upgrade to be completed.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_03", "If upgrade has been manually finished with gems before normal end time,") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_04", "Click red button to reset internal upgrade timer BEFORE STARTING NEW UPGRADE") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Laboratory", "BtnResetLabUpgradeTime_Info_05", "Caution - Unnecessary timer reset will force constant checks for lab status")) + GUICtrlSetState(-1, $GUI_DISABLE) + GUICtrlSetState(-1, $GUI_HIDE) ; comment this line out to edit GUI + GUICtrlSetOnEvent(-1, "ResetStarLabUpgradeTime") + $g_hPicStarLabUpgrade = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBlank, $x + 330, $y, 64, 64) + GUICtrlSetState(-1, $GUI_HIDE) GUICtrlCreateGroup("", -99, -99, 1, 1) EndFunc ;==>CreateLaboratorySubTab @@ -207,152 +208,160 @@ Func CreateHeroesSubTab() Local $sTxtTip = "" Local $x = 25, $y = 45 GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "Group_01", "Upgrade Heroes Continuously"), $x - 20, $y - 20, $g_iSizeWGrpTab3 - 4, $g_iSizeHGrpTab3) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "LblAutoUpgrading_01", "Auto upgrading of your Heroes"), $x - 10, $y, -1, -1) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "LblAutoUpgrading_01", "Auto upgrading of your Heroes"), $x - 10, $y, -1, -1) $y += 20 - $g_hChkUpgradeKing = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeKing_Info_01", "Enable upgrading of your King when you have enough Dark Elixir (Saving Min. Dark Elixir)") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeKing_Info_02", "You can manually locate your Kings Altar on Misc Tab") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeHeroes_Info_01", "Verify your Resume Bot Dark Elixir value at Misc Tab vs Saving Min. Dark Elixir here!") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeKing_Info_04", "Enabled with TownHall 7 and higher") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradeKing") - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnKingUpgr, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hPicChkKingSleepWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSleepingKing, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetState(-1,$GUI_HIDE) + $g_hChkUpgradeKing = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeKing_Info_01", "Enable upgrading of your King when you have enough Dark Elixir (Saving Min. Dark Elixir)") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeKing_Info_02", "You can manually locate your Kings Altar on Misc Tab") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeHeroes_Info_01", "Verify your Resume Bot Dark Elixir value at Misc Tab vs Saving Min. Dark Elixir here!") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeKing_Info_04", "Enabled with TownHall 7 and higher") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradeKing") + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnKingUpgr, $x + 18, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hPicChkKingSleepWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSleepingKing, $x + 18, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetState(-1, $GUI_HIDE) $x += 95 - $g_hChkUpgradeQueen = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeQueen_Info_01", "Enable upgrading of your Queen when you have enough Dark Elixir (Saving Min. Dark Elixir)") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeQueen_Info_02", "You can manually locate your Queens Altar on Misc Tab") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeHeroes_Info_01", -1) & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeQueen_Info_03", "Enabled with TownHall 9 and higher") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradeQueen") - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnQueenUpgr, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hPicChkQueenSleepWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSleepingQueen, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetState(-1,$GUI_HIDE) + $g_hChkUpgradeQueen = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeQueen_Info_01", "Enable upgrading of your Queen when you have enough Dark Elixir (Saving Min. Dark Elixir)") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeQueen_Info_02", "You can manually locate your Queens Altar on Misc Tab") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeHeroes_Info_01", -1) & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeQueen_Info_03", "Enabled with TownHall 9 and higher") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradeQueen") + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnQueenUpgr, $x + 18, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hPicChkQueenSleepWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSleepingQueen, $x + 18, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetState(-1, $GUI_HIDE) $x += 95 - $g_hChkUpgradeWarden = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeWarden_Info_01", "Enable upgrading of your Warden when you have enough Elixir (Saving Min. Elixir)") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeWarden_Info_02", "You can manually locate your Wardens Altar on Misc Tab") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeHeroes_Info_01", -1) & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeWarden_Info_03", "Enabled with TownHall 11") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradeWarden") - GUICtrlSetColor ( -1, $COLOR_ERROR ) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWardenUpgr, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hPicChkWardenSleepWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSleepingWarden, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetState(-1,$GUI_HIDE) + $g_hChkUpgradeWarden = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeWarden_Info_01", "Enable upgrading of your Warden when you have enough Elixir (Saving Min. Elixir)") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeWarden_Info_02", "You can manually locate your Wardens Altar on Misc Tab") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeHeroes_Info_01", -1) & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeWarden_Info_03", "Enabled with TownHall 11") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradeWarden") + GUICtrlSetColor(-1, $COLOR_ERROR) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWardenUpgr, $x + 18, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hPicChkWardenSleepWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSleepingWarden, $x + 18, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetState(-1, $GUI_HIDE) $x += 95 - $g_hChkUpgradeChampion = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeChampion_Info_01", "Enable upgrading of your Royal Champion when you have enough Dark Elixir (Saving Min. Dark Elixir)") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeChampion_Info_02", "You can manually locate your Royal Champion Altar on Misc Tab") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeHeroes_Info_01", -1) & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeChampion_Info_03", "Enabled with TownHall 13 and higher") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradeChampion") - GUICtrlSetColor ( -1, $COLOR_ERROR ) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnChampionUpgr, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) - $g_hPicChkChampionSleepWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSleepingChampion, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetState(-1,$GUI_HIDE) + $g_hChkUpgradeChampion = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeChampion_Info_01", "Enable upgrading of your Royal Champion when you have enough Dark Elixir (Saving Min. Dark Elixir)") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeChampion_Info_02", "You can manually locate your Royal Champion Altar on Misc Tab") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeHeroes_Info_01", -1) & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeChampion_Info_03", "Enabled with TownHall 13 and higher") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradeChampion") + GUICtrlSetColor(-1, $COLOR_ERROR) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnChampionUpgr, $x + 18, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + $g_hPicChkChampionSleepWait = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSleepingChampion, $x + 18, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetState(-1, $GUI_HIDE) $y += 90 $x = 25 - $g_hLblHeroReservedBuilderTop = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "LblHeroReservedBuilderTop", "Reserve ") , $x, $y + 15, -1, -1) - $g_hCmbHeroReservedBuilder = GUICtrlCreateCombo("", $x + 50, $y + 11, 30, 21, $CBS_DROPDOWNLIST, $WS_EX_RIGHT) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "CmbHeroReservedBuilder", "At least this many builders have to upgrade heroes, or wait for it.")) - GUICtrlSetData(-1, "|0|1|2|3", "0") - GUICtrlSetOnEvent(-1, "cmbHeroReservedBuilder") - $g_hLblHeroReservedBuilderBottom = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "LblHeroReservedBuilderBottom", "builder/s for hero upgrade"), $x, $y + 35, -1, -1) - -; Pets - Local $x = 25, $y = 220 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Pets", "LblAutoUpgrading_02", "Auto upgrading of your Pets"), $x - 10, $y, -1, -1) - - $y += 20 - $g_hChkUpgradePets[$ePetLassi] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeLassi_Info_01", "Enable upgrading of your Pet, Lassi, when you have enough Dark Elixir") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradePets") - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetLassi, $x + 18, $y + 5, 48, 48) - _GUICtrlSetTip(-1, $sTxtTip) + $g_hLblHeroReservedBuilderTop = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "LblHeroReservedBuilderTop", "Reserve "), $x, $y + 15, -1, -1) + $g_hCmbHeroReservedBuilder = GUICtrlCreateCombo("", $x + 50, $y + 11, 30, 21, $CBS_DROPDOWNLIST, $WS_EX_RIGHT) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "CmbHeroReservedBuilder", "At least this many builders have to upgrade heroes, or wait for it.")) + GUICtrlSetData(-1, "|0|1|2|3", "0") + GUICtrlSetOnEvent(-1, "cmbHeroReservedBuilder") + $g_hLblHeroReservedBuilderBottom = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "LblHeroReservedBuilderBottom", "builder/s for hero upgrade"), $x, $y + 35, -1, -1) + + ; Pets + Local $x = 25, $y = 230 + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Pets", "LblAutoUpgrading_02", "Auto upgrading of your Pets"), $x - 10, $y, -1, -1) + $x += 20 + $y += 15 + $g_hChkUpgradePets[$ePetLassi] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeLassi_Info_01", "Enable upgrading of your Pet, Lassi, when you have enough Dark Elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradePets") + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetLassi, $x + 23, $y + 5, 48, 48) + _GUICtrlSetTip(-1, $sTxtTip) $x += 95 - $g_hChkUpgradePets[$ePetElectroOwl] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeElectroOwl_Info_01", "Enable upgrading of your Pet, Electro Owl, when you have enough Dark Elixir") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradePets") - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetElectroOwl, $x + 18, $y + 5, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) + $g_hChkUpgradePets[$ePetElectroOwl] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeElectroOwl_Info_01", "Enable upgrading of your Pet, Electro Owl, when you have enough Dark Elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradePets") + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetElectroOwl, $x + 23, $y + 5, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) $x += 95 - $g_hChkUpgradePets[$ePetMightyYak] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeMightyYak_Info_01", "Enable upgrading of your Pet, Mighty Yak, when you have enough Dark Elixir") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradePets") - GUICtrlSetColor ( -1, $COLOR_ERROR ) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetMightyYak, $x + 18, $y - 1, 60, 60) - _GUICtrlSetTip(-1, $sTxtTip) + $g_hChkUpgradePets[$ePetMightyYak] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeMightyYak_Info_01", "Enable upgrading of your Pet, Mighty Yak, when you have enough Dark Elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradePets") + GUICtrlSetColor(-1, $COLOR_ERROR) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetMightyYak, $x + 23, $y - 1, 60, 60) + _GUICtrlSetTip(-1, $sTxtTip) $x += 95 - $g_hChkUpgradePets[$ePetUnicorn] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeUnicorn_Info_01", "Enable upgrading of your Pet, Unicorn, when you have enough Dark Elixir") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradePets") - GUICtrlSetColor ( -1, $COLOR_ERROR ) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetUnicorn, $x + 18, $y - 4, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) - - ;----------------------------------------------NEW - $x = 25 - $y += 80 - $g_hChkUpgradePets[$ePetFrosty] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeFrosty_Info_01", "Enable upgrading of your Pet, Frosty, when you have enough Dark Elixir") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradePets") - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetFrosty, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) + $g_hChkUpgradePets[$ePetUnicorn] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeUnicorn_Info_01", "Enable upgrading of your Pet, Unicorn, when you have enough Dark Elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradePets") + GUICtrlSetColor(-1, $COLOR_ERROR) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetUnicorn, $x + 23, $y - 4, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) - $x += 95 - $g_hChkUpgradePets[$ePetDiggy] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeDiggy_Info_01", "Enable upgrading of your Pet, Diggy, when you have enough Dark Elixir") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradePets") - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetDiggy, $x + 18, $y + 2, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) + $x = 25 + $y += 65 + $g_hChkUpgradePets[$ePetFrosty] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeFrosty_Info_01", "Enable upgrading of your Pet, Frosty, when you have enough Dark Elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradePets") + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetFrosty, $x + 18, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += 85 + $g_hChkUpgradePets[$ePetDiggy] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeDiggy_Info_01", "Enable upgrading of your Pet, Diggy, when you have enough Dark Elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradePets") + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetDiggy, $x + 18, $y + 2, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += 85 + $g_hChkUpgradePets[$ePetPoisonLizard] = GUICtrlCreateCheckbox("", $x + 5, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradePoisonLizard_Info_01", "Enable upgrading of your Pet, Poison Lizard, when you have enough Dark Elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradePets") + GUICtrlSetColor(-1, $COLOR_ERROR) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetPoisonLizard, $x + 18, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + + $x += 85 + $g_hChkUpgradePets[$ePetPhoenix] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradePhoenix_Info_01", "Enable upgrading of your Pet, Phoenix, when you have enough Dark Elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradePets") + GUICtrlSetColor(-1, $COLOR_ERROR) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetPhoenix, $x + 13, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) - $x += 95 - $g_hChkUpgradePets[$ePetPoisonLizard] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradePoisonLizard_Info_01", "Enable upgrading of your Pet, Poison Lizard, when you have enough Dark Elixir") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradePets") - GUICtrlSetColor ( -1, $COLOR_ERROR ) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetPoisonLizard, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) + $x += 80 + $g_hChkUpgradePets[$ePetSpiritFox] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) + $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradeSpiritFox_Info_01", "Enable upgrading of your Pet, Spirit Fox, when you have enough Dark Elixir") + _GUICtrlSetTip(-1, $sTxtTip) + GUICtrlSetOnEvent(-1, "chkUpgradePets") + GUICtrlSetColor(-1, $COLOR_ERROR) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSpiritFox, $x + 8, $y, 64, 64) + _GUICtrlSetTip(-1, $sTxtTip) + + ;-------------------------------------------------- + GUICtrlCreateGroup("", -99, -99, 1, 1) - $x += 95 - $g_hChkUpgradePets[$ePetPhoenix] = GUICtrlCreateCheckbox("", $x, $y + 25, 17, 17) - $sTxtTip = GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Heroes", "ChkUpgradePhoenix_Info_01", "Enable upgrading of your Pet, Phoenix, when you have enough Dark Elixir") - _GUICtrlSetTip(-1, $sTxtTip) - GUICtrlSetOnEvent(-1, "chkUpgradePets") - GUICtrlSetColor ( -1, $COLOR_ERROR ) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnPetPhoenix, $x + 18, $y, 64, 64) - _GUICtrlSetTip(-1, $sTxtTip) - - ;-------------------------------------------------- - GUICtrlCreateGroup("", -99, -99, 1, 1) - EndFunc ;==>CreateHeroesSubTab Func CreateBuildingsSubTab() @@ -372,87 +381,87 @@ Func CreateBuildingsSubTab() $x -= 7 ; table header $y -= 7 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_01", "Unit Name"), $x + 71, $y, 70, 18) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_02", "Lvl"), $x + 153, $y, 40, 18) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_03", "Type"), $x + 173, $y, 50, 18) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_04", "Cost"), $x + 219, $y, 50, 18) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_05", "Time"), $x + 270, $y, 50, 18) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_06", "Rep."), $x + 392, $y, 50, 18) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_07", "Estimated End"), $x + 315, $y, 75, 18) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_01", "Unit Name"), $x + 71, $y, 70, 18) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_02", "Lvl"), $x + 153, $y, 40, 18) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_03", "Type"), $x + 173, $y, 50, 18) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_04", "Cost"), $x + 219, $y, 50, 18) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_05", "Time"), $x + 270, $y, 50, 18) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_06", "Rep."), $x + 392, $y, 50, 18) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "Table header_07", "Estimated End"), $x + 315, $y, 75, 18) $y += 13 ; Create upgrade GUI slots 0 to $g_iUpgradeSlots ; Can add more slots with $g_iUpgradeSlots value in Global variables file, 6 is minimum and max limit is 15 before GUI is too long. For $i = 0 To $g_iUpgradeSlots - 1 - $g_hPicUpgradeStatus[$i]= _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRedLight, $x - 10, $y + 1, 14, 14) - _GUICtrlSetTip(-1, $sTxtStatus) + $g_hPicUpgradeStatus[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRedLight, $x - 10, $y + 1, 14, 14) + _GUICtrlSetTip(-1, $sTxtStatus) $g_hChkUpgrade[$i] = GUICtrlCreateCheckbox($i + 1 & ":", $x + 5, $y + 1, 34, 15) - _GUICtrlSetTip(-1, $sTxtCheckBox & " #" & $i + 1 & " " & $sTxtAfterUsing) -; GUICtrlSetFont(-1, 8) - GUICtrlSetOnEvent(-1, "btnchkbxUpgrade") + _GUICtrlSetTip(-1, $sTxtCheckBox & " #" & $i + 1 & " " & $sTxtAfterUsing) + ; GUICtrlSetFont(-1, 8) + GUICtrlSetOnEvent(-1, "btnchkbxUpgrade") $g_hTxtUpgradeName[$i] = GUICtrlCreateInput("", $x + 40, $y, 107, 17, BitOR($ES_CENTER, $GUI_SS_DEFAULT_INPUT, $ES_READONLY, $ES_NUMBER)) -; GUICtrlSetFont(-1, 8) - _GUICtrlSetTip(-1, $sTxtShowName) + ; GUICtrlSetFont(-1, 8) + _GUICtrlSetTip(-1, $sTxtShowName) $g_hTxtUpgradeLevel[$i] = GUICtrlCreateInput("", $x + 150, $y, 23, 17, BitOR($ES_CENTER, $GUI_SS_DEFAULT_INPUT, $ES_READONLY, $ES_NUMBER)) -; GUICtrlSetFont(-1, 8) - _GUICtrlSetTip(-1, $sTxtShowLevel) - $g_hPicUpgradeType[$i]= _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBlank, $x + 178, $y + 1, 15, 15) - _GUICtrlSetTip(-1, $sTxtShowType) - GUICtrlSetOnEvent(-1, "picUpgradeTypeLocation") + ; GUICtrlSetFont(-1, 8) + _GUICtrlSetTip(-1, $sTxtShowLevel) + $g_hPicUpgradeType[$i] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBlank, $x + 178, $y + 1, 15, 15) + _GUICtrlSetTip(-1, $sTxtShowType) + GUICtrlSetOnEvent(-1, "picUpgradeTypeLocation") $g_hTxtUpgradeValue[$i] = GUICtrlCreateInput("", $x + 197, $y, 65, 17, BitOR($ES_CENTER, $GUI_SS_DEFAULT_INPUT, $ES_READONLY, $ES_NUMBER)) -; GUICtrlSetFont(-1, 8) - _GUICtrlSetTip(-1, $sTxtShowCost) + ; GUICtrlSetFont(-1, 8) + _GUICtrlSetTip(-1, $sTxtShowCost) ;HArchH was 35 wide. $g_hTxtUpgradeTime[$i] = GUICtrlCreateInput("", $x + 266, $y, 45, 17, BitOR($ES_CENTER, $GUI_SS_DEFAULT_INPUT, $ES_READONLY, $ES_NUMBER)) -; GUICtrlSetFont(-1, 8) - _GUICtrlSetTip(-1, $sTxtShowTime) + ; GUICtrlSetFont(-1, 8) + _GUICtrlSetTip(-1, $sTxtShowTime) ;HArchH was 305 start and 85 wide $g_hTxtUpgradeEndTime[$i] = GUICtrlCreateInput("", $x + 315, $y, 75, 17, BitOR($ES_LEFT, $GUI_SS_DEFAULT_INPUT, $ES_READONLY, $ES_NUMBER)) - GUICtrlSetFont(-1, 7) - _GUICtrlSetTip(-1, $sTxtShowEndTime) + GUICtrlSetFont(-1, 7) + _GUICtrlSetTip(-1, $sTxtShowEndTime) $g_hChkUpgradeRepeat[$i] = GUICtrlCreateCheckbox("", $x + 395, $y + 1, 15, 15) -; GUICtrlSetFont(-1, 8) - _GUICtrlSetTip(-1, $sTxtChkRepeat) - GUICtrlSetOnEvent(-1, "btnchkbxRepeat") + ; GUICtrlSetFont(-1, 8) + _GUICtrlSetTip(-1, $sTxtChkRepeat) + GUICtrlSetOnEvent(-1, "btnchkbxRepeat") - $y += 22 + $y += 22 Next GUICtrlCreateGroup("", -99, -99, 1, 1) $x += 5 $y += 8 - _GUICtrlCreateIcon ($g_sLibIconPath, $eIcnGold, $x - 15, $y, 15, 15) - GUICtrlCreateLabel( GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "LblUpgrMinGold", "Min. Gold") & ":", $x + 5, $y + 3, -1, -1) - $g_hTxtUpgrMinGold = GUICtrlCreateInput("150000", $x + 55, $y, 61, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinGold_Info_01", "Save this much Gold after the upgrade completes.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinGold_Info_02", "Set this value as needed to save for searching, or wall upgrades.")) - GUICtrlSetLimit(-1, 8) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x - 15, $y, 15, 15) + GUICtrlCreateLabel( GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "LblUpgrMinGold", "Min. Gold") & ":", $x + 5, $y + 3, -1, -1) + $g_hTxtUpgrMinGold = GUICtrlCreateInput("150000", $x + 55, $y, 61, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinGold_Info_01", "Save this much Gold after the upgrade completes.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinGold_Info_02", "Set this value as needed to save for searching, or wall upgrades.")) + GUICtrlSetLimit(-1, 8) $y += 18 - _GUICtrlCreateIcon ($g_sLibIconPath, $eIcnElixir, $x - 15, $y, 15, 15) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "LblUpgrMinElixir", "Min. Elixir") & ":", $x + 5, $y + 3, -1, -1) - $g_hTxtUpgrMinElixir = GUICtrlCreateInput("1000", $x + 55, $y, 61, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinElixir_Info_01", "Save this much Elixir after the upgrade completes") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinElixir_Info_02", "Set this value as needed to save for making troops or wall upgrades.")) - GUICtrlSetLimit(-1, 8) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x - 15, $y, 15, 15) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "LblUpgrMinElixir", "Min. Elixir") & ":", $x + 5, $y + 3, -1, -1) + $g_hTxtUpgrMinElixir = GUICtrlCreateInput("1000", $x + 55, $y, 61, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinElixir_Info_01", "Save this much Elixir after the upgrade completes") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinElixir_Info_02", "Set this value as needed to save for making troops or wall upgrades.")) + GUICtrlSetLimit(-1, 8) $x -= 15 $y -= 8 - _GUICtrlCreateIcon ($g_sLibIconPath, $eIcnDark, $x + 140, $y, 15, 15) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "LblUpgrMinDark", "Min. Dark") & ":", $x + 160, $y + 3, -1, -1) - $g_hTxtUpgrMinDark = GUICtrlCreateInput("1000", $x + 210, $y, 61, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinDark_Info_01", "Save this amount of Dark Elixir after the upgrade completes.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinDark_Info_02", "Set this value higher if you want make war troops.")) - GUICtrlSetLimit(-1, 6) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 140, $y, 15, 15) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "LblUpgrMinDark", "Min. Dark") & ":", $x + 160, $y + 3, -1, -1) + $g_hTxtUpgrMinDark = GUICtrlCreateInput("1000", $x + 210, $y, 61, 17, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinDark_Info_01", "Save this amount of Dark Elixir after the upgrade completes.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "TxtUpgrMinDark_Info_02", "Set this value higher if you want make war troops.")) + GUICtrlSetLimit(-1, 6) $y -= 8 ; Locate/reset buttons - GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnLocateUpgrades", "Locate Upgrades"), $x + 290, $y - 4, 120, 18, BitOR($BS_MULTILINE, $BS_VCENTER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnLocateUpgrades_Info_01", "Push button to locate and record information on building/Hero upgrades") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnLocateUpgrades_Info_02", "Any upgrades with repeat enabled are skipped and can not be located again")) - GUICtrlSetOnEvent(-1, "btnLocateUpgrades") - GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnResetUpgrades", "Reset Upgrades"), $x + 290, $y + 16, 120, 18, BitOR($BS_MULTILINE, $BS_VCENTER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnResetUpgrades_Info_01", "Push button to reset & remove upgrade information") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnResetUpgrades_Info_02", "If repeat box is checked, data will not be reset")) - GUICtrlSetOnEvent(-1, "btnResetUpgrade") + GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnLocateUpgrades", "Locate Upgrades"), $x + 290, $y - 4, 120, 18, BitOR($BS_MULTILINE, $BS_VCENTER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnLocateUpgrades_Info_01", "Push button to locate and record information on building/Hero upgrades") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnLocateUpgrades_Info_02", "Any upgrades with repeat enabled are skipped and can not be located again")) + GUICtrlSetOnEvent(-1, "btnLocateUpgrades") + GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnResetUpgrades", "Reset Upgrades"), $x + 290, $y + 16, 120, 18, BitOR($BS_MULTILINE, $BS_VCENTER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnResetUpgrades_Info_01", "Push button to reset & remove upgrade information") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Buildings", "BtnResetUpgrades_Info_02", "If repeat box is checked, data will not be reset")) + GUICtrlSetOnEvent(-1, "btnResetUpgrade") GUICtrlCreateGroup("", -99, -99, 1, 1) EndFunc ;==>CreateBuildingsSubTab @@ -460,130 +469,134 @@ EndFunc ;==>CreateBuildingsSubTab Func CreateWallsSubTab() Local $x = 25, $y = 45 GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "Group_01", "Walls"), $x - 20, $y - 20, $g_iSizeWGrpTab3, 120) - _GUICtrlCreateIcon ($g_sLibIconPath, $eIcnWall, $x - 12, $y - 6, 24, 24) - $g_hChkWalls = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkWalls", "Auto Wall Upgrade"), $x + 18, $y - 2, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkWalls_Info_01", "Check this to upgrade Walls if there are enough resources.")) - GUICtrlSetState(-1, $GUI_ENABLE) - GUICtrlSetState(-1, $GUI_UNCHECKED) - GUICtrlSetOnEvent(-1, "chkWalls") -#CS $sldMaxNbWall = GUICtrlCreateSlider( $x + 135, $y, 85 , 24, BITOR($TBS_TOOLTIPS, $TBS_AUTOTICKS)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkWalls_Info_02", "No. of Positions to test and find walls. Higher is better but slower.")) - _GUICtrlSlider_SetTipSide(-1, $TBTS_BOTTOM) - _GUICtrlSlider_SetTicFreq(-1, 1) - GUICtrlSetLimit(-1, 8, 1) - GUICtrlSetData(-1, 4) - GUICtrlSetBkColor(-1, $COLOR_WHITE) -#CE GUICtrlSetOnEvent(-1, "SlidemaxNbWall") - $g_hBtnFindWalls = GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "BtnFindWalls", "TEST"), $x + 150, $y + 26, 45, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "BtnFindWalls_Info_01", "Click here to test the Wall Detection.")) - GUICtrlSetOnEvent(-1, "btnWalls") - If $g_bBtnColor then GUICtrlSetBkColor(-1, 0x5CAD85) - $g_hRdoUseGold = GUICtrlCreateRadio(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseGold", "Use Gold"), $x + 25, $y + 16, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseGold_Info_01", "Use only Gold for Walls.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseGold_Info_02", "Available at all Wall levels.")) - GUICtrlSetState(-1, $GUI_CHECKED) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_hRdoUseElixir = GUICtrlCreateRadio(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixir", "Use Elixir"), $x + 25, $y + 34, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixir_Info_01", "Use only Elixir for Walls.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixir_Info_02", "Available only at Wall levels upgradeable with Elixir.")) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_hRdoUseElixirGold = GUICtrlCreateRadio(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixirGold", "Try Elixir first, Gold second"), $x + 25, $y + 52, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixirGold_Info_01", "Try to use Elixir first. If not enough Elixir try to use Gold second for Walls.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixir_Info_02", -1)) - GUICtrlSetState(-1, $GUI_DISABLE) - _GUICtrlCreateIcon ($g_sLibIconPath, $eIcnBuilder, $x - 12, $y + 72, 20, 20) - $g_hChkSaveWallBldr = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkSaveWallBldr", "Save ONE builder for Walls"), $x + 18, $y + 72, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkSaveWallBldr_Info_01", "Check this to reserve 1 builder exclusively for walls and") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkSaveWallBldr_Info_02", "reduce the available builder by 1 for other upgrades")) - GUICtrlSetState(-1, $GUI_ENABLE) - GUICtrlSetState(-1, $GUI_UNCHECKED) - GUICtrlSetOnEvent(-1, "chkSaveWallBldr") + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWall, $x - 12, $y - 6, 24, 24) + $g_hChkWalls = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkWalls", "Auto Wall Upgrade"), $x + 18, $y - 2, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkWalls_Info_01", "Check this to upgrade Walls if there are enough resources.")) + GUICtrlSetState(-1, $GUI_ENABLE) + GUICtrlSetState(-1, $GUI_UNCHECKED) + GUICtrlSetOnEvent(-1, "chkWalls") + #CS $sldMaxNbWall = GUICtrlCreateSlider( $x + 135, $y, 85 , 24, BITOR($TBS_TOOLTIPS, $TBS_AUTOTICKS)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkWalls_Info_02", "No. of Positions to test and find walls. Higher is better but slower.")) + _GUICtrlSlider_SetTipSide(-1, $TBTS_BOTTOM) + _GUICtrlSlider_SetTicFreq(-1, 1) + GUICtrlSetLimit(-1, 8, 1) + GUICtrlSetData(-1, 4) + GUICtrlSetBkColor(-1, $COLOR_WHITE) + #CE $sldMaxNbWall = GUICtrlCreateSlider( $x + 135, $y, 85 , 24, BITOR($TBS_TOOLTIPS, $TBS_AUTOTICKS)) + $g_hBtnFindWalls = GUICtrlCreateButton(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "BtnFindWalls", "TEST"), $x + 150, $y + 26, 45, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "BtnFindWalls_Info_01", "Click here to test the Wall Detection.")) + GUICtrlSetOnEvent(-1, "btnWalls") + If $g_bBtnColor Then GUICtrlSetBkColor(-1, 0x5CAD85) + $g_hRdoUseGold = GUICtrlCreateRadio(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseGold", "Use Gold"), $x + 25, $y + 16, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseGold_Info_01", "Use only Gold for Walls.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseGold_Info_02", "Available at all Wall levels.")) + GUICtrlSetState(-1, $GUI_CHECKED) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_hRdoUseElixir = GUICtrlCreateRadio(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixir", "Use Elixir"), $x + 25, $y + 34, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixir_Info_01", "Use only Elixir for Walls.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixir_Info_02", "Available only at Wall levels upgradeable with Elixir.")) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_hRdoUseElixirGold = GUICtrlCreateRadio(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixirGold", "Try Elixir first, Gold second"), $x + 25, $y + 52, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixirGold_Info_01", "Try to use Elixir first. If not enough Elixir try to use Gold second for Walls.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "RdoUseElixir_Info_02", -1)) + GUICtrlSetState(-1, $GUI_DISABLE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBuilder, $x - 12, $y + 72, 20, 20) + $g_hChkSaveWallBldr = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkSaveWallBldr", "Save ONE builder for Walls"), $x + 18, $y + 72, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkSaveWallBldr_Info_01", "Check this to reserve 1 builder exclusively for walls and") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "ChkSaveWallBldr_Info_02", "reduce the available builder by 1 for other upgrades")) + GUICtrlSetState(-1, $GUI_ENABLE) + GUICtrlSetState(-1, $GUI_UNCHECKED) + GUICtrlSetOnEvent(-1, "chkSaveWallBldr") $x += 225 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblSearchforWalls", "Search for Walls level") & ":", $x, $y + 2, -1, -1) - $g_hCmbWalls = GUICtrlCreateCombo("", $x + 110, $y, 61, 21, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL), $WS_EX_RIGHT) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "CmbWalls_Info_01", "Search for Walls of this level and try to upgrade them one by one.")) - GUICtrlSetData(-1, "4 |5 |6 |7 |8 |9 |10 |11 |12 |13 |14 |15 ", "4 ") - GUICtrlSetState(-1, $GUI_DISABLE) - GUICtrlSetOnEvent(-1, "cmbWalls") - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblNextWalllevelcosts", "Next Wall level costs") & ":", $x, $y + 25, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblNextWalllevelcosts_Info_01", "Use this value as an indicator.") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblNextWalllevelcosts_Info_02", "The value will update if you select an other wall level.")) - $g_hLblWallCost = GUICtrlCreateLabel("30 000", $x + 110, $y + 25, 50, -1, $SS_RIGHT) - - _GUICtrlCreateIcon ($g_sLibIconPath, $eIcnGold, $x, $y + 47, 16, 16) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Goldtosave", "Min. Gold to save"), $x + 20, $y + 47, -1, -1) - $g_hTxtWallMinGold = GUICtrlCreateInput("150000", $x + 110, $y + 45, 61, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Goldtosave_Info_01", "Save this much Gold after the wall upgrade completes,") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Goldtosave_Info_02", "Set this value to save Gold for other upgrades, or searching.")) - GUICtrlSetLimit(-1, 8) - GUICtrlSetState(-1, $GUI_DISABLE) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblSearchforWalls", "Search for Walls level") & ":", $x, $y + 2, -1, -1) + $g_hCmbWalls = GUICtrlCreateCombo("", $x + 110, $y, 61, 21, BitOR($CBS_DROPDOWNLIST, $CBS_AUTOHSCROLL), $WS_EX_RIGHT) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "CmbWalls_Info_01", "Search for Walls of this level and try to upgrade them one by one.")) + GUICtrlSetData(-1, "4 |5 |6 |7 |8 |9 |10 |11 |12 |13 |14 |15 |16 ", "4 ") + GUICtrlSetState(-1, $GUI_DISABLE) + GUICtrlSetOnEvent(-1, "cmbWalls") + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblNextWalllevelcosts", "Next Wall level costs") & ":", $x, $y + 25, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblNextWalllevelcosts_Info_01", "Use this value as an indicator.") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblNextWalllevelcosts_Info_02", "The value will update if you select an other wall level.")) + $g_hLblWallCost = GUICtrlCreateLabel("30 000", $x + 110, $y + 25, 50, -1, $SS_RIGHT) + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x, $y + 47, 16, 16) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Goldtosave", "Min. Gold to save"), $x + 20, $y + 47, -1, -1) + $g_hTxtWallMinGold = GUICtrlCreateInput("150000", $x + 110, $y + 45, 61, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Goldtosave_Info_01", "Save this much Gold after the wall upgrade completes,") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Goldtosave_Info_02", "Set this value to save Gold for other upgrades, or searching.")) + GUICtrlSetLimit(-1, 8) + GUICtrlSetState(-1, $GUI_DISABLE) $y += 2 - _GUICtrlCreateIcon ($g_sLibIconPath, $eIcnElixir, $x, $y + 67, 16, 16) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Elixirtosave", "Min. Elixir to save"), $x + 20, $y + 70, -1, -1) - $g_hTxtWallMinElixir = GUICtrlCreateInput("1000", $x + 110, $y + 65, 61, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Elixirtosave_Info_01", "Save this much Elixir after the wall upgrade completes,") & @CRLF & _ - GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Elixirtosave_Info_02", "Set this value to save Elixir for other upgrades or troop making.")) - GUICtrlSetLimit(-1, 8) - GUICtrlSetState(-1, $GUI_DISABLE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x, $y + 67, 16, 16) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Elixirtosave", "Min. Elixir to save"), $x + 20, $y + 70, -1, -1) + $g_hTxtWallMinElixir = GUICtrlCreateInput("1000", $x + 110, $y + 65, 61, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Elixirtosave_Info_01", "Save this much Elixir after the wall upgrade completes,") & @CRLF & _ + GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "LblMin.Elixirtosave_Info_02", "Set this value to save Elixir for other upgrades or troop making.")) + GUICtrlSetLimit(-1, 8) + GUICtrlSetState(-1, $GUI_DISABLE) GUICtrlCreateGroup("", -99, -99, 1, 1) Local $x = 25, $y = 175 GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "Group_02", "Walls counter"), $x - 20, $y - 20, $g_iSizeWGrpTab3, 95 + 40) - $g_ahWallsCurrentCount[4] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", "Input number of Walls level") & " 4 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", "you have.")) - $g_ahPicWallsLevel[4] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall04, $x + 27, $y - 2, 24, 24) + $g_ahWallsCurrentCount[4] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", "Input number of Walls level") & " 4 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", "you have.")) + $g_ahPicWallsLevel[4] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall04, $x + 27, $y - 2, 24, 24) $x += 80 - $g_ahWallsCurrentCount[5] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 5 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[5] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall05, $x + 27, $y - 2, 24, 24) + $g_ahWallsCurrentCount[5] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 5 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[5] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall05, $x + 27, $y - 2, 24, 24) $x += 80 - $g_ahWallsCurrentCount[6] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 6 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[6] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall06, $x + 27, $y - 2, 24, 24) + $g_ahWallsCurrentCount[6] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 6 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[6] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall06, $x + 27, $y - 2, 24, 24) $x += 80 - $g_ahWallsCurrentCount[7] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 7 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[7] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall07, $x + 27, $y - 2, 24, 24) + $g_ahWallsCurrentCount[7] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 7 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[7] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall07, $x + 27, $y - 2, 24, 24) $x += 80 - $g_ahWallsCurrentCount[8] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 8 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[8] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall08, $x + 27, $y - 2, 24, 24) + $g_ahWallsCurrentCount[8] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 8 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[8] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall08, $x + 27, $y - 2, 24, 24) Local $x = 25 $y += 40 - $g_ahWallsCurrentCount[9] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 9 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[9] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall09, $x + 27, $y - 2, 24, 24) - $x += 80 - $g_ahWallsCurrentCount[10] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 10 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[10] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall10, $x + 27, $y - 2, 24, 24) - $x += 80 - $g_ahWallsCurrentCount[11] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 11 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[11] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall11, $x + 27, $y - 2, 24, 24) - $x += 80 - $g_ahWallsCurrentCount[12] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 12 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[12] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall12, $x + 27, $y - 2, 24, 24) - $x += 80 - $g_ahWallsCurrentCount[13] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 13 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[13] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall13, $x + 27, $y - 2, 24, 24) + $g_ahWallsCurrentCount[9] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 9 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[9] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall09, $x + 27, $y - 2, 24, 24) + $x += 80 + $g_ahWallsCurrentCount[10] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 10 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[10] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall10, $x + 27, $y - 2, 24, 24) + $x += 80 + $g_ahWallsCurrentCount[11] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 11 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[11] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall11, $x + 27, $y - 2, 24, 24) + $x += 80 + $g_ahWallsCurrentCount[12] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 12 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[12] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall12, $x + 27, $y - 2, 24, 24) + $x += 80 + $g_ahWallsCurrentCount[13] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 13 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[13] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall13, $x + 27, $y - 2, 24, 24) Local $x = 25 $y += 40 - $g_ahWallsCurrentCount[14] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 14 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[14] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall14, $x + 27, $y - 2, 24, 24) - $x += 80 - $g_ahWallsCurrentCount[15] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 15 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[15] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall15, $x + 27, $y - 2, 24, 24) - $x += 80 - $g_ahWallsCurrentCount[16] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 16 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) - $g_ahPicWallsLevel[16] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall16, $x + 27, $y - 2, 24, 24) + $g_ahWallsCurrentCount[14] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 14 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[14] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall14, $x + 27, $y - 2, 24, 24) + $x += 80 + $g_ahWallsCurrentCount[15] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 15 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[15] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall15, $x + 27, $y - 2, 24, 24) + $x += 80 + $g_ahWallsCurrentCount[16] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 16 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[16] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall16, $x + 27, $y - 2, 24, 24) + $x += 80 + $g_ahWallsCurrentCount[17] = GUICtrlCreateInput("0", $x, $y, 25, 19, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_01", -1) & " 17 " & GetTranslatedFileIni("MBR GUI Design Child Village - Upgrade_Walls", "WallsCurrentCount_Info_02", -1)) + $g_ahPicWallsLevel[17] = _GUICtrlCreateIcon($g_sLibIconPath, $eWall17, $x + 26, $y - 5, 28, 28) GUICtrlCreateGroup("", -99, -99, 1, 1) EndFunc ;==>CreateWallsSubTab @@ -593,25 +606,25 @@ Func CreateAutoUpgradeSubTab() Local $x = 25, $y = 45 GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Group_01", "Auto Upgrade"), $x - 20, $y - 20, $g_iSizeWGrpTab3, 100) - $g_hChkAutoUpgrade = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "ChkAutoUpgrade", "Enable Auto Upgrade"), $x - 5, $y, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "ChkAutoUpgrade_Info_01", "Check box to enable automatically starting Upgrades from builders menu")) - GUICtrlSetOnEvent(-1, "chkAutoUpgrade") - - $g_hLblAutoUpgrade = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Label_01", "Save"), $x, $y + 32, -1, -1) - $g_hTxtSmartMinGold = GUICtrlCreateInput("150000", $x + 33, $y + 29, 60, 21, BitOR($ES_CENTER, $ES_NUMBER)) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 98, $y + 32, 16, 16) - $g_hTxtSmartMinElixir = GUICtrlCreateInput("1000", $x + 118, $y + 29, 60, 21, BitOR($ES_CENTER, $ES_NUMBER)) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 183, $y + 32, 16, 16) - $g_hTxtSmartMinDark = GUICtrlCreateInput("1000", $x + 203, $y + 29, 60, 21, BitOR($ES_CENTER, $ES_NUMBER)) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 268, $y + 32, 16, 16) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Label_02", "after launching upgrade"), $x + 290, $y + 32, -1, -1) - - $g_hChkResourcesToIgnore[0] = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Ignore_01", "Ignore Gold Upgrades"), $x, $y + 55, -1, -1) - GUICtrlSetOnEvent(-1, "chkResourcesToIgnore") - $g_hChkResourcesToIgnore[1] = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Ignore_02", "Ignore Elixir Upgrades"), $x + 130, $y + 55, -1, -1) - GUICtrlSetOnEvent(-1, "chkResourcesToIgnore") - $g_hChkResourcesToIgnore[2] = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Ignore_03", "Ignore Dark Elixir Upgrades"), $x + 258, $y + 55, -1, -1) - GUICtrlSetOnEvent(-1, "chkResourcesToIgnore") + $g_hChkAutoUpgrade = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "ChkAutoUpgrade", "Enable Auto Upgrade"), $x - 5, $y, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "ChkAutoUpgrade_Info_01", "Check box to enable automatically starting Upgrades from builders menu")) + GUICtrlSetOnEvent(-1, "chkAutoUpgrade") + + $g_hLblAutoUpgrade = GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Label_01", "Save"), $x, $y + 32, -1, -1) + $g_hTxtSmartMinGold = GUICtrlCreateInput("150000", $x + 33, $y + 29, 60, 21, BitOR($ES_CENTER, $ES_NUMBER)) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnGold, $x + 98, $y + 32, 16, 16) + $g_hTxtSmartMinElixir = GUICtrlCreateInput("1000", $x + 118, $y + 29, 60, 21, BitOR($ES_CENTER, $ES_NUMBER)) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElixir, $x + 183, $y + 32, 16, 16) + $g_hTxtSmartMinDark = GUICtrlCreateInput("1000", $x + 203, $y + 29, 60, 21, BitOR($ES_CENTER, $ES_NUMBER)) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDark, $x + 268, $y + 32, 16, 16) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Label_02", "after launching upgrade"), $x + 290, $y + 32, -1, -1) + + $g_hChkResourcesToIgnore[0] = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Ignore_01", "Ignore Gold Upgrades"), $x, $y + 55, -1, -1) + GUICtrlSetOnEvent(-1, "chkResourcesToIgnore") + $g_hChkResourcesToIgnore[1] = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Ignore_02", "Ignore Elixir Upgrades"), $x + 130, $y + 55, -1, -1) + GUICtrlSetOnEvent(-1, "chkResourcesToIgnore") + $g_hChkResourcesToIgnore[2] = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Ignore_03", "Ignore Dark Elixir Upgrades"), $x + 258, $y + 55, -1, -1) + GUICtrlSetOnEvent(-1, "chkResourcesToIgnore") GUICtrlCreateGroup("", -99, -99, 1, 1) GUICtrlCreateGroup(GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "Group_02", "Upgrades to ignore"), $x - 20, $y + 85, $g_iSizeWGrpTab3, 137) @@ -621,88 +634,88 @@ Func CreateAutoUpgradeSubTab() Local $yRow1 = 50 Local $yRow2 = 110 Local $yChkOff = 32 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTH15, $x + 5, $y + $yRow1, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[0] = GUICtrlCreateCheckbox("", $x + 20 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore TownHall Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIconTH15Weapon, $x + 50, $y + $yRow1, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[15] = GUICtrlCreateCheckbox("", $x + 65 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore TownHall Weapon Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnKing, $x + 110, $y + $yRow1, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[1] = GUICtrlCreateCheckbox("", $x + 125 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Barbarian King Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnQueen, $x + 155, $y + $yRow1, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[2] = GUICtrlCreateCheckbox("", $x + 170 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Archer Queen Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWarden, $x + 200, $y + $yRow1, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[3] = GUICtrlCreateCheckbox("", $x + 215 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Grand Warden Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnChampion, $x + 245, $y + $yRow1, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[14] = GUICtrlCreateCheckbox("", $x + 260 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Royal Champion Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCC, $x + 305, $y + $yRow1, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[4] = GUICtrlCreateCheckbox("", $x + 320 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Clan Castle Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLaboratory, $x + 365, $y + $yRow1, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[5] = GUICtrlCreateCheckbox("", $x + 380 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Laboratory Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWall, $x + 5, $y + $yRow2, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[6] = GUICtrlCreateCheckbox("", $x + 20 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Wall Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBarrack, $x + 65, $y + $yRow2, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[7] = GUICtrlCreateCheckbox("", $x + 80 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Barrack Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDarkBarrack, $x + 110, $y + $yRow2, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[8] = GUICtrlCreateCheckbox("", $x + 125 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Dark Barrack Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSpellFactory, $x + 170, $y + $yRow2, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[9] = GUICtrlCreateCheckbox("", $x + 185 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Spell Factory Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDarkSpellFactory, $x + 215, $y + $yRow2, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[10] = GUICtrlCreateCheckbox("", $x + 230 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Dark Spell Factory Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMine, $x + 275, $y + $yRow2, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[11] = GUICtrlCreateCheckbox("", $x + 290 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Gold Mine Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCollector, $x + 320, $y + $yRow2, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[12] = GUICtrlCreateCheckbox("", $x + 335 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Elixir Collector Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") - - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDrill, $x + 365, $y + $yRow2, $iIconSize, $iIconSize) - $g_hChkUpgradesToIgnore[13] = GUICtrlCreateCheckbox("", $x + 380 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) - _GUICtrlSetTip(-1, "Ignore Dark Elixir Drill Upgrade") - GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnTH15, $x + 5, $y + $yRow1, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[0] = GUICtrlCreateCheckbox("", $x + 20 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore TownHall Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIconTH15Weapon, $x + 50, $y + $yRow1, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[15] = GUICtrlCreateCheckbox("", $x + 65 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore TownHall Weapon Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnKing, $x + 110, $y + $yRow1, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[1] = GUICtrlCreateCheckbox("", $x + 125 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Barbarian King Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnQueen, $x + 155, $y + $yRow1, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[2] = GUICtrlCreateCheckbox("", $x + 170 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Archer Queen Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWarden, $x + 200, $y + $yRow1, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[3] = GUICtrlCreateCheckbox("", $x + 215 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Grand Warden Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnChampion, $x + 245, $y + $yRow1, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[14] = GUICtrlCreateCheckbox("", $x + 260 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Royal Champion Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCC, $x + 305, $y + $yRow1, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[4] = GUICtrlCreateCheckbox("", $x + 320 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Clan Castle Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLaboratory, $x + 365, $y + $yRow1, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[5] = GUICtrlCreateCheckbox("", $x + 380 - $xOff, $y + $yRow1 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Laboratory Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWall, $x + 5, $y + $yRow2, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[6] = GUICtrlCreateCheckbox("", $x + 20 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Wall Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBarrack, $x + 65, $y + $yRow2, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[7] = GUICtrlCreateCheckbox("", $x + 80 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Barrack Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDarkBarrack, $x + 110, $y + $yRow2, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[8] = GUICtrlCreateCheckbox("", $x + 125 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Dark Barrack Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSpellFactory, $x + 170, $y + $yRow2, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[9] = GUICtrlCreateCheckbox("", $x + 185 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Spell Factory Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDarkSpellFactory, $x + 215, $y + $yRow2, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[10] = GUICtrlCreateCheckbox("", $x + 230 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Dark Spell Factory Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnMine, $x + 275, $y + $yRow2, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[11] = GUICtrlCreateCheckbox("", $x + 290 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Gold Mine Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCollector, $x + 320, $y + $yRow2, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[12] = GUICtrlCreateCheckbox("", $x + 335 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Elixir Collector Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") + + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDrill, $x + 365, $y + $yRow2, $iIconSize, $iIconSize) + $g_hChkUpgradesToIgnore[13] = GUICtrlCreateCheckbox("", $x + 380 - $xOff, $y + $yRow2 + $yChkOff, 17, 17) + _GUICtrlSetTip(-1, "Ignore Dark Elixir Drill Upgrade") + GUICtrlSetOnEvent(-1, "chkUpgradesToIgnore") GUICtrlCreateGroup("", -99, -99, 1, 1) $g_hTxtAutoUpgradeLog = GUICtrlCreateEdit("", $x - 16, 275, $g_iSizeWGrpTab3, 127, BitOR($GUI_SS_DEFAULT_EDIT, $ES_READONLY)) - GUICtrlSetData(-1, GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "TxtAutoUpgradeLog", "------------------------------------------------ AUTO UPGRADE LOG ------------------------------------------------")) + GUICtrlSetData(-1, GetTranslatedFileIni("MBR GUI Design - AutoUpgrade", "TxtAutoUpgradeLog", "------------------------------------------------ AUTO UPGRADE LOG ------------------------------------------------")) -EndFunc ;==>CreateAutoUpgradeGUI +EndFunc ;==>CreateAutoUpgradeSubTab diff --git a/COCBot/GUI/MBR GUI Design Child Village - Donate.au3 b/COCBot/GUI/MBR GUI Design Child Village - Donate.au3 index a539cc21f..47ead1c24 100644 --- a/COCBot/GUI/MBR GUI Design Child Village - Donate.au3 +++ b/COCBot/GUI/MBR GUI Design Child Village - Donate.au3 @@ -29,13 +29,13 @@ Global $g_ahCmbClanCastleSpell[3], $g_ahCmbClanCastleSiege[2] ; Donate Global $g_hChkExtraAlphabets = 0, $g_hChkExtraChinese = 0, $g_hChkExtraKorean = 0, $g_hChkExtraPersian = 0 -Global $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -Global $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -Global $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -Global $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -Global $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -Global $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -Global $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_ahChkDonateSpell[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_ahChkDonateAllSpell[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] @@ -351,6 +351,7 @@ Func CreateDonateSubTab() Local $sTxtYetis = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtYetis", "Yetis") Local $sTxtDragonRiders = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragonRiders", "Dragon Riders") Local $sTxtElectroTitans = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtElectroTitans", "Electro Titans") + Local $sTxtRootRiders = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtRootRiders", "Root Riders") Local $sTxtWallWreckers = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtWallWreckers", "Wall Wreckers") Local $sTxtBattleBlimps = GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBattleBlimps", "Battle Blimps") @@ -394,2710 +395,2746 @@ Func CreateDonateSubTab() ; 1 Row $x = $xStart - 20 ; Barbarian - $g_ahLblDonateTroop[$eTroopBarbarian] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopBarbarian] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBarbarian, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopBarbarian] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopBarbarian] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBarbarian, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Giant $x += $Offx - $g_ahLblDonateTroop[$eTroopGiant] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopGiant] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnGiant, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopGiant] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopGiant] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnGiant, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; WallBreaker $x += $Offx - $g_ahLblDonateTroop[$eTroopWallBreaker] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopWallBreaker] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnWallBreaker, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopWallBreaker] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopWallBreaker] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnWallBreaker, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Wizard $x += $Offx - $g_ahLblDonateTroop[$eTroopWizard] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopWizard] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnWizard, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopWizard] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopWizard] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnWizard, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Dragon $x += $Offx - $g_ahLblDonateTroop[$eTroopDragon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopDragon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnDragon, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopDragon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopDragon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnDragon, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; BabyDragon $x += $Offx - $g_ahLblDonateTroop[$eTroopBabyDragon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopBabyDragon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBabyDragon, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopBabyDragon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopBabyDragon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBabyDragon, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; ElectroDragon $x += $Offx - $g_ahLblDonateTroop[$eTroopElectroDragon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopElectroDragon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnElectroDragon, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopElectroDragon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopElectroDragon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnElectroDragon, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; DragonRider $x += $Offx - $g_ahLblDonateTroop[$eTroopDragonRider] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopDragonRider] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnDragonRider, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopDragonRider] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopDragonRider] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnDragonRider, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; HogRider $x += $Offx - $g_ahLblDonateTroop[$eTroopHogRider] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopHogRider] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnHogRider, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopHogRider] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopHogRider] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnHogRider, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Golem $x += $Offx - $g_ahLblDonateTroop[$eTroopGolem] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopGolem] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnGolem, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopGolem] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopGolem] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnGolem, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; LavaHound $x += $Offx - $g_ahLblDonateTroop[$eTroopLavaHound] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopLavaHound] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnLavaHound, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopLavaHound] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopLavaHound] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnLavaHound, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; IceGolem $x += $Offx - $g_ahLblDonateTroop[$eTroopIceGolem] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopIceGolem] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnIceGolem, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopIceGolem] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopIceGolem] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnIceGolem, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Apprentice Warden $x += $Offx - $g_ahLblDonateTroop[$eTroopAppWard] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopAppWard] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnAppWard, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopAppWard] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopAppWard] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnAppWard, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; 2 Row $x = $xStart - 20 ; Archer $y += 36 ;35 - $g_ahLblDonateTroop[$eTroopArcher] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopArcher] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnArcher, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopArcher] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopArcher] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnArcher, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Goblin $x += $Offx - $g_ahLblDonateTroop[$eTroopGoblin] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopGoblin] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnGoblin, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopGoblin] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopGoblin] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnGoblin, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Balloon $x += $Offx - $g_ahLblDonateTroop[$eTroopBalloon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopBalloon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBalloon, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopBalloon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopBalloon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBalloon, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Healer $x += $Offx - $g_ahLblDonateTroop[$eTroopHealer] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopHealer] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnHealer, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopHealer] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopHealer] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnHealer, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Pekka $x += $Offx - $g_ahLblDonateTroop[$eTroopPekka] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopPekka] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnPekka, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopPekka] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopPekka] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnPekka, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Miner $x += $Offx - $g_ahLblDonateTroop[$eTroopMiner] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopMiner] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnMiner, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopMiner] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopMiner] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnMiner, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Yeti $x += $Offx - $g_ahLblDonateTroop[$eTroopYeti] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopYeti] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnYeti, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") - + $g_ahLblDonateTroop[$eTroopYeti] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopYeti] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnYeti, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Electro Titan $x += $Offx - $g_ahLblDonateTroop[$eTroopElectroTitan] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopElectroTitan] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnElectroTitan, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") - + $g_ahLblDonateTroop[$eTroopElectroTitan] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopElectroTitan] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnElectroTitan, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") + ;Root Rider + $x += $Offx + $g_ahLblDonateTroop[$eTroopRootRider] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopRootRider] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRootRider, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Minion $x += $Offx - $g_ahLblDonateTroop[$eTroopMinion] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopMinion] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnMinion, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopMinion] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopMinion] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnMinion, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Valkyrie $x += $Offx - $g_ahLblDonateTroop[$eTroopValkyrie] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopValkyrie] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnValkyrie, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopValkyrie] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopValkyrie] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnValkyrie, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Witch $x += $Offx - $g_ahLblDonateTroop[$eTroopWitch] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopWitch] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnWitch, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopWitch] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopWitch] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnWitch, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Bowler $x += $Offx - $g_ahLblDonateTroop[$eTroopBowler] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopBowler] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBowler, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") - ; Headhunter - $x += $Offx - $g_ahLblDonateTroop[$eTroopHeadhunter] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopHeadhunter] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnHeadhunter, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopBowler] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopBowler] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBowler, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; 3 Row $x = $xStart - 20 - $y += 36 ;35 - $g_ahLblDonateSpell[$eSpellLightning] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellLightning] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnLightSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") + $y += 36 + ; Headhunter + $g_ahLblDonateTroop[$eTroopHeadhunter] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopHeadhunter] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnHeadhunter, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") + ; Lightening + $x += $Offx + $g_ahLblDonateSpell[$eSpellLightning] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellLightning] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnLightSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; Heal $x += $Offx - $g_ahLblDonateSpell[$eSpellHeal] = GUICtrlCreateLabel("", $x , $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellHeal] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnHealSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") + $g_ahLblDonateSpell[$eSpellHeal] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellHeal] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnHealSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; Rage $x += $Offx - $g_ahLblDonateSpell[$eSpellRage] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellRage] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRageSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") + $g_ahLblDonateSpell[$eSpellRage] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellRage] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRageSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; Jump $x += $Offx - $g_ahLblDonateSpell[$eSpellJump] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellJump] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnJumpSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") + $g_ahLblDonateSpell[$eSpellJump] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellJump] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnJumpSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; Freeze $x += $Offx - $g_ahLblDonateSpell[$eSpellFreeze] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellFreeze] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnFreezeSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") + $g_ahLblDonateSpell[$eSpellFreeze] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellFreeze] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnFreezeSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; Invisibility $x += $Offx - $g_ahLblDonateSpell[$eSpellInvisibility] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellInvisibility] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnInvisibilitySpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") - + $g_ahLblDonateSpell[$eSpellInvisibility] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellInvisibility] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnInvisibilitySpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; Recall $x += $Offx - $g_ahLblDonateSpell[$eSpellRecall] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellRecall] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRecallSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") - + $g_ahLblDonateSpell[$eSpellRecall] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellRecall] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRecallSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; Clone $x += $Offx - $g_ahLblDonateSpell[$eSpellClone] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellClone] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnCloneSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") + $g_ahLblDonateSpell[$eSpellClone] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellClone] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnCloneSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; Poison $x += $Offx - $g_ahLblDonateSpell[$eSpellPoison] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellPoison] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnPoisonSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") + $g_ahLblDonateSpell[$eSpellPoison] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellPoison] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnPoisonSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; EarthQuake $x += $Offx - $g_ahLblDonateSpell[$eSpellEarthquake] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellEarthquake] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnEarthQuakeSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") + $g_ahLblDonateSpell[$eSpellEarthquake] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellEarthquake] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnEarthQuakeSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; Haste $x += $Offx - $g_ahLblDonateSpell[$eSpellHaste] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellHaste] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnHasteSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") + $g_ahLblDonateSpell[$eSpellHaste] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellHaste] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnHasteSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; Skeleton $x += $Offx - $g_ahLblDonateSpell[$eSpellSkeleton] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellSkeleton] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSkeletonSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") - ; Bat - $x += $Offx - $g_ahLblDonateSpell[$eSpellBat] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateSpell[$eSpellBat] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBatSpell, 1) - GUICtrlSetOnEvent(-1, "btnDonateSpell") + $g_ahLblDonateSpell[$eSpellSkeleton] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellSkeleton] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSkeletonSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") ; 4 Row - ; Super Barbarian $x = $xStart - 20 - $y += 36 ;40 - $g_ahLblDonateTroop[$eTroopSuperBarbarian] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperBarbarian] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperBarbarian, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $y += 36 + ; Bat + $g_ahLblDonateSpell[$eSpellBat] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateSpell[$eSpellBat] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBatSpell, 1) + GUICtrlSetOnEvent(-1, "btnDonateSpell") + ; Super Barbarian + $x += $Offx + $g_ahLblDonateTroop[$eTroopSuperBarbarian] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperBarbarian] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperBarbarian, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Super Archer $x += $Offx - $g_ahLblDonateTroop[$eTroopSuperArcher] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperArcher] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperArcher, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopSuperArcher] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperArcher] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperArcher, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Super Giant $x += $Offx - $g_ahLblDonateTroop[$eTroopSuperGiant] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperGiant] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperGiant, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopSuperGiant] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperGiant] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperGiant, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Sneaky Goblin $x += $Offx - $g_ahLblDonateTroop[$eTroopSneakyGoblin] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSneakyGoblin] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSneakyGoblin, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopSneakyGoblin] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSneakyGoblin] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSneakyGoblin, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Super WallBreaker $x += $Offx - $g_ahLblDonateTroop[$eTroopSuperWallBreaker] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperWallBreaker] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperWallBreaker, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopSuperWallBreaker] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperWallBreaker] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperWallBreaker, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Rocket Balloon $x += $Offx - $g_ahLblDonateTroop[$eTroopRocketBalloon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopRocketBalloon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRocketBalloon, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopRocketBalloon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopRocketBalloon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnRocketBalloon, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Super Wizard $x += $Offx - $g_ahLblDonateTroop[$eTroopSuperWizard] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperWizard] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperWizard, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopSuperWizard] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperWizard] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperWizard, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; SuperDragon $x += $Offx - $g_ahLblDonateTroop[$eTroopSuperDragon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperDragon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperDragon, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopSuperDragon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperDragon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperDragon, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; InfernoDragon $x += $Offx - $g_ahLblDonateTroop[$eTroopInfernoDragon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopInfernoDragon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnInfernoDragon, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopInfernoDragon] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopInfernoDragon] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnInfernoDragon, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; SuperMiner $x += $Offx - $g_ahLblDonateTroop[$eTroopSuperMiner] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperMiner] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperMiner, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopSuperMiner] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperMiner] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperMiner, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Super Minion $x += $Offx - $g_ahLblDonateTroop[$eTroopSuperMinion] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperMinion] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperMinion, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopSuperMinion] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperMinion] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperMinion, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Super Valkyrie $x += $Offx - $g_ahLblDonateTroop[$eTroopSuperValkyrie] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperValkyrie] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperValkyrie, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopSuperValkyrie] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperValkyrie] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperValkyrie, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") + ; 4 Row + $x = $xStart - 20 + $y += 36 ; Super Witch + $g_ahLblDonateTroop[$eTroopSuperWitch] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperWitch] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperWitch, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") $x += $Offx - $g_ahLblDonateTroop[$eTroopSuperWitch] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperWitch] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperWitch, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") - - - $y += 36 ;35 next row - 5 - $x = $xStart - 20 - ; IceHound - $g_ahLblDonateTroop[$eTroopIceHound] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopIceHound] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnIceHound, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopIceHound] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopIceHound] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnIceHound, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") $x += $Offx ; Super Bowler - $g_ahLblDonateTroop[$eTroopSuperBowler] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperBowler] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperBowler, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") - + $g_ahLblDonateTroop[$eTroopSuperBowler] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperBowler] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperBowler, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") + $x += $Offx ; Super Hog Rider - $g_ahLblDonateTroop[$eTroopSuperHogRider] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopSuperHogRider] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperHogRider, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopSuperHogRider] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopSuperHogRider] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSuperHogRider, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") $x += $Offx - ;;; Custom Combination Donate #1 by ChiefM3, edit my MonkeyHunter - $g_ahLblDonateTroop[$eCustomA] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eCustomA] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnDonCustom, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") - $x += $Offx - ;;; Custom Combination Donate #2 added by MonkeyHunter - $g_ahLblDonateTroop[$eCustomB] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eCustomB] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnDonCustomB, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + ;;; Custom Combination Donate #1 by ChiefM3, edit my MonkeyHunter + $g_ahLblDonateTroop[$eCustomA] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eCustomA] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnDonCustom, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") $x += $Offx - GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnDonBlacklist, 1) - GUICtrlSetOnEvent(-1, "btnDonateBlacklist") + ;;; Custom Combination Donate #2 added by MonkeyHunter + $g_ahLblDonateTroop[$eCustomB] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eCustomB] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnDonCustomB, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Wall Wrecker $x += $Offx - $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnWallW, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnWallW, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Battle Blimp $x += $Offx - $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBattleB, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBattleB, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Stone Slammer $x += $Offx - $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnStoneS, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnStoneS, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Siege Barracks $x += $Offx - $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSiegeB, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") + $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnSiegeB, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Log Launcher $x += $Offx - $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnLogL, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") - + $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnLogL, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Flame Flinger $x += $Offx - $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnFlameF, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") - + $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnFlameF, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") ; Battle Drill $x += $Offx - $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) - GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) - GUICtrlSetState(-1, $GUI_DISABLE) - $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBattleD, 1) - GUICtrlSetOnEvent(-1, "btnDonateTroop") - + $g_ahLblDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateLabel("", $x, $y - 2, $Offx + 2, $Offx + 2) + GUICtrlSetBkColor(-1, $GUI_BKCOLOR_TRANSPARENT) + GUICtrlSetState(-1, $GUI_DISABLE) + $g_ahBtnDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnBattleD, 1) + GUICtrlSetOnEvent(-1, "btnDonateTroop") + + ; 5 Row + $x = $xStart - 20 + $y += 36 + ; Black List + GUICtrlCreateButton("", $x + 2, $y, $Offx - 2, $Offx - 2, $BS_ICON) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnDonBlacklist, 1) + GUICtrlSetOnEvent(-1, "btnDonateBlacklist") Local $Offy = $yStart + 185 $x = $xStart $y = $yStart + 185 - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblExtraAlphabets", "Extra Alphabet Recognitions:"), $x - 15, $y + 153, -1, -1) - $g_hChkExtraAlphabets = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraAlphabets", "Cyrillic"), $x + 127 , $y + 149, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraAlphabets_Info_01", "Check this to enable the Cyrillic Alphabet.")) - $g_hChkExtraChinese = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraChinese", "Chinese"), $x + 191, $y + 149, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraChinese_Info_01", "Check this to enable the Chinese Alphabet.")) - $g_hChkExtraKorean = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraKorean", "Korean"), $x + 265, $y + 149, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraKorean_Info_01", "Check this to enable the Korean Alphabet.")) - $g_hChkExtraPersian = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraPersian", "Persian"), $x + 340, $y + 149, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraPersian_Info_01", "Check this to enable the Persian Alphabet.")) - - $g_hChkDonateQueueTroopOnly = GUICtrlCreateCheckbox($sTxtDonateQueueTroop, $x + 275, $y + 36, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateQueueTroopTip", "Only donate troops which are ready in 2nd army,\r\nor troops which are training in first slot of 2nd army.\r\nIf 2nd army is not prepared, donate whatever exists in 1st army.")) - $g_hChkDonateQueueSpellOnly = GUICtrlCreateCheckbox($sTxtDonateQueueSpell, $x + 275, $y + 36, -1, -1) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateQueueSpellTip", "Only donate spells which are ready in 2nd army,\r\nor spells which are training in first slot of 2nd army.\r\n\If 2nd army is not prepared, donate whatever exists in 1st army.")) - GUICtrlSetState(-1, $GUI_HIDE) - - $g_ahGrpDonateTroop[$eTroopBarbarian] = GUICtrlCreateGroup($sTxtBarbarians, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBarbarian, $x + 215, $y, 64, 64, $BS_ICON) - $g_ahChkDonateTroop[$eTroopBarbarian] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBarbarians, $x + 285, $y, -1, -1) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBarbarians & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopBarbarian] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBarbarians & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBarbarians & ":", $x - 5, $y + 5, -1, -1) - $g_ahTxtDonateTroop[$eTroopBarbarian] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_01", "barbarians\r\nbarb"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBarbarians) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - $g_ahTxtBlacklistTroop[$eTroopBarbarian] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_01", "no barbarians\r\nno barb\r\nbarbarians no\r\nbarb no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBarbarians) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopArcher] = GUICtrlCreateGroup($sTxtArchers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonArcher, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopArcher] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtArchers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtArchers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopArcher] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtArchers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtArchers & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopArcher] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_02", "archers\r\narch"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtArchers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopArcher] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_02", "no archers\r\nno arch\r\narchers no\r\narch no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtArchers) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopGiant] = GUICtrlCreateGroup($sTxtGiants, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonGiant, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopGiant] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtGiants, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGiants & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopGiant] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGiants & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtGiants & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopGiant] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_03", "giants\r\ngiant\r\nany\r\nreinforcement"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtGiants) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopGiant] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_03", "no giants\r\ngiants no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtGiants) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopGoblin] = GUICtrlCreateGroup($sTxtGoblins, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonGoblin, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopGoblin] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtGoblins, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGoblins & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopGoblin] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGoblins & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtGoblins & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopGoblin] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_04", "goblins\r\ngoblin"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtGoblins) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopGoblin] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_04", "no goblins\r\ngoblins no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtGoblins) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopWallBreaker] = GUICtrlCreateGroup($sTxtWallBreakers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonWallBreaker, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopWallBreaker] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtWallBreakers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWallBreakers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopWallBreaker] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWallBreakers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtWallBreakers & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopWallBreaker] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_05", "wall breakers\r\nbreaker"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtWallBreakers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopWallBreaker] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_05", "no wall breakers\r\nwall breakers no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtWallBreakers) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopBalloon] = GUICtrlCreateGroup($sTxtBalloons, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBalloon, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopBalloon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBalloons, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBalloons & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopBalloon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBalloons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBalloons & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopBalloon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_06", "balloons\r\nballoon\r\nball\r\nloon"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBalloons) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopBalloon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_06", "no balloon\r\nballoons no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBalloons) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopWizard] = GUICtrlCreateGroup($sTxtWizards, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonWizard, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopWizard] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtWizards, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWizards & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopWizard] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWizards & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtWizards & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopWizard] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_07", "wizards\r\nwizard\r\nwiz"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtWizards) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopWizard] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_07", "no wizards\r\nwizards no\r\nno wizard\r\nwizard no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtWizards) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopHealer] = GUICtrlCreateGroup($sTxtHealers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonHealer, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopHealer] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtHealers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHealers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopHealer] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHealers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtHealers & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopHealer] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_08", "healer"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtHealers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopHealer] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_08", "no healer\r\nhealer no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtHealers) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopDragon] = GUICtrlCreateGroup($sTxtDragons, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonDragon, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopDragon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtDragons, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtDragons & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopDragon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtDragons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtDragons & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopDragon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_09", "dragon\r\ndrag"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtDragons) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopDragon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_09", "no dragon\r\ndragon no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtDragons) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopPekka] = GUICtrlCreateGroup($sTxtPekkas, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonPekka, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopPekka] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtPekkas, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtPekkas & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopPekka] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtPekkas & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtPekkas & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopPekka] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_10", "PEKKA\r\npekka"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtPekkas) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopPekka] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_10", "no pekka\r\npekka no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtPekkas) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopBabyDragon] = GUICtrlCreateGroup($sTxtBabyDragons, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBabyDragon, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopBabyDragon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBabyDragons, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBabyDragons & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopBabyDragon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBabyDragons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBabyDragons & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopBabyDragon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_11", "baby dragon\r\nbaby"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBabyDragons) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopBabyDragon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_11", "no baby dragon\r\nbaby dragon no\r\nno baby\r\nbaby no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBabyDragons) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopMiner] = GUICtrlCreateGroup($sTxtMiners, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonMiner, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopMiner] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtMiners, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtMiners & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopMiner] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtMiners & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtMiners & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopMiner] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_12", "miner\r\nmine"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtMiners) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopMiner] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_12", "no miner\r\nminer no\r\nno mine\r\nmine no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtMiners) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopElectroDragon] = GUICtrlCreateGroup($sTxtElectroDragons, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroDragon, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopElectroDragon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtElectroDragons, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtElectroDragons & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopElectroDragon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtElectroDragons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtElectroDragons & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopElectroDragon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_31", "electro dragon\r\nelectrodrag\r\nedrag"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtElectroDragons) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopElectroDragon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_31", "no electro dragon\r\nelectrodrag no\r\nedrag no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtElectroDragons) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopYeti] = GUICtrlCreateGroup($sTxtYetis, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnYeti, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopYeti] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtYetis, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtYetis & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopYeti] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtYetis & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtYetis & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopYeti] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_37", "yeti\r\nyetis"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtYetis) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopYeti] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_37", "no yeti\r\nyeti no\r\nyetis no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtYetis) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopDragonRider] = GUICtrlCreateGroup($sTxtDragonRiders, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDragonRider, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopDragonRider] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtDragonRiders, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtDragonRiders & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopDragonRider] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtDragonRiders & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtDragonRiders & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopDragonRider] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_54", "dragon rider\r\ndragon riders\r\ndragrider"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtDragonRiders) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopDragonRider] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_54", "no dragon rider\r\ndragon rider no\r\ndragon riders no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtDragonRiders) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopElectroTitan] = GUICtrlCreateGroup($sTxtElectroTitans, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroTitan, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopElectroTitan] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtElectroTitans, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtElectroTitans & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopElectroTitan] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtElectroTitans & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtElectroTitans & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopElectroTitan] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_61", "electro titan\r\nelectro titans\r\netitan\r\ntitan"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtElectroTitans) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopElectroTitan] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_61", "no electro titan\r\nelectro titan no\r\nelectro titans no\r\nno titan"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtElectroTitans) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopMinion] = GUICtrlCreateGroup($sTxtMinions, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonMinion, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopMinion] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtMinions, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtMinions & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopMinion] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtMinions & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtMinions & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopMinion] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_18", "minions\r\nminion"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtMinions) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopMinion] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_18", "no minions\r\nminions no\r\nno minion\r\nminion no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtMinions) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopHogRider] = GUICtrlCreateGroup($sTxtHogRiders, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonHogRider, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopHogRider] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtHogRiders, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHogRiders & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopHogRider] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHogRiders & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtHogRiders & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopHogRider] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_19", "hogriders\r\nhogs\r\nhog"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtHogRiders) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopHogRider] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_19", "no hogs\r\nhog no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtHogRiders) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopValkyrie] = GUICtrlCreateGroup($sTxtValkyries, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonValkyrie, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopValkyrie] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtValkyries, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtValkyries & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopValkyrie] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtValkyries & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtValkyries & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopValkyrie] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_20", "valkyries\r\nvalkyrie\r\nvalk"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtValkyries) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopValkyrie] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_20", "no valkyries\r\nvalkyries no\r\nno valk\r\nvalk no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtValkyries) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopGolem] = GUICtrlCreateGroup($sTxtGolems, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonGolem, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopGolem] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtGolems, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGolems & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopGolem] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGolems & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtGolems & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopGolem] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_21", "golem\r\ngole"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtGolems) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopGolem] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_21", "no golem\r\ngolem no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtGolems) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopWitch] = GUICtrlCreateGroup($sTxtWitches, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonWitch, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopWitch] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtWitches, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWitches & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopWitch] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWitches & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtWitches & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopWitch] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_22", "witches\r\nwitch"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtWitches) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopWitch] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_22", "no witches\r\nwitch no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtWitches) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopLavaHound] = GUICtrlCreateGroup($sTxtLavaHounds, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonLavaHound, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopLavaHound] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtLavaHounds, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLavaHounds & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopLavaHound] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLavaHounds & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtLavaHounds & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopLavaHound] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_23", "lavahound\r\nlava\r\nhound"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtLavaHounds) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopLavaHound] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_23", "no lavahound\r\nlava no\r\nhound no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtLavaHounds) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopBowler] = GUICtrlCreateGroup($sTxtBowlers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBowler, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopBowler] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBowlers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBowlers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopBowler] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBowlers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBowlers & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopBowler] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_24", "bowler\r\nbowlers\r\nbowl"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBowlers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopBowler] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_24", "no bowler\r\nbowl no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBowlers) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopIceGolem] = GUICtrlCreateGroup($sTxtIceGolems, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceGolem, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopIceGolem] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtIceGolems, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtIceGolems & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopIceGolem] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtIceGolems & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtIceGolems & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopIceGolem] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_36", "ice golem\r\nice golems"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtIceGolems) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopIceGolem] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_36", "no ice golem\r\nice golem no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtIceGolems) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopHeadhunter] = GUICtrlCreateGroup($sTxtHeadhunters, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHeadhunter, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopHeadhunter] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtHeadhunters, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHeadhunters & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopHeadhunter] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHeadhunters & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtHeadhunters & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopHeadhunter] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_39", "headhunter\r\nhunt"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtHeadhunters) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopHeadhunter] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_39", "no headhunter\r\nno hunt"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtHeadhunters) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopAppWard] = GUICtrlCreateGroup($sTxtAppWards, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnAppWard, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopAppWard] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtAppWards, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtAppWards & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopAppWard] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtAppWards & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtAppWards & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopAppWard] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_65", "apprentice Wardens\r\nAppWards"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtAppWards) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopAppWard] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_65", "no apprentice wardens\r\nno AppWards"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtAppWards) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblExtraAlphabets", "Extra Alphabet Recognitions:"), $x - 15, $y + 153, -1, -1) + $g_hChkExtraAlphabets = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraAlphabets", "Cyrillic"), $x + 127, $y + 149, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraAlphabets_Info_01", "Check this to enable the Cyrillic Alphabet.")) + $g_hChkExtraChinese = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraChinese", "Chinese"), $x + 191, $y + 149, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraChinese_Info_01", "Check this to enable the Chinese Alphabet.")) + $g_hChkExtraKorean = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraKorean", "Korean"), $x + 265, $y + 149, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraKorean_Info_01", "Check this to enable the Korean Alphabet.")) + $g_hChkExtraPersian = GUICtrlCreateCheckbox(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraPersian", "Persian"), $x + 340, $y + 149, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "ChkExtraPersian_Info_01", "Check this to enable the Persian Alphabet.")) + + $g_hChkDonateQueueTroopOnly = GUICtrlCreateCheckbox($sTxtDonateQueueTroop, $x + 275, $y + 71, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateQueueTroopTip", "Only donate troops which are ready in 2nd army,\r\nor troops which are training in first slot of 2nd army.\r\nIf 2nd army is not prepared, donate whatever exists in 1st army.")) + $g_hChkDonateQueueSpellOnly = GUICtrlCreateCheckbox($sTxtDonateQueueSpell, $x + 275, $y + 71, -1, -1) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateQueueSpellTip", "Only donate spells which are ready in 2nd army,\r\nor spells which are training in first slot of 2nd army.\r\n\If 2nd army is not prepared, donate whatever exists in 1st army.")) + GUICtrlSetState(-1, $GUI_HIDE) + + $g_ahGrpDonateTroop[$eTroopBarbarian] = GUICtrlCreateGroup($sTxtBarbarians, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBarbarian, $x + 215, $y, 64, 64, $BS_ICON) + $g_ahChkDonateTroop[$eTroopBarbarian] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBarbarians, $x + 285, $y, -1, -1) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBarbarians & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopBarbarian] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBarbarians & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBarbarians & ":", $x - 5, $y + 5, -1, -1) + $g_ahTxtDonateTroop[$eTroopBarbarian] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_01", "barbarians\r\nbarb"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBarbarians) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + $g_ahTxtBlacklistTroop[$eTroopBarbarian] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_01", "no barbarians\r\nno barb\r\nbarbarians no\r\nbarb no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBarbarians) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopArcher] = GUICtrlCreateGroup($sTxtArchers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonArcher, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopArcher] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtArchers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtArchers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopArcher] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtArchers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtArchers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopArcher] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_02", "archers\r\narch"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtArchers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopArcher] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_02", "no archers\r\nno arch\r\narchers no\r\narch no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtArchers) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopGiant] = GUICtrlCreateGroup($sTxtGiants, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonGiant, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopGiant] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtGiants, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGiants & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopGiant] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGiants & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtGiants & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopGiant] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_03", "giants\r\ngiant\r\nany\r\nreinforcement"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtGiants) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopGiant] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_03", "no giants\r\ngiants no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtGiants) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopGoblin] = GUICtrlCreateGroup($sTxtGoblins, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonGoblin, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopGoblin] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtGoblins, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGoblins & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopGoblin] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGoblins & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtGoblins & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopGoblin] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_04", "goblins\r\ngoblin"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtGoblins) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopGoblin] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_04", "no goblins\r\ngoblins no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtGoblins) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopWallBreaker] = GUICtrlCreateGroup($sTxtWallBreakers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonWallBreaker, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopWallBreaker] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtWallBreakers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWallBreakers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopWallBreaker] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWallBreakers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtWallBreakers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopWallBreaker] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_05", "wall breakers\r\nbreaker"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtWallBreakers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopWallBreaker] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_05", "no wall breakers\r\nwall breakers no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtWallBreakers) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopBalloon] = GUICtrlCreateGroup($sTxtBalloons, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBalloon, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopBalloon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBalloons, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBalloons & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopBalloon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBalloons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBalloons & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopBalloon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_06", "balloons\r\nballoon\r\nball\r\nloon"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBalloons) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopBalloon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_06", "no balloon\r\nballoons no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBalloons) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopWizard] = GUICtrlCreateGroup($sTxtWizards, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonWizard, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopWizard] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtWizards, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWizards & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopWizard] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWizards & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtWizards & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopWizard] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_07", "wizards\r\nwizard\r\nwiz"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtWizards) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopWizard] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_07", "no wizards\r\nwizards no\r\nno wizard\r\nwizard no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtWizards) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopHealer] = GUICtrlCreateGroup($sTxtHealers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonHealer, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopHealer] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtHealers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHealers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopHealer] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHealers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtHealers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopHealer] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_08", "healer"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtHealers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopHealer] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_08", "no healer\r\nhealer no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtHealers) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopDragon] = GUICtrlCreateGroup($sTxtDragons, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonDragon, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopDragon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtDragons, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtDragons & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopDragon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtDragons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtDragons & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopDragon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_09", "dragon\r\ndrag"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtDragons) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopDragon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_09", "no dragon\r\ndragon no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtDragons) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopPekka] = GUICtrlCreateGroup($sTxtPekkas, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonPekka, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopPekka] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtPekkas, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtPekkas & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopPekka] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtPekkas & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtPekkas & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopPekka] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_10", "PEKKA\r\npekka"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtPekkas) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopPekka] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_10", "no pekka\r\npekka no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtPekkas) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopBabyDragon] = GUICtrlCreateGroup($sTxtBabyDragons, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBabyDragon, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopBabyDragon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBabyDragons, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBabyDragons & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopBabyDragon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBabyDragons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBabyDragons & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopBabyDragon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_11", "baby dragon\r\nbaby"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBabyDragons) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopBabyDragon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_11", "no baby dragon\r\nbaby dragon no\r\nno baby\r\nbaby no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBabyDragons) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopMiner] = GUICtrlCreateGroup($sTxtMiners, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonMiner, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopMiner] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtMiners, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtMiners & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopMiner] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtMiners & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtMiners & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopMiner] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_12", "miner\r\nmine"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtMiners) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopMiner] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_12", "no miner\r\nminer no\r\nno mine\r\nmine no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtMiners) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopElectroDragon] = GUICtrlCreateGroup($sTxtElectroDragons, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroDragon, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopElectroDragon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtElectroDragons, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtElectroDragons & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopElectroDragon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtElectroDragons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtElectroDragons & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopElectroDragon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_31", "electro dragon\r\nelectrodrag\r\nedrag"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtElectroDragons) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopElectroDragon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_31", "no electro dragon\r\nelectrodrag no\r\nedrag no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtElectroDragons) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopYeti] = GUICtrlCreateGroup($sTxtYetis, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnYeti, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopYeti] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtYetis, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtYetis & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopYeti] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtYetis & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtYetis & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopYeti] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_37", "yeti\r\nyetis"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtYetis) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopYeti] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_37", "no yeti\r\nyeti no\r\nyetis no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtYetis) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopDragonRider] = GUICtrlCreateGroup($sTxtDragonRiders, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDragonRider, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopDragonRider] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtDragonRiders, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtDragonRiders & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopDragonRider] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtDragonRiders & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtDragonRiders & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopDragonRider] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_54", "dragon rider\r\ndragon riders\r\ndragrider"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtDragonRiders) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopDragonRider] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_54", "no dragon rider\r\ndragon rider no\r\ndragon riders no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtDragonRiders) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopElectroTitan] = GUICtrlCreateGroup($sTxtElectroTitans, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnElectroTitan, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopElectroTitan] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtElectroTitans, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtElectroTitans & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopElectroTitan] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtElectroTitans & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtElectroTitans & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopElectroTitan] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_61", "electro titan\r\nelectro titans\r\netitan\r\ntitan"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtElectroTitans) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopElectroTitan] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_61", "no electro titan\r\nelectro titan no\r\nelectro titans no\r\nno titan"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtElectroTitans) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopRootRider] = GUICtrlCreateGroup($sTxtRootRiders, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRootRider, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopRootRider] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtRootRiders, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRootRiders & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopRootRider] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRootRiders & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtRootRiders & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopRootRider] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_67", "root rider\r\nroot riders\r\nroot"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtRootRiders) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopRootRider] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_67", "no root rider\r\nroot rider no\r\nroot riders no\r\nno root"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtRootRiders) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopMinion] = GUICtrlCreateGroup($sTxtMinions, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonMinion, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopMinion] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtMinions, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtMinions & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopMinion] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtMinions & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtMinions & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopMinion] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_18", "minions\r\nminion"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtMinions) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopMinion] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_18", "no minions\r\nminions no\r\nno minion\r\nminion no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtMinions) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopHogRider] = GUICtrlCreateGroup($sTxtHogRiders, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonHogRider, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopHogRider] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtHogRiders, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHogRiders & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopHogRider] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHogRiders & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtHogRiders & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopHogRider] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_19", "hogriders\r\nhogs\r\nhog"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtHogRiders) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopHogRider] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_19", "no hogs\r\nhog no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtHogRiders) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopValkyrie] = GUICtrlCreateGroup($sTxtValkyries, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonValkyrie, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopValkyrie] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtValkyries, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtValkyries & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopValkyrie] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtValkyries & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtValkyries & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopValkyrie] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_20", "valkyries\r\nvalkyrie\r\nvalk"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtValkyries) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopValkyrie] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_20", "no valkyries\r\nvalkyries no\r\nno valk\r\nvalk no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtValkyries) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopGolem] = GUICtrlCreateGroup($sTxtGolems, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonGolem, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopGolem] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtGolems, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGolems & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopGolem] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtGolems & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtGolems & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopGolem] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_21", "golem\r\ngole"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtGolems) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopGolem] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_21", "no golem\r\ngolem no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtGolems) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopWitch] = GUICtrlCreateGroup($sTxtWitches, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonWitch, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopWitch] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtWitches, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWitches & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopWitch] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWitches & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtWitches & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopWitch] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_22", "witches\r\nwitch"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtWitches) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopWitch] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_22", "no witches\r\nwitch no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtWitches) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopLavaHound] = GUICtrlCreateGroup($sTxtLavaHounds, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonLavaHound, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopLavaHound] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtLavaHounds, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLavaHounds & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopLavaHound] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLavaHounds & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtLavaHounds & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopLavaHound] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_23", "lavahound\r\nlava\r\nhound"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtLavaHounds) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopLavaHound] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_23", "no lavahound\r\nlava no\r\nhound no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtLavaHounds) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopBowler] = GUICtrlCreateGroup($sTxtBowlers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBowler, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopBowler] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBowlers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBowlers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopBowler] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBowlers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBowlers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopBowler] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_24", "bowler\r\nbowlers\r\nbowl"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBowlers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopBowler] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_24", "no bowler\r\nbowl no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBowlers) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopIceGolem] = GUICtrlCreateGroup($sTxtIceGolems, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceGolem, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopIceGolem] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtIceGolems, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtIceGolems & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopIceGolem] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtIceGolems & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtIceGolems & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopIceGolem] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_36", "ice golem\r\nice golems"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtIceGolems) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopIceGolem] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_36", "no ice golem\r\nice golem no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtIceGolems) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopHeadhunter] = GUICtrlCreateGroup($sTxtHeadhunters, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHeadhunter, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopHeadhunter] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtHeadhunters, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHeadhunters & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopHeadhunter] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHeadhunters & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtHeadhunters & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopHeadhunter] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_39", "headhunter\r\nhunt"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtHeadhunters) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopHeadhunter] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_39", "no headhunter\r\nno hunt"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtHeadhunters) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopAppWard] = GUICtrlCreateGroup($sTxtAppWards, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnAppWard, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopAppWard] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtAppWards, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtAppWards & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopAppWard] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtAppWards & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtAppWards & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopAppWard] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_65", "Apprentice Warden\r\nAppWard"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtAppWards) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopAppWard] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_65", "no Apprentice Warden\r\nno AppWard"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtAppWards) GUICtrlCreateGroup("", -99, -99, 1, 1) ;Super Troops $x = $xStart $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperBarbarian] = GUICtrlCreateGroup($sTxtSuperBarbarians, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBarbarian, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperBarbarian] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperBarbarians, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperBarbarians & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperBarbarian] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperBarbarians & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperBarbarians & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperBarbarian] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_42", "super barbarians\r\nsuper barb\r\nsbarb"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperBarbarians) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperBarbarian] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_42", "no super barbarians\r\nno barb super\r\nsuper barbarians no\r\nsuper barb no\r\nnosbarb"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperBarbarians) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperArcher] = GUICtrlCreateGroup($sTxtSuperArchers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperArcher, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperArcher] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperArchers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperArchers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperArcher] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperArchers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperArchers & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperArcher] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_43", "super archers\r\nsuper arch\r\nsarch"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperArchers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperArcher] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_43", "no super archers\r\nno arch super\r\nsuper archers no\r\nsuper arch nor\nno sarch"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperArchers) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperGiant] = GUICtrlCreateGroup($sTxtSuperGiants, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperGiant, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperGiant] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperGiants, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperGiants & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperGiant] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperGiants & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperGiants & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperGiant] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_44", "super giants\r\nsuper giant\r\nsgiant"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperGiants) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperGiant] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_44", "no super giants\r\nsuper giants no\r\nnosgiant"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperGiants) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSneakyGoblin] = GUICtrlCreateGroup($sTxtSneakyGoblins, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSneakyGoblin, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSneakyGoblin] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSneakyGoblins, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSneakyGoblins & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSneakyGoblin] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSneakyGoblins & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSneakyGoblins & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSneakyGoblin] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_45", "sneakygoblins\r\nsneakygoblin\r\nsneaky"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSneakyGoblins) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSneakyGoblin] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_45", "no sneakygoblins\r\nsneakygoblins no\r\nno sneaky"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSneakyGoblins) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperWallBreaker] = GUICtrlCreateGroup($sTxtSuperWallBreakers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWallBreaker, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperWallBreaker] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperWallBreakers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWallBreakers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperWallBreaker] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWallBreakers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperWallBreakers & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperWallBreaker] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_46", "super wall breakers\r\nsuper breaker"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperWallBreakers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperWallBreaker] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_46", "no super wall breakers\r\nsuper wall breakers no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperWallBreakers) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopRocketBalloon] = GUICtrlCreateGroup($sTxtRocketBalloons, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRocketBalloon, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopRocketBalloon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtRocketBalloons, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRocketBalloons & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopRocketBalloon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRocketBalloons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtRocketBalloons & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopRocketBalloon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_55", "rocket balloon\r\nrocket balloons\r\nrocket"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtRocketBalloons) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopRocketBalloon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_55", "no rocket balloon\r\nrocket balloon no\r\nrocket balloons no\r\nno rocket"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtRocketBalloons) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperWizard] = GUICtrlCreateGroup($sTxtSuperWizards, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWizard, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperWizard] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperWizards, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWizards & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperWizard] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWizards & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperWizards & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperWizard] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_47", "superwizards\r\nsuperwizard\r\nsuper wiz\r\nswiz"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperWizards) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperWizard] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_47", "no superwizards\r\nsuperwizards no\r\nno superwizard\r\nsuperwizard no\r\nno swiz"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperWizards) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopInfernoDragon] = GUICtrlCreateGroup($sTxtInfernoDragons, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInfernoDragon, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopInfernoDragon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtInfernoDragons, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtInfernoDragons & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopInfernoDragon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtInfernoDragons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtInfernoDragons & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopInfernoDragon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_48", "inferno dragon\r\ninferno baby\r\ninferno"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtInfernoDragons) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopInfernoDragon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_48", "no inferno dragon\r\ninferno baby dragon no\r\nno inferno\r\ninferno no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtInfernoDragons) + $g_ahGrpDonateTroop[$eTroopSuperBarbarian] = GUICtrlCreateGroup($sTxtSuperBarbarians, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBarbarian, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperBarbarian] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperBarbarians, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperBarbarians & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperBarbarian] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperBarbarians & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperBarbarians & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperBarbarian] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_42", "super barbarians\r\nsuper barb\r\nsbarb"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperBarbarians) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperBarbarian] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_42", "no super barbarians\r\nno barb super\r\nsuper barbarians no\r\nsuper barb no\r\nnosbarb"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperBarbarians) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSuperArcher] = GUICtrlCreateGroup($sTxtSuperArchers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperArcher, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperArcher] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperArchers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperArchers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperArcher] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperArchers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperArchers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperArcher] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_43", "super archers\r\nsuper arch\r\nsarch"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperArchers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperArcher] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_43", "no super archers\r\nno arch super\r\nsuper archers no\r\nsuper arch nor\nno sarch"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperArchers) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSuperGiant] = GUICtrlCreateGroup($sTxtSuperGiants, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperGiant, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperGiant] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperGiants, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperGiants & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperGiant] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperGiants & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperGiants & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperGiant] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_44", "super giants\r\nsuper giant\r\nsgiant"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperGiants) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperGiant] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_44", "no super giants\r\nsuper giants no\r\nnosgiant"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperGiants) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSneakyGoblin] = GUICtrlCreateGroup($sTxtSneakyGoblins, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSneakyGoblin, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSneakyGoblin] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSneakyGoblins, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSneakyGoblins & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSneakyGoblin] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSneakyGoblins & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSneakyGoblins & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSneakyGoblin] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_45", "sneakygoblins\r\nsneakygoblin\r\nsneaky"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSneakyGoblins) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSneakyGoblin] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_45", "no sneakygoblins\r\nsneakygoblins no\r\nno sneaky"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSneakyGoblins) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSuperWallBreaker] = GUICtrlCreateGroup($sTxtSuperWallBreakers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWallBreaker, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperWallBreaker] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperWallBreakers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWallBreakers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperWallBreaker] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWallBreakers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperWallBreakers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperWallBreaker] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_46", "super wall breakers\r\nsuper breaker"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperWallBreakers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperWallBreaker] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_46", "no super wall breakers\r\nsuper wall breakers no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperWallBreakers) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopRocketBalloon] = GUICtrlCreateGroup($sTxtRocketBalloons, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRocketBalloon, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopRocketBalloon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtRocketBalloons, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRocketBalloons & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopRocketBalloon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRocketBalloons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtRocketBalloons & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopRocketBalloon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_55", "rocket balloon\r\nrocket balloons\r\nrocket"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtRocketBalloons) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopRocketBalloon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_55", "no rocket balloon\r\nrocket balloon no\r\nrocket balloons no\r\nno rocket"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtRocketBalloons) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSuperWizard] = GUICtrlCreateGroup($sTxtSuperWizards, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWizard, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperWizard] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperWizards, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWizards & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperWizard] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWizards & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperWizards & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperWizard] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_47", "superwizards\r\nsuperwizard\r\nsuper wiz\r\nswiz"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperWizards) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperWizard] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_47", "no superwizards\r\nsuperwizards no\r\nno superwizard\r\nsuperwizard no\r\nno swiz"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperWizards) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopInfernoDragon] = GUICtrlCreateGroup($sTxtInfernoDragons, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInfernoDragon, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopInfernoDragon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtInfernoDragons, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtInfernoDragons & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopInfernoDragon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtInfernoDragons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtInfernoDragons & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopInfernoDragon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_48", "inferno dragon\r\ninferno baby\r\ninferno"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtInfernoDragons) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopInfernoDragon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_48", "no inferno dragon\r\ninferno baby dragon no\r\nno inferno\r\ninferno no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtInfernoDragons) GUICtrlCreateGroup("", -99, -99, 1, 1) ; Super Miner $x = $xStart $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperMiner] = GUICtrlCreateGroup($sTxtSuperMiners, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMiner, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperMiner] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperMiners, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperMiners & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperMiner] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperMiners & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperMiners & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperMiner] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_64", "superminers\r\nsuperminer\r\nsminer\r\nsmine"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperMiners) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperMiner] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_64", "no superminers\r\nsuperminers no\r\nno superminer\r\nsuperminer no\r\nno sminer"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperMiners) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperMinion] = GUICtrlCreateGroup($sTxtSuperMinions, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMinion, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperMinion] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperMinions, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperMinions & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperMinion] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperMinions & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperMinions & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperMinion] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_49", "superminions\r\nsuperminion\r\nsminion"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperMinions) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperMinion] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_49", "no superminions\r\nsuperminions no\r\nno superminion\r\nsuperminion no\r\nno sminion"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperMinions) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperValkyrie] = GUICtrlCreateGroup($sTxtSuperValkyries, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperValkyrie, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperValkyrie] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperValkyries, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperValkyries & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperValkyrie] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperValkyries & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperValkyries & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperValkyrie] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_50", "supervalkyries\r\nsupervalkyrie\r\nsvalk"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperValkyries) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperValkyrie] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_50", "no supervalkyries\r\nsupervalkyries no\r\nno supervalk\r\nno svalk\r\nsvalk no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperValkyries) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperWitch] = GUICtrlCreateGroup($sTxtSuperWitches, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWitch, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperWitch] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperWitches, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWitches & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperWitch] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWitches & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperWitches & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperWitch] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_51", "superwitches\r\nsuperwitch\r\nswitch"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperWitches) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperWitch] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_51", "no superwitches\r\nsuperwitch no\r\nno switch"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperWitches) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopIceHound] = GUICtrlCreateGroup($sTxtIceHounds, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceHound, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopIceHound] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtIceHounds, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtIceHounds & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopIceHound] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtIceHounds & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtIceHounds & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopIceHound] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_52", "icehound"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtIceHounds) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopIceHound] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_52", "no icehound\r\nicehound no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtIceHounds) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperBowler] = GUICtrlCreateGroup($sTxtSuperBowlers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBowler, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperBowler] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperBowlers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperBowlers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperBowler] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperBowlers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperBowlers & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperBowler] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_56", "super bowler\r\nsuper bowlers\r\nsbowl"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperBowlers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperBowler] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_56", "no super bowler\r\nsuper bowler no\r\nsbowl no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperBowlers) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperHogRider] = GUICtrlCreateGroup($sTxtSuperHogRiders, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperHogrider, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperHogRider] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperHogRiders, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperHogRiders & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperHogRider] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperHogRiders & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperHogRiders & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperHogRider] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_66", "super hog riders\r\nsuper hogs\r\nshogs"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperHogRiders) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperHogRider] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_66", "no super hog riders\r\nsuper hog riders no\r\nshogs no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperHogRiders) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopSuperDragon] = GUICtrlCreateGroup($sTxtSuperDragons, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperDragon, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopSuperDragon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperDragons, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperDragons & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopSuperDragon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperDragons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperDragons & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopSuperDragon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_59", "super dragon\r\nsdrag"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperDragons) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopSuperDragon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_59", "no super dragon\r\nsuper dragon no\r\nno sdrag\r\nsdrag no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperDragons) + $g_ahGrpDonateTroop[$eTroopSuperMiner] = GUICtrlCreateGroup($sTxtSuperMiners, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMiner, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperMiner] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperMiners, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperMiners & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperMiner] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperMiners & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperMiners & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperMiner] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_64", "superminers\r\nsuperminer\r\nsminer\r\nsmine"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperMiners) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperMiner] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_64", "no superminers\r\nsuperminers no\r\nno superminer\r\nsuperminer no\r\nno sminer"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperMiners) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSuperMinion] = GUICtrlCreateGroup($sTxtSuperMinions, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperMinion, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperMinion] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperMinions, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperMinions & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperMinion] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperMinions & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperMinions & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperMinion] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_49", "superminions\r\nsuperminion\r\nsminion"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperMinions) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperMinion] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_49", "no superminions\r\nsuperminions no\r\nno superminion\r\nsuperminion no\r\nno sminion"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperMinions) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSuperValkyrie] = GUICtrlCreateGroup($sTxtSuperValkyries, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperValkyrie, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperValkyrie] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperValkyries, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperValkyries & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperValkyrie] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperValkyries & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperValkyries & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperValkyrie] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_50", "supervalkyries\r\nsupervalkyrie\r\nsvalk"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperValkyries) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperValkyrie] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_50", "no supervalkyries\r\nsupervalkyries no\r\nno supervalk\r\nno svalk\r\nsvalk no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperValkyries) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSuperWitch] = GUICtrlCreateGroup($sTxtSuperWitches, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperWitch, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperWitch] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperWitches, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWitches & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperWitch] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperWitches & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperWitches & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperWitch] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_51", "superwitches\r\nsuperwitch\r\nswitch"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperWitches) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperWitch] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_51", "no superwitches\r\nsuperwitch no\r\nno switch"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperWitches) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopIceHound] = GUICtrlCreateGroup($sTxtIceHounds, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnIceHound, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopIceHound] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtIceHounds, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtIceHounds & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopIceHound] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtIceHounds & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtIceHounds & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopIceHound] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_52", "icehound"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtIceHounds) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopIceHound] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_52", "no icehound\r\nicehound no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtIceHounds) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSuperBowler] = GUICtrlCreateGroup($sTxtSuperBowlers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperBowler, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperBowler] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperBowlers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperBowlers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperBowler] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperBowlers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperBowlers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperBowler] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_56", "super bowler\r\nsuper bowlers\r\nsbowl"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperBowlers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperBowler] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_56", "no super bowler\r\nsuper bowler no\r\nsbowl no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperBowlers) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSuperHogRider] = GUICtrlCreateGroup($sTxtSuperHogRiders, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperHogrider, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperHogRider] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperHogRiders, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperHogRiders & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperHogRider] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperHogRiders & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperHogRiders & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperHogRider] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_66", "super hog rider\r\nsuper hogs\r\nshog"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperHogRiders) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperHogRider] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_66", "no super hog rider\r\nsuper hog rider no\r\nshog no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperHogRiders) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopSuperDragon] = GUICtrlCreateGroup($sTxtSuperDragons, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSuperDragon, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopSuperDragon] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSuperDragons, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperDragons & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopSuperDragon] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSuperDragons & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSuperDragons & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopSuperDragon] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_59", "super dragon\r\nsdrag"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSuperDragons) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopSuperDragon] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_59", "no super dragon\r\nsuper dragon no\r\nno sdrag\r\nsdrag no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSuperDragons) GUICtrlCreateGroup("", -99, -99, 1, 1) ; Spells $x = $xStart $y = $Offy - $g_ahGrpDonateSpell[$eSpellLightning] = GUICtrlCreateGroup($sTxtLightningSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLightSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellLightning] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtLightningSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLightningSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellLightning] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLightningSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtLightningSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellLightning] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_13", "lightning"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtLightningSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellLightning] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_13", "no lightning\r\nlightning no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtLightningSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellHeal] = GUICtrlCreateGroup($sTxtHealSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellHeal] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtHealSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHealSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellHeal] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHealSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtHealSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellHeal] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_14", "heal"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtHealSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellHeal] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_14", "no heal\r\nheal no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtHealSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellRage] = GUICtrlCreateGroup($sTxtRageSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRageSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellRage] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtRageSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRageSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellRage] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRageSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtRageSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellRage] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_15", "rage"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtRageSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellRage] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_15", "no rage\r\nrage no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtRageSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellJump] = GUICtrlCreateGroup($sTxtJumpSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnJumpSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellJump] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtJumpSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtJumpSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellJump] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtJumpSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtJumpSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellJump] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_16", "jump"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtJumpSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellJump] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_16", "no jump\r\njump no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtJumpSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellFreeze] = GUICtrlCreateGroup($sTxtFreezeSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFreezeSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellFreeze] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtFreezeSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtFreezeSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellFreeze] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtFreezeSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtFreezeSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellFreeze] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_17", "freeze"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtFreezeSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellFreeze] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_17", "no freeze\r\nfreeze no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtFreezeSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellInvisibility] = GUICtrlCreateGroup($sTxtInvisibilitySpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInvisibilitySpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellInvisibility] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtInvisibilitySpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtInvisibilitySpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellInvisibility] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtInvisibilitySpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtInvisibilitySpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellInvisibility] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_40", "invisibility"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtInvisibilitySpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellInvisibility] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_40", "no invisibility\r\ninvisibility no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtInvisibilitySpells) + $g_ahGrpDonateSpell[$eSpellLightning] = GUICtrlCreateGroup($sTxtLightningSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLightSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellLightning] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtLightningSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLightningSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellLightning] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLightningSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtLightningSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellLightning] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_13", "lightning"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtLightningSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellLightning] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_13", "no lightning\r\nlightning no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtLightningSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellHeal] = GUICtrlCreateGroup($sTxtHealSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnHealSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellHeal] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtHealSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHealSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellHeal] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHealSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtHealSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellHeal] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_14", "heal"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtHealSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellHeal] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_14", "no heal\r\nheal no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtHealSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellRage] = GUICtrlCreateGroup($sTxtRageSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRageSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellRage] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtRageSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRageSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellRage] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRageSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtRageSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellRage] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_15", "rage"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtRageSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellRage] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_15", "no rage\r\nrage no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtRageSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellJump] = GUICtrlCreateGroup($sTxtJumpSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnJumpSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellJump] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtJumpSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtJumpSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellJump] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtJumpSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtJumpSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellJump] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_16", "jump"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtJumpSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellJump] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_16", "no jump\r\njump no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtJumpSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellFreeze] = GUICtrlCreateGroup($sTxtFreezeSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFreezeSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellFreeze] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtFreezeSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtFreezeSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellFreeze] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtFreezeSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtFreezeSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellFreeze] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_17", "freeze"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtFreezeSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellFreeze] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_17", "no freeze\r\nfreeze no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtFreezeSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellInvisibility] = GUICtrlCreateGroup($sTxtInvisibilitySpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnInvisibilitySpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellInvisibility] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtInvisibilitySpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtInvisibilitySpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellInvisibility] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtInvisibilitySpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtInvisibilitySpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellInvisibility] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_40", "invisibility"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtInvisibilitySpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellInvisibility] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_40", "no invisibility\r\ninvisibility no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtInvisibilitySpells) GUICtrlCreateGroup("", -99, -99, 1, 1) ; Recall Spell $x = $xStart $y = $Offy - $g_ahGrpDonateSpell[$eSpellRecall] = GUICtrlCreateGroup($sTxtRecallSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRecallSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellRecall] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtRecallSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRecallSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellRecall] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRecallSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtRecallSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellRecall] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_62", "recall"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtRecallSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellRecall] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_62", "no recall\r\nrecall no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtRecallSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellClone] = GUICtrlCreateGroup($sTxtCloneSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCloneSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellClone] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtCloneSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtCloneSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellClone] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtCloneSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtCloneSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellClone] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_53", "clone"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtCloneSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellClone] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_53", "no clone\r\nclone no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtCloneSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellPoison] = GUICtrlCreateGroup($sTxtPoisonSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonPoisonSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellPoison] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtPoisonSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtPoisonSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellPoison] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtPoisonSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtPoisonSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellPoison] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_25", "poison"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtPoisonSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellPoison] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_25", "no poison\r\npoison no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtPoisonSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellEarthquake] = GUICtrlCreateGroup($sTxtEarthQuakeSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonEarthQuakeSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellEarthquake] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtEarthQuakeSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtEarthQuakeSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellEarthquake] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtEarthQuakeSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtEarthQuakeSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellEarthquake] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_26", "earthquake\r\nquake\r\neq"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtEarthQuakeSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellEarthquake] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_26", "no earthquake\r\nquake no\r\nno quake\r\nno eq"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtEarthQuakeSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellHaste] = GUICtrlCreateGroup($sTxtHasteSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonHasteSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellHaste] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtHasteSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHasteSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellHaste] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHasteSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtHasteSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellHaste] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_27", "haste"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtHasteSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellHaste] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_27", "no haste\r\nhaste no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtHasteSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellSkeleton] = GUICtrlCreateGroup($sTxtSkeletonSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonSkeletonSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellSkeleton] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSkeletonSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSkeletonSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellSkeleton] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSkeletonSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSkeletonSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellSkeleton] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_28", "skeleton"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSkeletonSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellSkeleton] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_28", "no skeleton\r\nskeleton no\r\nno skel"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSkeletonSpells) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateSpell[$eSpellBat] = GUICtrlCreateGroup($sTxtBatSpells, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBatSpell, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateSpell[$eSpellBat] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBatSpells, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBatSpells & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateSpell") - $g_ahChkDonateAllSpell[$eSpellBat] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBatSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllSpell") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBatSpells & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateSpell[$eSpellBat] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_34", "bat"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBatSpells) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistSpell[$eSpellBat] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_34", "no bat\r\nbat no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBatSpells) + $g_ahGrpDonateSpell[$eSpellRecall] = GUICtrlCreateGroup($sTxtRecallSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnRecallSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellRecall] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtRecallSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRecallSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellRecall] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtRecallSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtRecallSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellRecall] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_62", "recall"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtRecallSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellRecall] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_62", "no recall\r\nrecall no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtRecallSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellClone] = GUICtrlCreateGroup($sTxtCloneSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnCloneSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellClone] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtCloneSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtCloneSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellClone] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtCloneSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtCloneSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellClone] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_53", "clone"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtCloneSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellClone] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_53", "no clone\r\nclone no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtCloneSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellPoison] = GUICtrlCreateGroup($sTxtPoisonSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonPoisonSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellPoison] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtPoisonSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtPoisonSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellPoison] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtPoisonSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtPoisonSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellPoison] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_25", "poison"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtPoisonSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellPoison] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_25", "no poison\r\npoison no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtPoisonSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellEarthquake] = GUICtrlCreateGroup($sTxtEarthquakeSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonEarthQuakeSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellEarthquake] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtEarthquakeSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtEarthquakeSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellEarthquake] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtEarthquakeSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtEarthquakeSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellEarthquake] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_26", "earthquake\r\nquake\r\neq"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtEarthquakeSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellEarthquake] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_26", "no earthquake\r\nquake no\r\nno quake\r\nno eq"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtEarthquakeSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellHaste] = GUICtrlCreateGroup($sTxtHasteSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonHasteSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellHaste] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtHasteSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHasteSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellHaste] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtHasteSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtHasteSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellHaste] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_27", "haste"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtHasteSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellHaste] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_27", "no haste\r\nhaste no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtHasteSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellSkeleton] = GUICtrlCreateGroup($sTxtSkeletonSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonSkeletonSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellSkeleton] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSkeletonSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSkeletonSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellSkeleton] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSkeletonSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSkeletonSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellSkeleton] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_28", "skeleton"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSkeletonSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellSkeleton] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_28", "no skeleton\r\nskeleton no\r\nno skel"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSkeletonSpells) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateSpell[$eSpellBat] = GUICtrlCreateGroup($sTxtBatSpells, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBatSpell, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateSpell[$eSpellBat] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBatSpells, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBatSpells & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateSpell") + $g_ahChkDonateAllSpell[$eSpellBat] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBatSpells & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllSpell") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBatSpells & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateSpell[$eSpellBat] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_34", "bat"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBatSpells) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistSpell[$eSpellBat] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_34", "no bat\r\nbat no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBatSpells) GUICtrlCreateGroup("", -99, -99, 1, 1) ; Siege Machines $x = $xStart $y = $Offy - $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateGroup($sTxtWallWreckers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallW, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtWallWreckers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWallWreckers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWallWreckers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtWallWreckers & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_32", "wall wreckers\r\nsieges\r\nwreckers\r\nww"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtWallWreckers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_32", "no wreckers\r\nsiege no\r\nno ww"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtWallWreckers) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateGroup($sTxtBattleBlimps, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleB, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBattleBlimps, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBattleBlimps & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBattleBlimps & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBattleBlimps & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_33", "battle blimps\r\nsieges\r\nblimps\r\nbb"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBattleBlimps) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_33", "no blimps\r\nsiege no\r\nno bb"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBattleBlimps) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateGroup($sTxtStoneSlammers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnStoneS, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtStoneSlammers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtStoneSlammers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtStoneSlammers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtStoneSlammers & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_35", "stone slammers\r\nsieges\r\nslammers\r\nss"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtStoneSlammers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_35", "no slammers\r\nsiege no\r\nno ss"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtStoneSlammers) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateGroup($sTxtSiegeBarracks, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSiegeB, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSiegeBarracks, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSiegeBarracks & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSiegeBarracks & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSiegeBarracks & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_38", "siege barracks\r\nsieges\r\nbarracks"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSiegeBarracks) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_38", "no barracks\r\nsiege no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSiegeBarracks) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateGroup($sTxtLogLaunchers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLogL, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtLogLaunchers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLogLaunchers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLogLaunchers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtLogLaunchers & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_41", "log launcher\r\nsieges\r\nlauncher\r\nlog"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtLogLaunchers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_41", "no launcher\r\nsiege no\r\nno log"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtLogLaunchers) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateGroup($sTxtFlameFlingers, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFlameF, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtFlameFlingers, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtFlameFlingers & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtFlameFlingers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtFlameFlingers & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_60", "flame flinger\r\nsieges\r\nflame"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtFlameFlingers) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_60", "no flame\r\nsiege no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtFlameFlingers) + $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateGroup($sTxtWallWreckers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnWallW, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtWallWreckers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWallWreckers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtWallWreckers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtWallWreckers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_32", "wall wreckers\r\nsieges\r\nwreckers\r\nww"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtWallWreckers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeWallWrecker] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_32", "no wreckers\r\nsiege no\r\nno ww"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtWallWreckers) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateGroup($sTxtBattleBlimps, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleB, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBattleBlimps, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBattleBlimps & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBattleBlimps & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBattleBlimps & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_33", "battle blimps\r\nsieges\r\nblimps\r\nbb"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBattleBlimps) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleBlimp] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_33", "no blimps\r\nsiege no\r\nno bb"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBattleBlimps) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateGroup($sTxtStoneSlammers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnStoneS, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtStoneSlammers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtStoneSlammers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtStoneSlammers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtStoneSlammers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_35", "stone slammers\r\nsieges\r\nslammers\r\nss"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtStoneSlammers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeStoneSlammer] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_35", "no slammers\r\nsiege no\r\nno ss"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtStoneSlammers) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateGroup($sTxtSiegeBarracks, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnSiegeB, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtSiegeBarracks, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSiegeBarracks & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtSiegeBarracks & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtSiegeBarracks & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_38", "siege barracks\r\nsieges\r\nbarracks"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtSiegeBarracks) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBarracks] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_38", "no barracks\r\nsiege no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtSiegeBarracks) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateGroup($sTxtLogLaunchers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnLogL, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtLogLaunchers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLogLaunchers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtLogLaunchers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtLogLaunchers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_41", "log launcher\r\nsieges\r\nlauncher\r\nlog"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtLogLaunchers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeLogLauncher] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_41", "no launcher\r\nsiege no\r\nno log"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtLogLaunchers) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateGroup($sTxtFlameFlingers, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnFlameF, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtFlameFlingers, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtFlameFlingers & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtFlameFlingers & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtFlameFlingers & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_60", "flame flinger\r\nsieges\r\nflame"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtFlameFlingers) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeFlameFlinger] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_60", "no flame\r\nsiege no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtFlameFlingers) GUICtrlCreateGroup("", -99, -99, 1, 1) ; Battle Drill $x = $xStart $y = $Offy - $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateGroup($sTxtBattleDrills, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleD, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBattleDrills, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBattleDrills & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBattleDrills & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBattleDrills & ":" , $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_63", "battle drill\r\nsieges\r\ndrill"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBattleDrills) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 60, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_63", "no drill\r\nsiege no"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBattleDrills) + $g_ahGrpDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateGroup($sTxtBattleDrills, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnBattleD, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sTxtBattleDrills, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBattleDrills & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 30, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sTxtBattleDrills & " " & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sTxtBattleDrills & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_63", "battle drill\r\nsieges\r\ndrill"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sTxtBattleDrills) + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 70, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeBattleDrill] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 25, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_63", "no drill\r\nsiege no"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sTxtBattleDrills) GUICtrlCreateGroup("", -99, -99, 1, 1) ; Custom Combinations $x = $xStart $y = $Offy ;;; Custom Combination Donate #1 by ChiefM3, edit by Hervidero - - Local $aTroopList = $sTxtBarbarians & "|" & $sTxtSuperBarbarians & "|" & $sTxtArchers & "|" & $sTxtSuperArchers & "|" & $sTxtGiants & "|" & $sTxtSuperGiants & "|" & $sTxtGoblins & "|" & $sTxtSneakyGoblins & "|" & $sTxtWallBreakers & "|" & $sTxtSuperWallBreakers & "|" & $sTxtBalloons & "|" & $sTxtRocketBalloons & "|" & $sTxtWizards & "|" & $sTxtSuperWizards & "|" & $sTxtHealers & "|" & $sTxtDragons & "|" & $sTxtSuperDragons & "|" & $sTxtPekkas & "|" & $sTxtBabyDragons & "|" & $sTxtInfernoDragons & "|" & $sTxtMiners & "|" & $sTxtSuperMiners & "|" & $sTxtElectroDragons & "|" & $sTxtYetis & "|" & $sTxtDragonRiders & "|" & $sTxtElectroTitans & "|" & $sTxtMinions & "|" & $sTxtSuperMinions & "|" & $sTxtHogRiders & "|" & $sTxtSuperHogRiders & "|" & $sTxtValkyries & "|" & $sTxtSuperValkyries & "|" & $sTxtGolems & "|" & $sTxtWitches & "|" & $sTxtSuperWitches & "|" & $sTxtLavaHounds & "|" & $sTxtIceHounds & "|" & $sTxtBowlers & "|" & $sTxtSuperBowlers & "|" & $sTxtIceGolems & "|" & $sTxtHeadhunters & "|" & $sTxtAppWards & "|" & $sTxtNothing - - $g_ahGrpDonateTroop[$eCustomA] = GUICtrlCreateGroup($sDonateTxtCustomA, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 2 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonCustom, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eCustomA] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sDonateTxtCustomA, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sDonateTxtCustomA & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eCustomA] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sDonateTxtCustomA & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sDonateTxtCustomA & ":", $x - 5, $y + 80, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eCustomA] = GUICtrlCreateEdit("", $x - 5, $y + 95, 205, 50, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_29", "ground support\r\nground"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sDonateTxtCustomA) - - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_01", "1") & ":", $x - 5, $y + 4, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicDonateCustomA[0] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonWizard, $x + 6, $y, 24, 24) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahCmbDonateCustomA[0] = GUICtrlCreateCombo("", $x + 35, $y, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) - GUICtrlSetData(-1, $aTroopList, $sTxtWizards) - GUICtrlSetOnEvent(-1, "cmbDonateCustomA") - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateCustomA[0] = GUICtrlCreateInput("2", $x + 165, $y, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - GUICtrlSetLimit(-1, 1) - GUICtrlSetState(-1, $GUI_HIDE) - - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_02", "2") & ":", $x - 5, $y + 29, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicDonateCustomA[1] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonArcher, $x + 6, $y + 25, 24, 24) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahCmbDonateCustomA[1] = GUICtrlCreateCombo("", $x + 35, $y + 25, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) - GUICtrlSetData(-1, $aTroopList, $sTxtArchers) - GUICtrlSetOnEvent(-1, "cmbDonateCustomA") - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateCustomA[1] = GUICtrlCreateInput("3", $x + 165, $y + 25, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - GUICtrlSetLimit(-1, 1) - GUICtrlSetState(-1, $GUI_HIDE) - - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_03", "3") & ":", $x - 5, $y + 54, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicDonateCustomA[2] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBarbarian, $x + 6, $y + 50, 24, 24) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahCmbDonateCustomA[2] = GUICtrlCreateCombo("", $x + 35, $y + 50, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) - GUICtrlSetData(-1, $aTroopList, $sTxtBarbarians) - GUICtrlSetOnEvent(-1, "cmbDonateCustomA") - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateCustomA[2] = GUICtrlCreateInput("1", $x + 165, $y + 50, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - GUICtrlSetLimit(-1, 1) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 80, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eCustomA] = GUICtrlCreateEdit("", $x + 215, $y + 95, 200, 50, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_29", "no ground\r\nground no\r\nonly"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sDonateTxtCustomA) + Local $aTroopList = $sTxtBarbarians & "|" & $sTxtSuperBarbarians & "|" & $sTxtArchers & "|" & $sTxtSuperArchers & "|" & $sTxtGiants & "|" & $sTxtSuperGiants & "|" & $sTxtGoblins & "|" & $sTxtSneakyGoblins & "|" & $sTxtWallBreakers & "|" & $sTxtSuperWallBreakers & "|" & $sTxtBalloons & "|" & $sTxtRocketBalloons & "|" & $sTxtWizards & "|" & $sTxtSuperWizards & "|" & $sTxtHealers & "|" & $sTxtDragons & "|" & $sTxtSuperDragons & "|" & $sTxtPekkas & "|" & $sTxtBabyDragons & "|" & $sTxtInfernoDragons & "|" & $sTxtMiners & "|" & $sTxtSuperMiners & "|" & $sTxtElectroDragons & "|" & $sTxtYetis & "|" & $sTxtDragonRiders & "|" & $sTxtElectroTitans & "|" & $sTxtRootRiders & "|" & $sTxtMinions & "|" & $sTxtSuperMinions & "|" & $sTxtHogRiders & "|" & $sTxtSuperHogRiders & "|" & $sTxtValkyries & "|" & $sTxtSuperValkyries & "|" & $sTxtGolems & "|" & $sTxtWitches & "|" & $sTxtSuperWitches & "|" & $sTxtLavaHounds & "|" & $sTxtIceHounds & "|" & $sTxtBowlers & "|" & $sTxtSuperBowlers & "|" & $sTxtIceGolems & "|" & $sTxtHeadhunters & "|" & $sTxtAppWards & "|" & $sTxtNothing + + $g_ahGrpDonateTroop[$eCustomA] = GUICtrlCreateGroup($sDonateTxtCustomA, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 33 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonCustom, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eCustomA] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sDonateTxtCustomA, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sDonateTxtCustomA & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eCustomA] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sDonateTxtCustomA & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sDonateTxtCustomA & ":", $x - 5, $y + 75, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eCustomA] = GUICtrlCreateEdit("", $x - 5, $y + 91, 205, 20, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_29", "ground support\r\nground"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sDonateTxtCustomA) + + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_01", "1") & ":", $x - 5, $y + 4, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicDonateCustomA[0] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonWizard, $x + 6, $y, 24, 24) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahCmbDonateCustomA[0] = GUICtrlCreateCombo("", $x + 35, $y, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) + GUICtrlSetData(-1, $aTroopList, $sTxtWizards) + GUICtrlSetOnEvent(-1, "cmbDonateCustomA") + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateCustomA[0] = GUICtrlCreateInput("2", $x + 165, $y, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + GUICtrlSetLimit(-1, 1) + GUICtrlSetState(-1, $GUI_HIDE) + + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_02", "2") & ":", $x - 5, $y + 29, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicDonateCustomA[1] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonArcher, $x + 6, $y + 25, 24, 24) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahCmbDonateCustomA[1] = GUICtrlCreateCombo("", $x + 35, $y + 25, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) + GUICtrlSetData(-1, $aTroopList, $sTxtArchers) + GUICtrlSetOnEvent(-1, "cmbDonateCustomA") + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateCustomA[1] = GUICtrlCreateInput("3", $x + 165, $y + 25, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + GUICtrlSetLimit(-1, 1) + GUICtrlSetState(-1, $GUI_HIDE) + + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_03", "3") & ":", $x - 5, $y + 54, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicDonateCustomA[2] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBarbarian, $x + 6, $y + 50, 24, 24) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahCmbDonateCustomA[2] = GUICtrlCreateCombo("", $x + 35, $y + 50, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) + GUICtrlSetData(-1, $aTroopList, $sTxtBarbarians) + GUICtrlSetOnEvent(-1, "cmbDonateCustomA") + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateCustomA[2] = GUICtrlCreateInput("1", $x + 165, $y + 50, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + GUICtrlSetLimit(-1, 1) + GUICtrlSetState(-1, $GUI_HIDE) + + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 68, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eCustomA] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 22, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_29", "no ground\r\nground no\r\nonly"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sDonateTxtCustomA) GUICtrlCreateGroup("", -99, -99, 1, 1) $x = $xStart $y = $Offy ;;; Custom Combination Donate #2 added by MonkeyHunter - $g_ahGrpDonateTroop[$eCustomB] = GUICtrlCreateGroup($sDonateTxtCustomB, $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 2 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonCustomB, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahChkDonateTroop[$eCustomB] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sDonateTxtCustomB, $x + 285, $y, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sDonateTxtCustomB & " " & $sTxtDonateTipTroop) - GUICtrlSetOnEvent(-1, "chkDonateTroop") - $g_ahChkDonateAllTroop[$eCustomB] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sDonateTxtCustomB & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) - GUICtrlSetOnEvent(-1, "chkDonateAllTroop") - GUICtrlCreateLabel($sTxtKeywords & " " & $sDonateTxtCustomB & ":", $x - 5, $y + 80, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateTroop[$eCustomB] = GUICtrlCreateEdit("", $x - 5, $y + 95, 205, 50, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_30", "air support\r\nany air"))) - _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sDonateTxtCustomB) - - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_01", -1) & ":", $x - 5, $y + 4, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicDonateCustomB[0] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBabyDragon, $x + 6, $y, 24, 24) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahCmbDonateCustomB[0] = GUICtrlCreateCombo("", $x + 35, $y, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) - GUICtrlSetData(-1, $aTroopList, $sTxtBabyDragons) - GUICtrlSetOnEvent(-1, "cmbDonateCustomB") - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateCustomB[0] = GUICtrlCreateInput("1", $x + 165, $y, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - GUICtrlSetLimit(-1, 1) - GUICtrlSetState(-1, $GUI_HIDE) - - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_02", -1) & ":", $x - 5, $y + 29, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicDonateCustomB[1] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBalloon, $x + 6, $y + 25, 24, 24) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahCmbDonateCustomB[1] = GUICtrlCreateCombo("", $x + 35, $y + 25, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) - GUICtrlSetData(-1, $aTroopList, $sTxtBalloons) - GUICtrlSetOnEvent(-1, "cmbDonateCustomB") - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateCustomB[1] = GUICtrlCreateInput("3", $x + 165, $y + 25, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - GUICtrlSetLimit(-1, 1) - GUICtrlSetState(-1, $GUI_HIDE) - - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_03", -1) & ":", $x - 5, $y + 54, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahPicDonateCustomB[2] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonMinion, $x + 6, $y + 50, 24, 24) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahCmbDonateCustomB[2] = GUICtrlCreateCombo("", $x + 35, $y + 50, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) - GUICtrlSetData(-1, $aTroopList, $sTxtMinions) - GUICtrlSetOnEvent(-1, "cmbDonateCustomB") - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtDonateCustomB[2] = GUICtrlCreateInput("5", $x + 165, $y + 50, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) - GUICtrlSetLimit(-1, 1) - GUICtrlSetState(-1, $GUI_HIDE) - - GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 80, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_ahTxtBlacklistTroop[$eCustomB] = GUICtrlCreateEdit("", $x + 215, $y + 95, 200, 50, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_30", "no air\r\nair no\r\nonly\r\njust"))) - _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sDonateTxtCustomB) - GUICtrlCreateGroup("", -99, -99, 1, 1) - - $x = $xStart - $y = $Offy - $g_hGrpDonateGeneralBlacklist = GUICtrlCreateGroup( GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "Group_02", "General Blacklist"), $x - 20, $y - 20, $g_iSizeWGrpTab3, 169) - $x -= 10 - $y -= 4 - GUICtrlSetState(-1, $GUI_HIDE) - _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBlacklist, $x + 215, $y, 64, 64, $BS_ICON) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblGeneralBlacklist", "Do NOT donate to any of these keywords") & ":", $x - 5, $y + 5, -1, -1) - GUICtrlSetState(-1, $GUI_HIDE) - $g_hTxtGeneralBlacklist = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 125, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) - GUICtrlSetState(-1, $GUI_HIDE) - GUICtrlSetBkColor(-1, 0x505050) - GUICtrlSetColor(-1, $COLOR_WHITE) - GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtGeneralBlacklist_Item_01", "clan war\r\nwar\r\ncw"))) - _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtGeneralBlacklist_Info_01", "General Blacklist for donation requests")) + $g_ahGrpDonateTroop[$eCustomB] = GUICtrlCreateGroup($sDonateTxtCustomB, $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 33 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonCustomB, $x + 215, $y, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahChkDonateTroop[$eCustomB] = GUICtrlCreateCheckbox($sTxtDonate & " " & $sDonateTxtCustomB, $x + 285, $y, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sDonateTxtCustomB & " " & $sTxtDonateTipTroop) + GUICtrlSetOnEvent(-1, "chkDonateTroop") + $g_ahChkDonateAllTroop[$eCustomB] = GUICtrlCreateCheckbox($sTxtDonateAll, $x + 285, $y + 20, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlSetTip(-1, $sTxtDonateTip & " " & $sDonateTxtCustomB & $sTxtDonateTipAll & @CRLF & $sTxtIgnoreAll) + GUICtrlSetOnEvent(-1, "chkDonateAllTroop") + GUICtrlCreateLabel($sTxtKeywords & " " & $sDonateTxtCustomB & ":", $x - 5, $y + 75, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateTroop[$eCustomB] = GUICtrlCreateEdit("", $x - 5, $y + 91, 205, 20, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtDonateTroop_Item_30", "air support\r\nany air"))) + _GUICtrlSetTip(-1, $sTxtKeywords & " " & $sDonateTxtCustomB) + + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_01", -1) & ":", $x - 5, $y + 4, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicDonateCustomB[0] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBabyDragon, $x + 6, $y, 24, 24) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahCmbDonateCustomB[0] = GUICtrlCreateCombo("", $x + 35, $y, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) + GUICtrlSetData(-1, $aTroopList, $sTxtBabyDragons) + GUICtrlSetOnEvent(-1, "cmbDonateCustomB") + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateCustomB[0] = GUICtrlCreateInput("1", $x + 165, $y, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + GUICtrlSetLimit(-1, 1) + GUICtrlSetState(-1, $GUI_HIDE) + + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_02", -1) & ":", $x - 5, $y + 29, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicDonateCustomB[1] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBalloon, $x + 6, $y + 25, 24, 24) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahCmbDonateCustomB[1] = GUICtrlCreateCombo("", $x + 35, $y + 25, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) + GUICtrlSetData(-1, $aTroopList, $sTxtBalloons) + GUICtrlSetOnEvent(-1, "cmbDonateCustomB") + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateCustomB[1] = GUICtrlCreateInput("3", $x + 165, $y + 25, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + GUICtrlSetLimit(-1, 1) + GUICtrlSetState(-1, $GUI_HIDE) + + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblDonateCustom_03", -1) & ":", $x - 5, $y + 54, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahPicDonateCustomB[2] = _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonMinion, $x + 6, $y + 50, 24, 24) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahCmbDonateCustomB[2] = GUICtrlCreateCombo("", $x + 35, $y + 50, 120, 25, BitOR($CBS_DROPDOWNLIST + $WS_VSCROLL, $CBS_AUTOHSCROLL)) + GUICtrlSetData(-1, $aTroopList, $sTxtMinions) + GUICtrlSetOnEvent(-1, "cmbDonateCustomB") + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtDonateCustomB[2] = GUICtrlCreateInput("5", $x + 165, $y + 50, 30, 21, BitOR($GUI_SS_DEFAULT_INPUT, $ES_CENTER, $ES_NUMBER)) + GUICtrlSetLimit(-1, 1) + GUICtrlSetState(-1, $GUI_HIDE) + + GUICtrlCreateLabel($sTxtKeywordsNo & ":", $x + 215, $y + 68, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_ahTxtBlacklistTroop[$eCustomB] = GUICtrlCreateEdit("", $x + 215, $y + 85, 200, 22, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtBlacklistTroop_Item_30", "no air\r\nair no\r\nonly\r\njust"))) + _GUICtrlSetTip(-1, $sTxtKeywordsNoTip & " " & $sDonateTxtCustomB) + GUICtrlCreateGroup("", -99, -99, 1, 1) + + $x = $xStart + $y = $Offy + $g_hGrpDonateGeneralBlacklist = GUICtrlCreateGroup( GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "Group_02", "General Blacklist"), $x - 20, $y + 15, $g_iSizeWGrpTab3, 134) + $x -= 10 + $y += 26 + GUICtrlSetState(-1, $GUI_HIDE) + _GUICtrlCreateIcon($g_sLibIconPath, $eIcnDonBlacklist, $x + 215, $y + 30, 64, 64, $BS_ICON) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlCreateLabel(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "LblGeneralBlacklist", "Do NOT donate to any of these keywords") & ":", $x - 5, $y + 5, -1, -1) + GUICtrlSetState(-1, $GUI_HIDE) + $g_hTxtGeneralBlacklist = GUICtrlCreateEdit("", $x - 5, $y + 20, 205, 90, BitOR($ES_WANTRETURN, $ES_CENTER, $ES_AUTOVSCROLL)) + GUICtrlSetState(-1, $GUI_HIDE) + GUICtrlSetBkColor(-1, 0x505050) + GUICtrlSetColor(-1, $COLOR_WHITE) + GUICtrlSetData(-1, StringFormat(GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtGeneralBlacklist_Item_01", "clan war\r\nwar\r\ncw"))) + _GUICtrlSetTip(-1, GetTranslatedFileIni("MBR GUI Design Child Village - Donate", "TxtGeneralBlacklist_Info_01", "General Blacklist for donation requests")) GUICtrlCreateGroup("", -99, -99, 1, 1) EndFunc ;==>CreateDonateSubTab -#EndRegion +#EndRegion CreateDonateSubTab #Region CreateScheduleSubTab Func CreateScheduleSubTab() diff --git a/COCBot/GUI/MBR GUI Design Child Village - Misc.au3 b/COCBot/GUI/MBR GUI Design Child Village - Misc.au3 index 6acff827f..af31183c2 100644 --- a/COCBot/GUI/MBR GUI Design Child Village - Misc.au3 +++ b/COCBot/GUI/MBR GUI Design Child Village - Misc.au3 @@ -353,7 +353,7 @@ Func CreateMiscNormalVillageSubTab() $x -= 11 $y -= 2 GUICtrlCreateButton(GetTranslatedFileIni("MBR Global GUI Design", "LblTownhall", -1), $x, $y, 36, 36, $BS_ICON) - _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnTH15, 1) + _GUICtrlSetImage(-1, $g_sLibIconPath, $eIcnTH16, 1) _GUICtrlSetTip(-1, $sTxtRelocate & GetTranslatedFileIni("MBR GUI Design Child Village - Misc", "BtnTownhall", "Town Hall")) GUICtrlSetOnEvent(-1, "btnLocateTownHall") diff --git a/COCBot/MBR GUI Control Variables.au3 b/COCBot/MBR GUI Control Variables.au3 index 824666636..3a10bbadd 100644 --- a/COCBot/MBR GUI Control Variables.au3 +++ b/COCBot/MBR GUI Control Variables.au3 @@ -188,19 +188,20 @@ Func InitializeControlVariables() ;TH Level $g_aGroupListTHLevels = $g_ahPicTHLevels[4] & "#" & $g_ahPicTHLevels[5] & "#" & $g_ahPicTHLevels[6] & "#" & $g_ahPicTHLevels[7] & "#" & $g_ahPicTHLevels[8] & "#" & _ - $g_ahPicTHLevels[9] & "#" & $g_ahPicTHLevels[10] & "#" & $g_ahPicTHLevels[11] & "#" & $g_ahPicTHLevels[12] & "#" & $g_ahPicTHLevels[13] & "#" & $g_ahPicTHLevels[14] & "#" & $g_ahPicTHLevels[15] + $g_ahPicTHLevels[9] & "#" & $g_ahPicTHLevels[10] & "#" & $g_ahPicTHLevels[11] & "#" & $g_ahPicTHLevels[12] & "#" & $g_ahPicTHLevels[13] & "#" & $g_ahPicTHLevels[14] & "#" & $g_ahPicTHLevels[15] & "#" & _ + $g_ahPicTHLevels[16] ;PicDBMaxTH $g_aGroupListPicDBMaxTH = $g_ahPicDBMaxTH[6] & "#" & $g_ahPicDBMaxTH[7] & "#" & $g_ahPicDBMaxTH[8] & "#" & _ - $g_ahPicDBMaxTH[9] & "#" & $g_ahPicDBMaxTH[10] & "#" & $g_ahPicDBMaxTH[11] & "#" & $g_ahPicDBMaxTH[12] & "#" & $g_ahPicDBMaxTH[13] & "#" & $g_ahPicDBMaxTH[14] + $g_ahPicDBMaxTH[9] & "#" & $g_ahPicDBMaxTH[10] & "#" & $g_ahPicDBMaxTH[11] & "#" & $g_ahPicDBMaxTH[12] & "#" & $g_ahPicDBMaxTH[13] & "#" & $g_ahPicDBMaxTH[14] & "#" & $g_ahPicDBMaxTH[15] ;PicABMaxTH $g_aGroupListPicABMaxTH = $g_ahPicABMaxTH[6] & "#" & $g_ahPicABMaxTH[7] & "#" & $g_ahPicABMaxTH[8] & "#" & _ - $g_ahPicABMaxTH[9] & "#" & $g_ahPicABMaxTH[10] & "#" & $g_ahPicABMaxTH[11] & "#" & $g_ahPicABMaxTH[12] & "#" & $g_ahPicABMaxTH[13] & "#" & $g_ahPicABMaxTH[14] + $g_ahPicABMaxTH[9] & "#" & $g_ahPicABMaxTH[10] & "#" & $g_ahPicABMaxTH[11] & "#" & $g_ahPicABMaxTH[12] & "#" & $g_ahPicABMaxTH[13] & "#" & $g_ahPicABMaxTH[14] & "#" & $g_ahPicABMaxTH[15] ;PicBullyMaxTH $g_aGroupListPicBullyMaxTH = $g_ahPicBullyMaxTH[6] & "#" & $g_ahPicBullyMaxTH[7] & "#" & $g_ahPicBullyMaxTH[8] & "#" & _ - $g_ahPicBullyMaxTH[9] & "#" & $g_ahPicBullyMaxTH[10] & "#" & $g_ahPicBullyMaxTH[11] & "#" & $g_ahPicBullyMaxTH[12] & "#" & $g_ahPicBullyMaxTH[13] & "#" & $g_ahPicBullyMaxTH[14] + $g_ahPicBullyMaxTH[9] & "#" & $g_ahPicBullyMaxTH[10] & "#" & $g_ahPicBullyMaxTH[11] & "#" & $g_ahPicBullyMaxTH[12] & "#" & $g_ahPicBullyMaxTH[13] & "#" & $g_ahPicBullyMaxTH[14] & "#" & $g_ahPicBullyMaxTH[15] ;League $g_aGroupLeague = $g_ahPicLeague[$eLeagueUnranked] & "#" & $g_ahPicLeague[$eLeagueBronze] & "#" & $g_ahPicLeague[$eLeagueSilver] & "#" & $g_ahPicLeague[$eLeagueGold] & "#" & _ diff --git a/COCBot/MBR GUI Control.au3 b/COCBot/MBR GUI Control.au3 index 483e97354..e2dd5aa61 100644 --- a/COCBot/MBR GUI Control.au3 +++ b/COCBot/MBR GUI Control.au3 @@ -2032,7 +2032,7 @@ Func Bind_ImageList($nCtrl, ByRef $hImageList) Switch $nCtrl Case $g_hTabMain ; the icons for main tab - Local $aIconIndex = [$eIcnHourGlass, $eIcnTH15, $eIcnAttack, $eIcnGUI, $eIcnInfo] + Local $aIconIndex = [$eIcnHourGlass, $eIcnTH16, $eIcnAttack, $eIcnGUI, $eIcnInfo] Case $g_hGUI_VILLAGE_TAB ; the icons for village tab diff --git a/COCBot/MBR Global Variables.au3 b/COCBot/MBR Global Variables.au3 index d34aac2c0..c37678373 100644 --- a/COCBot/MBR Global Variables.au3 +++ b/COCBot/MBR Global Variables.au3 @@ -551,7 +551,7 @@ Global Enum $eIcnArcher = 1, $eIcnDonArcher, $eIcnBalloon, $eIcnDonBalloon, $eIc $eIcnClanCapital, $eIcnCapitalGold, $eIcnCapitalMedal, $eHdV15, $eWall16, $eIcnElectroTitan, $eIcnRecallSpell, $eIcnBattleD, $eIcnTH15, $eIcnPetFrosty, $eIcnPetDiggy, $eIcnPetPoisonLizard, $eIcnPetPhoenix, _ $eIconTH15Weapon, $eIcnBBGold, $eIcnBBElix, $eIcnBBTrophy, $eIcnLabUpgrade, $eIcnArcheTower6, $eIcnBattleMachine, $eIcnDoubleCannon4, $eIcnCannon9, $eIcnMultiMortar8, $g_sIcnMBisland, $eIcnPetHouseGreen, _ $eIcnSuperMiner, $eIcnCapitalTrophy, $eLigue1, $eLigue2, $eLigue3, $eIcnMonolith, $eIcnEFWizard, $eWood, $eClay, $eStone, $eCopper, $eBrass, $eIron, $eSteel, $eTitanium, $ePlatinum, $eEmerald, _ - $eRuby, $eDiamond, $eLigue4, $eLigue5, $eIcnSuperHogRider, $eIcnAppWard, $eIcnSleepingChampion, $eIcnBattleCopter + $eRuby, $eDiamond, $eLigue4, $eLigue5, $eIcnSuperHogRider, $eIcnAppWard, $eIcnSleepingChampion, $eIcnBattleCopter, $eWall17, $eHdV16, $eIcnTH16, $eIcnSpiritFox, $eIcnRootRider Global $eIcnDonBlank = $eIcnDonBlacklist Global $eIcnOptions = $eIcnDonBlacklist @@ -606,7 +606,7 @@ Global Const $DROPLINE_DROPPOINTS_ONLY = 4 ;-------------------------------------------------------------------------- ; Complete list of all deployable/trainable objects Global Enum $eBarb, $eSBarb, $eArch, $eSArch, $eGiant, $eSGiant, $eGobl, $eSGobl, $eWall, $eSWall, $eBall, $eRBall, $eWiza, $eSWiza, $eHeal, _ - $eDrag, $eSDrag, $ePekk, $eBabyD, $eInfernoD, $eMine, $eSMine, $eEDrag, $eYeti, $eRDrag, $eETitan, _ + $eDrag, $eSDrag, $ePekk, $eBabyD, $eInfernoD, $eMine, $eSMine, $eEDrag, $eYeti, $eRDrag, $eETitan, $eRootR, _ $eMini, $eSMini, $eHogs, $eSHogs, $eValk, $eSValk, $eGole, $eWitc, $eSWitc, $eLava, $eIceH, $eBowl, $eSBowl, $eIceG, $eHunt, $eAppWard, _ $eKing, $eQueen, $eWarden, $eChampion, $eCastle, _ $eLSpell, $eHSpell, $eRSpell, $eJSpell, $eFSpell, $eCSpell, $eISpell, $eReSpell, $ePSpell, $eESpell, $eHaSpell, $eSkSpell, $eBtSpell, _ @@ -622,29 +622,36 @@ Global Const $g_asModeText[4] = ["Dead Base", "Live Base", "TH Bully", "Drop Tro Global Enum $eTroopBarbarian, $eTroopSuperBarbarian, $eTroopArcher, $eTroopSuperArcher, $eTroopGiant, $eTroopSuperGiant, $eTroopGoblin, $eTroopSneakyGoblin, $eTroopWallBreaker, _ $eTroopSuperWallBreaker, $eTroopBalloon, $eTroopRocketBalloon, $eTroopWizard, $eTroopSuperWizard, $eTroopHealer, $eTroopDragon, $eTroopSuperDragon, _ $eTroopPekka, $eTroopBabyDragon, $eTroopInfernoDragon, $eTroopMiner, $eTroopSuperMiner, _ - $eTroopElectroDragon, $eTroopYeti, $eTroopDragonRider, $eTroopElectroTitan, _ + $eTroopElectroDragon, $eTroopYeti, $eTroopDragonRider, $eTroopElectroTitan, $eTroopRootRider, _ $eTroopMinion, $eTroopSuperMinion, $eTroopHogRider, $eTroopSuperHogRider, $eTroopValkyrie, $eTroopSuperValkyrie, $eTroopGolem, $eTroopWitch, $eTroopSuperWitch, _ $eTroopLavaHound, $eTroopIceHound, $eTroopBowler, $eTroopSuperBowler, $eTroopIceGolem, $eTroopHeadhunter, $eTroopAppWard, $eTroopCount Global Const $g_asTroopNames[$eTroopCount] = [ _ "Barbarian", "Super Barbarian", "Archer", "Super Archer", "Giant", "Super Giant", "Goblin", "Sneaky Goblin", "Wall Breaker", "Super WallBreaker", _ "Balloon", "Rocket Balloon", "Wizard", "Super Wizard", "Healer", "Dragon", "Super Dragon", _ - "Pekka", "Baby Dragon", "Inferno Dragon", "Miner", "Super Miner", "Electro Dragon", "Yeti", "Dragon Rider", "Electro Titan", "Minion", "Super Minion", "Hog Rider", "Super Hog Rider", "Valkyrie", _ + "Pekka", "Baby Dragon", "Inferno Dragon", "Miner", "Super Miner", "Electro Dragon", "Yeti", "Dragon Rider", "Electro Titan", "Root Rider", "Minion", "Super Minion", "Hog Rider", "Super Hog Rider", "Valkyrie", _ "Super Valkyrie", "Golem", "Witch", "Super Witch", "Lava Hound", "Ice Hound", "Bowler", "Super Bowler", "Ice Golem", "Headhunter", "Apprentice Warden"] Global Const $g_asTroopNamesPlural[$eTroopCount] = [ _ "Barbarians", "Super Barbarians", "Archers", "Super Archers", "Giants", "Super Giants", "Goblins", "Sneaky Goblins", "Wall Breakers", _ "Super Wall Breakers", "Balloons", "Rocket Balloons", "Wizards", "Super Wizards", "Healers", "Dragons", "Super Dragons", "Pekkas", _ - "Baby Dragons", "Inferno Dragons", "Miners", "Super Miners", "Electro Dragons", "Yetis", "Dragon Riders", "Electro Titans", "Minions", "Super Minions", "Hog Riders", "Super Hog Riders", "Valkyries", _ + "Baby Dragons", "Inferno Dragons", "Miners", "Super Miners", "Electro Dragons", "Yetis", "Dragon Riders", "Electro Titans", "Root Riders", "Minions", "Super Minions", "Hog Riders", "Super Hog Riders", "Valkyries", _ "Super Valkyries", "Golems", "Witches", "Super Witchs", "Lava Hounds", "Ice Hounds", "Bowlers", "Super Bowlers", "Ice Golems", "Headhunters", "Apprentice Wardens"] Global Const $g_asTroopShortNames[$eTroopCount] = [ _ "Barb", "SBarb", "Arch", "SArch", "Giant", "SGiant", "Gobl", "SGobl", "Wall", "SWall", "Ball", "RBall", "Wiza", "SWiza", "Heal", "Drag", "SDrag", _ - "Pekk", "BabyD", "InfernoD", "Mine", "SMine", "EDrag", "Yeti", "RDrag", "ETitan", _ + "Pekk", "BabyD", "InfernoD", "Mine", "SMine", "EDrag", "Yeti", "RDrag", "ETitan", "RootR", _ "Mini", "SMini", "Hogs", "SHogs", "Valk", "SValk", "Gole", "Witc", "SWitc", "Lava", "IceH", "Bowl", "SBowl", "IceG", "Hunt", "AppWard"] -Global Const $g_aiTroopSpace[$eTroopCount] = [1, 5, 1, 12, 5, 10, 1, 3, 2, 8, 5, 8, 4, 10, 14, 20, 40, 25, 10, 15, 6, 24, 30, 18, 25, 32, 2, 12, 5, 12, 8, 20, 30, 12, 40, 30, 40, 6, 30, 15, 6, 20] -Global Const $g_aiTroopTrainTime[$eTroopCount] = [5, 25, 8, 72, 30, 60, 7, 21, 15, 60, 30, 48, 30, 75, 120, 180, 360, 180, 90, 135, 30, 120, 360, 180, 250, 360, _ +Global Const $g_aiTroopSpace[$eTroopCount] = [1, 5, 1, 12, 5, 10, 1, 3, 2, 8, 5, 8, 4, 10, 14, 20, 40, 25, 10, 15, 6, 24, 30, 18, 25, 32, 20, 2, 12, 5, 12, 8, 20, 30, 12, 40, 30, 40, 6, 30, 15, 6, 20] +Global Const $g_aiTroopTrainTime[$eTroopCount] = [5, 25, 8, 72, 30, 60, 7, 21, 15, 60, 30, 48, 30, 75, 120, 180, 360, 180, 90, 135, 30, 120, 360, 180, 250, 360, 220, _ 18, 108, 45, 108, 90, 225, 300, 180, 400, 300, 400, 60, 300, 180, 60, 240] -Global Const $g_aiTroopDonateXP[$eTroopCount] = [1, 5, 1, 12, 5, 10, 1, 3, 2, 8, 5, 8, 4, 10, 14, 20, 40, 25, 10, 15, 6, 24, 30, 18, 25, 32, 2, 12, 5, 12, 8, 20, 30, 12, 40, 30, 40, 6, 30, 15, 6, 20] +Global Const $g_aiTroopDonateXP[$eTroopCount] = [1, 5, 1, 12, 5, 10, 1, 3, 2, 8, 5, 8, 4, 10, 14, 20, 40, 25, 10, 15, 6, 24, 30, 18, 25, 32, 20, 2, 12, 5, 12, 8, 20, 30, 12, 40, 30, 40, 6, 30, 15, 6, 20] + +; TroopsIcons +Global Const $g_aTroopsIcon[$eTroopCount] = [$eIcnBarbarian, $eIcnSuperBarbarian, $eIcnArcher, $eIcnSuperArcher, $eIcnGiant, $eIcnSuperGiant, $eIcnGoblin, _ + $eIcnSneakyGoblin, $eIcnWallBreaker, $eIcnSuperWallBreaker, $eIcnBalloon, $eIcnRocketBalloon, $eIcnWizard, $eIcnSuperWizard, $eIcnHealer, $eIcnDragon, _ + $eIcnSuperDragon, $eIcnPekka, $eIcnBabyDragon, $eIcnInfernoDragon, $eIcnMiner, $eIcnSuperMiner, $eIcnElectroDragon, $eIcnYeti, $eIcnDragonRider, _ + $eIcnElectroTitan, $eIcnRootRider, $eIcnMinion, $eIcnSuperMinion, $eIcnHogRider, $eIcnSuperHogRider, $eIcnValkyrie, $eIcnSuperValkyrie, $eIcnGolem, $eIcnWitch, $eIcnSuperWitch, _ + $eIcnLavaHound, $eIcnIceHound, $eIcnBowler, $eIcnSuperBowler, $eIcnIceGolem, $eIcnHeadhunter, $eIcnAppWard] ; Super Troops Global Const $iSuperTroopsCount = 16, $iMaxSupersTroop = 2 @@ -667,6 +674,8 @@ Global $g_iCmbSuperTroops[$iMaxSupersTroop] = [0, 0] ; Spells Global Enum $eSpellLightning, $eSpellHeal, $eSpellRage, $eSpellJump, $eSpellFreeze, $eSpellClone, $eSpellInvisibility, $eSpellRecall, _ $eSpellPoison, $eSpellEarthquake, $eSpellHaste, $eSpellSkeleton, $eSpellBat, $eSpellCount +Global Const $g_aSpellsIcon[$eSpellCount] = [$eIcnLightSpell, $eIcnHealSpell, $eIcnRageSpell, $eIcnJumpSpell, $eIcnFreezeSpell, $eIcnCloneSpell, $eIcnInvisibilitySpell, _ + $eIcnRecallSpell, $eIcnPoisonSpell, $eIcnEarthQuakeSpell, $eIcnHasteSpell, $eIcnSkeletonSpell, $eIcnBatSpell] Global Const $g_asSpellNames[$eSpellCount] = ["Lightning", "Heal", "Rage", "Jump", "Freeze", "Clone", "Invisibility", "Recall", "Poison", "Earthquake", "Haste", "Skeleton", "Bat"] Global Const $g_asSpellShortNames[$eSpellCount] = ["LSpell", "HSpell", "RSpell", "JSpell", "FSpell", "CSpell", "ISpell", "ReSpell", "PSpell", "ESpell", "HaSpell", "SkSpell", "BtSpell"] Global Const $g_aiSpellSpace[$eSpellCount] = [1, 2, 2, 2, 1, 3, 1, 2, 1, 1, 1, 1, 1] @@ -676,6 +685,7 @@ Global Const $g_aiSpellDonateXP[$eSpellCount] = [5, 10, 10, 10, 5, 15, 5, 10, 5, ; Siege Machines Global Enum $eSiegeWallWrecker, $eSiegeBattleBlimp, $eSiegeStoneSlammer, $eSiegeBarracks, $eSiegeLogLauncher, $eSiegeFlameFlinger, $eSiegeBattleDrill, $eSiegeMachineCount +Global Const $g_aSiegesIcon[$eSiegeMachineCount] = [$eIcnWallW, $eIcnBattleB, $eIcnStoneS, $eIcnSiegeB, $eIcnLogL, $eIcnFlameF, $eIcnBattleD] Global Const $g_asSiegeMachineNames[$eSiegeMachineCount] = ["Wall Wrecker", "Battle Blimp", "Stone Slammer", "Siege Barracks", "Log Launcher", "Flame Flinger", "Battle Drill"] Global Const $g_asSiegeMachineShortNames[$eSiegeMachineCount] = ["WallW", "BattleB", "StoneS", "SiegeB", "LogL", "FlameF", "BattleD"] Global Const $g_aiSiegeMachineSpace[$eSiegeMachineCount] = [1, 1, 1, 1, 1, 1, 1] @@ -885,7 +895,7 @@ Global $g_sRequestTroopsText = "" Global $g_abRequestCCHours[24] = [False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False] Global $g_abRequestType[3] = [True, True, False] ; (0 = Troop, 1 = Spell, 2 = Siege Machine) Global $g_iRequestCountCCTroop = 0, $g_iRequestCountCCSpell = 0 -Global $g_aiCCTroopsExpected[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_aiCCTroopsExpected[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_aiCCSpellsExpected[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_aiCCSiegeExpected[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] Global $g_aiClanCastleTroopWaitType[3], $g_aiClanCastleTroopWaitQty[3] @@ -895,14 +905,14 @@ Global $g_aiClanCastleSiegeWaitType[2] ; <><><><> Village / Donate - Donate <><><><> Global $g_bChkDonate = True Global $g_abChkDonateQueueOnly[2] -Global $g_aiQueueTroopFirstSlot[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_aiQueueTroopFirstSlot[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_aiQueueSpellFirstSlot[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global Enum $eCustomA = $eTroopCount, $eCustomB = $eTroopCount + 1 Global Const $g_iCustomDonateConfigs = 2 -Global $g_abChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False] -Global $g_abChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False] -Global $g_asTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ; array of pipe-delimited list of strings to match to a request string -Global $g_asTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ; array of pipe-delimited list of strings to prevent a match to a request string +Global $g_abChkDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False] +Global $g_abChkDonateAllTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = [False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False, False] +Global $g_asTxtDonateTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ; array of pipe-delimited list of strings to match to a request string +Global $g_asTxtBlacklistTroop[$eTroopCount + $g_iCustomDonateConfigs + $eSiegeMachineCount] = ["", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", "", ""] ; array of pipe-delimited list of strings to prevent a match to a request string Global $g_abChkDonateSpell[$eSpellCount] = [False, False, False, False, False, False, False, False, False, False, False, False, False] Global $g_abChkDonateAllSpell[$eSpellCount] = [False, False, False, False, False, False, False, False, False, False, False, False, False] @@ -952,7 +962,7 @@ Global $g_bAutoUpgradeWallsEnable = 0 Global $g_iUpgradeWallMinGold = 0, $g_iUpgradeWallMinElixir = 0 Global $g_iUpgradeWallLootType = 0, $g_bUpgradeWallSaveBuilder = False Global $g_iCmbUpgradeWallsLevel = 0 -Global $g_aiWallsCurrentCount[17] = [-1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; elements 0 to 3 are not referenced +Global $g_aiWallsCurrentCount[18] = [-1, -1, -1, -1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; elements 0 to 3 are not referenced Global $g_aiLastGoodWallPos[2] = [-1, -1] ; Auto Upgrade @@ -1021,7 +1031,7 @@ Global $g_abNotifyScheduleWeekDays[7] = [False, False, False, False, False, Fals ; <><><><> Attack Plan / Train Army / Troops/Spells <><><><> Global $g_bQuickTrainEnable = False Global $g_bQuickTrainArmy[3] = [True, False, False] -Global $g_aiArmyQuickTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_aiArmyQuickTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_aiArmyQuickSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_aiArmyQuickSiegeMachines[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0] @@ -1042,14 +1052,14 @@ Global $g_aiQTEdit_SpellType[7] = [-1, -1, -1, -1, -1, -1, -1] Global $g_aiQTEdit_SiegeMachineType[7] = [-1, -1, -1, -1, -1, -1, -1] Global $g_iQTEdit_TotalTroop = 0, $g_iQTEdit_TotalSpell = 0, $g_iQTEdit_TotalSiegeMachine = 0 -Global $g_aiArmyCustomTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_aiArmyCustomTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_aiArmyCustomSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_aiArmyCompSiegeMachines[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] -Global $g_aiArmyCompTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_aiArmyCompTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_aiArmyCompSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -Global $g_aiTrainArmyTroopLevel[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] +Global $g_aiTrainArmyTroopLevel[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_aiTrainArmySpellLevel[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Global $g_aiTrainArmySiegeMachineLevel[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] @@ -1067,14 +1077,14 @@ Global $g_abBoostBarracksHours[24] = [True, True, True, True, True, True, True, Global Const $g_aiTroopOrderIcon[$eTroopCount + 1] = [ _ $eIcnOptions, $eIcnBarbarian, $eIcnSuperBarbarian, $eIcnArcher, $eIcnSuperArcher, $eIcnGiant, $eIcnSuperGiant, $eIcnGoblin, $eIcnSneakyGoblin, $eIcnWallBreaker, $eIcnSuperWallBreaker, $eIcnBalloon, $eIcnRocketBalloon, _ $eIcnWizard, $eIcnSuperWizard, $eIcnHealer, $eIcnDragon, $eIcnSuperDragon, $eIcnPekka, $eIcnBabyDragon, $eIcnInfernoDragon, $eIcnMiner, $eIcnSuperMiner, $eIcnElectroDragon, $eIcnYeti, _ - $eIcnDragonRider, $eIcnElectroTitan, $eIcnMinion, $eIcnSuperMinion, $eIcnHogRider, $eIcnSuperHogRider, $eIcnValkyrie, $eIcnSuperValkyrie, $eIcnGolem, $eIcnWitch, $eIcnSuperWitch, _ + $eIcnDragonRider, $eIcnElectroTitan, $eIcnRootRider, $eIcnMinion, $eIcnSuperMinion, $eIcnHogRider, $eIcnSuperHogRider, $eIcnValkyrie, $eIcnSuperValkyrie, $eIcnGolem, $eIcnWitch, $eIcnSuperWitch, _ $eIcnLavaHound, $eIcnIceHound, $eIcnBowler, $eIcnSuperBowler, $eIcnIceGolem, $eIcnHeadhunter, $eIcnAppWard] -Global $g_bCustomTrainOrderEnable = False, $g_aiCmbCustomTrainOrder[$eTroopCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] +Global $g_bCustomTrainOrderEnable = False, $g_aiCmbCustomTrainOrder[$eTroopCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] Global $g_aiTrainOrder[$eTroopCount] = [ _ $eTroopArcher, $eTroopSuperArcher, $eTroopGiant, $eTroopSuperGiant, $eTroopWallBreaker, $eTroopSuperWallBreaker, $eTroopBarbarian, $eTroopSuperBarbarian, $eTroopGoblin, $eTroopSneakyGoblin, _ $eTroopHealer, $eTroopPekka, $eTroopBalloon, $eTroopRocketBalloon, $eTroopWizard, $eTroopSuperWizard, $eTroopDragon, $eTroopSuperDragon, _ - $eTroopBabyDragon, $eTroopInfernoDragon, $eTroopMiner, $eTroopSuperMiner, $eTroopElectroDragon, $eTroopYeti, $eTroopDragonRider, $eTroopElectroTitan, _ + $eTroopBabyDragon, $eTroopInfernoDragon, $eTroopMiner, $eTroopSuperMiner, $eTroopElectroDragon, $eTroopYeti, $eTroopDragonRider, $eTroopElectroTitan, $eTroopRootRider, _ $eTroopMinion, $eTroopSuperMinion, $eTroopHogRider, $eTroopSuperHogRider, $eTroopValkyrie, $eTroopSuperValkyrie, $eTroopGolem, $eTroopWitch, $eTroopSuperWitch, _ $eTroopLavaHound, $eTroopIceHound, $eTroopBowler, $eTroopSuperBowler, $eTroopIceGolem, $eTroopHeadhunter, $eTroopAppWard] @@ -1093,29 +1103,29 @@ Global $g_aiBrewOrder[$eSpellCount] = [ _ Global Enum $eTroopBarbarianS, $eTroopSuperBarbarianS, $eTroopArcherS, $eTroopSuperArcherS, $eTroopGiantS, $eTroopSuperGiantS, $eTroopGoblinS, $eTroopSneakyGoblinS, $eTroopWallBreakerS, _ $eTroopSuperWallBreakerS, $eTroopBalloonS, $eTroopRocketBalloonS, $eTroopWizardS, $eTroopSuperWizardS, $eTroopHealerS, $eTroopDragonS, $eTroopSuperDragonS, _ $eTroopPekkaS, $eTroopBabyDragonS, $eTroopInfernoDragonS, _ - $eTroopMinerS, $eTroopSuperMinerS, $eTroopElectroDragonS, $eTroopYetiS, $eTroopDragonRiderS, $eTroopElectroTitanS, $eTroopMinionS, $eTroopSuperMinionS, $eTroopHogRiderS, $eTroopSuperHogRiderS, $eTroopValkyrieS, $eTroopSuperValkyrieS, _ + $eTroopMinerS, $eTroopSuperMinerS, $eTroopElectroDragonS, $eTroopYetiS, $eTroopDragonRiderS, $eTroopElectroTitanS, $eTroopRootRiderS, $eTroopMinionS, $eTroopSuperMinionS, $eTroopHogRiderS, $eTroopSuperHogRiderS, $eTroopValkyrieS, $eTroopSuperValkyrieS, _ $eTroopGolemS, $eTroopWitchS, $eTroopSuperWitchS, $eTroopLavaHoundS, $eTroopIceHoundS, $eTroopBowlerS, $eTroopSuperBowlerS, $eTroopIceGolemS, $eTroopHeadHunterS, $eTroopAppWardS, _ $eHeroeS, $eCCS, $eDropOrderCount Global Const $g_asDropOrderNames[$eDropOrderCount] = [ _ "Barbarians", "Super Barbarians", "Archers", "Super Archers", "Giants", "Super Giants", "Goblins", "Sneaky Goblins", "Wall Breakers", "Super Wall Breakers", "Balloons", "Rocket Balloons", "Wizards", _ "Super Wizards", "Healers", "Dragons", "Super Dragon", "Pekkas", "Baby Dragons", "Inferno Dragons", "Miners", "Super Miner", "Electro Dragons", _ - "Yetis", "Dragon Riders", "Electro Titans", "Minions", "Super Minions", "Hog Riders", "Super Hog Riders", "Valkyries", "Super Valkyries", "Golems", "Witches", "Super Witches", "Lava Hounds", "Ice Hounds", "Bowlers", "Super Bowlers", "Ice Golems", "Headhunters", "Apprentice Wardens", _ + "Yetis", "Dragon Riders", "Electro Titans", "Root Riders", "Minions", "Super Minions", "Hog Riders", "Super Hog Riders", "Valkyries", "Super Valkyries", "Golems", "Witches", "Super Witches", "Lava Hounds", "Ice Hounds", "Bowlers", "Super Bowlers", "Ice Golems", "Headhunters", "Apprentice Wardens", _ "Clan Castle", "Heroes"] Global Const $g_aiDropOrderIcon[$eDropOrderCount + 1] = [ _ $eIcnOptions, $eIcnBarbarian, $eIcnSuperBarbarian, $eIcnArcher, $eIcnSuperArcher, $eIcnGiant, $eIcnSuperGiant, $eIcnGoblin, $eIcnSneakyGoblin, $eIcnWallBreaker, $eIcnSuperWallBreaker, _ $eIcnBalloon, $eIcnRocketBalloon, $eIcnWizard, $eIcnSuperWizard, $eIcnHealer, $eIcnDragon, $eIcnSuperDragon, _ - $eIcnPekka, $eIcnBabyDragon, $eIcnInfernoDragon, $eIcnMiner, $eIcnSuperMiner, $eIcnElectroDragon, $eIcnYeti, $eIcnDragonRider, $eIcnElectroTitan, $eIcnMinion, _ + $eIcnPekka, $eIcnBabyDragon, $eIcnInfernoDragon, $eIcnMiner, $eIcnSuperMiner, $eIcnElectroDragon, $eIcnYeti, $eIcnDragonRider, $eIcnElectroTitan, $eIcnRootRider, $eIcnMinion, _ $eIcnSuperMinion, $eIcnHogRider, $eIcnSuperHogRider, $eIcnValkyrie, $eIcnSuperValkyrie, $eIcnGolem, $eIcnWitch, $eIcnSuperWitch, $eIcnLavaHound, $eIcnIceHound, $eIcnBowler, $eIcnSuperBowler, $eIcnIceGolem, $eIcnHeadhunter, $eIcnAppWard, _ $eIcnCC, $eIcnHeroes] -Global $g_bCustomDropOrderEnable = False, $g_aiCmbCustomDropOrder[$eDropOrderCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] +Global $g_bCustomDropOrderEnable = False, $g_aiCmbCustomDropOrder[$eDropOrderCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] Global $g_aiDropOrder[$eDropOrderCount] = [ _ $eTroopBarbarianS, $eTroopSuperBarbarianS, $eTroopArcherS, $eTroopSuperArcherS, $eTroopGiantS, $eTroopSuperGiantS, $eTroopGoblinS, $eTroopSneakyGoblinS, $eTroopWallBreakerS, _ $eTroopSuperWallBreakerS, $eTroopBalloonS, $eTroopRocketBalloonS, $eTroopWizardS, $eTroopSuperWizardS, $eTroopHealerS, _ $eTroopDragonS, $eTroopSuperDragonS, $eTroopPekkaS, $eTroopBabyDragonS, $eTroopInfernoDragonS, $eTroopMinerS, $eTroopSuperMinerS, $eTroopElectroDragonS, _ - $eTroopYetiS, $eTroopDragonRiderS, $eTroopElectroTitanS, $eTroopMinionS, $eTroopSuperMinionS, $eTroopHogRiderS, $eTroopSuperHogRiderS, $eTroopValkyrieS, $eTroopSuperValkyrieS, $eTroopGolemS, _ + $eTroopYetiS, $eTroopDragonRiderS, $eTroopElectroTitanS, $eTroopRootRiderS, $eTroopMinionS, $eTroopSuperMinionS, $eTroopHogRiderS, $eTroopSuperHogRiderS, $eTroopValkyrieS, $eTroopSuperValkyrieS, $eTroopGolemS, _ $eTroopWitchS, $eTroopSuperWitchS, $eTroopLavaHoundS, $eTroopIceHoundS, $eTroopBowlerS, $eTroopSuperBowlerS, $eTroopIceGolemS, $eTroopHeadHunterS, $eTroopAppWardS, _ $eCCS, $eHeroeS] @@ -1399,12 +1409,12 @@ Global $g_sStarLabUpgradeTime = "", $iStarLabFinishTimeMod = 0 Global $GobBuilderPresent = False, $GobBuilderOffsetRunning = 0 ; Array to hold Laboratory Troop information [LocX of upper left corner of image, LocY of upper left corner of image, PageLocation, Troop "name", Icon # in DLL file, ShortName on image file] -Global $g_avLabTroops[46][3] +Global $g_avLabTroops[47][3] Global $g_avStarLabTroops[12][5] ; [0] Name, [1] Icon [2] ShortName Func TranslateTroopNames() - Dim $g_avLabTroops[47][3] = [ _ + Dim $g_avLabTroops[48][3] = [ _ [GetTranslatedFileIni("MBR Global GUI Design", "Any", "Any"), $eIcnBlank], _ [GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtBarbarians", "Barbarians"), $eIcnBarbarian, "Barb"], _ [GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtArchers", "Archers"), $eIcnArcher, "Arch"], _ @@ -1422,6 +1432,7 @@ Func TranslateTroopNames() [GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtYetis", "Yetis"), $eIcnYeti, "Yeti"], _ [GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtDragonRiders", "Dragon Riders"), $eIcnDragonRider, "RDrag"], _ [GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtEltroTitan", "Electro Titan"), $eIcnElectroTitan, "ETitan"], _ + [GetTranslatedFileIni("MBR Global GUI Design Names Troops", "TxtRootRider", "Root Rider"), $eIcnRootRider, "RootR"], _ [GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtLightningSpells", "Lightning Spell"), $eIcnLightSpell, "LSpell"], _ [GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtHealingSpells", "Healing Spell"), $eIcnHealSpell, "HSpell"], _ [GetTranslatedFileIni("MBR Global GUI Design Names Spells", "TxtRageSpells", "Rage Spell"), $eIcnRageSpell, "RSpell"], _ @@ -1470,58 +1481,61 @@ Func TranslateTroopNames() EndFunc ;==>TranslateTroopNames ; Upgrading - Wall -;Updated for Dec2021 +;Updated for Dec2023 ;First cost is for upgrade to walls level 5. MBR doesn't support walls until level 4. -Global Const $g_aiWallCost[12] = [20000, 30000, 50000, 75000, 100000, 200000, 500000, 1000000, 2000000, 4000000, 7000000, 8000000] +Global Const $g_aiWallCost[13] = [20000, 30000, 50000, 75000, 100000, 200000, 500000, 1000000, 2000000, 3000000, 5000000, 8000000, 9000000] Global $g_iWallCost = 0 ; Upgrading - Heroes ; Barbarian King/Queen Upgrade Costs = Dark Elixir in xxxK -Global Const $g_iMaxKingLevel = 90 -Global Const $g_iMaxQueenLevel = 90 -Global Const $g_iMaxWardenLevel = 65 -Global Const $g_iMaxChampionLevel = 40 +Global Const $g_iMaxKingLevel = 95 +Global Const $g_iMaxQueenLevel = 95 +Global Const $g_iMaxWardenLevel = 75 +Global Const $g_iMaxChampionLevel = 45 Global $g_iKingLevel = -1 -;Updated for Oct2022 -Global Const $g_afKingUpgCost[$g_iMaxKingLevel] = [5, 6, 7, 8, 10, 11, 12, 13, 14, 15, _ - 17, 19, 21, 23, 25, 27, 29, 31, 33, 35, _ - 37, 39, 41, 43, 45, 47, 49, 51, 53, 55, _ - 57, 59, 60, 62, 64, 66, 68, 70, 73, 76, _ - 80, 85, 89, 94, 98, 103, 109, 114, 119, 125, _ - 130, 135, 140, 146, 151, 158, 165, 172, 180, 187, _ - 193, 200, 206, 211, 216, 225, 234, 243, 252, 261, _ - 267, 270, 279, 284, 289, 300, 305, 310, 315, 320, _ - 330, 335, 340, 345, 350, 352, 354, 256, 358, 360] +;Updated for Dec2023 +Global Const $g_afKingUpgCost[$g_iMaxKingLevel] = [5, 5, 6, 7, 8, 9, 10, 11, 12, 13, _ + 14, 15, 16, 17, 18.5, 20, 21.5, 23, 24.5, 26, _ + 28, 29, 31, 32, 34, 35, 37, 38, 40, 41, _ + 43, 44, 46, 47, 49, 50, 52, 53, 55, 56, _ + 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, _ + 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, _ + 150, 155, 160, 165, 170, 175, 180, 185, 190, 195, _ + 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, _ + 250, 255, 260, 265, 270, 275, 278, 280, 282, 285, _ + 290, 300, 310, 320, 330] Global $g_iQueenLevel = -1 -;Updated for Oct2022 -Global Const $g_afQueenUpgCost[$g_iMaxQueenLevel] = [10, 11, 12, 13, 15, 16, 17, 18, 19, 20, _ - 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, _ - 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, _ - 63, 65, 67, 69, 72, 74, 77, 79, 82, 84, _ - 89, 93, 97, 101, 106, 111, 116, 122, 127, 132, _ - 138, 143, 148, 154, 159, 166, 172, 179, 186, 192, _ - 198, 203, 208, 213, 219, 228, 237, 246, 255, 266, _ - 269, 278, 283, 288, 297, 302, 308, 314, 319, 325, _ - 334, 338, 342, 346, 350, 352, 354, 356, 358, 360] +;Updated for Dec2023 +Global Const $g_afQueenUpgCost[$g_iMaxQueenLevel] = [10, 10, 11, 12, 13, 15, 16, 17, 18, 19, _ + 22, 20, 21, 22, 23, 24, 25, 27, 28, 30, _ + 31, 33, 34, 36, 37, 39, 40, 42, 43, 45, _ + 47, 49, 51, 53, 55, 57, 59, 61, 63, 65, _ + 68, 72, 75, 79, 82, 86, 89, 93, 98, 103, _ + 108, 113, 118, 123, 128, 133, 138, 143, 148, 153, _ + 158, 163, 168, 173, 178, 183, 188, 193, 198, 203, _ + 208, 214, 221, 229, 234, 239, 244, 249, 254, 259, _ + 264, 268, 272, 276, 280, 282, 284, 286, 288, 290, _ + 300, 310, 320, 330, 340] -Global $g_iChampionLevel = -1 ;Royal Champion upgrade costs, xx.xK -;Updated for Oct2022 -Global Const $g_afChampionUpgCost[$g_iMaxChampionLevel] = [60, 73, 89, 105, 122, 140, 158, 170, 182, 192, 202, 211, 216, 222, 228, 234, 239, 245, 251, 257, 262, 267, 272, 277, 282, 295, 300, 305, 310, 315, _ - 325, 330, 335, 340, 345, 347, 349, 351, 353, 355] +Global $g_iChampionLevel = -1 +;Updated for Dec2023 +Global Const $g_afChampionUpgCost[$g_iMaxChampionLevel] = [50, 70, 75, 80, 90, 100, 110, 120, 130, 140, 150, 160, 165, 170, 175, 180, 185, 190, 195, 200, 205, 210, 215, 220, 225, 230, 235, 240, 245, 250, _ + 260, 265, 270, 275, 280, 285, 290, 295, 300, 305, 315, 325, 335, 345, 355] ; Grand Warden Upgrade Costs = Elixir in xx.xK Global $g_iWardenLevel = -1 -;Updated for Oct2022 -Global Const $g_afWardenUpgCost[$g_iMaxWardenLevel] = [1, 1.1, 1.4, 1.6, 1.8, 2, 2.2, 2.5, 2.7, 3.1, _ - 3.6, 4, 4.4, 4.9, 5.3, 5.7, 6.2, 6.6, 7.1, 7.9, _ - 8.8, 8.9, 9, 9.1, 9.2, 9.3, 9.4, 9.5, 9.6, 9.7, _ - 9.8, 9.9, 10, 10.1, 10.2, 10.3, 10.4, 10.5, 10.6, 10.7, _ - 10.8, 11.2, 11.6, 12, 12.4, 12.8, 13.2, 13.6, 14.3, 15.5, _ - 16.6, 17.1, 17.6, 18.1, 18.6, _ - 19.2, 19.4, 19.6, 19.8, 20, 20.2, 20.4, 20.6, 20.8, 21] +;Updated for Dec2023 +Global Const $g_afWardenUpgCost[$g_iMaxWardenLevel] = [1, 1, 1.1, 1.2, 1.4, 1.5, 1.7, 1.8, 2, 2.3, _ + 2.7, 3, 3.4, 3.7, 4.1, 4.4, 4.8, 5.1, 5.5, 6, _ + 6.5, 6.6, 6.7, 6.8, 6.9, 7, 7.1, 7.2, 7.3, 7.4, _ + 7.5, 7.6, 7.7, 7.8, 7.9, 8, 8.1, 8.2, 8.3, 8.4, _ + 8.5, 8.8, 9.1, 9.4, 9.7, 10, 10.3, 10.6, 11, 11.5, _ + 12, 12.5, 13, 13.5, 14, _ + 14.5, 15, 15.5, 16, 16.2, 16.7, 16.9, 17.1, 17.3, 17.5, _ + 18, 18.5, 19, 19.5, 20] ; Battle Machine Global $g_iMaxBattleMachineLevel = 35 @@ -1539,9 +1553,9 @@ Global $g_bCloudsActive = False ;True when waiting for clouds Global $g_bAttackActive = False ;True when attacking Village ; Search -Global Const $g_iMaxTHLevel = 15 +Global Const $g_iMaxTHLevel = 16 Global Const $g_asTHText[10] = ["4-6", "7", "8", "9", "10", "11", "12", "13", "14", "15"] -Global Const $g_aiSearchCost[$g_iMaxTHLevel] = [10, 50, 75, 110, 170, 250, 380, 580, 750, 900, 1000, 1100, 1200, 1300, 1400] +Global Const $g_aiSearchCost[$g_iMaxTHLevel] = [10, 50, 75, 110, 170, 250, 380, 580, 750, 900, 1000, 1100, 1200, 1300, 1400, 1500] Global $g_bSearchMode = False Global $g_bIsSearchLimit = False Global $g_bIsClientSyncError = False ;If true means while searching Client Out Of Sync error occurred. @@ -1563,12 +1577,15 @@ Global $g_aiTownHallDetails[4] = [-1, -1, -1, -1] ; [LocX, LocY, BldgLvl, Quanti ; Attack Global Const $g_aaiTopLeftDropPoints[5][2] = [[66, 299], [174, 210], [240, 169], [303, 127], [390, 55]] Global Const $g_aaiTopRightDropPoints[5][2] = [[466, 60], [556, 120], [622, 170], [684, 220], [775, 285]] -Global Const $g_aaiBottomLeftDropPoints[5][2] = [[81, 390], [174, 475], [235, 521], [299, 570], [390, 575]] +Global Const $g_aaiBottomLeftDropPoints[5][2] = [[81, 390], [174, 475], [235, 521], [299, 570], [326, 610]] +Global Const $g_aaiBottomLeftDropPoints2[5][2] = [[81, 390], [174, 475], [235, 521], [253, 538], [257, 551]] Global Const $g_aaiBottomRightDropPoints[5][2] = [[466, 600], [554, 555], [615, 510], [678, 460], [765, 394]] +Global Const $g_aaiBottomRightDropPoints2[5][2] = [[480, 600], [554, 555], [615, 510], [678, 460], [765, 394]] Global Const $g_aaiEdgeDropPoints[4] = [$g_aaiBottomRightDropPoints, $g_aaiTopLeftDropPoints, $g_aaiBottomLeftDropPoints, $g_aaiTopRightDropPoints] -Global Const $g_aiUseAllTroops[$eArmyCount - 1] = [$eBarb, $eSBarb, $eArch, $eSArch, $eGiant, $eSGiant, $eGobl, $eSGobl, $eWall, $eSWall, $eBall, $eRBall, $eWiza, $eSWiza, $eHeal, $eDrag, $eSDrag, $ePekk, $eBabyD, $eInfernoD, $eMine, $eSMine, $eEDrag, $eYeti, $eRDrag, $eETitan, $eMini, $eSMini, $eHogs, $eSHogs, $eValk, $eSValk, $eGole, $eWitc, $eSWitc, $eLava, $eIceH, $eBowl, $eSBowl, $eIceG, $eHunt, $eAppWard, _ +Global Const $g_aaiEdgeDropPoints2[4] = [$g_aaiBottomRightDropPoints2, $g_aaiTopLeftDropPoints, $g_aaiBottomLeftDropPoints2, $g_aaiTopRightDropPoints] +Global Const $g_aiUseAllTroops[$eArmyCount - 1] = [$eBarb, $eSBarb, $eArch, $eSArch, $eGiant, $eSGiant, $eGobl, $eSGobl, $eWall, $eSWall, $eBall, $eRBall, $eWiza, $eSWiza, $eHeal, $eDrag, $eSDrag, $ePekk, $eBabyD, $eInfernoD, $eMine, $eSMine, $eEDrag, $eYeti, $eRDrag, $eETitan, $eRootR, $eMini, $eSMini, $eHogs, $eSHogs, $eValk, $eSValk, $eGole, $eWitc, $eSWitc, $eLava, $eIceH, $eBowl, $eSBowl, $eIceG, $eHunt, $eAppWard, _ $eKing, $eQueen, $eWarden, $eChampion, $eCastle, $eLSpell, $eHSpell, $eRSpell, $eJSpell, $eFSpell, $eCSpell, $eISpell, $eReSpell, $ePSpell, $eESpell, $eHaSpell, $eBtSpell, $eWallW, $eBattleB, $eStoneS, $eSiegeB, $eLogL, $eFlameF, $eBattleD] -Global Const $g_aiUseBarracks[45] = [$eBarb, $eSBarb, $eArch, $eSArch, $eGiant, $eSGiant, $eGobl, $eSGobl, $eWall, $eSWall, $eBall, $eRBall, $eWiza, $eSWiza, $eHeal, $eDrag, $eSDrag, $ePekk, $eBabyD, $eInfernoD, $eMine, $eSMine, $eEDrag, $eYeti, $eRDrag, $eETitan, $eKing, $eQueen, $eWarden, $eChampion, $eCastle, $eLSpell, $eHSpell, $eRSpell, $eJSpell, $eFSpell, $eCSpell, $eISpell, $eISpell, $eReSpell, $ePSpell, $eESpell, $eHaSpell, $eSkSpell, $eBtSpell] +Global Const $g_aiUseBarracks[46] = [$eBarb, $eSBarb, $eArch, $eSArch, $eGiant, $eSGiant, $eGobl, $eSGobl, $eWall, $eSWall, $eBall, $eRBall, $eWiza, $eSWiza, $eHeal, $eDrag, $eSDrag, $ePekk, $eBabyD, $eInfernoD, $eMine, $eSMine, $eEDrag, $eYeti, $eRDrag, $eETitan, $eRootR, $eKing, $eQueen, $eWarden, $eChampion, $eCastle, $eLSpell, $eHSpell, $eRSpell, $eJSpell, $eFSpell, $eCSpell, $eISpell, $eISpell, $eReSpell, $ePSpell, $eESpell, $eHaSpell, $eSkSpell, $eBtSpell] Global Const $g_aiUseBarbs[20] = [$eBarb, $eSBarb, $eKing, $eQueen, $eWarden, $eChampion, $eCastle, $eLSpell, $eHSpell, $eRSpell, $eJSpell, $eFSpell, $eCSpell, $eISpell, $eReSpell, $ePSpell, $eESpell, $eHaSpell, $eSkSpell, $eBtSpell] Global Const $g_aiUseArchs[20] = [$eArch, $eSArch, $eKing, $eQueen, $eWarden, $eChampion, $eCastle, $eLSpell, $eHSpell, $eRSpell, $eJSpell, $eFSpell, $eCSpell, $eISpell, $eReSpell, $ePSpell, $eESpell, $eHaSpell, $eSkSpell, $eBtSpell] Global Const $g_aiUseBarcher[22] = [$eBarb, $eSBarb, $eArch, $eSArch, $eKing, $eQueen, $eWarden, $eChampion, $eCastle, $eLSpell, $eHSpell, $eRSpell, $eJSpell, $eFSpell, $eCSpell, $eISpell, $eReSpell, $ePSpell, $eESpell, $eHaSpell, $eSkSpell, $eBtSpell] @@ -1598,7 +1615,7 @@ Global $g_bCheckChampionPower = False ; Check for Champion activate power Global $g_bDropQueen, $g_bDropKing, $g_bDropWarden, $g_bDropChampion ; Attack - Troops -Global $g_aiSlotInArmy[$eTroopCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] +Global $g_aiSlotInArmy[$eTroopCount] = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1] ; Red area search Global $g_aiPixelTopLeft[0] Global $g_aiPixelBottomLeft[0] @@ -1666,7 +1683,7 @@ Global $g_bCheckClanCastleTroops = False ; Donate Global Const $g_aiDonateTroopPriority[$eTroopCount] = [ _ - $eTroopSuperDragon, $eTroopIceHound, $eTroopElectroTitan, $eTroopSuperWitch, $eTroopLavaHound, $eTroopSuperBowler, $eTroopElectroDragon, $eTroopGolem, $eTroopPekka, _ + $eTroopSuperDragon, $eTroopIceHound, $eTroopElectroTitan, $eTroopRootRider, $eTroopSuperWitch, $eTroopLavaHound, $eTroopSuperBowler, $eTroopElectroDragon, $eTroopGolem, $eTroopPekka, _ $eTroopDragonRider, $eTroopDragon, $eTroopSuperMiner, $eTroopSuperValkyrie, $eTroopRocketBalloon, _ $eTroopYeti, $eTroopIceGolem, $eTroopInfernoDragon, $eTroopSuperMinion, $eTroopSuperArcher, $eTroopWitch, $eTroopHealer, $eTroopBabyDragon, _ $eTroopSuperWizard, $eTroopSuperGiant, $eTroopValkyrie, $eTroopSuperWallBreaker, $eTroopBowler, $eTroopHeadhunter, $eTroopMiner, _ @@ -1675,16 +1692,16 @@ Global Const $g_aiDonateTroopPriority[$eTroopCount] = [ _ Global Const $g_aiDonateSpellPriority[$eSpellCount] = [ _ $eSpellLightning, $eSpellHeal, $eSpellRage, $eSpellJump, $eSpellFreeze, $eSpellClone, $eSpellInvisibility, $eSpellRecall, _ $eSpellPoison, $eSpellEarthquake, $eSpellHaste, $eSpellSkeleton, $eSpellBat] -Global $g_aiDonateStatsTroops[$eTroopCount][2] = [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]] +Global $g_aiDonateStatsTroops[$eTroopCount][2] = [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]] Global $g_aiDonateStatsSpells[$eSpellCount][2] = [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]] Global $g_aiDonateStatsSieges[$eSiegeMachineCount][2] = [[0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0], [0, 0]] Global $g_iTotalDonateStatsTroops = 0, $g_iTotalDonateStatsTroopsXP = 0 Global $g_iTotalDonateStatsSpells = 0, $g_iTotalDonateStatsSpellsXP = 0 Global $g_iTotalDonateStatsSiegeMachines = 0, $g_iTotalDonateStatsSiegeMachinesXP = 0 Global $g_iActiveDonate = -1 ; -1 means not set yet -Global $g_aiDonateTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiDonateSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiDonateSiegeMachines[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] -Global $g_aiCurrentTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiCurrentSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiCurrentSiegeMachines[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] -Global $g_aiCurrentCCTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiCurrentCCSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiCurrentCCSiegeMachines[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] +Global $g_aiDonateTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiDonateSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiDonateSiegeMachines[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] +Global $g_aiCurrentTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiCurrentSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiCurrentSiegeMachines[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] +Global $g_aiCurrentCCTroops[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiCurrentCCSpells[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0], $g_aiCurrentCCSiegeMachines[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] Global $g_bDonationEnabled = True Global $g_iTroopsDonated = 0 Global $g_iTroopsReceived = 0 @@ -1722,7 +1739,7 @@ Global $__TEST_ERROR_SLOW_ADB_CLICK_DELAY = 0 ; SmartZap Global $g_iLSpellLevel = 1 Global $g_iESpellLevel = 1 -Global $g_iMaxLSpellLevel = 10 +Global $g_iMaxLSpellLevel = 11 Global $g_iMaxESpellLevel = 5 Global Const $g_fDarkStealFactor = 0.75 Global Const $g_fDarkFillLevel = 0.70 @@ -1731,7 +1748,7 @@ Global Const $g_aDrillLevelHP[9] = [800, 860, 920, 980, 1060, 1160, 1280, 1380, ; Array to hold Total Amount of DE available from Drill at each level (1-9) Global Const $g_aDrillLevelTotal[9] = [160, 300, 540, 840, 1280, 1800, 2400, 3000, 3600] ; Array to hold Total Damage of Lightning Spell at each level (1-10) -Global Const $g_aLSpellDmg[$g_iMaxLSpellLevel] = [150, 180, 210, 240, 270, 320, 400, 480, 560, 600] +Global Const $g_aLSpellDmg[$g_iMaxLSpellLevel] = [150, 180, 210, 240, 270, 320, 400, 480, 560, 600, 640] ; Array to hold Total Damage of Earthquake Spell at each level (1-5) Global Const $g_aEQSpellDmg[$g_iMaxESpellLevel] = [0.14, 0.17, 0.21, 0.25, 0.29] @@ -1742,8 +1759,8 @@ Global $g_aWeakDefenseNames = ["None", "Eagle Artillery", "Inferno Tower", "XBow ; Building variables used by CSV attacks Global Enum $eBldgRedLine, $eBldgTownHall, $eBldgGoldM, $eBldgElixirC, $eBldgDrill, $eBldgGoldS, $eBldgElixirS, $eBldgDarkS, $eBldgEagle, $eBldgInferno, $eBldgXBow, $eBldgWizTower, $eBldgMortar, $eBldgAirDefense, $eBldgScatter, $eBldgMonolith, $eExternalWall, $eInternalWall Global $g_sBldgNames = ["Red Line", "Town Hall", "Gold Mine", "Elixir Collector", "Dark Elixir Drill", "Gold Storage", "Elixir Storage", "Dark Elixir Storage", "Eagle Artillery", "Inferno Tower", "XBow", "Wizard Tower", "Mortar", "Air Defense", "Scatter Shot", "Monolith", "External Wall", "Internal Wall"] -Global Const $g_iMaxCapTroopTH[16] = [0, 20, 30, 70, 80, 135, 150, 200, 200, 220, 240, 260, 280, 300, 300, 320] ; element 0 is a dummy -Global Const $g_iMaxCapSpellTH[16] = [0, 0, 0, 0, 0, 2, 4, 6, 7, 9, 11, 11, 11, 11, 11, 11] ; element 0 is a dummy +Global Const $g_iMaxCapTroopTH[17] = [0, 20, 30, 70, 80, 135, 150, 200, 200, 220, 240, 260, 280, 300, 300, 320, 320] ; element 0 is a dummy +Global Const $g_iMaxCapSpellTH[17] = [0, 0, 0, 0, 0, 2, 4, 6, 7, 9, 11, 11, 11, 11, 11, 11, 11] ; element 0 is a dummy Global $g_oBldgAttackInfo = ObjCreate("Scripting.Dictionary") ; stores building information of base being attacked $g_oBldgAttackInfo.CompareMode = 1 ; use case in-sensitve compare for key values @@ -1775,31 +1792,31 @@ Global $g_oBldgLevels = ObjCreate("Scripting.Dictionary") ; to find max level for any defense = $g_oBldgLevels.item(Building enum)[TownHall level -1] Func _FilloBldgLevels() - Local Const $aBldgCollector[$g_iMaxTHLevel] = [2, 4, 6, 8, 10, 10, 11, 12, 12, 12, 12, 12, 12, 12, 12] + Local Const $aBldgCollector[$g_iMaxTHLevel] = [2, 4, 6, 8, 10, 10, 11, 12, 12, 12, 12, 12, 12, 12, 12, 12] $g_oBldgLevels.add($eBldgGoldM, $aBldgCollector) $g_oBldgLevels.add($eBldgElixirC, $aBldgCollector) - Local Const $aBldgDrill[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 3, 3, 6, 6, 6, 6, 6, 6, 6] + Local Const $aBldgDrill[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 3, 3, 6, 6, 6, 6, 6, 6, 6, 6] $g_oBldgLevels.add($eBldgDrill, $aBldgDrill) - Local Const $aBldgStorage[$g_iMaxTHLevel] = [1, 3, 6, 8, 9, 10, 11, 11, 11, 11, 12, 13, 14, 15, 16] + Local Const $aBldgStorage[$g_iMaxTHLevel] = [1, 3, 6, 8, 9, 10, 11, 11, 11, 11, 12, 13, 14, 15, 16, 17] ; Dec23 $g_oBldgLevels.add($eBldgGoldS, $aBldgStorage) $g_oBldgLevels.add($eBldgElixirS, $aBldgStorage) - Local Const $aBldgDarkStorage[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 2, 4, 6, 6, 6, 7, 8, 9, 10] + Local Const $aBldgDarkStorage[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 2, 4, 6, 6, 6, 7, 8, 9, 10, 11] ; Dec23 $g_oBldgLevels.add($eBldgDarkS, $aBldgDarkStorage) - Local Const $aBldgEagle[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6] ;Jun23 + Local Const $aBldgEagle[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 5, 6, 6] ;Jun23 $g_oBldgLevels.add($eBldgEagle, $aBldgEagle) - Local Const $aBldgInferno[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 6, 7, 8, 9] + Local Const $aBldgInferno[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 5, 6, 7, 8, 9, 9] $g_oBldgLevels.add($eBldgInferno, $aBldgInferno) - Local Const $aBldgMortar[$g_iMaxTHLevel] = [0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13, 14, 15] + Local Const $aBldgMortar[$g_iMaxTHLevel] = [0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 10, 12, 13, 14, 15, 16] ; Dec23 $g_oBldgLevels.add($eBldgMortar, $aBldgMortar) - Local Const $aBldgWizTower[$g_iMaxTHLevel] = [0, 0, 0, 0, 2, 3, 4, 6, 7, 9, 10, 11, 13, 14, 15] + Local Const $aBldgWizTower[$g_iMaxTHLevel] = [0, 0, 0, 0, 2, 3, 4, 6, 7, 9, 10, 11, 13, 14, 15, 16] ; Dec23 $g_oBldgLevels.add($eBldgWizTower, $aBldgWizTower) - Local Const $aBldgXBow[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 6, 8, 9, 10] + Local Const $aBldgXBow[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 3, 4, 5, 6, 8, 9, 10, 11] ; Dec23 $g_oBldgLevels.add($eBldgXBow, $aBldgXBow) - Local Const $aBldgAirDefense[$g_iMaxTHLevel] = [0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13] + Local Const $aBldgAirDefense[$g_iMaxTHLevel] = [0, 0, 0, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14] ; Dec23 $g_oBldgLevels.add($eBldgAirDefense, $aBldgAirDefense) - Local Const $aBldgScatterShot[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4] ;Jun23 + Local Const $aBldgScatterShot[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 4] ;Jun23 $g_oBldgLevels.add($eBldgScatter, $aBldgScatterShot) - Local Const $aBldgMonolith[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2] + Local Const $aBldgMonolith[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2] $g_oBldgLevels.add($eBldgMonolith, $aBldgMonolith) EndFunc ;==>_FilloBldgLevels _FilloBldgLevels() @@ -1809,31 +1826,31 @@ Global $g_oBldgMaxQty = ObjCreate("Scripting.Dictionary") ; to find max number of bldgs for any defense = $g_oBldgMaxQty.item(Building enum)[TownHall level -1] Func _FilloBldgMaxQty() - Local Const $aBldgCollector[$g_iMaxTHLevel] = [1, 2, 3, 4, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7] + Local Const $aBldgCollector[$g_iMaxTHLevel] = [1, 2, 3, 4, 5, 6, 6, 6, 6, 7, 7, 7, 7, 7, 7, 7] $g_oBldgMaxQty.add($eBldgGoldM, $aBldgCollector) $g_oBldgMaxQty.add($eBldgElixirC, $aBldgCollector) - Local Const $aBldgDrill[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 1, 2, 2, 3, 3, 3, 3, 3, 3] + Local Const $aBldgDrill[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 1, 2, 2, 3, 3, 3, 3, 3, 3, 3] $g_oBldgMaxQty.add($eBldgDrill, $aBldgDrill) - Local Const $aBldgStorage[$g_iMaxTHLevel] = [1, 1, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4] + Local Const $aBldgStorage[$g_iMaxTHLevel] = [1, 1, 2, 2, 2, 2, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4] $g_oBldgMaxQty.add($eBldgGoldS, $aBldgStorage) $g_oBldgMaxQty.add($eBldgElixirS, $aBldgStorage) - Local Const $aBldgDarkStorage[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1] + Local Const $aBldgDarkStorage[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1] $g_oBldgMaxQty.add($eBldgDarkS, $aBldgDarkStorage) - Local Const $aBldgEagle[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1] + Local Const $aBldgEagle[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1] $g_oBldgMaxQty.add($eBldgEagle, $aBldgEagle) - Local Const $aBldgInferno[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 3, 3, 3, 3] + Local Const $aBldgInferno[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 3, 3, 3, 3, 3] $g_oBldgMaxQty.add($eBldgInferno, $aBldgInferno) - Local Const $aBldgMortar[$g_iMaxTHLevel] = [0, 0, 1, 1, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4] + Local Const $aBldgMortar[$g_iMaxTHLevel] = [0, 0, 1, 1, 1, 2, 3, 4, 4, 4, 4, 4, 4, 4, 4, 4] $g_oBldgMaxQty.add($eBldgMortar, $aBldgMortar) - Local Const $aBldgWizTower[$g_iMaxTHLevel] = [0, 0, 0, 0, 1, 2, 2, 3, 4, 4, 5, 5, 5, 5, 5] + Local Const $aBldgWizTower[$g_iMaxTHLevel] = [0, 0, 0, 0, 1, 2, 2, 3, 4, 4, 5, 5, 5, 5, 5, 5] $g_oBldgMaxQty.add($eBldgWizTower, $aBldgWizTower) - Local Const $aBldgXBow[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 4, 4, 4, 4] + Local Const $aBldgXBow[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 4, 4, 4, 4, 4, 4] $g_oBldgMaxQty.add($eBldgXBow, $aBldgXBow) - Local Const $aBldgAirDefense[$g_iMaxTHLevel] = [0, 0, 0, 1, 1, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4] + Local Const $aBldgAirDefense[$g_iMaxTHLevel] = [0, 0, 0, 1, 1, 2, 3, 3, 4, 4, 4, 4, 4, 4, 4, 4] $g_oBldgMaxQty.add($eBldgAirDefense, $aBldgAirDefense) - Local Const $aBldgScatterShot[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2] + Local Const $aBldgScatterShot[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 2, 2, 2] $g_oBldgMaxQty.add($eBldgScatter, $aBldgScatterShot) - Local Const $aBldgMonolith[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1] + Local Const $aBldgMonolith[$g_iMaxTHLevel] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1] $g_oBldgMaxQty.add($eBldgMonolith, $aBldgMonolith) EndFunc ;==>_FilloBldgMaxQty _FilloBldgMaxQty() @@ -1959,46 +1976,46 @@ Global $g_aiPetHousePos[2] = [-1, -1] ; Position of Pet House Global $g_sPetUpgradeTime = "" -Global $g_bUpgradePetsEnable[8] = [False, False, False, False, False, False, False, False] +Global $g_bUpgradePetsEnable[9] = [False, False, False, False, False, False, False, False, False] Global $g_iMinDark4PetUpgrade = 0 -Local $g_aiPetLevel[8] = [0, 0, 0, 0, 0, 0, 0, 0] - +Local $g_aiPetLevel[9] = [0, 0, 0, 0, 0, 0, 0, 0, 0] -Global Enum $ePetLassi, $ePetElectroOwl, $ePetMightyYak, $ePetUnicorn, $ePetFrosty, $ePetDiggy, $ePetPoisonLizard, $ePetPhoenix, $ePetCount -Global Const $g_asPetNames[$ePetCount] = ["Lassi", "Electro Owl", "Mighty Yak", "Unicorn", "Frosty", "Diggy", "Poison Lizard", "Phoenix"] -Global Const $g_asPetShortNames[$ePetCount] = ["Lassi", "Owl", "Yak", "Unicorn", "Frosty", "Diggy", "Lizard", "Phoenix"] -Global $g_ePetLevels[$ePetCount] = [15, 10, 15, 10, 10, 10, 10, 10] ;Jun23 Update, Pets have not same max level. +Global Enum $ePetLassi, $ePetElectroOwl, $ePetMightyYak, $ePetUnicorn, $ePetFrosty, $ePetDiggy, $ePetPoisonLizard, $ePetPhoenix, $ePetSpiritFox, $ePetCount +Global Const $g_asPetNames[$ePetCount] = ["Lassi", "Electro Owl", "Mighty Yak", "Unicorn", "Frosty", "Diggy", "Poison Lizard", "Phoenix", "Spirit Fox"] +Global Const $g_asPetShortNames[$ePetCount] = ["Lassi", "Owl", "Yak", "Unicorn", "Frosty", "Diggy", "Lizard", "Phoenix", "Fox"] +Global $g_ePetLevels[$ePetCount] = [15, 10, 15, 10, 10, 10, 10, 10, 10] ; Dec23 Update, Pets have not same max level. Global Const $g_aiPetUpgradeCostPerLevel[$ePetCount][15] = [ _ - [0, 115, 130, 145, 160, 175, 190, 205, 220, 235, 250, 260, 270, 280, 290], _ ; LASSI - [0, 135, 150, 165, 180, 195, 210, 225, 240, 255, 0, 0, 0, 0, 0], _ ; Electro Owl - [0, 165, 185, 205, 225, 245, 255, 265, 275, 285, 290, 295, 300, 305, 310], _ ; Mighty Yak - [0, 210, 220, 230, 240, 250, 260, 270, 280, 290, 0, 0, 0, 0, 0], _ ; Unicorn - [0, 215, 225, 235, 245, 255, 265, 275, 285, 295, 0, 0, 0, 0, 0], _ ; Frosty - [0, 220, 230, 240, 250, 260, 270, 280, 290, 300, 0, 0, 0, 0, 0], _ ; Diggy - [0, 225, 235, 245, 255, 265, 275, 285, 295, 305, 0, 0, 0, 0, 0], _ ; Poison Lizard - [0, 230, 240, 250, 260, 270, 280, 290, 300, 310, 0, 0, 0, 0, 0]] ; Phoenix + [0, 100, 110, 125, 135, 150, 160, 175, 185, 200, 215, 230, 245, 260, 275], _ ; LASSI + [0, 115, 130, 140, 155, 165, 180, 190, 205, 215, 0, 0, 0, 0, 0], _ ; Electro Owl + [0, 140, 155, 175, 190, 210, 215, 225, 230, 240, 250, 260, 270, 280, 290], _ ; Mighty Yak + [0, 180, 190, 200, 210, 220, 230, 240, 250, 260, 0, 0, 0, 0, 0], _ ; Unicorn + [0, 185, 190, 200, 210, 215, 225, 235, 240, 250, 0, 0, 0, 0, 0], _ ; Frosty + [0, 185, 195, 200, 210, 215, 225, 230, 240, 245, 0, 0, 0, 0, 0], _ ; Diggy + [0, 190, 195, 200, 210, 215, 225, 230, 240, 245, 0, 0, 0, 0, 0], _ ; Poison Lizard + [0, 195, 205, 210, 220, 225, 235, 240, 250, 255, 0, 0, 0, 0, 0], _ ; Phoenix + [0, 225, 235, 245, 255, 265, 275, 285, 295, 315, 0, 0, 0, 0, 0]] ; Spirit Fox Global $g_iEventTime = -1 ; Spring, Autumn, Clashy, Pirate, Epic Winter, Hog Mountain, Jungle, Epic Jungle, 9th Clash, ; PumpKin GraveYard, Snow Day, Tiger Mountain, Primal(PR), Shadow(SH), Royale Scenery, Summer Scenery, Pixel Scenery, 10th Clash, ; Clash Fest, Magic Scenery, Epic Magic Scenery, Classic Scenery, Inferno Tower, Jolly Scenery, Magic Theater Scenery, -; Dark Ages, Painter, Goblin Caves, Future Scenery, Books of Clash, Spooky Scenery, Chess Scenery, Ghost Scenery +; Dark Ages, Painter, Goblin Caves, Future Scenery, Books of Clash, Spooky Scenery, Chess Scenery, Ghost Scenery, GingerBread Scenery ; Builder Base Global Enum $eTreeDSS, $eTreeDAS, $eTreeCC, $eTreePS, $eTreeEW, $eTreeHM, $eTreeJS, $eTreeEJ, $eTree9C, _ $eTreePG, $eTreeSD, $eTreeTM, $eTreePR, $eTreeSH, $eTreeRS, $eTreeSM, $eTreePX, $eTreeXC, _ $eTreeCF, $eTreeMS, $eTreeEM, $eTreeCS, $eTreeIT, $eTreeJO, $eTreeMT, _ - $eTreeDA, $eTreePA, $eTreeGC, $eTreeFS, $eTreeBK, $eTreeSP, $eTreeCH, $eTreeGH, _ + $eTreeDA, $eTreePA, $eTreeGC, $eTreeFS, $eTreeBK, $eTreeSP, $eTreeCH, $eTreeGH, $eTreeGB, _ $eTreeBB, $eTreeOO, $eTreeCR, $eTreeCount Global $g_asSceneryNames[$eTreeCount] = [ _ "Classic Spring", "Classic Autumn", "Clashy Construct", "Pirate Scenery", "Epic Winter", "Hog Mountain", "Jungle Scenery", "Epic Jungle", "9th Clashiversary", _ "Pumpkin Graveyard", "Snowy Day", "Tiger Mountain", "Primal Scenery", "Shadow Scenery", "Royale Scenery", "Summer Scenery", "Pixel Scenery", "10th Clashiversary", _ "Clash Fest", "Magic Scenery", "Epic Magic Scenery", "Classic Scenery", "Inferno Town", "Jolly Scenery", "Magic Theater Scenery", _ - "Dark Ages Scenery", "Painter Scenery", "Goblin Caves Scenery", "Future Scenery", "Books of Clash", "Spooky Scenery", "Chess Scenery", "Ghost Scenery", _ + "Dark Ages Scenery", "Painter Scenery", "Goblin Caves Scenery", "Future Scenery", "Books of Clash", "Spooky Scenery", "Chess Scenery", "Ghost Scenery", "GingerBread Scenery", _ "Builder Base", "OTTO Outpost", "Crystal Caverns"] ; village size, left, right, top, bottom, village size 2, AdjLeft, AdjRight, AdjTop, AdjBottom @@ -2036,8 +2053,9 @@ Global Const $g_afRefVillage[$eTreeCount][10] = [ _ [520.72258205014, 39, 822, 65, 652, 520.72258205014, 50, 50, 42, 42], _ ; SP partial [525.959020068643, 24, 812, 66, 660, 525.959020068643, 50, 50, 42, 42], _ ; CH partial [606.96375086645, 21, 838, 36, 650, 606.96375086645, 50, 50, 42, 42], _ ; GH partial + [520.916141701969, 10, 818, 58, 660, 520.916141701969, 50, 50, 42, 42], _ ; GB partial [376.2247294568, 114, 724, 152, 610, 376.2247294568, 50, 46, 38, 42], _ ; BB partial - [433.366314406842, 120, 722, 158, 604, 433.366314406842, 50, 46, 38, 42], _ ; OO partial + [440.179472132523, 120, 732, 152, 608, 440.179472132523, 50, 46, 38, 42], _ ; OO partial [379.741811787463, 130, 728, 162, 608, 379.741811787463, 50, 46, 38, 42]] ; CR partial Global $g_iTree = $eTreeDSS ; default to classic diff --git a/COCBot/MBR References.au3 b/COCBot/MBR References.au3 index 54b6e2a10..19f701703 100644 --- a/COCBot/MBR References.au3 +++ b/COCBot/MBR References.au3 @@ -382,6 +382,7 @@ Func ReferenceGlobals() $a1 = $eHdV13 $a1 = $eHdV14 $a1 = $eHdV15 + $a1 = $eHdV16 $a1 = $eUnranked $a1 = $eBronze $a1 = $eSilver @@ -404,6 +405,7 @@ Func ReferenceGlobals() $a1 = $eWall14 $a1 = $eWall15 $a1 = $eWall16 + $a1 = $eWall17 $a1 = $eIcnPBNotify $a1 = $eIcnCCTroops $a1 = $eIcnCCSpells @@ -445,6 +447,9 @@ Func ReferenceGlobals() $a1 = $eTroopElectroDragon $a1 = $eTroopYeti $a1 = $eTroopDragonRider + $a1 = $eTroopDragonRider + $a1 = $eTroopElectroTitan + $a1 = $eTroopRootRider $a1 = $eTroopMinion $a1 = $eTroopHogRider @@ -490,7 +495,9 @@ Func ReferenceGlobals() $a1 = $eYeti $a1 = $eRDrag $a1 = $eMine - + $a1 = $eSMine + $a1 = $eETitan + $a1 = $eRootR $a1 = $eMini $a1 = $eHogs $a1 = $eSHogs diff --git a/COCBot/functions/Android/Android Status & Information.txt b/COCBot/functions/Android/Android Status & Information.txt index c8b24cb33..d5766ed9c 100644 --- a/COCBot/functions/Android/Android Status & Information.txt +++ b/COCBot/functions/Android/Android Status & Information.txt @@ -10,7 +10,7 @@ The once listed here have been tested and do work. Nox === http://en.bignox.com/ -Versions patched v7.0.5.9017-9.0901231011 or newer +Version: CoC patched v7.0.5.9065-9.0901231213 or newer MyBot Command Line Key: Nox Default Instance Key: nox Second Instance Key: Nox_1 @@ -18,7 +18,7 @@ Second Instance Key: Nox_1 MEmu ==== http://www.memuplay.com/ -Versions 9.0.1 - 9.0.6 +Versions 9.0.1 - 9.0.8 MyBot Command Line Key: MEmu Default Instance Key: MEmu Second Instance Key: MEmu_1 diff --git a/COCBot/functions/Android/Android.au3 b/COCBot/functions/Android/Android.au3 index 6441d6b5c..418a16180 100644 --- a/COCBot/functions/Android/Android.au3 +++ b/COCBot/functions/Android/Android.au3 @@ -4998,9 +4998,9 @@ Func CheckEmuNewVersions() $NewVersion = GetVersionNormalized("0.0.0.0") SetLog("This " & $g_sAndroidEmulator & " version (" & $g_sAndroidVersion & ") is not supported!", $COLOR_ERROR) ;Not Supported with v8.1+ Case "BlueStacks5" - $NewVersion = GetVersionNormalized("5.11.100.2102") + $NewVersion = GetVersionNormalized("5.13.215") Case "MEmu" - $NewVersion = GetVersionNormalized("9.0.6.5") + $NewVersion = GetVersionNormalized("9.0.8.0") Case "Nox" $NewVersion = GetVersionNormalized("7.0.5.9") Case Else diff --git a/COCBot/functions/Android/getBSPos.au3 b/COCBot/functions/Android/getBSPos.au3 index 3349166f8..c3174b232 100644 --- a/COCBot/functions/Android/getBSPos.au3 +++ b/COCBot/functions/Android/getBSPos.au3 @@ -144,6 +144,9 @@ Func getAndroidPos($FastCheck = False, $RetryCount1 = 0, $RetryCount2 = 0, $bWid Else Local $aControlSize = ControlGetPos(GetCurrentAndroidHWnD(), $g_sAppPaneName, GetAndroidControlClass(True)) EndIf + If IsArray($aControlSize) Then + If $aControlSize[2] = 859 Then $aControlSize[2] = 860 + EndIf Local $aControlSizeInitial = $aControlSize ;If Not $g_bRunState Or $FastCheck Then Return $aControlSize diff --git a/COCBot/functions/Attack/Attack Algorithms/SmartFarm.au3 b/COCBot/functions/Attack/Attack Algorithms/SmartFarm.au3 index 76c27b73c..460f66406 100644 --- a/COCBot/functions/Attack/Attack Algorithms/SmartFarm.au3 +++ b/COCBot/functions/Attack/Attack Algorithms/SmartFarm.au3 @@ -592,7 +592,7 @@ Func AttackSmartFarm($Nside, $SIDESNAMES) [MatchTroopDropName(40), $nbSides, MatchTroopWaveNb(40), 1, MatchSlotsPerEdge(40)], _ [MatchTroopDropName(41), $nbSides, MatchTroopWaveNb(41), 1, MatchSlotsPerEdge(41)]] Else - Local $listInfoDeploy[44][5] = [[$eGole, $nbSides, 1, 1, 2] _ + Local $listInfoDeploy[45][5] = [[$eGole, $nbSides, 1, 1, 2] _ , [$eLava, $nbSides, 1, 1, 2] _ , [$eIceH, $nbSides, 1, 1, 2] _ , [$eIceG, $nbSides, 1, 1, 2] _ @@ -616,6 +616,7 @@ Func AttackSmartFarm($Nside, $SIDESNAMES) , [$eEDrag, $nbSides, 1, 1, 0] _ , [$eRDrag, $nbSides, 1, 1, 0] _ , [$eETitan, $nbSides, 1, 1, 0] _ + , [$eRootR, $nbSides, 1, 1, 0] _ , [$eWall, $nbSides, 1, 1, 1] _ , [$eSWall, $nbSides, 1, 1, 1] _ , [$eBarb, $nbSides, 1, 1, 0] _ diff --git a/COCBot/functions/Attack/Attack Algorithms/algorithm_AllTroops.au3 b/COCBot/functions/Attack/Attack Algorithms/algorithm_AllTroops.au3 index c463e0462..a45e7b2f8 100644 --- a/COCBot/functions/Attack/Attack Algorithms/algorithm_AllTroops.au3 +++ b/COCBot/functions/Attack/Attack Algorithms/algorithm_AllTroops.au3 @@ -78,7 +78,7 @@ Func algorithm_AllTroops() ;Attack Algorithm for all existing troops Switch $g_aiAttackStdDropOrder[$g_iMatchMode] Case 0 If $g_bCustomDropOrderEnable Then - Local $listInfoDeploy[42][5] = [[MatchTroopDropName(0), MatchSidesDrop(0), MatchTroopWaveNb(0), 1, MatchSlotsPerEdge(0)], _ + Local $listInfoDeploy[45][5] = [[MatchTroopDropName(0), MatchSidesDrop(0), MatchTroopWaveNb(0), 1, MatchSlotsPerEdge(0)], _ [MatchTroopDropName(1), MatchSidesDrop(1), MatchTroopWaveNb(1), 1, MatchSlotsPerEdge(1)], _ [MatchTroopDropName(2), MatchSidesDrop(2), MatchTroopWaveNb(2), 1, MatchSlotsPerEdge(2)], _ [MatchTroopDropName(3), MatchSidesDrop(3), MatchTroopWaveNb(3), 1, MatchSlotsPerEdge(3)], _ @@ -119,9 +119,12 @@ Func algorithm_AllTroops() ;Attack Algorithm for all existing troops [MatchTroopDropName(38), MatchSidesDrop(38), MatchTroopWaveNb(38), 1, MatchSlotsPerEdge(38)], _ [MatchTroopDropName(39), MatchSidesDrop(39), MatchTroopWaveNb(39), 1, MatchSlotsPerEdge(39)], _ [MatchTroopDropName(40), MatchSidesDrop(40), MatchTroopWaveNb(40), 1, MatchSlotsPerEdge(40)], _ - [MatchTroopDropName(41), MatchSidesDrop(41), MatchTroopWaveNb(41), 1, MatchSlotsPerEdge(41)]] + [MatchTroopDropName(41), MatchSidesDrop(41), MatchTroopWaveNb(41), 1, MatchSlotsPerEdge(41)], _ + [MatchTroopDropName(42), MatchSidesDrop(42), MatchTroopWaveNb(42), 1, MatchSlotsPerEdge(42)], _ + [MatchTroopDropName(43), MatchSidesDrop(43), MatchTroopWaveNb(43), 1, MatchSlotsPerEdge(43)], _ + [MatchTroopDropName(44), MatchSidesDrop(44), MatchTroopWaveNb(44), 1, MatchSlotsPerEdge(4)]] Else - Local $listInfoDeploy[44][5] = [[$eGole, $nbSides, 1, 1, 2] _ + Local $listInfoDeploy[45][5] = [[$eGole, $nbSides, 1, 1, 2] _ , [$eIceG, $nbSides, 1, 1, 2] _ , [$eLava, $nbSides, 1, 1, 2] _ , [$eYeti, $nbSides, 1, 1, 2] _ @@ -148,6 +151,7 @@ Func algorithm_AllTroops() ;Attack Algorithm for all existing troops , [$eEDrag, $nbSides, 1, 1, 0] _ , [$eRDrag, $nbSides, 1, 1, 0] _ , [$eETitan, $nbSides, 1, 1, 0] _ + , [$eRootR, $nbSides, 1, 1, 0] _ , [$eBarb, $nbSides, 1, 1, 0] _ , [$eSBarb, $nbSides, 1, 1, 0] _ , [$eWall, $nbSides, 1, 1, 1] _ @@ -207,7 +211,7 @@ Func algorithm_AllTroops() ;Attack Algorithm for all existing troops Switch $g_aiAttackStdDropOrder[$g_iMatchMode] Case 0 If $g_bCustomDropOrderEnable Then - Local $listInfoDeploy[36][5] = [[MatchTroopDropName(0), MatchSidesDrop(0), MatchTroopWaveNb(0), 1, MatchSlotsPerEdge(0)], _ + Local $listInfoDeploy[45][5] = [[MatchTroopDropName(0), MatchSidesDrop(0), MatchTroopWaveNb(0), 1, MatchSlotsPerEdge(0)], _ [MatchTroopDropName(1), MatchSidesDrop(1), MatchTroopWaveNb(1), 1, MatchSlotsPerEdge(1)], _ [MatchTroopDropName(2), MatchSidesDrop(2), MatchTroopWaveNb(2), 1, MatchSlotsPerEdge(2)], _ [MatchTroopDropName(3), MatchSidesDrop(3), MatchTroopWaveNb(3), 1, MatchSlotsPerEdge(3)], _ @@ -242,9 +246,18 @@ Func algorithm_AllTroops() ;Attack Algorithm for all existing troops [MatchTroopDropName(32), MatchSidesDrop(32), MatchTroopWaveNb(32), 1, MatchSlotsPerEdge(32)], _ [MatchTroopDropName(33), MatchSidesDrop(33), MatchTroopWaveNb(33), 1, MatchSlotsPerEdge(33)], _ [MatchTroopDropName(34), MatchSidesDrop(34), MatchTroopWaveNb(34), 1, MatchSlotsPerEdge(34)], _ - [MatchTroopDropName(35), MatchSidesDrop(35), MatchTroopWaveNb(35), 1, MatchSlotsPerEdge(35)]] + [MatchTroopDropName(35), MatchSidesDrop(35), MatchTroopWaveNb(35), 1, MatchSlotsPerEdge(35)], _ + [MatchTroopDropName(36), MatchSidesDrop(36), MatchTroopWaveNb(36), 1, MatchSlotsPerEdge(36)], _ + [MatchTroopDropName(37), MatchSidesDrop(37), MatchTroopWaveNb(37), 1, MatchSlotsPerEdge(37)], _ + [MatchTroopDropName(38), MatchSidesDrop(38), MatchTroopWaveNb(38), 1, MatchSlotsPerEdge(38)], _ + [MatchTroopDropName(39), MatchSidesDrop(39), MatchTroopWaveNb(39), 1, MatchSlotsPerEdge(39)], _ + [MatchTroopDropName(40), MatchSidesDrop(40), MatchTroopWaveNb(40), 1, MatchSlotsPerEdge(40)], _ + [MatchTroopDropName(41), MatchSidesDrop(41), MatchTroopWaveNb(41), 1, MatchSlotsPerEdge(41)], _ + [MatchTroopDropName(42), MatchSidesDrop(42), MatchTroopWaveNb(42), 1, MatchSlotsPerEdge(42)], _ + [MatchTroopDropName(43), MatchSidesDrop(43), MatchTroopWaveNb(43), 1, MatchSlotsPerEdge(43)], _ + [MatchTroopDropName(44), MatchSidesDrop(44), MatchTroopWaveNb(44), 1, MatchSlotsPerEdge(44)]] Else - Local $listInfoDeploy[38][5] = [[$eGole, $nbSides, 1, 1, 2] _ + Local $listInfoDeploy[45][5] = [[$eGole, $nbSides, 1, 1, 2] _ , [$eIceG, $nbSides, 1, 1, 2] _ , [$eLava, $nbSides, 1, 1, 2] _ , [$eYeti, $nbSides, 1, 1, 2] _ @@ -255,16 +268,23 @@ Func algorithm_AllTroops() ;Attack Algorithm for all existing troops , [$eSDrag, $nbSides, 1, 1, 0] _ , ["CC", 1, 1, 1, 1] _ , [$eBall, $nbSides, 1, 1, 0] _ + , [$eRBall, $nbSides, 1, 1, 0] _ , [$eBabyD, $nbSides, 1, 1, 1] _ , [$eInfernoD, $nbSides, 1, 1, 1] _ , [$eHogs, $nbSides, 1, 1, 1] _ + , [$eSHogs, $nbSides, 1, 1, 1] _ , [$eValk, $nbSides, 1, 1, 0] _ , [$eSValk, $nbSides, 1, 1, 0] _ , [$eBowl, $nbSides, 1, 1, 0] _ , [$eSBowl, $nbSides, 1, 1, 0] _ , [$eHunt, $nbSides, 1, 1, 0] _ + , [$eAppWard, $nbSides, 1, 1, 0] _ , [$eMine, $nbSides, 1, 1, 0] _ + , [$eSMine, $nbSides, 1, 1, 0] _ , [$eEDrag, $nbSides, 1, 1, 0] _ + , [$eRDrag, $nbSides, 1, 1, 0] _ + , [$eETitan, $nbSides, 1, 1, 0] _ + , [$eRootR, $nbSides, 1, 1, 0] _ , [$eBarb, $nbSides, 1, 1, 0] _ , [$eSBarb, $nbSides, 1, 1, 0] _ , [$eWall, $nbSides, 1, 1, 1] _ diff --git a/COCBot/functions/Attack/AttackCSV/ParseAttackCSV_Settings_variables.au3 b/COCBot/functions/Attack/AttackCSV/ParseAttackCSV_Settings_variables.au3 index ec5e5283f..afc7ba8d7 100644 --- a/COCBot/functions/Attack/AttackCSV/ParseAttackCSV_Settings_variables.au3 +++ b/COCBot/functions/Attack/AttackCSV/ParseAttackCSV_Settings_variables.au3 @@ -50,6 +50,9 @@ Func ParseAttackCSV_Settings_variables(ByRef $aiCSVTroops, ByRef $aiCSVSpells, B Return EndIf Switch $g_iTotalCampSpace + Case $g_iMaxCapTroopTH[15] + 5 To $g_iMaxCapTroopTH[16] ; TH16 + $iTHCol = $iTHBeginCol + 10 + $iTH = 16 Case $g_iMaxCapTroopTH[14] + 5 To $g_iMaxCapTroopTH[15] ; TH15 $iTHCol = $iTHBeginCol + 9 $iTH = 15 diff --git a/COCBot/functions/Attack/BuilderBase/AttackBB.au3 b/COCBot/functions/Attack/BuilderBase/AttackBB.au3 index a7b15d3d1..514b2f5a4 100644 --- a/COCBot/functions/Attack/BuilderBase/AttackBB.au3 +++ b/COCBot/functions/Attack/BuilderBase/AttackBB.au3 @@ -19,7 +19,8 @@ Func CheckCGCompleted() Local $bRet = False Local $CompleteBar = 0 For $x = 1 To 12 - If QuickMIS("BC1", $g_sImgBBAttackBonus, 380, 450 + $g_iMidOffsetY, 480, 505 + $g_iMidOffsetY) Then + If QuickMIS("BC1", $g_sImgBBAttackBonus, 360, 450 + $g_iMidOffsetY, 500, 510 + $g_iMidOffsetY) Then + SetLog("Congrats Chief, Stars Bonus Awarded", $COLOR_INFO) SetLog("Congrats Chief, Stars Bonus Awarded", $COLOR_INFO) Click($g_iQuickMISX, $g_iQuickMISY) If _Sleep(250) Then Return @@ -293,7 +294,7 @@ Func EndBattleBB() ; Find if battle has ended and click okay For $i = 1 To 3 Select - Case QuickMIS("BC1", $g_sImgBBReturnHome, 370, 510 + $g_iMidOffsetY, 490, 565 + $g_iMidOffsetY) = True + Case QuickMIS("BC1", $g_sImgBBReturnHome, 380, 510 + $g_iMidOffsetY, 480, 570 + $g_iMidOffsetY) = True If _Sleep(2000) Then Return Click($g_iQuickMISX, $g_iQuickMISY) If $g_bIsBBevent Then @@ -304,7 +305,7 @@ Func EndBattleBB() ; Find if battle has ended and click okay EndIf EndIf If _Sleep(2000) Then Return - Case QuickMIS("BC1", $g_sImgBBAttackBonus, 380, 450 + $g_iMidOffsetY, 480, 505 + $g_iMidOffsetY) = True + Case QuickMIS("BC1", $g_sImgBBAttackBonus, 360, 450 + $g_iMidOffsetY, 500, 510 + $g_iMidOffsetY) = True SetLog("Congrats Chief, Stars Bonus Awarded", $COLOR_INFO) If _Sleep(2000) Then Return Click($g_iQuickMISX, $g_iQuickMISY) @@ -421,6 +422,7 @@ Func DeployBBTroop($sName, $x, $y, $iAmount, $ai_AttackDropPoints) If _Sleep($g_iBBSameTroopDelay) Then Return ; slow down selecting then dropping troops For $j = 0 To $iAmount - 1 + If Not $g_bRunState Then Return ; get random drop point Local $iPoint = Random(0, UBound($ai_AttackDropPoints) - 1, 1) Local $iPixel = $ai_AttackDropPoints[$iPoint] @@ -436,6 +438,7 @@ Func DeployBBTroop($sName, $x, $y, $iAmount, $ai_AttackDropPoints) Local $b_MachineTimeOffsetDiff = TimerInit() Local $bRet = False For $i = 1 To 16 ; 4 seconds limit + If Not $g_bRunState Then Return If _Sleep(250) Then Return Local $aBMPosCheck = GetMachinePos() If IsArray($aBMPosCheck) And $aBMPosCheck <> 0 And Number($aBMPos[1]) <> Number($aBMPosCheck[1]) Then @@ -450,6 +453,7 @@ Func DeployBBTroop($sName, $x, $y, $iAmount, $ai_AttackDropPoints) Next Local $g_DeployColor[2] = [0xCD3AFF, 0xFF8BFF] For $z = 0 To 1 + If Not $g_bRunState Then Return If _ColorCheck(_GetPixelColor(71, 663 + $g_iBottomOffsetY, True), Hex(0x4E4E4E, 6), 20, Default) Then ;BM lvl<5 $g_DeployedMachine = True $g_bMachineAliveOnAttackBar = False diff --git a/COCBot/functions/Attack/BuilderBase/GetAttackBarBB.au3 b/COCBot/functions/Attack/BuilderBase/GetAttackBarBB.au3 index be8437314..d788b0a31 100644 --- a/COCBot/functions/Attack/BuilderBase/GetAttackBarBB.au3 +++ b/COCBot/functions/Attack/BuilderBase/GetAttackBarBB.au3 @@ -30,8 +30,8 @@ Func GetAttackBarBB($bRemaining = False, $bSecondAttack = False) $g_aBomberOnAttackBar = $aEmpty EndIf - Local $iMaxSlot = 9, $iSlotOffset = 75 - Local $aSlotX[$iMaxSlot], $iStartSlot = 103 + Local $iMaxSlot = 9, $iSlotOffset = 76 + Local $aSlotX[$iMaxSlot], $iStartSlot = 100 Local $aBMPosInit = GetMachinePos() If $aBMPosInit = 0 Then @@ -40,7 +40,7 @@ Func GetAttackBarBB($bRemaining = False, $bSecondAttack = False) $BMFound += 1 Else SetDebugLog("Machine Unavailable", $COLOR_DEBUG) - $iStartSlot = 18 + $iStartSlot = 16 EndIf For $i = 0 To UBound($aSlotX) - 1 $aSlotX[$i] = $iStartSlot + ($i * $iSlotOffset) @@ -75,7 +75,7 @@ Func GetAttackBarBB($bRemaining = False, $bSecondAttack = False) $ColorPickBannerX = $aSlotX[$k] + 35 ; location to pick color from TroopSlot banner If $bRemaining Then - If QuickMIS("BC1", $g_sImgDirBBTroops, $Troopx, $iTroopBanners, $Troopx + 75, 670 + $g_iBottomOffsetY) Then + If QuickMIS("BC1", $g_sImgDirBBTroops, $Troopx, $iTroopBanners, $Troopx + 70, 670 + $g_iBottomOffsetY) Then If $g_bDebugSetLog Then SetLog("Slot [" & $k + $BMFound & "]: TroopBanner ColorpickX=" & $ColorPickBannerX, $COLOR_DEBUG2) $isGreyBanner = _ColorCheck(_GetPixelColor($ColorPickBannerX, $iTroopBanners, True), Hex(0x7B7B7B, 6), 10, Default) ;Grey Banner on TroopSlot = Troop Die If $isGreyBanner Then @@ -108,7 +108,7 @@ Func GetAttackBarBB($bRemaining = False, $bSecondAttack = False) EndIf EndIf Else - If QuickMIS("BC1", $g_sImgDirBBTroops, $Troopx, $iTroopBanners, $Troopx + 73, 670 + $g_iBottomOffsetY) Then + If QuickMIS("BC1", $g_sImgDirBBTroops, $Troopx, $iTroopBanners, $Troopx + 70, 670 + $g_iBottomOffsetY) Then If $g_bDebugSetLog Then SetLog("Slot [" & $k + $BMFound & "]: TroopBanner ColorpickX=" & $ColorPickBannerX, $COLOR_DEBUG2) $isVioletBanner = _ColorCheck(_GetPixelColor($ColorPickBannerX, $iTroopBanners, True), Hex(0xCA4AFF, 6), 30, Default) ; Violet Banner on TroopSlot = TroopSlot Quantity = 1 $isBlueBanner = _ColorCheck(_GetPixelColor($ColorPickBannerX, $iTroopBanners, True), Hex(0x3E7BFF, 6), 30, Default) ; Blue Banner on TroopSlot = TroopSlot Quantity > 1 diff --git a/COCBot/functions/Attack/BuilderBase/PrepareAttackBB.au3 b/COCBot/functions/Attack/BuilderBase/PrepareAttackBB.au3 index 8d07af82e..6527787e6 100644 --- a/COCBot/functions/Attack/BuilderBase/PrepareAttackBB.au3 +++ b/COCBot/functions/Attack/BuilderBase/PrepareAttackBB.au3 @@ -209,13 +209,13 @@ Func ReturnHomeDropTrophyBB($bOnlySurender = False) Case IsBBAttackPage() = True Click(65, 540 + $g_iMidOffsetY) ;click surrender If _Sleep(1000) Then Return - Case QuickMIS("BC1", $g_sImgBBReturnHome, 390, 515 + $g_iMidOffsetY, 470, 560 + $g_iMidOffsetY) = True + Case QuickMIS("BC1", $g_sImgBBReturnHome, 380, 510 + $g_iMidOffsetY, 480, 570 + $g_iMidOffsetY) = True If $bOnlySurender Then Return True EndIf Click($g_iQuickMISX, $g_iQuickMISY) If _Sleep(3000) Then Return - Case QuickMIS("BC1", $g_sImgBBAttackBonus, 410, 460 + $g_iMidOffsetY, 454, 490 + $g_iMidOffsetY) = True + Case QuickMIS("BC1", $g_sImgBBAttackBonus, 360, 450 + $g_iMidOffsetY, 500, 510 + $g_iMidOffsetY) = True SetLog("Congrats Chief, Stars Bonus Awarded", $COLOR_INFO) Click($g_iQuickMISX, $g_iQuickMISY) If _Sleep(2000) Then Return diff --git a/COCBot/functions/Attack/GoldElixirChangeEBO.au3 b/COCBot/functions/Attack/GoldElixirChangeEBO.au3 index e41235ba8..b7737a72b 100644 --- a/COCBot/functions/Attack/GoldElixirChangeEBO.au3 +++ b/COCBot/functions/Attack/GoldElixirChangeEBO.au3 @@ -150,6 +150,15 @@ Func GoldElixirChangeEBO() If Number($CurDamage) > Number($g_iPercentageDamage) Then $g_iPercentageDamage = Number($CurDamage) If Number($CurDamage) >= 92 Then + + If $g_iKingSlot >= 11 Or $g_iQueenSlot >= 11 Or $g_iWardenSlot >= 11 Or $g_iChampionSlot >= 11 Then + If Not $g_bDraggedAttackBar Then DragAttackBar($g_iTotalAttackSlot, False) ; drag forward + Else + If $g_iKingSlot >= 0 Or $g_iQueenSlot >= 0 Or $g_iWardenSlot >= 0 Or $g_iChampionSlot >= 0 Then + If $g_bDraggedAttackBar Then DragAttackBar($g_iTotalAttackSlot, True) ; return drag + EndIf + EndIf + If ($g_bCheckKingPower Or $g_bCheckQueenPower Or $g_bCheckWardenPower Or $g_bCheckChampionPower) Then If $g_bCheckKingPower And $g_iActivateKing = 0 Then SetLog("Activating King's ability to restore some health before leaving with a 3 Star", $COLOR_INFO) diff --git a/COCBot/functions/Attack/Troops/DropOrderTroops.au3 b/COCBot/functions/Attack/Troops/DropOrderTroops.au3 index 691ce26f2..1daaeb86d 100644 --- a/COCBot/functions/Attack/Troops/DropOrderTroops.au3 +++ b/COCBot/functions/Attack/Troops/DropOrderTroops.au3 @@ -65,41 +65,43 @@ Func MatchTroopDropName($Num) Case 25 Return $eETitan Case 26 - Return $eMini + Return $eRootR Case 27 - Return $eSMini + Return $eMini Case 28 - Return $eHogs + Return $eSMini Case 29 + Return $eHogs + Case 30 Return $eSHogs - Case 30 + Case 31 Return $eValk - Case 31 + Case 32 Return $eSValk - Case 32 + Case 33 Return $eGole - Case 33 + Case 34 Return $eWitc - Case 34 + Case 35 Return $eSWitc - Case 35 + Case 36 Return $eLava - Case 36 + Case 37 Return $eIceH - Case 37 + Case 38 Return $eBowl - Case 38 + Case 39 Return $eSBowl - Case 39 + Case 40 Return $eIceG - Case 40 + Case 41 Return $eHunt - Case 41 + Case 42 Return $eAppWard - Case 42 - Return "CC" Case 43 - Return "HEROES" + Return "CC" + Case 44 + Return "HEROES" EndSwitch EndFunc ;==>MatchTroopDropName @@ -201,66 +203,72 @@ Func MatchSlotsPerEdge($Num) Return 0 Else Return 2 - EndIf - Case 26 ;$eMini + EndIf + Case 26 ; $eRootR + If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then + Return 0 + Else + Return 2 + EndIf + Case 27 ;$eMini Return 0 - Case 27 ;$eSMini + Case 28 ;$eSMini Return 0 - Case 28 ;$eHogs + Case 29 ;$eHogs If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then Return 1 Else Return 2 EndIf - Case 29 ;$eSHogs + Case 30 ;$eSHogs If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then Return 1 Else Return 2 EndIf - Case 30 ;$eValk - If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then - Return 0 - Else - Return 2 - EndIf - Case 31 ;$eSValk - If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then - Return 0 - Else - Return 2 - EndIf - Case 32 ;$eGole - Return 2 - Case 33 ;$eWitc - If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then - Return 1 - Else - Return 2 - EndIf - Case 34 ;$eSWitc - If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then - Return 1 - Else - Return 2 - EndIf - Case 35 ;$eLava - Return 2 - Case 36 ;$eIceH - Return 2 - Case 37 ;$eBowl - Return 0 - Case 38 ;$eSBowl - Return 0 - Case 39 ;$eIceG - Return 2 - Case 40 ;$eHunt + Case 31 ;$eValk + If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then + Return 0 + Else + Return 2 + EndIf + Case 32 ;$eSValk + If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then + Return 0 + Else + Return 2 + EndIf + Case 33 ;$eGole + Return 2 + Case 34 ;$eWitc + If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then + Return 1 + Else + Return 2 + EndIf + Case 35 ;$eSWitc + If $g_iMatchMode = $LB And $g_aiAttackStdDropSides[$LB] = 5 Then + Return 1 + Else + Return 2 + EndIf + Case 36 ;$eLava + Return 2 + Case 37 ;$eIceH + Return 2 + Case 38 ;$eBowl Return 0 - Case 41 ;$eAppWard - Return 0 - Case 42 ;CC - Return 1 - Case 43 ;HEROES + Case 39 ;$eSBowl + Return 0 + Case 40 ;$eIceG + Return 2 + Case 41 ;$eHunt + Return 0 + Case 42 ;$eAppWard + Return 0 + Case 43 ;CC + Return 1 + Case 44 ;HEROES Return 1 EndSwitch EndFunc ;==>MatchSlotsPerEdge diff --git a/COCBot/functions/Config/ScreenCoordinates.au3 b/COCBot/functions/Config/ScreenCoordinates.au3 index 43b983292..614d96855 100644 --- a/COCBot/functions/Config/ScreenCoordinates.au3 +++ b/COCBot/functions/Config/ScreenCoordinates.au3 @@ -50,12 +50,12 @@ Global $aChatTab3[4] = [331, 290 + $g_iMidOffsetY, 0xFCA12D, 20] ; Chat Window O Global $aOpenChat[2] = [19, 309 + $g_iMidOffsetY] ; Open Chat Windows, Main Screen Global $aClanTab[2] = [189, 24] ; Clan Tab, Chat Window, Main Screen Global $aClanInfo[2] = [282, 55] ; Clan Info Icon -Global $aArmyCampSize[2] = [124, 144 + $g_iMidOffsetY] ; Training Window, Overview screen, Current Size/Total Size -Global $aSiegeMachineSize[2] = [749, 144 + $g_iMidOffsetY] ; Training Window, Overview screen, Current Number/Total Number -Global $aArmySpellSize[2] = [113, 286 + $g_iMidOffsetY] ; Training Window Overviewscreen, current number/total capacity -Global $g_aArmyCCSpellSize[2] = [473, 437 + $g_iMidOffsetY] ; Training Window, Overview Screen, Current CC Spell number/total cc spell capacity +Global $aArmyCampSize[2] = [153, 168 + $g_iMidOffsetY] ; Training Window, Overview screen, Current Size/Total Size +Global $aSiegeMachineSize[2] = [707, 168 + $g_iMidOffsetY] ; Training Window, Overview screen, Current Number/Total Number +Global $aArmySpellSize[2] = [143, 296 + $g_iMidOffsetY] ; Training Window Overviewscreen, current number/total capacity +Global $g_aArmyCCSpellSize[2] = [465, 428 + $g_iMidOffsetY] ; Training Window, Overview Screen, Current CC Spell number/total cc spell capacity Global $aArmyCCRemainTime[2] = [782, 552 + $g_iMidOffsetY] ; Training Window Overviewscreen, Minutes & Seconds remaining till can request again -Global $aIsCampFull[4] = [128, 151 + $g_iMidOffsetY, 0xFFFFFF, 10] ; Training Window, Overview screen White pixel in check mark with camp IS full (can not test for Green, as it has trees under it!) +Global $aIsCampFull[4] = [82, 177 + $g_iMidOffsetY, 0xFFFFFF, 10] ; Training Window, Overview screen White pixel in check mark with camp IS full Global $aBuildersDigits[2] = [424, 21] ; Main Screen, Free/Total Builders Global $aBuildersDigitsBuilderBase[2] = [0, 21] ; Main Screen on Builders Base Free/Total Builders Global $aTrophies[2] = [69, 84] ; Main Screen, Trophies @@ -74,15 +74,15 @@ Global $aIsGemWindow1[4] = [608, 240 + $g_iMidOffsetY, 0xEB1617, 20] ; Main Scre Global $aIsGemWindow2[4] = [610, 246 + $g_iMidOffsetY, 0xCD161A, 20] ; Main Screen, pixel below Red X to close gem window Global $aIsGemWindow3[4] = [625, 246 + $g_iMidOffsetY, 0xCE1519, 20] ; Main Screen, pixel below Red X to close gem window Global $aIsGemWindow4[4] = [640, 246 + $g_iMidOffsetY, 0xCD151C, 20] ; Main Screen, pixel below Red X to close gem window -Global $aIsTrainPgChk1[4] = [803, 95 + $g_iMidOffsetY, 0xFF8D95, 10] ; Main Screen, Train page open - left upper corner of x button. +Global $aIsTrainPgChk1[4] = [760, 120 + $g_iMidOffsetY, 0xFF8D95, 10] ; Main Screen, Train page open - left upper corner of x button. Updated 16.0.4 Global $aRtnHomeCloud1[4] = [56, 592 + $g_iBottomOffsetY, 0x0A223F, 15] ; Cloud Screen, during search, blue pixel in left eye Global $aRtnHomeCloud2[4] = [72, 592 + $g_iBottomOffsetY, 0x103F7E, 15] ; Cloud Screen, during search, blue pixel in right eye Global $aDetectLang[2] = [16, 634 + $g_iBottomOffsetY] ; Detect Language, bottom left Attack button must read "Attack" -Global $aGreenArrowTrainTroops[2] = [316, 95 + $g_iMidOffsetY] -Global $aGreenArrowBrewSpells[2] = [469, 95 + $g_iMidOffsetY] -Global $aGreenArrowTrainSiegeMachines[2] = [621, 95 + $g_iMidOffsetY] +Global $aGreenArrowTrainTroops[2] = [325, 122 + $g_iMidOffsetY] +Global $aGreenArrowBrewSpells[2] = [460, 122 + $g_iMidOffsetY] +Global $aGreenArrowTrainSiegeMachines[2] = [594, 122 + $g_iMidOffsetY] Global $g_aShopWindowOpen[4] = [804, 54, 0xC00508, 15] ; Red pixel in lower right corner of RED X to close shop window -Global $aTreasuryWindow[4] = [689, 138 + $g_iMidOffsetY, 0xFF8D95, 20] ; Redish pixel above X to close treasury window +Global $aTreasuryWindow[4] = [695, 138 + $g_iMidOffsetY, 0xFF8D95, 20] ; Redish pixel above X to close treasury window Global $aAttackForTreasury[4] = [88, 619 + $g_iMidOffsetY, 0xF0EBE8, 5] ; Red pixel below X to close treasury window Global $aAtkHasDarkElixir[4] = [31, 121 + $g_iMidOffsetY, 0x282020, 10] ; Attack Page, Check for DE icon ; New 23 August offset Global $aVillageHasDarkElixir[4] = [837, 134, 0x3D2D3D, 10] ; Main Page, Base has dark elixir storage @@ -90,18 +90,25 @@ Global $aVillageHasDarkElixir[4] = [837, 134, 0x3D2D3D, 10] ; Main Page, Base ha Global $aCheckTopProfile[4] = [130, 350 + $g_iMidOffsetY, 0x6B7899, 5] Global $aCheckTopProfile2[4] = [160, 455 + $g_iMidOffsetY, 0x4E4D79, 5] -Global $aIsTabOpen[4] = [0, 115 + $g_iMidOffsetY, 0xEDEDE6, 25] ;Check if specific Tab is opened, X Coordinate is a dummy +Global $aIsTabOpen[4] = [0, 145 + $g_iMidOffsetY, 0xECECE5, 25] ;Check if specific Tab is opened, X Coordinate is a dummy -Global $aRecievedTroops[4] = [200, 215, 0xFFFFFF, 20] ; Y of You have recieved blabla from xx! +Global $aReceivedTroops[4] = [185, 235 + $g_iMidOffsetY, 0xFFFFFF, 20] ; Y of You have received blabla from xx! +Global $aReceivedTroopsOCR[4] = [400, 178 + $g_iMidOffsetY, 0xFFFFFF, 20] ; Y of You have received blabla from xx! +Global $aReceivedSieges[4] = [650, 235 + $g_iMidOffsetY, 0xFFFFFF, 20] ; Y of You have received blabla from xx! +Global $aReceivedTroopsDoubleOCR[4] = [400, 170 + $g_iMidOffsetY, 0xFFFFFF, 20] ; Y of You have received blabla from xx! +Global $aReceivedTroopsDouble[4] = [380, 220 + $g_iMidOffsetY, 0xFFFFFF, 20] ; Y of You have received blabla from xx! +Global $aReceivedTroopsTab[4] = [207, 140 + $g_iMidOffsetY, 0xFFFFFF, 20] ; Y of You have received blabla from xx! +Global $aReceivedTroopsTreasury[4] = [660, 140 + $g_iMidOffsetY, 0xFFFFFF, 20] ; Y of You have received blabla from xx! +Global $aReceivedTroopsWeeklyDeals[4] = [175, 195 + $g_iMidOffsetY, 0xFFFFFF, 20] ; Y of You have received blabla from xx! ; King Health Bar, check at the middle of the bar, index 4 is x-offset added to middle of health bar -Global $aKingHealth = [-1, 569 + $g_iBottomOffsetY, 0x00D500, 15, 13] +Global $aKingHealth = [-1, 569 + $g_iBottomOffsetY, 0x4CD515, 20, 12] ; Was 0x00D500 ; Queen Health Bar, check at the middle of the bar, index 4 is x-offset added to middle of health bar -Global $aQueenHealth = [-1, 569 + $g_iBottomOffsetY, 0x00D500, 15, 8] +Global $aQueenHealth = [-1, 569 + $g_iBottomOffsetY, 0x4CD515, 20, 7] ; Warden Health Bar, check at the middle of the bar, index 4 is x-offset added to middle of health bar -Global $aWardenHealth = [-1, 569 + $g_iBottomOffsetY, 0x00D500, 15, 3] +Global $aWardenHealth = [-1, 567 + $g_iBottomOffsetY, 0x4CD515, 20, 0] ; Champion Health Bar, check at the middle of the bar, index 4 is x-offset added to middle of health bar -Global $aChampionHealth = [-1, 567 + $g_iBottomOffsetY, 0x00D500, 15, 7] +Global $aChampionHealth = [-1, 566 + $g_iBottomOffsetY, 0x4CD515, 20, 5] ; attack report... stars won Global $aWonOneStarAtkRprt[4] = [325, 180 + $g_iMidOffsetY, 0xC8CaC4, 30] ; Center of 1st Star reached attacked village @@ -110,8 +117,8 @@ Global $aWonThreeStarAtkRprt[4] = [534, 180 + $g_iMidOffsetY, 0xC8CAC7, 30] ; Ce ; pixel color: location information BS 850MB (Reg GFX), BS 500MB (Med GFX) : location Global $NextBtn[4] = [720, 536 + $g_iBottomOffsetY, 0xE5510D, 20] ; Next Button -Global $a12OrMoreSlots[4] = [24, 579 + $g_iBottomOffsetY, 0x86DEFC, 25] ; Attackbar Check if 12+ Slots exist / BS5 -Global $a12OrMoreSlots2[4] = [24, 580 + $g_iBottomOffsetY, 0xFF4040, 25] ; Attackbar Check if 12+ Slots exist SuperTroops / BS5 +Global $a12OrMoreSlots[4] = [20, 579 + $g_iBottomOffsetY, 0x86DEFC, 25] ; Attackbar Check if 12+ Slots exist / BS5 +Global $a12OrMoreSlots2[4] = [20, 580 + $g_iBottomOffsetY, 0xFF4040, 25] ; Attackbar Check if 12+ Slots exist SuperTroops / BS5 Global $aDoubRowAttackBar[4] = [68, 486, 0xFC5D64, 20] Global $aTroopIsDeployed[4] = [0, 0, 0x404040, 20] ; Attackbar Remain Check X and Y are Dummies Global Const $aIsAttackPage[4] = [50, 548 + $g_iBottomOffsetY, 0xD10D0E, 20] ; red button "end battle" - left portion @@ -152,8 +159,8 @@ Global $aButtonConnectedSCID[4] = [640, 160 + $g_iMidOffsetY, 0x2D89FD, 20] ; Se Global $aCloseTabSCID[4] = [831, 57] ; Button Close Supercell ID tab ;Train -Global $aButtonEditArmy[4] = [800, 510 + $g_iMidOffsetY, 0xDAF582, 25] -Global $aButtonRemoveTroopsOK1[4] = [767, 528 + $g_iMidOffsetY, 0xDCF684, 20] +Global $aButtonEditArmy[4] = [700, 495 + $g_iMidOffsetY, 0xD0F078, 25] +Global $aButtonRemoveTroopsOK1[4] = [723, 509 + $g_iMidOffsetY, 0xDAF582, 20] Global $aButtonRemoveTroopsOK2[4] = [530, 435 + $g_iMidOffsetY, 0x6DBC1F, 20] ;Change Language To English @@ -175,6 +182,6 @@ Global Const $aPersonalChallengeCancelBtn[4] = [288, 391 + $g_iMidOffsetY, 0xFDC Global Const $aPersonalChallengeOkBtn[4] = [500, 391 + $g_iMidOffsetY, 0xDFF887, 20] ; Personal Challenge Window - Okay button at Storage Full msg ;BB Attack 2.0 -Global $aBBGoldEnd[4] = [629, 435, 0xFFE64B, 20] ; Gold At the end Of BB attack -Global $aOkayButton[2] = [430, 570] ; Okay button after BB attack -Global $aOkayButtonRND[4] = [372, 560, 484, 595] ; Okay button after BB attack, RND +Global $aBBGoldEnd[4] = [632, 400 + $g_iMidOffsetY, 0xFEFE4F, 20] ; Gold At the end Of BB attack +Global $aOkayButton[2] = [430, 540 + $g_iMidOffsetY] ; Return Home after BB attack +Global $aOkayButtonRND[4] = [372, 530 + $g_iMidOffsetY, 484, 565 + $g_iMidOffsetY] ; Okay button after BB attack, RND diff --git a/COCBot/functions/Config/applyConfig.au3 b/COCBot/functions/Config/applyConfig.au3 index afd44c1b6..efc89cc60 100644 --- a/COCBot/functions/Config/applyConfig.au3 +++ b/COCBot/functions/Config/applyConfig.au3 @@ -347,8 +347,6 @@ Func ApplyConfig_600_6($TypeReadSave) GUICtrlSetState($g_hChkBattlecopterUpgrade, $g_bBattlecopterUpgrade = 1 ? $GUI_CHECKED : $GUI_UNCHECKED) chkActivateBBSuggestedUpgrades() - chkActivateBBSuggestedUpgradesGold() - chkActivateBBSuggestedUpgradesElixir() chkPlacingNewBuildings() #NEW CLANGAMES GUI @@ -1036,7 +1034,7 @@ Func ApplyConfig_600_17($TypeReadSave) EndSwitch GUICtrlSetState($g_hChkSaveWallBldr, $g_bUpgradeWallSaveBuilder ? $GUI_CHECKED : $GUI_UNCHECKED) _GUICtrlComboBox_SetCurSel($g_hCmbWalls, $g_iCmbUpgradeWallsLevel) - For $i = 4 To 16 + For $i = 4 To 17 GUICtrlSetData($g_ahWallsCurrentCount[$i], $g_aiWallsCurrentCount[$i]) Next cmbWalls() @@ -1054,7 +1052,7 @@ Func ApplyConfig_600_17($TypeReadSave) EndIf $g_bUpgradeWallSaveBuilder = (GUICtrlRead($g_hChkSaveWallBldr) = $GUI_CHECKED) $g_iCmbUpgradeWallsLevel = _GUICtrlComboBox_GetCurSel($g_hCmbWalls) - For $i = 4 To 16 ; added wall-lvl16 + For $i = 4 To 17 ; added wall-lvl17 $g_aiWallsCurrentCount[$i] = Number(GUICtrlRead($g_ahWallsCurrentCount[$i])) Next EndSwitch diff --git a/COCBot/functions/Config/readConfig.au3 b/COCBot/functions/Config/readConfig.au3 index 2b294d5f9..b843f4bf8 100644 --- a/COCBot/functions/Config/readConfig.au3 +++ b/COCBot/functions/Config/readConfig.au3 @@ -812,7 +812,7 @@ Func ReadConfig_600_17() IniReadS($g_iUpgradeWallLootType, $g_sProfileConfigPath, "upgrade", "use-storage", 0, "int") IniReadS($g_bUpgradeWallSaveBuilder, $g_sProfileConfigPath, "upgrade", "savebldr", False, "Bool") IniReadS($g_iCmbUpgradeWallsLevel, $g_sProfileConfigPath, "upgrade", "walllvl", 6, "int") - For $i = 4 To 16 + For $i = 4 To 17 IniReadS($g_aiWallsCurrentCount[$i], $g_sProfileConfigPath, "Walls", "Wall" & StringFormat("%02d", $i), 0, "int") Next IniReadS($g_iWallCost, $g_sProfileConfigPath, "upgrade", "WallCost", 0, "int") diff --git a/COCBot/functions/Config/saveConfig.au3 b/COCBot/functions/Config/saveConfig.au3 index 738f2ded8..1dfef11e6 100644 --- a/COCBot/functions/Config/saveConfig.au3 +++ b/COCBot/functions/Config/saveConfig.au3 @@ -717,7 +717,7 @@ Func SaveConfig_600_17() _Ini_Add("upgrade", "use-storage", $g_iUpgradeWallLootType) _Ini_Add("upgrade", "savebldr", $g_bUpgradeWallSaveBuilder ? 1 : 0) _Ini_Add("upgrade", "walllvl", $g_iCmbUpgradeWallsLevel) - For $i = 4 To 16 + For $i = 4 To 17 _Ini_Add("Walls", "Wall" & StringFormat("%02d", $i), $g_aiWallsCurrentCount[$i]) Next _Ini_Add("upgrade", "WallCost", $g_iWallCost) diff --git a/COCBot/functions/CreateArmy/CheckFullArmy.au3 b/COCBot/functions/CreateArmy/CheckFullArmy.au3 index 6149a247c..b77e7aa7b 100644 --- a/COCBot/functions/CreateArmy/CheckFullArmy.au3 +++ b/COCBot/functions/CreateArmy/CheckFullArmy.au3 @@ -26,8 +26,8 @@ Func CheckOverviewFullArmy($bOpenArmyWindow = False, $bCloseArmyWindow = False) Click($aArmyTrainButton[0], $aArmyTrainButton[1], 1, 0, "#0347") ; Click Button Army Overview If _Sleep($DELAYCHECKFULLARMY2) Then Return Local $j = 0 - While Not _ColorCheck(_GetPixelColor(136, 139, True), Hex(0xECECE6, 6), 20) ; "ARMY tab" - If $g_bDebugSetlogTrain Then SetLog("OverView TabColor=" & _GetPixelColor(136, 129, True), $COLOR_DEBUG) + While Not _ColorCheck(_GetPixelColor(180, 145 + $g_iMidOffsetY, True), Hex(0xECECE5, 6), 20) ; "ARMY tab" + If $g_bDebugSetlogTrain Then SetLog("OverView TabColor=" & _GetPixelColor(180, 145 + $g_iMidOffsetY, True), $COLOR_DEBUG) If _Sleep($DELAYCHECKFULLARMY1) Then Return ; wait for Train Window to be ready. $j += 1 If $j > 15 Then ExitLoop @@ -39,10 +39,10 @@ Func CheckOverviewFullArmy($bOpenArmyWindow = False, $bCloseArmyWindow = False) EndIf If _sleep($DELAYCHECKFULLARMY2) Then Return - Local $Pixel = _CheckPixel($aIsCampFull, True) And _ColorCheck(_GetPixelColor(40, 150 + $g_iMidOffsetY, True), Hex(0x87BA27, 6), 20) + Local $Pixel = _CheckPixel($aIsCampFull, True) And _ColorCheck(_GetPixelColor(89, 179 + $g_iMidOffsetY, True), Hex(0x87BA26, 6), 20) If Not $Pixel Then If _sleep($DELAYCHECKFULLARMY2) Then Return - $Pixel = _CheckPixel($aIsCampFull, True) And _ColorCheck(_GetPixelColor(40, 150 + $g_iMidOffsetY, True), Hex(0x87BA27, 6), 20) + $Pixel = _CheckPixel($aIsCampFull, True) And _ColorCheck(_GetPixelColor(89, 179 + $g_iMidOffsetY, True), Hex(0x87BA26, 6), 20) EndIf If $g_bDebugSetlogTrain Then SetLog("Checking Overview for full army [!] " & $Pixel & ", " & _GetPixelColor(40, 150 + $g_iMidOffsetY, True), $COLOR_DEBUG) diff --git a/COCBot/functions/CreateArmy/DoubleTrain.au3 b/COCBot/functions/CreateArmy/DoubleTrain.au3 index 554a312c5..087a593b9 100644 --- a/COCBot/functions/CreateArmy/DoubleTrain.au3 +++ b/COCBot/functions/CreateArmy/DoubleTrain.au3 @@ -30,7 +30,14 @@ Func DoubleTrain() Local $Step = 1 While 1 - Local $TroopCamp = GetCurrentArmy(60, 138 + $g_iMidOffsetY) + If _CheckPixel($aReceivedTroopsDouble, True) Or _CheckPixel($aReceivedTroopsDoubleOCR, True) Then ; Found the "You have received" Message on Screen, wait till its gone. + SetDebugLog("Detected Clan Castle Message Blocking Troop Count. Waiting until it's gone", $COLOR_INFO) + _CaptureRegion2() + While (_CheckPixel($aReceivedTroopsDouble, True) Or _CheckPixel($aReceivedTroopsDoubleOCR, True)) + If _Sleep($DELAYTRAIN1) Then Return + WEnd + EndIf + Local $TroopCamp = GetCurrentArmy(95, 163 + $g_iMidOffsetY) SetLog("Checking Troop tab: " & $TroopCamp[0] & "/" & $TroopCamp[1] * 2) If $TroopCamp[1] = 0 Then ExitLoop If $TroopCamp[1] <> $g_iTotalCampSpace Then _ @@ -76,7 +83,7 @@ Func DoubleTrain() If _Sleep(250) Then Return $Step = 1 While 1 - Local $SpellCamp = GetCurrentArmy(59, 138 + $g_iMidOffsetY) + Local $SpellCamp = GetCurrentArmy(95, 163 + $g_iMidOffsetY) SetLog("Checking Spell tab: " & $SpellCamp[0] & "/" & $SpellCamp[1] * 2) If $SpellCamp[1] > $TotalSpell Then @@ -159,7 +166,7 @@ Func TrainFullTroop($bQueue = False) TrainUsingWhatToTrain($ToReturn, $bQueue) If _Sleep(500) Then Return - Local $CampOCR = GetCurrentArmy(60, 138 + $g_iMidOffsetY) + Local $CampOCR = GetCurrentArmy(95, 163 + $g_iMidOffsetY) SetDebugLog("Checking troop tab: " & $CampOCR[0] & "/" & $CampOCR[1] * 2) EndFunc ;==>TrainFullTroop @@ -181,7 +188,7 @@ Func BrewFullSpell($bQueue = False) BrewUsingWhatToTrain($ToReturn, $bQueue) If _Sleep(750) Then Return - Local $CampOCR = GetCurrentArmy(59, 138 + $g_iMidOffsetY) + Local $CampOCR = GetCurrentArmy(95, 163 + $g_iMidOffsetY) SetDebugLog("Checking spell tab: " & $CampOCR[0] & "/" & $CampOCR[1] * 2) EndFunc ;==>BrewFullSpell @@ -239,10 +246,10 @@ Func CheckQueueTroopAndTrainRemain($ArmyCamp, $bDebug) Local $iTotalQueue = 0 If $bDebug Then SetLog("Checking troop queue: " & $ArmyCamp[0] & "/" & $ArmyCamp[1] * 2, $COLOR_DEBUG) - Local $XQueueStart = 827 + Local $XQueueStart = 777 For $i = 0 To 10 - If _ColorCheck(_GetPixelColor(822 - $i * 68.5, 163 + $g_iMidOffsetY, True), Hex(0xD7AFA9, 6), 20) Then ; Pink background found - $XQueueStart -= 68.5 * $i + If _ColorCheck(_GetPixelColor(766 - $i * 60.5, 185 + $g_iMidOffsetY, True), Hex(0xD7AFA9, 6), 20) Then ; Pink background found + $XQueueStart -= 60.5 * $i ExitLoop EndIf Next @@ -281,7 +288,7 @@ Func CheckQueueTroopAndTrainRemain($ArmyCamp, $bDebug) TrainUsingWhatToTrain($rWTT, True) If _Sleep(1000) Then Return - $ArmyCamp = GetCurrentArmy(60, 138 + $g_iMidOffsetY) + $ArmyCamp = GetCurrentArmy(95, 163 + $g_iMidOffsetY) SetLog("Checking troop tab: " & $ArmyCamp[0] & "/" & $ArmyCamp[1] * 2 & ($ArmyCamp[0] < $ArmyCamp[1] * 2 ? ". Top-up queue failed!" : "")) If $ArmyCamp[0] < $ArmyCamp[1] * 2 Then Return False EndIf @@ -294,10 +301,10 @@ Func CheckQueueSpellAndTrainRemain($ArmyCamp, $bDebug, $iUnbalancedSpell = 0) Local $iTotalQueue = 0 If $bDebug Then SetLog("Checking spell queue: " & $ArmyCamp[0] & "/" & $ArmyCamp[1] * 2, $COLOR_DEBUG) - Local $XQueueStart = 827 + Local $XQueueStart = 777 For $i = 0 To 10 - If _ColorCheck(_GetPixelColor(822 - $i * 68.5, 163 + $g_iMidOffsetY, True), Hex(0xD7AFA9, 6), 20) Then ; Pink background found - $XQueueStart -= 68.5 * $i + If _ColorCheck(_GetPixelColor(766 - $i * 60.5, 185 + $g_iMidOffsetY, True), Hex(0xD7AFA9, 6), 20) Then ; Pink background found + $XQueueStart -= 60.5 * $i ExitLoop EndIf Next @@ -341,7 +348,7 @@ Func CheckQueueSpellAndTrainRemain($ArmyCamp, $bDebug, $iUnbalancedSpell = 0) BrewUsingWhatToTrain($rWTT, True) If _Sleep(1000) Then Return - Local $NewSpellCamp = GetCurrentArmy(59, 138 + $g_iMidOffsetY) + Local $NewSpellCamp = GetCurrentArmy(95, 163 + $g_iMidOffsetY) SetLog("Checking spell tab: " & $NewSpellCamp[0] & "/" & $NewSpellCamp[1] * 2 & ($NewSpellCamp[0] < $ArmyCamp[1] * 2 ? ". Top-up queue failed!" : "")) If $NewSpellCamp[0] < $ArmyCamp[1] * 2 Then Return False EndIf diff --git a/COCBot/functions/CreateArmy/QuickTrain.au3 b/COCBot/functions/CreateArmy/QuickTrain.au3 index 5fb54c6a6..d3a8a3959 100644 --- a/COCBot/functions/CreateArmy/QuickTrain.au3 +++ b/COCBot/functions/CreateArmy/QuickTrain.au3 @@ -29,7 +29,7 @@ Func QuickTrain() Local $iStep = 1 While 1 - Local $avTroopCamp = GetCurrentArmy(60, 138 + $g_iMidOffsetY) + Local $avTroopCamp = GetCurrentArmy(95, 163 + $g_iMidOffsetY) SetLog("Checking Troop tab: " & $avTroopCamp[0] & "/" & $avTroopCamp[1] * 2) If $avTroopCamp[1] = 0 Then ExitLoop @@ -81,7 +81,7 @@ Func QuickTrain() Local $Step = 1, $iUnbalancedSpell = 0 While 1 - Local $aiSpellCamp = GetCurrentArmy(59, 138 + $g_iMidOffsetY) + Local $aiSpellCamp = GetCurrentArmy(95, 163 + $g_iMidOffsetY) SetLog("Checking Spell tab: " & $aiSpellCamp[0] & "/" & $aiSpellCamp[1] * 2) If $aiSpellCamp[1] > $g_iTotalQuickSpells Then SetLog("Unbalance total quick spell vs actual spell capacity: " & $g_iTotalQuickSpells & "/" & $aiSpellCamp[1]) @@ -411,7 +411,7 @@ Func CheckQuickTrainTroop() ; cross check with army camp If _ArrayMax($g_aiArmyQuickTroops) > 0 Then - Local $TroopCamp = GetCurrentArmy(60, 138 + $g_iMidOffsetY) + Local $TroopCamp = GetCurrentArmy(95, 163 + $g_iMidOffsetY) $iTroopCamp = $TroopCamp[1] * 2 If $TempTroopTotal <> $TroopCamp[0] Then SetLog("Error reading troops in army setting (" & $TempTroopTotal & " vs " & $TroopCamp[0] & ")", $COLOR_ERROR) diff --git a/COCBot/functions/CreateArmy/TrainIt.au3 b/COCBot/functions/CreateArmy/TrainIt.au3 index d0615679a..baf471691 100644 --- a/COCBot/functions/CreateArmy/TrainIt.au3 +++ b/COCBot/functions/CreateArmy/TrainIt.au3 @@ -211,20 +211,20 @@ Func GetFullNameSlot(Const $iTrainPos, Const $sTroopType, $iTroop = $eBarb) If $sTroopType = "Spell" Then Switch $iTrainPos[0] - Case 37 To 132 ; 1 Column - $iSlotH = 112 - Case 133 To 228 ; 2 Column - $iSlotH = 207 - Case 229 To 323 ; 3 Column - $iSlotH = 303 - Case 324 To 422 ; 4 Column - $iSlotH = 398 - Case 423 To 522 ; 5 Column - $iSlotH = 501 - Case 523 To 617 ; 6 Column - $iSlotH = 597 - Case 618 To 712 ; 7 Column - $iSlotH = 692 + Case 78 To 160 ; 1 Column + $iSlotH = 143 + Case 164 To 245 ; 2 Column + $iSlotH = 228 + Case 248 To 328 ; 3 Column + $iSlotH = 312 + Case 334 To 414 ; 4 Column + $iSlotH = 397 + Case 417 To 498 ; 5 Column + $iSlotH = 481 + Case 502 To 583 ; 6 Column + $iSlotH = 565 + Case 585 To 667 ; 7 Column + $iSlotH = 650 Case Else If _ColorCheck(_GetPixelColor($iTrainPos[0], $iTrainPos[1], True), Hex(0xD3D3CB, 6), 5) Then SetLog("GetFullNameSlot(): It seems that there is no Slot for an Spell on: " & $iTrainPos[0] & "," & $iTrainPos[1] & "!", $COLOR_ERROR) @@ -232,10 +232,10 @@ Func GetFullNameSlot(Const $iTrainPos, Const $sTroopType, $iTroop = $eBarb) EndSwitch Switch $iTrainPos[1] - Case 370 To 470 + Case 375 To 460 $iSlotV = 387 ; First ROW - Case 475 To 570 ; Second ROW - $iSlotV = 486 + Case 465 To 545 ; Second ROW + $iSlotV = 475 EndSwitch Local $aSlot[4] = [$iSlotH, $iSlotV, 0xBABABA, 20] ; Gray [i] icon @@ -247,12 +247,12 @@ Func GetFullNameSlot(Const $iTrainPos, Const $sTroopType, $iTroop = $eBarb) If $iTroop > $g_iNextPageTroop Then ; Normal Troops in second page Switch $iTrainPos[0] - Case 54 To 148 ; 1 Column - $iSlotH = 128 - Case 149 To 243 ; 2 Column - $iSlotH = 223 - Case 244 To 338 ; 3 Column - $iSlotH = 318 + Case 96 To 178 ; 1 Column + $iSlotH = 161 + Case 181 To 262 ; 2 Column + $iSlotH = 245 + Case 266 To 346 ; 3 Column + $iSlotH = 329 Case Else If _ColorCheck(_GetPixelColor($iTrainPos[0], $iTrainPos[1], True), Hex(0xD3D3CB, 6), 5) Then SetLog("GetFullNameSlot(): It seems that there is no Slot for an Elixir Troop on: " & $iTrainPos[0] & "," & $iTrainPos[1] & "!", $COLOR_ERROR) @@ -260,22 +260,22 @@ Func GetFullNameSlot(Const $iTrainPos, Const $sTroopType, $iTroop = $eBarb) EndSwitch Else Switch $iTrainPos[0] - Case 37 To 132 ; 1 Column - $iSlotH = 112 - Case 133 To 228 ; 2 Column - $iSlotH = 207 - Case 229 To 323 ; 3 Column - $iSlotH = 303 - Case 324 To 418 ; 4 Column - $iSlotH = 398 - Case 419 To 513 ; 5 Column - $iSlotH = 493 - Case 514 To 609 ; 6 Column - $iSlotH = 588 - Case 610 To 704 ; 7 Column - $iSlotH = 683 - Case 705 To 799 ; 8 Column - $iSlotH = 779 + Case 78 To 160 ; 1 Column + $iSlotH = 143 + Case 164 To 245 ; 2 Column + $iSlotH = 228 + Case 248 To 328 ; 3 Column + $iSlotH = 312 + Case 334 To 414 ; 4 Column + $iSlotH = 397 + Case 417 To 498 ; 5 Column + $iSlotH = 481 + Case 502 To 583 ; 6 Column + $iSlotH = 565 + Case 585 To 667 ; 7 Column + $iSlotH = 650 + Case 670 To 752 ; 8 Column + $iSlotH = 734 Case Else If _ColorCheck(_GetPixelColor($iTrainPos[0], $iTrainPos[1], True), Hex(0xD3D3CB, 6), 5) Then SetLog("GetFullNameSlot(): It seems that there is no Slot for an Elixir Troop on: " & $iTrainPos[0] & "," & $iTrainPos[1] & "!", $COLOR_ERROR) @@ -284,10 +284,10 @@ Func GetFullNameSlot(Const $iTrainPos, Const $sTroopType, $iTroop = $eBarb) EndIf Switch $iTrainPos[1] - Case 370 To 470 + Case 375 To 460 $iSlotV = 387 ; First ROW - Case 475 To 570 ; Second ROW - $iSlotV = 486 + Case 465 To 545 ; Second ROW + $iSlotV = 475 EndSwitch Local $aSlot[4] = [$iSlotH, $iSlotV, 0xBABABA, 20] ; Gray [i] icon @@ -298,20 +298,20 @@ Func GetFullNameSlot(Const $iTrainPos, Const $sTroopType, $iTroop = $eBarb) If $sTroopType = "Dark" Then Switch $iTrainPos[0] - Case 157 To 252 ; When 2 Dark Super Troops + Case 157 To 252 ; When 2 Dark Super Troops (Do Do again) $iSlotH = 230 - Case 253 To 347 - $iSlotH = 326 - Case 348 To 442 - $iSlotH = 422 - Case 443 To 537 - $iSlotH = 516 - Case 538 To 632 - $iSlotH = 612 - Case 633 To 728 - $iSlotH = 708 - Case 729 To 824 - $iSlotH = 804 + Case 268 To 349 + $iSlotH = 333 + Case 354 To 434 + $iSlotH = 418 + Case 438 To 518 + $iSlotH = 502 + Case 522 To 604 + $iSlotH = 586 + Case 608 To 688 + $iSlotH = 671 + Case 697 To 774 + $iSlotH = 755 Case Else If _ColorCheck(_GetPixelColor($iTrainPos[0], $iTrainPos[1], True), Hex(0xD3D3CB, 6), 5) Then SetLog("GetFullNameSlot(): It seems that there is no Slot for a Dark Elixir Troop on: " & $iTrainPos[0] & "," & $iTrainPos[1] & "!", $COLOR_ERROR) @@ -319,10 +319,10 @@ Func GetFullNameSlot(Const $iTrainPos, Const $sTroopType, $iTroop = $eBarb) EndSwitch Switch $iTrainPos[1] - Case 370 To 470 + Case 375 To 460 $iSlotV = 387 ; First ROW - Case 475 To 570 ; Second ROW - $iSlotV = 486 + Case 465 To 545 ; Second ROW + $iSlotV = 475 EndSwitch Local $aSlot[4] = [$iSlotH, $iSlotV, 0xBABABA, 20] ; Gray [i] icon diff --git a/COCBot/functions/CreateArmy/TrainSiege.au3 b/COCBot/functions/CreateArmy/TrainSiege.au3 index 90ecd1eaa..2a39adab7 100644 --- a/COCBot/functions/CreateArmy/TrainSiege.au3 +++ b/COCBot/functions/CreateArmy/TrainSiege.au3 @@ -17,8 +17,7 @@ Func TrainSiege($bTrainFullSiege = False, $bDebugSetLog = $g_bDebugSetLog) Local $iPage = 0 ; Local $sImgSieges = @ScriptDir & "\imgxml\Train\Siege_Train\" - Local $sSearchArea = GetDiamondFromRect2(25, 345 + $g_iMidOffsetY, 840, 510 + $g_iMidOffsetY) - + Local $sSearchArea = GetDiamondFromRect2(75, 345 + $g_iMidOffsetY, 780, 520 + $g_iMidOffsetY) ; Check if is necessary run the routine If Not $g_bRunState Then Return @@ -28,15 +27,23 @@ Func TrainSiege($bTrainFullSiege = False, $bDebugSetLog = $g_bDebugSetLog) If Not OpenSiegeMachinesTab(True, "TrainSiege()") Then Return If _Sleep(500) Then Return - Local $aCheckIsOccupied[4] = [814, 182 + $g_iMidOffsetY, 0xE21012, 15] - Local $aCheckIsFilled[4] = [802, 164 + $g_iMidOffsetY, 0xD7AFA9, 15] + Local $aCheckIsOccupied[4] = [766, 202 + $g_iMidOffsetY, 0xE21012, 15] + Local $aCheckIsFilled[4] = [765, 185 + $g_iMidOffsetY, 0xD7AFA9, 15] Local $aiQueueSiegeMachine[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] Local $aiTotalSiegeMachine = $g_aiCurrentSiegeMachines + If _CheckPixel($aReceivedTroopsDouble, True) Or _CheckPixel($aReceivedTroopsDoubleOCR, True) Then ; Found the "You have received" Message on Screen, wait till its gone. + SetDebugLog("Detected Clan Castle Message Blocking Siege Count. Waiting until it's gone", $COLOR_INFO) + _CaptureRegion2() + While (_CheckPixel($aReceivedTroopsDouble, True) Or _CheckPixel($aReceivedTroopsDoubleOCR, True)) + If _Sleep($DELAYTRAIN1) Then Return + WEnd + EndIf + ; check queueing siege If _CheckPixel($aCheckIsFilled, True, Default, "Siege is Filled") Or _CheckPixel($aCheckIsOccupied, True, Default, "Siege is Queued") Then Local $Dir = @ScriptDir & "\imgxml\ArmyOverview\SiegeMachinesQueued" - Local $aSearchResult = SearchArmy($Dir, 30, 165 + $g_iMidOffsetY, 835, 230 + $g_iMidOffsetY, "Queue") + Local $aSearchResult = SearchArmy($Dir, 75, 188 + $g_iMidOffsetY, 777, 245 + $g_iMidOffsetY, "Queue") If $aSearchResult[0][0] <> "" Then For $i = 0 To UBound($aSearchResult) - 1 Local $iSiegeIndex = TroopIndexLookup($aSearchResult[$i][0]) - $eWallW @@ -107,55 +114,13 @@ Func TrainSiege($bTrainFullSiege = False, $bDebugSetLog = $g_bDebugSetLog) If _Sleep(500) Then Return ; OCR to get remain time - coc-siegeremain - Local $sSiegeTime = getRemainTrainTimer(735, 138 + $g_iMidOffsetY) ; Get time via OCR. + Local $sSiegeTime = getRemainTrainTimer(700, 162 + $g_iMidOffsetY) ; Get time via OCR. If $sSiegeTime <> "" Then $g_aiTimeTrain[3] = ConvertOCRTime("Siege", $sSiegeTime, False) ; Update global array SetLog("Remaining Siege build time: " & StringFormat("%.2f", $g_aiTimeTrain[3]), $COLOR_INFO) EndIf EndFunc ;==>TrainSiege -Func CheckQueueSieges($bGetQuantity = True, $bSetLog = True, $x = 835, $bQtyWSlot = False) - Local $aResult[1] = [""] - If $bSetLog Then SetLog("Checking siege queue", $COLOR_INFO) - - Local $Dir = @ScriptDir & "\imgxml\ArmyOverview\SiegeMachinesQueued" - - Local $aSearchResult = SearchArmy($Dir, 30, 165 + $g_iMidOffsetY, $x, 230 + $g_iMidOffsetY, $bGetQuantity ? "queue" : "") - ReDim $aResult[UBound($aSearchResult)] - - If $aSearchResult[0][0] = "" Then - Setlog("No siege detected!", $COLOR_ERROR) - Return - EndIf - - For $i = 0 To (UBound($aSearchResult) - 1) - If Not $g_bRunState Then Return - $aResult[$i] = $aSearchResult[$i][0] - Next - - If $bGetQuantity Then - Local $aQuantities[UBound($aResult)][2] - Local $aQueueTroop[$eSiegeMachineCount] - For $i = 0 To (UBound($aQuantities) - 1) - $aQuantities[$i][0] = $aSearchResult[$i][0] - $aQuantities[$i][1] = $aSearchResult[$i][3] - Local $iSiegeIndex = Int(TroopIndexLookup($aQuantities[$i][0]) - $eWallW) - If $iSiegeIndex >= 0 And $iSiegeIndex < $eSiegeMachineCount Then - If $bSetLog Then SetLog(" - " & $g_asSiegeMachineNames[TroopIndexLookup($aQuantities[$i][0], "CheckQueueSieges")] & ": " & $aQuantities[$i][1] & "x", $COLOR_SUCCESS) - $aQueueTroop[$iSiegeIndex] += $aQuantities[$i][1] - Else - ; TODO check what to do with others - SetDebugLog("Unsupport siege index: " & $iSiegeIndex) - EndIf - Next - If $bQtyWSlot Then Return $aQuantities - Return $aQueueTroop - EndIf - - _ArrayReverse($aResult) - Return $aResult -EndFunc ;==>CheckQueueSieges - Func DragSiegeIfNeeded($iSiegeIndex, ByRef $iPage) SetLog("Siege Needed: " & $g_asSiegeMachineNames[$iSiegeIndex]) diff --git a/COCBot/functions/CreateArmy/TrainSystem.au3 b/COCBot/functions/CreateArmy/TrainSystem.au3 index e606fb611..91108ba33 100644 --- a/COCBot/functions/CreateArmy/TrainSystem.au3 +++ b/COCBot/functions/CreateArmy/TrainSystem.au3 @@ -261,7 +261,7 @@ Func TrainUsingWhatToTrain($rWTT, $bQueue = $g_bIsFullArmywithHeroesAndSpells) Local $NeededSpace = $g_aiTroopSpace[$iTroopIndex] * $rWTT[$i][1] EndIf - Local $aLeftSpace = GetOCRCurrent(60, 138 + $g_iMidOffsetY) + Local $aLeftSpace = GetOCRCurrent(95, 163 + $g_iMidOffsetY) Local $LeftSpace = $bQueue ? ($aLeftSpace[1] * 2) - $aLeftSpace[0] : $aLeftSpace[2] @@ -304,7 +304,7 @@ Func BrewUsingWhatToTrain($rWTT, $bQueue = $g_bIsFullArmywithHeroesAndSpells) Local $iSpellIndex = TroopIndexLookup($rWTT[$i][0], "BrewUsingWhatToTrain") Local $NeededSpace = $g_aiSpellSpace[$iSpellIndex - $eLSpell] * $rWTT[$i][1] - Local $aLeftSpace = GetOCRCurrent(59, 138 + $g_iMidOffsetY) + Local $aLeftSpace = GetOCRCurrent(95, 163 + $g_iMidOffsetY) Local $LeftSpace = $bQueue ? ($aLeftSpace[1] * 2) - $aLeftSpace[0] : $aLeftSpace[2] If $NeededSpace > $LeftSpace Then $rWTT[$i][1] = Int($LeftSpace / $g_aiSpellSpace[$iSpellIndex - $eLSpell]) @@ -338,25 +338,25 @@ Func DragIfNeeded($Troop) If $iIndex > $g_iNextPageTroop Then $bDrag = True ;Drag if Troops is on Right side from $g_iNextPageTroop If $bDrag Then - If _ColorCheck(_GetPixelColor(826, 373 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) Then $bCheckPixel = True - If $g_bDebugSetlogTrain Then SetLog("DragIfNeeded Dark Troops: " & $bCheckPixel) + If _ColorCheck(_GetPixelColor(777, 380 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) Then $bCheckPixel = True + If $g_bDebugSetlogTrain Then SetLog("DragIfNeeded : to the right") For $i = 1 To 3 If Not $bCheckPixel Then - ClickDrag(820, 445 + $g_iMidOffsetY, 55, 445 + $g_iMidOffsetY) + ClickDrag(770, 433 + $g_iMidOffsetY, 80, 433 + $g_iMidOffsetY) If _Sleep(2000) Then Return - If _ColorCheck(_GetPixelColor(826, 373 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) Then $bCheckPixel = True + If _ColorCheck(_GetPixelColor(777, 380 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) Then $bCheckPixel = True Else Return True EndIf Next Else - If _ColorCheck(_GetPixelColor(35, 373 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) Then $bCheckPixel = True - If $g_bDebugSetlogTrain Then SetLog("DragIfNeeded Normal Troops: " & $bCheckPixel) + If _ColorCheck(_GetPixelColor(75, 380 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) Then $bCheckPixel = True + If $g_bDebugSetlogTrain Then SetLog("DragIfNeeded : to the left") For $i = 1 To 3 If Not $bCheckPixel Then - ClickDrag(40, 445 + $g_iMidOffsetY, 820, 445 + $g_iMidOffsetY) + ClickDrag(80, 433 + $g_iMidOffsetY, 770, 433 + $g_iMidOffsetY) If _Sleep(2000) Then Return - If _ColorCheck(_GetPixelColor(35, 373 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) Then $bCheckPixel = True + If _ColorCheck(_GetPixelColor(75, 380 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) Then $bCheckPixel = True Else Return True EndIf @@ -386,7 +386,7 @@ EndFunc ;==>DoWhatToTrainContainSpell Func IsElixirTroop($Troop) Local $iIndex = TroopIndexLookup($Troop, "IsElixirTroop") - If $iIndex >= $eBarb And $iIndex <= $eETitan Then Return True + If $iIndex >= $eBarb And $iIndex <= $eRootR Then Return True Return False EndFunc ;==>IsElixirTroop @@ -568,12 +568,12 @@ EndFunc ;==>DeleteInvalidTroopInArray Func RemoveExtraTroopsQueue() ; Will remove All Extra troops in queue If there's a Low Opacity red color on them FuncEnter(RemoveExtraTroopsQueue, $g_bDebugSetlogTrain) ;Local Const $DecreaseByStep = 69 ; spacing between troop icons - ;Local $x = 824 ; right most position moved Oct 2023 update window size change - Local Const $y = 164 + $g_iMidOffsetY ; Pink pixel check Y location - Local Const $yRemoveBtn = 179 + $g_iMidOffsetY ; Troop remove button Y location - Local Const $xDecreaseRemoveBtn = 10 ; offset to remove button location + ;Local $x = 777 ; right most position moved Dec 2023 update window size change + Local Const $y = 185 + $g_iMidOffsetY ; Pink pixel check Y location + Local Const $yRemoveBtn = 198 + $g_iMidOffsetY ; Troop remove button Y location + Local Const $xDecreaseRemoveBtn = 11 ; offset to remove button location Local $bColorCheck = False, $bGotRemoved = False - For $x = 824 To 58 Step -69 + For $x = 777 To 73 Step -61 If Not $g_bRunState Then Return FuncReturn(False, $g_bDebugSetlogTrain) $bColorCheck = _ColorCheck(_GetPixelColor($x, $y, True, $g_bDebugSetlogTrain ? "RemoveExtraTroopsQueue_ExtraTroops:D7AFA9" : Default), Hex(0xD7AFA9, 6), 20) ;check for pink right of troop icon If $bColorCheck Then @@ -609,17 +609,28 @@ Func IsQueueEmpty($sType = "Troops", $bSkipTabCheck = False, $removeExtraTroopsQ Return FuncReturn(Default, $g_bDebugSetlogTrain) EndIf - If Not _ColorCheck(_GetPixelColor($iArrowX, $iArrowY, True, $g_bDebugSetlogTrain ? $sType & " IsQueueEmpty_GreenArrow:0xA5D27B" : Default), Hex(0xA5D27B, 6), 30) And _ - Not _ColorCheck(_GetPixelColor($iArrowX, $iArrowY + 3, True, $g_bDebugSetlogTrain ? $sType & " IsQueueEmpty_GreenArrow:0x6FB424" : Default), Hex(0x6FB424, 6), 30) Then + If _CheckPixel($aReceivedTroopsTab, True) Then + SetLog("Detected Clan Castle Message. Waiting until it's gone", $COLOR_INFO) + _CaptureRegion2() + Local $Safetyexit = 0 + While _CheckPixel($aReceivedTroopsTab, True) + If _Sleep($DELAYTRAIN1) Then Return + $Safetyexit = $Safetyexit + 1 + If $Safetyexit > 120 Then ExitLoop ;If waiting longer than 2 min, something is wrong + WEnd + EndIf + + If Not _ColorCheck(_GetPixelColor($iArrowX, $iArrowY, True, $g_bDebugSetlogTrain ? $sType & " GreenArrow:0xAFDC87" : Default), Hex(0xAFDC87, 6), 30) And _ + Not _ColorCheck(_GetPixelColor($iArrowX, $iArrowY + 3, True, $g_bDebugSetlogTrain ? $sType & " GreenArrow:0x79BF30" : Default), Hex(0x79BF30, 6), 30) Then If $g_bDebugSetlogTrain Then SetLog($sType & " Queue empty", $COLOR_DEBUG) - Return FuncReturn(True, $g_bDebugSetlogTrain) ; Check Green Arrows at top first, if not there -> Return + Return True ; Check Green Arrows at top first, if not there -> Return - ElseIf _ColorCheck(_GetPixelColor($iArrowX, $iArrowY, True, $g_bDebugSetlogTrain ? $sType & " IsQueueEmpty_GreenArrow:0xA5D27B" : Default), Hex(0xA5D27B, 6), 30) And _ - _ColorCheck(_GetPixelColor($iArrowX, $iArrowY + 3, True, $g_bDebugSetlogTrain ? $sType & " IsQueueEmpty_GreenArrow:0x6FB424" : Default), Hex(0x6FB424, 6), 30) And _ + ElseIf _ColorCheck(_GetPixelColor($iArrowX, $iArrowY, True, $g_bDebugSetlogTrain ? $sType & " GreenArrow:0xAFDC87" : Default), Hex(0xAFDC87, 6), 30) And _ + _ColorCheck(_GetPixelColor($iArrowX, $iArrowY + 3, True, $g_bDebugSetlogTrain ? $sType & " GreenArrow:0x79BF30" : Default), Hex(0x79BF30, 6), 30) And _ Not $removeExtraTroopsQueue Then - If Not WaitforPixel($iArrowX - 11, $iArrowY - 1, $iArrowX - 9, $iArrowY + 1, Hex(0xA5D27B, 6), 30, 2) Then Return FuncReturn(False, $g_bDebugSetlogTrain) ; check if boost arrow to do again + If Not WaitforPixel($iArrowX - 11, $iArrowY - 1, $iArrowX - 9, $iArrowY + 1, Hex(0xAFDC87, 6), 30, 2) Then Return False ; check if boost arrow EndIf If _Sleep($DELAYRESPOND) Then Return @@ -636,21 +647,21 @@ Func IsQueueEmpty($sType = "Troops", $bSkipTabCheck = False, $removeExtraTroopsQ If Not $g_bIsFullArmywithHeroesAndSpells Then If $removeExtraTroopsQueue Then - If Not _ColorCheck(_GetPixelColor(228, 190 + $g_iMidOffsetY, True, $g_bDebugSetlogTrain ? $sType & " Not $g_bIsFullArmywithHeroesAndSpells:0x677CB5" : Default), Hex(0x677CB5, 6), 30) Then RemoveExtraTroopsQueue() ; Check for Blue band in empty queue + If Not _ColorCheck(_GetPixelColor(263, 215 + $g_iMidOffsetY, True, $g_bDebugSetlogTrain ? $sType & " Not $g_bIsFullArmywithHeroesAndSpells:0x677CB5" : Default), Hex(0x677CB5, 6), 30) Then RemoveExtraTroopsQueue() ; Check for Blue band in empty queue EndIf EndIf If $removeExtraTroopsQueue Then ; If No troops were in Queue Return True - If _ColorCheck(_GetPixelColor(228, 190 + $g_iMidOffsetY, True, $g_bDebugSetlogTrain ? $sType & " IsQueueEmpty_QueueEmpty:0x677CB5" : Default), Hex(0x677CB5, 6), 20) Then Return FuncReturn(True, $g_bDebugSetlogTrain) ; Check for Blue band in empty queue + If _ColorCheck(_GetPixelColor(263, 215 + $g_iMidOffsetY, True, $g_bDebugSetlogTrain ? $sType & " IsQueueEmpty_QueueEmpty:0x677CB5" : Default), Hex(0x677CB5, 6), 20) Then Return FuncReturn(True, $g_bDebugSetlogTrain) ; Check for Blue band in empty queue Else - If _ColorCheck(_GetPixelColor(820, 178 + $g_iMidOffsetY, True, $g_bDebugSetlogTrain ? $sType & " IsQueueEmpty_QueueBoosted:0xD0D0C8" : Default), Hex(0xD0D0C8, 6), 20) Then Return FuncReturn(True, $g_bDebugSetlogTrain) ; check gray background at 1st training slot + If _ColorCheck(_GetPixelColor(773, 195 + $g_iMidOffsetY, True, $g_bDebugSetlogTrain ? $sType & " IsQueueEmpty_QueueBoosted:0xD0D0C8" : Default), Hex(0xD0D0C8, 6), 20) Then Return FuncReturn(True, $g_bDebugSetlogTrain) ; check gray background at 1st training slot EndIf Return FuncReturn(False, $g_bDebugSetlogTrain) EndFunc ;==>IsQueueEmpty Func ClickRemoveTroop($pos, $iTimes, $iSpeed) - $pos[0] = Random($pos[0] - 3, $pos[0] + 10, 1) + $pos[0] = Random($pos[0] - 5, $pos[0] + 5, 1) $pos[1] = Random($pos[1] - 5, $pos[1] + 5, 1) If Not $g_bRunState Then Return If _Sleep(400) Then Return @@ -672,8 +683,8 @@ Func ClickRemoveTroop($pos, $iTimes, $iSpeed) EndFunc ;==>ClickRemoveTroop Func GetSlotRemoveBtnPosition($iSlot, $bSpells = False) - Local $iRemoveY = Not $bSpells ? (245 + $g_iMidOffsetY) : (387 + $g_iMidOffsetY) - Local $iRemoveX = Number(38 + (71 * $iSlot) - 16) + Local $iRemoveY = Not $bSpells ? (258 + $g_iMidOffsetY) : (383 + $g_iMidOffsetY) + Local $iRemoveX = Number(77 + (64 * $iSlot) - 16) Local Const $aResult[2] = [$iRemoveX, $iRemoveY] Return $aResult @@ -683,7 +694,7 @@ Func GetSlotNumber($bSpells = False) Select Case $bSpells = False Local Const $Orders = [$eBarb, $eSBarb, $eArch, $eSArch, $eGiant, $eSGiant, $eGobl, $eSGobl, $eWall, $eSWall, $eBall, $eRBall, $eWiza, $eSWiza, $eHeal, $eDrag, $eSDrag, _ - $eYeti, $eRDrag, $ePekk, $eBabyD, $eInfernoD, $eMine, $eSMine, $eEDrag, $eETitan, _ + $eYeti, $eRDrag, $ePekk, $eBabyD, $eInfernoD, $eMine, $eSMine, $eEDrag, $eETitan, $eRootR, _ $eMini, $eSMini, $eHogs, $eSHogs, $eValk, $eSValk, $eGole, $eWitc, $eSWitc, $eLava, $eIceH, $eBowl, $eSBowl, $eIceG, $eHunt, $eAppWard] ; Set Order of troop display in Army Tab Local $allCurTroops[UBound($Orders)] @@ -836,13 +847,13 @@ Func WhatToTrain($ReturnExtraTroopsOnly = False, $bFullArmy = $g_bIsFullArmywith EndFunc ;==>WhatToTrain -Func CheckQueueTroops($bGetQuantity = True, $bSetLog = True, $x = 830, $bQtyWSlot = False) +Func CheckQueueTroops($bGetQuantity = True, $bSetLog = True, $x = 777, $bQtyWSlot = False) Local $aResult[1] = [""] If $bSetLog Then SetLog("Checking Troops Queue", $COLOR_INFO) Local $Dir = @ScriptDir & "\imgxml\ArmyOverview\TroopsQueued" - Local $aSearchResult = SearchArmy($Dir, 30, 162 + $g_iMidOffsetY, $x, 231 + $g_iMidOffsetY, $bGetQuantity ? "Queue" : "") + Local $aSearchResult = SearchArmy($Dir, 73, 188 + $g_iMidOffsetY, $x, 243 + $g_iMidOffsetY, $bGetQuantity ? "Queue" : "") ReDim $aResult[UBound($aSearchResult)] @@ -880,12 +891,12 @@ Func CheckQueueTroops($bGetQuantity = True, $bSetLog = True, $x = 830, $bQtyWSlo Return $aResult EndFunc ;==>CheckQueueTroops -Func CheckQueueSpells($bGetQuantity = True, $bSetLog = True, $x = 830, $bQtyWSlot = False) +Func CheckQueueSpells($bGetQuantity = True, $bSetLog = True, $x = 777, $bQtyWSlot = False) Local $avResult[$eSpellCount] Local $sImageDir = @ScriptDir & "\imgxml\ArmyOverview\SpellsQueued" If $bSetLog Then SetLog("Checking Spells Queue", $COLOR_INFO) - Local $avSearchResult = SearchArmy($sImageDir, 30, 162 + $g_iMidOffsetY, $x, 231 + $g_iMidOffsetY, $bGetQuantity ? "Queue" : "") + Local $avSearchResult = SearchArmy($sImageDir, 73, 188 + $g_iMidOffsetY, $x, 243 + $g_iMidOffsetY, $bGetQuantity ? "Queue" : "") If $avSearchResult[0][0] = "" Then Setlog("No Spells detected!", $COLOR_ERROR) @@ -1034,8 +1045,8 @@ Func SearchArmy($sImageDir = "", $x = 0, $y = 0, $x1 = 0, $y1 = 0, $sArmyType = _ArraySort($aResult, 1, 0, 0, 1) ; reverse the queued slots from right to left Local $xSlot For $i = 0 To UBound($aResult) - 1 - $xSlot = Int(Number($aResult[$i][1]) / 68.5) * 68.5 - 6 - $aResult[$i][3] = Number(getQueueTroopsQuantity($xSlot, 168 + $g_iMidOffsetY)) + $xSlot = Int(Number($aResult[$i][1]) / 60.5) * 60.5 - 6 + $aResult[$i][3] = Number(getQueueTroopsQuantity($xSlot, 189 + $g_iMidOffsetY)) SetDebugLog($aResult[$i][0] & " (" & $xSlot & ") x" & $aResult[$i][3]) Next EndIf @@ -1043,8 +1054,8 @@ Func SearchArmy($sImageDir = "", $x = 0, $y = 0, $x1 = 0, $y1 = 0, $sArmyType = If $sArmyType = "Quick Train" Then Local $xSlot For $i = 0 To UBound($aResult) - 1 - $xSlot = Int((Number($aResult[$i][1]) - 25) / 68.5) - $aResult[$i][3] = Number(getQueueTroopsQuantity(25 + $xSlot * 68.5, 168 + $g_iMidOffsetY)) + $xSlot = Int((Number($aResult[$i][1]) - 25) / 60.5) + $aResult[$i][3] = Number(getQueueTroopsQuantity(25 + $xSlot * 60.5, 189 + $g_iMidOffsetY)) SetDebugLog($aResult[$i][0] & " (" & $xSlot & ") x" & $aResult[$i][3]) Next EndIf @@ -1116,7 +1127,7 @@ Func TrainArmyNumber($abQuickTrainArmy) EndFunc ;==>TrainArmyNumber -Func DeleteQueued($sArmyTypeQueued, $iOffsetQueued = 802) +Func DeleteQueued($sArmyTypeQueued, $iOffsetQueued = 742) If $sArmyTypeQueued = "Troops" Then If Not OpenTroopsTab(True, "DeleteQueued()") Then Return @@ -1130,10 +1141,10 @@ Func DeleteQueued($sArmyTypeQueued, $iOffsetQueued = 802) If _Sleep(500) Then Return Local $x = 0 - While Not _ColorCheck(_GetPixelColor(820, 178 + $g_iMidOffsetY, True), Hex(0xD0D0C8, 6), 20) ; check gray background at 1st training slot + While Not _ColorCheck(_GetPixelColor(773, 195 + $g_iMidOffsetY, True), Hex(0xCFCFC8, 6), 20) ; check gray background at 1st training slot If $x = 0 Then SetLog(" - Delete " & $sArmyTypeQueued & " Queued!", $COLOR_INFO) If Not $g_bRunState Then Return - Click($iOffsetQueued + 24, 172 + $g_iMidOffsetY, 10, 50) + Click($iOffsetQueued + 24, 198 + $g_iMidOffsetY, 10, 50) $x += 1 If $x = 270 Then ExitLoop WEnd @@ -1198,7 +1209,7 @@ Func MakingDonatedTroops($sType = "All") If Not $g_bRunState Then Return $Plural = 0 If $avDefaultTroopGroup[$i][4] > 0 Then - $RemainTrainSpace = GetOCRCurrent(60, 138 + $g_iMidOffsetY) + $RemainTrainSpace = GetOCRCurrent(95, 163 + $g_iMidOffsetY) If $RemainTrainSpace[2] < 0 Then $RemainTrainSpace[2] = $RemainTrainSpace[1] * 2 - $RemainTrainSpace[0] ; remain train space to full double army If $RemainTrainSpace[2] = 0 Then ExitLoop ; army camps full @@ -1215,7 +1226,7 @@ Func MakingDonatedTroops($sType = "All") If _Sleep(1000) Then Return ; Needed Delay, OCR was not picking up Troop Changes Else For $z = 0 To $RemainTrainSpace[2] - 1 - $RemainTrainSpace = GetOCRCurrent(60, 138 + $g_iMidOffsetY) + $RemainTrainSpace = GetOCRCurrent(95, 163 + $g_iMidOffsetY) If $RemainTrainSpace[0] = $RemainTrainSpace[1] Then ; army camps full ;Camps Full All Donate Counters should be zero!!!! For $j = 0 To UBound($avDefaultTroopGroup, 1) - 1 @@ -1241,7 +1252,7 @@ Func MakingDonatedTroops($sType = "All") Next ;Top Off any remianing space with archers If $sType = "All" Then - $RemainTrainSpace = GetOCRCurrent(60, 138 + $g_iMidOffsetY) + $RemainTrainSpace = GetOCRCurrent(95, 163 + $g_iMidOffsetY) If $RemainTrainSpace[0] < $RemainTrainSpace[1] Then ; army camps full Local $howMuch = $RemainTrainSpace[2] TrainIt($eTroopArcher, $howMuch, $g_iTrainClickDelay) @@ -1269,7 +1280,7 @@ Func MakingDonatedTroops($sType = "All") $g_aiDonateSpells[$i] -= $howMuch If _Sleep(1000) Then Return - $RemainTrainSpace = GetOCRCurrent(60, 138 + $g_iMidOffsetY) + $RemainTrainSpace = GetOCRCurrent(95, 163 + $g_iMidOffsetY) SetLog(" - Current Capacity: " & $RemainTrainSpace[0] & "/" & ($RemainTrainSpace[1])) EndIf Next @@ -1280,7 +1291,7 @@ Func MakingDonatedTroops($sType = "All") If Not OpenSiegeMachinesTab(True, "MakingDonatedTroops()") Then Return Local $sImgSieges = @ScriptDir & "\imgxml\Train\Siege_Train\" - Local $sSearchArea = GetDiamondFromRect2(25, 345 + $g_iMidOffsetY, 840, 510 + $g_iMidOffsetY) + Local $sSearchArea = GetDiamondFromRect2(75, 345 + $g_iMidOffsetY, 780, 510 + $g_iMidOffsetY) Local $iPage = 0 ; Refill @@ -1313,7 +1324,7 @@ Func MakingDonatedTroops($sType = "All") If _Sleep($DELAYRESPOND) Then Return ; Get Siege Capacities - Local $sSiegeInfo = getArmyCapacityOnTrainTroops(67, 138 + $g_iMidOffsetY) ; OCR read Siege built and total + Local $sSiegeInfo = getArmyCapacityOnTrainTroops(100, 163 + $g_iMidOffsetY) ; OCR read Siege built and total If $g_bDebugSetlogTrain Then SetLog("OCR $sSiegeInfo = " & $sSiegeInfo, $COLOR_DEBUG) Local $aGetSiegeCap = StringSplit($sSiegeInfo, "#", $STR_NOCOUNT) ; split the built Siege number from the total Siege number SetLog("Total Siege Workshop Capacity: " & $aGetSiegeCap[0] & "/" & $aGetSiegeCap[1]) diff --git a/COCBot/functions/CreateArmy/getArmyCCSiegeMachines/getArmyCCSiegeMachines.au3 b/COCBot/functions/CreateArmy/getArmyCCSiegeMachines/getArmyCCSiegeMachines.au3 index 51a16e97e..062863c2d 100644 --- a/COCBot/functions/CreateArmy/getArmyCCSiegeMachines/getArmyCCSiegeMachines.au3 +++ b/COCBot/functions/CreateArmy/getArmyCCSiegeMachines/getArmyCCSiegeMachines.au3 @@ -30,7 +30,7 @@ Func getArmyCCSiegeMachines($bOpenArmyWindow = False, $bCloseArmyWindow = False, If _Sleep($DELAYCHECKARMYCAMP5) Then Return EndIf - Local $sCCSiegeDiamond = GetDiamondFromRect2(620, 460 + $g_iMidOffsetY, 710, 555 + $g_iMidOffsetY) ; Contains iXStart, $iYStart, $iXEnd, $iYEnd + Local $sCCSiegeDiamond = GetDiamondFromRect2(598, 450 + $g_iMidOffsetY, 660, 530 + $g_iMidOffsetY) ; Contains iXStart, $iYStart, $iXEnd, $iYEnd If $g_bDebugFuncTime Then StopWatchStart("findMultiple, \imgxml\ArmyOverview\SiegeMachines") Local $aCurrentCCSiegeMachines = findMultiple(@ScriptDir & "\imgxml\ArmyOverview\SiegeMachines", $sCCSiegeDiamond, $sCCSiegeDiamond, 0, 1000, 0, "objectname,objectpoints", $bNeedCapture) ; Returns $aCurrentSiegeMachines[index] = $aArray[2] = ["Siege M Shortname", CordX,CordY] @@ -44,7 +44,7 @@ Func getArmyCCSiegeMachines($bOpenArmyWindow = False, $bCloseArmyWindow = False, $g_aiCurrentCCSiegeMachines = $aCurrentCCSiegeEmpty ; Reset Current Siege Machine Array ; Get CC Siege Capacities - Local $sSiegeInfo = getCCSiegeCampCap(644, 438 + $g_iMidOffsetY, $bNeedCapture) ; OCR read Siege built and total + Local $sSiegeInfo = getCCSiegeCampCap(617, 428 + $g_iMidOffsetY, $bNeedCapture) ; OCR read Siege built and total If $g_bDebugSetlogTrain Then SetLog("OCR $sSiegeInfo = " & $sSiegeInfo, $COLOR_DEBUG) Local $aGetSiegeCap = StringSplit($sSiegeInfo, "#", $STR_NOCOUNT) ; split the built Siege number from the total Siege number If $bSetLog And UBound($aGetSiegeCap) = 2 Then @@ -64,12 +64,12 @@ Func getArmyCCSiegeMachines($bOpenArmyWindow = False, $bCloseArmyWindow = False, If $iCCSiegeIndex < 0 Then ContinueLoop - $g_aiCurrentCCSiegeMachines[$iCCSiegeIndex] = Number(getBarracksNewTroopQuantity(650, 496, $bNeedCapture)) ; Get The Quantity of the Troop, Slot() Does return the exact spot to read the Number from + $g_aiCurrentCCSiegeMachines[$iCCSiegeIndex] = Number(getBarracksNewTroopQuantity(610, 454 + $g_iMidOffsetY, $bNeedCapture)) ; Get The Quantity of the Troop, Slot() Does return the exact spot to read the Number from $sCCSiegeName = $g_aiCurrentCCSiegeMachines[$iCCSiegeIndex] >= 2 ? $g_asSiegeMachineNames[$iCCSiegeIndex] & "s" : $g_asSiegeMachineNames[$iCCSiegeIndex] & "" If $g_bDebugSetlogTrain Then Setlog($sCCSiegeName & " Coord: (" & $aCCSiegeCoords[0] & "," & $aCCSiegeCoords[1] & ") Quant :" & $g_aiCurrentCCSiegeMachines[$iCCSiegeIndex]) - If $g_bDebugSetlogTrain Then Setlog($sCCSiegeName & " Slot (" & 650 & "," & 496 & ")") + If $g_bDebugSetlogTrain Then Setlog($sCCSiegeName & " Slot (" & 610 & "," & 454 + $g_iMidOffsetY & ")") If $bSetLog Then SetLog(" - " & $g_aiCurrentCCSiegeMachines[$iCCSiegeIndex] & " " & $sCCSiegeName & " Available", $COLOR_SUCCESS) Next diff --git a/COCBot/functions/CreateArmy/getArmyCCSpells/getArmyCCSpell.au3 b/COCBot/functions/CreateArmy/getArmyCCSpells/getArmyCCSpell.au3 index fa9dab1d0..8b1684aa1 100644 --- a/COCBot/functions/CreateArmy/getArmyCCSpells/getArmyCCSpell.au3 +++ b/COCBot/functions/CreateArmy/getArmyCCSpells/getArmyCCSpell.au3 @@ -32,7 +32,7 @@ Func getArmyCCSpells($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bChec If _Sleep($DELAYCHECKARMYCAMP5) Then Return EndIf - Local $sCCSpellDiamond = GetDiamondFromRect2(450, 460 + $g_iMidOffsetY, 605, 555 + $g_iMidOffsetY) + Local $sCCSpellDiamond = GetDiamondFromRect2(450, 450 + $g_iMidOffsetY, 575, 530 + $g_iMidOffsetY) Local $aCurrentCCSpells = findMultiple(@ScriptDir & "\imgxml\ArmyOverview\Spells", $sCCSpellDiamond, $sCCSpellDiamond, 0, 1000, 0, "objectname,objectpoints", $bNeedCapture) ; Returns $aCurrentSpells[index] = $aArray[2] = ["SpellShortName", CordX,CordY] @@ -56,7 +56,7 @@ Func getArmyCCSpells($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bChec For $i = 1 To $aSpells[0] $aSpellCoords = StringSplit($aSpells[$i], ",", $STR_NOCOUNT) ; Split the Coordinates where the Spell got found into X and Y If $i >= 1 And Abs($aSpellCoords[0] - $X_Coord) <= 50 Then ContinueLoop ; decode to avoid detecting 1 slot twice (haste) - Local $TempQty = Number(getBarracksNewTroopQuantity(Slot($aSpellCoords[0], $aSpellCoords[1]), 466 + $g_iMidOffsetY)) ; Get The Quantity of the Spell, Slot() Does return the exact spot to read the Number from + Local $TempQty = Number(getBarracksNewTroopQuantity(Slot($aSpellCoords[0], $aSpellCoords[1]), 454 + $g_iMidOffsetY)) ; Get The Quantity of the Spell, Slot() Does return the exact spot to read the Number from $g_aiCurrentCCSpells[$iSpellIndex] += $TempQty $aSpellWSlot[UBound($aSpellWSlot) - 1][0] = Slot($aSpellCoords[0], $aSpellCoords[1]) $aSpellWSlot[UBound($aSpellWSlot) - 1][1] = $iSpellIndex @@ -66,7 +66,7 @@ Func getArmyCCSpells($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bChec Next Else $aSpellCoords = StringSplit($aTempSpellArray[1], ",", $STR_NOCOUNT) ; Split the Coordinates where the Spell got found into X and Y - $g_aiCurrentCCSpells[$iSpellIndex] = Number(getBarracksNewTroopQuantity(Slot($aSpellCoords[0], $aSpellCoords[1]), 466 + $g_iMidOffsetY)) ; Get The Quantity of the Spell, Slot() Does return the exact spot to read the Number from + $g_aiCurrentCCSpells[$iSpellIndex] = Number(getBarracksNewTroopQuantity(Slot($aSpellCoords[0], $aSpellCoords[1]), 454 + $g_iMidOffsetY)) ; Get The Quantity of the Spell, Slot() Does return the exact spot to read the Number from $aSpellWSlot[UBound($aSpellWSlot) - 1][0] = Slot($aSpellCoords[0], $aSpellCoords[1]) $aSpellWSlot[UBound($aSpellWSlot) - 1][1] = $iSpellIndex $aSpellWSlot[UBound($aSpellWSlot) - 1][2] = $g_aiCurrentCCSpells[$iSpellIndex] diff --git a/COCBot/functions/CreateArmy/getArmyCCTroops/getArmyCCTroops.au3 b/COCBot/functions/CreateArmy/getArmyCCTroops/getArmyCCTroops.au3 index d0eb102c2..7e899edde 100644 --- a/COCBot/functions/CreateArmy/getArmyCCTroops/getArmyCCTroops.au3 +++ b/COCBot/functions/CreateArmy/getArmyCCTroops/getArmyCCTroops.au3 @@ -32,14 +32,14 @@ Func getArmyCCTroops($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bChec If _Sleep($DELAYCHECKARMYCAMP5) Then Return EndIf - Local $sTroopDiamond = GetDiamondFromRect2(30, 460 + $g_iMidOffsetY, 440, 555 + $g_iMidOffsetY) ; Contains iXStart, $iYStart, $iXEnd, $iYEnd + Local $sTroopDiamond = GetDiamondFromRect2(70, 450 + $g_iMidOffsetY, 430, 530 + $g_iMidOffsetY) ; Contains iXStart, $iYStart, $iXEnd, $iYEnd Local $aCurrentCCTroops = findMultiple(@ScriptDir & "\imgxml\ArmyOverview\Troops", $sTroopDiamond, $sTroopDiamond, 0, 1000, 0, "objectname,objectpoints", $bNeedCapture) ; Returns $aCurrentTroops[index] = $aArray[2] = ["TroopShortName", CordX,CordY] Local $aTempTroopArray, $avTroops, $aTroopCoords Local $sTroopName = "" Local $iTroopIndex = -1 - Local $aCurrentCCTroopsEmpty[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; Local Copy to reset Troops Array + Local $aCurrentCCTroopsEmpty[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; Local Copy to reset Troops Array Local $aCurrentTroopsLog[0][3] ; [0] = Name [1] = Quantities [3] Xaxis $g_aiCurrentCCTroops = $aCurrentCCTroopsEmpty ; Reset Current Troops Array @@ -53,7 +53,7 @@ Func getArmyCCTroops($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bChec $avTroops = StringSplit($aTempTroopArray[1], "|") For $j = 1 To $avTroops[0] $aTroopCoords = StringSplit($avTroops[$j], ",", $STR_NOCOUNT) ; Split the Coordinates where the Troop got found into X and Y - Local $iQuantity = Number(getBarracksNewTroopQuantity(Slot($aTroopCoords[0], $aTroopCoords[1]), 466 + $g_iMidOffsetY, $bNeedCapture)) ; Get The Quantity of the Troop, Slot() Does return the exact spot to read the Number from + Local $iQuantity = Number(getBarracksNewTroopQuantity(Slot($aTroopCoords[0], $aTroopCoords[1]), 454 + $g_iMidOffsetY, $bNeedCapture)) ; Get The Quantity of the Troop, Slot() Does return the exact spot to read the Number from $g_aiCurrentCCTroops[$iTroopIndex] += $iQuantity $aTroopWSlot[UBound($aTroopWSlot) - 1][0] = Slot($aTroopCoords[0], $aTroopCoords[1]) $aTroopWSlot[UBound($aTroopWSlot) - 1][1] = $iTroopIndex @@ -65,7 +65,7 @@ Func getArmyCCTroops($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bChec Next Else $aTroopCoords = StringSplit($aTempTroopArray[1], ",", $STR_NOCOUNT) ; Split the Coordinates where the Troop got found into X and Y - Local $iQuantity = Number(getBarracksNewTroopQuantity(Slot($aTroopCoords[0], $aTroopCoords[1]), 466 + $g_iMidOffsetY, $bNeedCapture)) + Local $iQuantity = Number(getBarracksNewTroopQuantity(Slot($aTroopCoords[0], $aTroopCoords[1]), 454 + $g_iMidOffsetY, $bNeedCapture)) $g_aiCurrentCCTroops[$iTroopIndex] += $iQuantity $aTroopWSlot[UBound($aTroopWSlot) - 1][0] = Slot($aTroopCoords[0], $aTroopCoords[1]) diff --git a/COCBot/functions/CreateArmy/getArmyHeroes/getArmyHeroCount.au3 b/COCBot/functions/CreateArmy/getArmyHeroes/getArmyHeroCount.au3 index 6a286fdb3..6e6d17659 100644 --- a/COCBot/functions/CreateArmy/getArmyHeroes/getArmyHeroCount.au3 +++ b/COCBot/functions/CreateArmy/getArmyHeroes/getArmyHeroCount.au3 @@ -180,10 +180,10 @@ EndFunc ;==>getArmyHeroCount Func ArmyHeroStatus($i) Local $sResult = "" - Local Const $aHeroesRect[$eHeroCount][4] = [[543, 315 + $g_iMidOffsetY, 610, 375 + $g_iMidOffsetY], _ - [615, 315 + $g_iMidOffsetY, 682, 375 + $g_iMidOffsetY], _ - [686, 315 + $g_iMidOffsetY, 755, 375 + $g_iMidOffsetY], _ - [758, 315 + $g_iMidOffsetY, 825, 375 + $g_iMidOffsetY]] ; Review + Local Const $aHeroesRect[$eHeroCount][4] = [[525, 315 + $g_iMidOffsetY, 587, 375 + $g_iMidOffsetY], _ + [590, 315 + $g_iMidOffsetY, 650, 375 + $g_iMidOffsetY], _ + [652, 315 + $g_iMidOffsetY, 713, 375 + $g_iMidOffsetY], _ + [716, 315 + $g_iMidOffsetY, 778, 375 + $g_iMidOffsetY]] ; Review ; Perform the search _CaptureRegion2($aHeroesRect[$i][0], $aHeroesRect[$i][1], $aHeroesRect[$i][2], $aHeroesRect[$i][3]) diff --git a/COCBot/functions/CreateArmy/getArmyHeroes/getArmyHeroTime.au3 b/COCBot/functions/CreateArmy/getArmyHeroes/getArmyHeroTime.au3 index 27f38be39..9a23d0542 100644 --- a/COCBot/functions/CreateArmy/getArmyHeroes/getArmyHeroTime.au3 +++ b/COCBot/functions/CreateArmy/getArmyHeroes/getArmyHeroTime.au3 @@ -45,10 +45,9 @@ Func getArmyHeroTime($iHeroType, $bOpenArmyWindow = False, $bCloseArmyWindow = F Local $iRemainTrainHeroTimer = 0, $sResultHeroTime Local $sResult Local $aResultHeroes[$eHeroCount] = ["", "", "", ""] ; array to hold all remaining regen time read via OCR - ;Local Const $aHeroStatusSlots[3][2] = [[658, 347], [732, 347], [805, 347]] ; Location of hero status check tile ; Constant Array with OCR find location: [X pos, Y Pos, Text Name, Global enum value] - Local Const $aHeroRemainData[$eHeroCount][4] = [[550, 384 + $g_iMidOffsetY, "King", $eHeroKing], [620, 384 + $g_iMidOffsetY, "Queen", $eHeroQueen], [695, 384 + $g_iMidOffsetY, "Warden", $eHeroWarden], [765, 384 + $g_iMidOffsetY, "Champion", $eHeroChampion]] + Local Const $aHeroRemainData[$eHeroCount][4] = [[530, 382 + $g_iMidOffsetY, "King", $eHeroKing], [590, 382 + $g_iMidOffsetY, "Queen", $eHeroQueen], [655, 382 + $g_iMidOffsetY, "Warden", $eHeroWarden], [720, 382 + $g_iMidOffsetY, "Champion", $eHeroChampion]] For $index = 0 To UBound($aHeroRemainData) - 1 ;cycle through all 3 slots and hero types diff --git a/COCBot/functions/CreateArmy/getArmySiegeMachines/getArmySiegeMachines.au3 b/COCBot/functions/CreateArmy/getArmySiegeMachines/getArmySiegeMachines.au3 index dfae16c72..327e69c5e 100644 --- a/COCBot/functions/CreateArmy/getArmySiegeMachines/getArmySiegeMachines.au3 +++ b/COCBot/functions/CreateArmy/getArmySiegeMachines/getArmySiegeMachines.au3 @@ -32,15 +32,15 @@ Func getArmySiegeMachines($bOpenArmyWindow = False, $bCloseArmyWindow = False, $ If _Sleep($DELAYCHECKARMYCAMP5) Then Return EndIf - If _CheckPixel($aRecievedTroops, $bNeedCapture) Then ; Found the "You have recieved" Message on Screen, wait till its gone. - If $bSetLog Then SetLog("Detected Clan Castle Message Blocking Troop Images. Waiting until it's gone", $COLOR_INFO) + If _CheckPixel($aReceivedSieges, $bNeedCapture) Or _CheckPixel($aReceivedTroopsOCR, $bNeedCapture) Then ; Found the "You have received" Message on Screen, wait till its gone. + If $bSetLog Then SetDebugLog("Detected Clan Castle Message Blocking Siege Images. Waiting until it's gone", $COLOR_INFO) _CaptureRegion2() - While _CheckPixel($aRecievedTroops, False) + While (_CheckPixel($aReceivedSieges, $bNeedCapture) Or _CheckPixel($aReceivedTroopsOCR, $bNeedCapture)) If _Sleep($DELAYTRAIN1) Then Return WEnd EndIf - Local $sSiegeDiamond = GetDiamondFromRect2(605, 170 + $g_iMidOffsetY, 835, 260 + $g_iMidOffsetY) ; Contains iXStart, $iYStart, $iXEnd, $iYEnd + Local $sSiegeDiamond = GetDiamondFromRect2(575, 190 + $g_iMidOffsetY, 770, 270 + $g_iMidOffsetY) ; Contains iXStart, $iYStart, $iXEnd, $iYEnd If $g_bDebugFuncTime Then StopWatchStart("findMultiple, \imgxml\ArmyOverview\SiegeMachines") Local $aCurrentSiegeMachines = findMultiple(@ScriptDir & "\imgxml\ArmyOverview\SiegeMachines", $sSiegeDiamond, $sSiegeDiamond, 0, 1000, 0, "objectname,objectpoints", $bNeedCapture) ; Returns $aCurrentSiegeMachines[index] = $aArray[2] = ["Siege M Shortname", CordX,CordY] @@ -52,7 +52,7 @@ Func getArmySiegeMachines($bOpenArmyWindow = False, $bCloseArmyWindow = False, $ Local $aCurrentTroopsEmpty[$eSiegeMachineCount] = [0, 0, 0, 0, 0, 0, 0] ; Local Copy to reset Siege Machine Array ; Get Siege Capacities - Local $sSiegeInfo = getSiegeCampCap(747, 144 + $g_iMidOffsetY, $bNeedCapture) ; OCR read Siege built and total + Local $sSiegeInfo = getSiegeCampCap(707, 168 + $g_iMidOffsetY, $bNeedCapture) ; OCR read Siege built and total If $g_bDebugSetlogTrain Then SetLog("OCR $sSiegeInfo = " & $sSiegeInfo, $COLOR_DEBUG) Local $aGetSiegeCap = StringSplit($sSiegeInfo, "#", $STR_NOCOUNT) ; split the built Siege number from the total Siege number If UBound($aGetSiegeCap) = 2 Then @@ -73,12 +73,12 @@ Func getArmySiegeMachines($bOpenArmyWindow = False, $bCloseArmyWindow = False, $ If $iSiegeIndex < 0 Then ContinueLoop - $g_aiCurrentSiegeMachines[$iSiegeIndex] = Number(getBarracksNewTroopQuantity(Slot($aSiegeCoords[0], $aSiegeCoords[1]), 174 + $g_iMidOffsetY, $bNeedCapture)) ; Get The Quantity of the Troop, Slot() Does return the exact spot to read the Number from + $g_aiCurrentSiegeMachines[$iSiegeIndex] = Number(getBarracksNewTroopQuantity(Slot($aSiegeCoords[0], $aSiegeCoords[1]), 194 + $g_iMidOffsetY, $bNeedCapture)) ; Get The Quantity of the Troop, Slot() Does return the exact spot to read the Number from $sSiegeName = $g_aiCurrentSiegeMachines[$iSiegeIndex] >= 2 ? $g_asSiegeMachineNames[$iSiegeIndex] & "s" : $g_asSiegeMachineNames[$iSiegeIndex] & "" If $g_bDebugSetlogTrain Then Setlog($sSiegeName & " Coord: (" & $aSiegeCoords[0] & "," & $aSiegeCoords[1] & ") Quant :" & $g_aiCurrentSiegeMachines[$iSiegeIndex]) - If $g_bDebugSetlogTrain Then Setlog($sSiegeName & " Slot (" & Slot($aSiegeCoords[0], $aSiegeCoords[1]) & "," & 174 + $g_iMidOffsetY & ")") + If $g_bDebugSetlogTrain Then Setlog($sSiegeName & " Slot (" & Slot($aSiegeCoords[0], $aSiegeCoords[1]) & "," & 194 + $g_iMidOffsetY & ")") If $bSetLog Then SetLog(" - " & $g_aiCurrentSiegeMachines[$iSiegeIndex] & " " & $sSiegeName & " Available", $COLOR_SUCCESS) Next diff --git a/COCBot/functions/CreateArmy/getArmySpells/getArmySpellTime.au3 b/COCBot/functions/CreateArmy/getArmySpells/getArmySpellTime.au3 index 3bc9fc488..c1d613ecc 100644 --- a/COCBot/functions/CreateArmy/getArmySpells/getArmySpellTime.au3 +++ b/COCBot/functions/CreateArmy/getArmySpells/getArmySpellTime.au3 @@ -32,7 +32,7 @@ Func getArmySpellTime($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bChe EndIf EndIf - Local $sResultSpells = getRemainTrainTimer(400, 288 + $g_iMidOffsetY, $bNeedCapture) ;Get time via OCR. + Local $sResultSpells = getRemainTrainTimer(400, 294 + $g_iMidOffsetY, $bNeedCapture) ;Get time via OCR. $g_aiTimeTrain[1] = ConvertOCRTime("Spells", $sResultSpells, $bSetLog) ; update global array If $bCloseArmyWindow Then CloseWindow() diff --git a/COCBot/functions/CreateArmy/getArmySpells/getArmySpells.au3 b/COCBot/functions/CreateArmy/getArmySpells/getArmySpells.au3 index 6a9e12493..c283d8e5d 100644 --- a/COCBot/functions/CreateArmy/getArmySpells/getArmySpells.au3 +++ b/COCBot/functions/CreateArmy/getArmySpells/getArmySpells.au3 @@ -30,7 +30,7 @@ Func getArmySpells($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bCheckW If _Sleep($DELAYCHECKARMYCAMP5) Then Return EndIf - Local $sSpellDiamond = GetDiamondFromRect2(23, 330 + $g_iMidOffsetY, 535, 400 + $g_iMidOffsetY) + Local $sSpellDiamond = GetDiamondFromRect2(70, 330 + $g_iMidOffsetY, 510, 400 + $g_iMidOffsetY) Local $aCurrentSpells = findMultiple(@ScriptDir & "\imgxml\ArmyOverview\Spells", $sSpellDiamond, $sSpellDiamond, 0, 1000, 0, "objectname,objectpoints", $bNeedCapture) ; Returns $aCurrentSpells[index] = $aArray[2] = ["SpellShortName", CordX,CordY] @@ -52,7 +52,7 @@ Func getArmySpells($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bCheckW $aSpellCoords = StringSplit($aTempSpellArray[1], ",", $STR_NOCOUNT) ; Split the Coordinates where the Spell got found into X and Y If UBound($aSpellCoords) < 2 Then ContinueLoop - $g_aiCurrentSpells[$iSpellIndex] = Number(getBarracksNewTroopQuantity(Slot($aSpellCoords[0], $aSpellCoords[1]), 314 + $g_iMidOffsetY, $bNeedCapture)) ; Get The Quantity of the Spell, Slot() Does return the exact spot to read the Number from + $g_aiCurrentSpells[$iSpellIndex] = Number(getBarracksNewTroopQuantity(Slot($aSpellCoords[0], $aSpellCoords[1]), 319 + $g_iMidOffsetY, $bNeedCapture)) ; Get The Quantity of the Spell, Slot() Does return the exact spot to read the Number from $sSpellName = $g_aiCurrentSpells[$iSpellIndex] >= 2 ? $g_asSpellNames[$iSpellIndex] & " Spells" : $g_asSpellNames[$iSpellIndex] & " Spell" ; Select the right Spell Name, If more than one then use Spells at the end $aCurrentSpellsLog[$iSpellIndex][0] = $sSpellName diff --git a/COCBot/functions/CreateArmy/getArmyTroops/getArmyTroopTime.au3 b/COCBot/functions/CreateArmy/getArmyTroops/getArmyTroopTime.au3 index 6706f29eb..f30141fb2 100644 --- a/COCBot/functions/CreateArmy/getArmyTroops/getArmyTroopTime.au3 +++ b/COCBot/functions/CreateArmy/getArmyTroops/getArmyTroopTime.au3 @@ -33,7 +33,7 @@ Func getArmyTroopTime($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bChe EndIf - Local $sResultTroops = getRemainTrainTimer(450, 146 + $g_iMidOffsetY, $bNeedCapture) ;Get time via OCR. + Local $sResultTroops = getRemainTrainTimer(450, 168 + $g_iMidOffsetY, $bNeedCapture) ;Get time via OCR. $g_aiTimeTrain[0] = ConvertOCRTime("Troops", $sResultTroops, $bSetLog) ; update global array If $bCloseArmyWindow Then diff --git a/COCBot/functions/CreateArmy/getArmyTroops/getArmyTroops.au3 b/COCBot/functions/CreateArmy/getArmyTroops/getArmyTroops.au3 index f5e2e9455..78d25709a 100644 --- a/COCBot/functions/CreateArmy/getArmyTroops/getArmyTroops.au3 +++ b/COCBot/functions/CreateArmy/getArmyTroops/getArmyTroops.au3 @@ -33,15 +33,15 @@ Func getArmyTroops($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bCheckW If _Sleep($DELAYCHECKARMYCAMP5) Then Return EndIf - If _CheckPixel($aRecievedTroops, $bNeedCapture) Then ; Found the "You have recieved" Message on Screen, wait till its gone. + If _CheckPixel($aReceivedTroops, $bNeedCapture) Or _CheckPixel($aReceivedTroopsOCR, $bNeedCapture) Then ; Found the "You have received" Message on Screen, wait till its gone. If $bSetLog Then SetLog("Detected Clan Castle Message Blocking Troop Images. Waiting until it's gone", $COLOR_INFO) _CaptureRegion2() - While _CheckPixel($aRecievedTroops, False) + While (_CheckPixel($aReceivedTroops, $bNeedCapture) Or _CheckPixel($aReceivedTroopsOCR, $bNeedCapture)) If _Sleep($DELAYTRAIN1) Then Return WEnd EndIf - Local $sTroopDiamond = GetDiamondFromRect2(23, 183 + $g_iMidOffsetY, 585, 250 + $g_iMidOffsetY) ; Contains iXStart, $iYStart, $iXEnd, $iYEnd + Local $sTroopDiamond = GetDiamondFromRect2(70, 190 + $g_iMidOffsetY, 565, 270 + $g_iMidOffsetY) ; Contains iXStart, $iYStart, $iXEnd, $iYEnd If $g_bDebugFuncTime Then StopWatchStart("findMultiple, \imgxml\ArmyOverview\Troops") Local $aCurrentTroops = findMultiple(@ScriptDir & "\imgxml\ArmyOverview\Troops", $sTroopDiamond, $sTroopDiamond, 0, 1000, 0, "objectname,objectpoints", $bNeedCapture) ; Returns $aCurrentTroops[index] = $aArray[2] = ["TroopShortName", CordX,CordY] @@ -52,7 +52,7 @@ Func getArmyTroops($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bCheckW Local $aTempTroopArray, $aTroopCoords Local $sTroopName = "" Local $iTroopIndex = -1, $iDropTrophyIndex = -1 - Local $aCurrentTroopsEmpty[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; Local Copy to reset Troops Array + Local $aCurrentTroopsEmpty[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; Local Copy to reset Troops Array Local $aTroopsForTropyDropEmpty[8][2] = [["Barb", 0], ["Arch", 0], ["Giant", 0], ["Wall", 0], ["Gobl", 0], ["Mini", 0], ["Ball", 0], ["Wiza", 0]] ; Local Copy to reset Troop Drop Trophy Array Local $aCurrentTroopsLog[0][3] ; [0] = Name [1] = Quantities [3] Xaxis @@ -68,7 +68,7 @@ Func getArmyTroops($bOpenArmyWindow = False, $bCloseArmyWindow = False, $bCheckW If $iTroopIndex = -1 Then ContinueLoop - $g_aiCurrentTroops[$iTroopIndex] = Number(getBarracksNewTroopQuantity(Slot($aTroopCoords[0], $aTroopCoords[1]), 174 + $g_iMidOffsetY, $bNeedCapture)) ; Get The Quantity of the Troop, Slot() Does return the exact spot to read the Number from + $g_aiCurrentTroops[$iTroopIndex] = Number(getBarracksNewTroopQuantity(Slot($aTroopCoords[0], $aTroopCoords[1]), 194 + $g_iMidOffsetY, $bNeedCapture)) ; Get The Quantity of the Troop, Slot() Does return the exact spot to read the Number from $iDropTrophyIndex = _ArraySearch($g_avDTtroopsToBeUsed, $aTempTroopArray[0]) ; Search the Troops ShortName in the Drop Trophy Global to check if it is a Drop Trophy Troop If $iDropTrophyIndex <> -1 Then $g_avDTtroopsToBeUsed[$iDropTrophyIndex][1] += $g_aiCurrentTroops[$iTroopIndex] ; If there was a Match in the Array then add the Troop Quantity to it diff --git a/COCBot/functions/CreateArmy/openArmyOverview.au3 b/COCBot/functions/CreateArmy/openArmyOverview.au3 index 491d81445..b0bd0943d 100644 --- a/COCBot/functions/CreateArmy/openArmyOverview.au3 +++ b/COCBot/functions/CreateArmy/openArmyOverview.au3 @@ -71,16 +71,16 @@ Func OpenTrainTab($sTab, $bSetLog = True, $sWhereFrom = "Undefined") Local $aTabButton = findButton(StringStripWS($sTab, 8), Default, 1, True) If IsArray($aTabButton) And UBound($aTabButton, 1) = 2 Then Switch $aTabButton[0] - Case 50 To 150 - $aIsTabOpen[0] = 165 - Case 190 To 290 + Case 75 To 200 + $aIsTabOpen[0] = 175 + Case 210 To 330 $aIsTabOpen[0] = 315 - Case 345 To 455 - $aIsTabOpen[0] = 470 - Case 495 To 600 - $aIsTabOpen[0] = 620 - Case 645 To 765 - $aIsTabOpen[0] = 770 + Case 345 To 470 + $aIsTabOpen[0] = 460 + Case 480 To 600 + $aIsTabOpen[0] = 590 + Case 615 To 740 + $aIsTabOpen[0] = 730 EndSwitch If Not _CheckPixel($aIsTabOpen, True) Then If $bSetLog Or $g_bDebugSetlogTrain Then SetLog("Open " & $sTab & ($g_bDebugSetlogTrain ? " (Called from " & $sWhereFrom & ")" : ""), $COLOR_INFO) @@ -100,10 +100,10 @@ Func OpenTrainTab($sTab, $bSetLog = True, $sWhereFrom = "Undefined") EndFunc ;==>OpenTrainTab Func UpdateNextPageTroop() - Local $aSlot1[4] = [610, 565, 705, 475] - Local $aSlot2[4] = [705, 465, 800, 375] - Local $aSlot3[4] = [705, 565, 800, 475] - Local $aSlot4[4] = [610, 465, 705, 375] + Local $aSlot1[4] = [585, 545, 667, 465] + Local $aSlot2[4] = [670, 460, 752, 375] + Local $aSlot3[4] = [670, 545, 752, 465] + Local $aSlot4[4] = [585, 460, 667, 375] Local $sEDragTile = @ScriptDir & "\imgxml\Train\Train_Train\EDrag*" Local $sMinerTile = @ScriptDir & "\imgxml\Train\Train_Train\Mine*" @@ -114,9 +114,9 @@ Func UpdateNextPageTroop() If _Sleep(500) Then Return - Local $aiTileCoord = decodeSingleCoord(findImage("UpdateNextPageTroop", $sEDragTile, GetDiamondFromRect("35,375,835,575"), 1, True)) + Local $aiTileCoord = decodeSingleCoord(findImage("UpdateNextPageTroop", $sEDragTile, GetDiamondFromRect("75,375,780,550"), 1, True)) - If IsArray($aiTileCoord) And UBound($aiTileCoord, 1) = 2 And _ColorCheck(_GetPixelColor(35, 373 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) And $aiTileCoord[0] > 610 Then + If IsArray($aiTileCoord) And UBound($aiTileCoord, 1) = 2 And _ColorCheck(_GetPixelColor(75, 385 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) And $aiTileCoord[0] > 580 Then SetDebugLog("Found EDrag at " & $aiTileCoord[0] & ", " & $aiTileCoord[1]) $g_iNextPageTroop = $eETitan @@ -138,11 +138,11 @@ Func UpdateNextPageTroop() Else ; Support 2 Super Troops + 2+ Event Troops (Moebius14) - $aiTileCoord = decodeSingleCoord(findImage("UpdateNextPageTroop", $sMinerTile, GetDiamondFromRect("35,375,835,575"), 1, True)) - If IsArray($aiTileCoord) And UBound($aiTileCoord, 1) = 2 And _ColorCheck(_GetPixelColor(35, 373 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) And $aiTileCoord[0] > 610 Then + $aiTileCoord = decodeSingleCoord(findImage("UpdateNextPageTroop", $sMinerTile, GetDiamondFromRect("75,375,780,550"), 1, True)) + If IsArray($aiTileCoord) And UBound($aiTileCoord, 1) = 2 And _ColorCheck(_GetPixelColor(75, 385 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) And $aiTileCoord[0] > 580 Then If PointInRect($aSlot2[0], $aSlot2[1], $aSlot2[2], $aSlot2[3], $aiTileCoord[0], $aiTileCoord[1]) Then - Local $aiTileCoord2 = decodeSingleCoord(findImage("UpdateNextPageTroop", $sSMinerTile, GetDiamondFromRect("35,375,835,575"), 1, True)) + Local $aiTileCoord2 = decodeSingleCoord(findImage("UpdateNextPageTroop", $sSMinerTile, GetDiamondFromRect("75,375,780,550"), 1, True)) If IsArray($aiTileCoord2) And UBound($aiTileCoord2, 1) = 2 Then $g_iNextPageTroop = $eSMine SetDebugLog("Found Miner moved 3 Slots and SuperMiner Detected") @@ -156,8 +156,8 @@ Func UpdateNextPageTroop() Else ; No Miner Tile Found - Local $aiTileCoord3 = decodeSingleCoord(findImage("UpdateNextPageTroop", $sBabyDragonTile, GetDiamondFromRect("35,375,835,575"), 1, True)) - If IsArray($aiTileCoord3) And UBound($aiTileCoord3, 1) = 2 And _ColorCheck(_GetPixelColor(35, 373 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) And $aiTileCoord3[0] > 700 Then + Local $aiTileCoord3 = decodeSingleCoord(findImage("UpdateNextPageTroop", $sBabyDragonTile, GetDiamondFromRect("75,375,780,550"), 1, True)) + If IsArray($aiTileCoord3) And UBound($aiTileCoord3, 1) = 2 And _ColorCheck(_GetPixelColor(75, 385 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) And $aiTileCoord3[0] > 668 Then If PointInRect($aSlot3[0], $aSlot3[1], $aSlot3[2], $aSlot3[3], $aiTileCoord3[0], $aiTileCoord3[1]) Then $g_iNextPageTroop = $eBabyD @@ -166,8 +166,8 @@ Func UpdateNextPageTroop() Else ; No Baby Drag Tile Found - Local $aiTileCoord4 = decodeSingleCoord(findImage("UpdateNextPageTroop", $sPekkaTile, GetDiamondFromRect("35,375,835,575"), 1, True)) - If IsArray($aiTileCoord4) And UBound($aiTileCoord4, 1) = 2 And _ColorCheck(_GetPixelColor(35, 373 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) And $aiTileCoord4[0] > 700 Then + Local $aiTileCoord4 = decodeSingleCoord(findImage("UpdateNextPageTroop", $sPekkaTile, GetDiamondFromRect("75,375,780,550"), 1, True)) + If IsArray($aiTileCoord4) And UBound($aiTileCoord4, 1) = 2 And _ColorCheck(_GetPixelColor(75, 385 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) And $aiTileCoord4[0] > 668 Then If PointInRect($aSlot3[0], $aSlot3[1], $aSlot3[2], $aSlot3[3], $aiTileCoord4[0], $aiTileCoord4[1]) Then $g_iNextPageTroop = $ePekk @@ -176,8 +176,8 @@ Func UpdateNextPageTroop() Else ; No Pekka Tile Found - Local $aiTileCoord5 = decodeSingleCoord(findImage("UpdateNextPageTroop", $sDragonTile, GetDiamondFromRect("35,375,835,575"), 1, True)) - If IsArray($aiTileCoord5) And UBound($aiTileCoord5, 1) = 2 And _ColorCheck(_GetPixelColor(35, 373 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) And $aiTileCoord5[0] > 610 Then + Local $aiTileCoord5 = decodeSingleCoord(findImage("UpdateNextPageTroop", $sDragonTile, GetDiamondFromRect("75,375,780,550"), 1, True)) + If IsArray($aiTileCoord5) And UBound($aiTileCoord5, 1) = 2 And _ColorCheck(_GetPixelColor(75, 385 + $g_iMidOffsetY, True), Hex(0xD3D3CB, 6), 5) And $aiTileCoord5[0] > 580 Then If PointInRect($aSlot4[0], $aSlot4[1], $aSlot4[2], $aSlot4[3], $aiTileCoord5[0], $aiTileCoord5[1]) Then $g_iNextPageTroop = $eMine diff --git a/COCBot/functions/Image Search/QuickMIS.au3 b/COCBot/functions/Image Search/QuickMIS.au3 index c99bad153..997e557ac 100644 --- a/COCBot/functions/Image Search/QuickMIS.au3 +++ b/COCBot/functions/Image Search/QuickMIS.au3 @@ -13,15 +13,62 @@ ; Example .......: --- ;================================================================================================================================ -Func QuickMIS($ValueReturned, $directory, $Left = 0, $Top = 0, $Right = $g_iGAME_WIDTH, $Bottom = $g_iGAME_HEIGHT, $bNeedCapture = True, $Debug = False) - If ($ValueReturned <> "BC1") And ($ValueReturned <> "CX") And ($ValueReturned <> "CXR") And ($ValueReturned <> "CNX") And ($ValueReturned <> "N1") And ($ValueReturned <> "NX") And ($ValueReturned <> "Q1") And ($ValueReturned <> "QX") Then +Func QuickMIS($ValueReturned, $directory, $Left = 0, $Top = 0, $Right = $g_iGAME_WIDTH, $Bottom = $g_iGAME_HEIGHT, $bNeedCapture = True, $Debug = False, $OcrDecode = 3, $OcrSpace = 12) + Local $error, $extError + If ($ValueReturned <> "BC1") And ($ValueReturned <> "BFI") And ($ValueReturned <> "CX") And _ + ($ValueReturned <> "CXR") And ($ValueReturned <> "CNX") And ($ValueReturned <> "N1") And ($ValueReturned <> "NX") And _ + ($ValueReturned <> "Q1") And ($ValueReturned <> "QX") And ($ValueReturned <> "OCR") Then SetLog("Bad parameters during QuickMIS call for MultiSearch...", $COLOR_RED) Return EndIf - If $bNeedCapture Then _CaptureRegion2($Left, $Top, $Right, $Bottom) - Local $Res = DllCallMyBot("SearchMultipleTilesBetweenLevels", "handle", $g_hHBitmap2, "str", $directory, "str", "FV", "Int", 0, "str", "FV", "Int", 0, "Int", 1000) - If @error Then _logErrorDLLCall($g_sLibMyBotPath, @error) + Local $Res, $aCoords + Local $RectArea[4] = [$Left, $Top, $Right, $Bottom] + Local $sImageArea = GetDiamondFromArray($RectArea) + If $ValueReturned = "BFI" Then + Local $iPattern = StringInStr($directory, "*") + If $iPattern > 0 Then + Local $dir = "" + Local $pat = $directory + Local $iLastBS = StringInStr($directory, "\", 0, -1) + If $iLastBS > 0 Then + $dir = StringLeft($directory, $iLastBS) + $pat = StringMid($directory, $iLastBS + 1) + EndIf + Local $files = _FileListToArray($dir, $pat, $FLTA_FILES, True) + If @error Or UBound($files) < 2 Then + SetDebugLog("findImage files not found : " & $directory, $COLOR_ERROR) + SetError(1, 0, $aCoords) ; Set external error code = 1 for bad input values + Return + EndIf + For $i = 1 To $files[0] + $aCoords = "" + $aCoords = findImage($pat, $files[$i], $sImageArea, 1, True) + If $aCoords <> "" Then + Local $coord = StringSplit($aCoords, ",", $STR_NOCOUNT) + If UBound($coord) = 2 Then + $g_iQuickMISX = $coord[0] + $g_iQuickMISY = $coord[1] + $g_iQuickMISName = $files[$i] + If $g_bDebugSetlog Then SetDebugLog("BFI Found : " & $g_iQuickMISName & " [" & $g_iQuickMISX & "," & $g_iQuickMISY & "]") + Return True + EndIf + Else + If $g_bDebugSetlog Then SetDebugLog("BFI No result") + EndIf + Next + EndIf + Else + If $bNeedCapture Then _CaptureRegion2($Left, $Top, $Right, $Bottom) + $Res = DllCallMyBot("SearchMultipleTilesBetweenLevels", "handle", $g_hHBitmap2, "str", $directory, "str", "FV", "Int", 0, "str", "FV", "Int", 0, "Int", 1000) + EndIf + $error = @error ; Store error values as they reset at next function call + $extError = @extended + If $error Then + _logErrorDLLCall($g_sLibMyBotPath, $error) + SetDebugLog(" QuickMIS DLL Error : " & $error & " --- " & $extError) + Return -1 + EndIf If $g_bDebugImageSave Then SaveDebugImage("QuickMIS_" & $ValueReturned, False) If IsArray($Res) Then @@ -47,6 +94,8 @@ Func QuickMIS($ValueReturned, $directory, $Left = 0, $Top = 0, $Right = $g_iGAME Return 0 Case "QX" Return 0 + Case "OCR" + Return "none" EndSwitch ElseIf StringInStr($Res[0], "-1") <> 0 Then @@ -65,6 +114,11 @@ Func QuickMIS($ValueReturned, $directory, $Left = 0, $Top = 0, $Right = $g_iGAME Next If StringRight($Result, 1) = "|" Then $Result = StringLeft($Result, (StringLen($Result) - 1)) Local $aCords = decodeSingleCoord($Result) + If UBound($aCords) < 2 Then + SetDebugLog("Error: decodeSingleCoord failed, retcoord: " & UBound($aCords), $COLOR_ERROR) + Return False + EndIf + $g_iQuickMISX = $aCords[0] + $Left $g_iQuickMISY = $aCords[1] + $Top @@ -161,6 +215,44 @@ Func QuickMIS($ValueReturned, $directory, $Left = 0, $Top = 0, $Right = $g_iGAME Local $MultiImageSearchResult = StringSplit($Res[0], "|", $STR_NOCOUNT) Return UBound($MultiImageSearchResult) + Case "OCR" ; Names of all files found, put together as a string in accordance with their coordinates left - right + + Local $sOCRString = "" + Local $aResults[1][2] = [[-1, ""]] ; X_Coord & Name + + Local $KeyValue = StringSplit($Res[0], "|", $STR_NOCOUNT) + For $i = 0 To UBound($KeyValue) - 1 + Local $DLLRes = DllCallMyBot("GetProperty", "str", $KeyValue[$i], "str", "objectpoints") + Local $Name = RetrieveImglocProperty($KeyValue[$i], "objectname") + + Local $aCoords = StringSplit($DLLRes[0], "|", $STR_NOCOUNT) + + For $j = 0 To UBound($aCoords) - 1 ; In case found 1 char multiple times, $j > 0 + Local $aXY = StringSplit($aCoords[$j], ",", $STR_NOCOUNT) + ReDim $aResults[UBound($aResults) + 1][2] + $aResults[UBound($aResults) - 2][0] = Number($aXY[0]) + $aResults[UBound($aResults) - 2][1] = $Name + Next + Next + + _ArrayDelete($aResults, UBound($aResults) - 1) + _ArraySort($aResults) + + For $i = 0 To UBound($aResults) - 1 + SetDebugLog($i & ". $Name = " & $aResults[$i][1] & ", Coord = " & $aResults[$i][0]) + If $i >= 1 Then + If $aResults[$i][1] = $aResults[$i - 1][1] And Abs($aResults[$i][0] - $aResults[$i - 1][0]) <= $OcrDecode Then ContinueLoop + If Abs($aResults[$i][0] - $aResults[$i - 1][0]) > $OcrSpace Then $sOCRString &= " " + EndIf + $sOCRString &= $aResults[$i][1] + Next + SetDebugLog("QuickMIS " & $ValueReturned & ", $sOCRString: " & $sOCRString) + + Return $sOCRString + + Case Else + SetLog("Bad parameters during QuickMIS call for MultiSearch...", $COLOR_RED) + Return EndSwitch EndIf EndIf diff --git a/COCBot/functions/Image Search/imglocAuxiliary.au3 b/COCBot/functions/Image Search/imglocAuxiliary.au3 index dfb5c82b7..1d3b78f7b 100644 --- a/COCBot/functions/Image Search/imglocAuxiliary.au3 +++ b/COCBot/functions/Image Search/imglocAuxiliary.au3 @@ -281,7 +281,7 @@ Func GetButtonDiamond($sButtonName) Case "GEM", "BOOSTBtn" ; Boost window button (full button size) $btnDiamond = GetDiamondFromRect2(340, 370 + $g_iMidOffsetY, 525, 495 + $g_iMidOffsetY) Case "EnterShop" - $btnDiamond = GetDiamondFromRect("359,392(148,66)") + $btnDiamond = GetDiamondFromRect2(350, 380 + $g_iMidOffsetY, 515, 460 + $g_iMidOffsetY) Case "EndBattleSurrender" ;surrender - attackwindow $btnDiamond = "12,577|125,577|125,615|12,615" Case "ClanChat" @@ -301,9 +301,9 @@ Func GetButtonDiamond($sButtonName) Case "Collect" $btnDiamond = "350,450|505,450|505,521|350,521" Case "BoostBarrack", "BarrackBoosted" - $btnDiamond = GetDiamondFromRect2(700, 270 + $g_iMidOffsetY, 830, 330 + $g_iMidOffsetY) + $btnDiamond = GetDiamondFromRect2(675, 285 + $g_iMidOffsetY, 770, 330 + $g_iMidOffsetY) Case "ArmyTab", "TrainTroopsTab", "BrewSpellsTab", "BuildSiegeMachinesTab", "QuickTrainTab" - $btnDiamond = GetDiamondFromRect2(30, 80 + $g_iMidOffsetY, 785, 130 + $g_iMidOffsetY) + $btnDiamond = GetDiamondFromRect2(75, 110 + $g_iMidOffsetY, 740, 160 + $g_iMidOffsetY) Case "WeeklyDeals" $btnDiamond = GetDiamondFromRect2(30, 115 + $g_iMidOffsetY, 170, 320 + $g_iMidOffsetY) Case "MessagesButton" @@ -313,7 +313,7 @@ Func GetButtonDiamond($sButtonName) Case "EndBattle", "Surrender" $btnDiamond = GetDiamondFromRect("1,570,140,628") Case "Okay" - $btnDiamond = GetDiamondFromRect("240,250,630,480") + $btnDiamond = GetDiamondFromRect("240,250,630,630") Case Else $btnDiamond = "FV" ; use full image to locate button EndSwitch @@ -791,61 +791,61 @@ EndFunc ;==>SearchRedLinesMultipleTimes Func Slot($iX, $iY) ; Return Slots for Quantity Reading on Army Window If $iY < 455 Then Switch $iX ; Troops & Spells Slots - Case 35 To 107 ; Slot 1 - Return 50 - - Case 108 To 180 ; Slot 2 - Return 123 + Case 75 To 139 ; Slot 1 + Return 85 - Case 181 To 253 ; Slot 3 - Return 196 + Case 140 To 202 ; Slot 2 + Return 150 - Case 254 To 326 ; Slot 4 - Return 269 + Case 203 To 266 ; Slot 3 + Return 215 - Case 327 To 399 ; Slot 5 - Return 342 + Case 266 To 328 ; Slot 4 + Return 280 - Case 400 To 472 ; Slot 6 - Return 415 + Case 329 To 390 ; Slot 5 + Return 340 - Case 473 To 545 ; Slot 7 - Return 488 + Case 391 To 454 ; Slot 6 + Return 405 - Case 603 To 670 ; Slot 8 - Return 615 ; Siege Machines slot 1 + Case 455 To 517 ; Slot 7 + Return 465 - Case 675 To 743 ; Slot 9 - Return 687 ; Siege Machines slot 2 + Case 575 To 639 ; Slot 8 + Return 585 ; Siege Machines slot 1 - Case 746 To 814 ; Slot 10 - Return 758 ; Siege Machines slot 2 + Case 640 To 703 ; Slot 9 + Return 655 ; Siege Machines slot 2 + + Case 704 To 768 ; Slot 10 + Return 715 ; Siege Machines slot 2 EndSwitch Else ;CC Troops & Spells Switch $iX - Case 35 To 107 ; Slot 1 - Return 50 - - Case 108 To 180 ; Slot 2 - Return 123 - - Case 181 To 253 ; Slot 3 - Return 196 - - Case 254 To 326 ; Slot 4 - Return 269 - - Case 327 To 399 ; Slot 5 - Return 342 - - Case 455 To 510 ; CC Spell Slot 1 - Return 475 - Case 511 To 535 ; CC Spell Middle ( Happens with Clan Castles with the max. Capacity of 1!) - Return 510 - Case 536 To 605 ; CC Spell Slot 2 - Return 550 - Case 625 To 695; CC Siege Machines - Return 640 + Case 75 To 139 ; Slot 1 + Return 85 + + Case 140 To 202 ; Slot 2 + Return 150 + + Case 203 To 266 ; Slot 3 + Return 215 + + Case 266 To 328 ; Slot 4 + Return 280 + + Case 329 To 390 ; Slot 5 + Return 340 + + Case 450 To 500 ; CC Spell Slot 1 + Return 455 + Case 501 To 524 ; CC Spell Middle ( Happens with Clan Castles with the max. Capacity of 1!) + Return 505 + Case 525 To 573 ; CC Spell Slot 2 + Return 520 + Case 598 To 660; CC Siege Machines + Return 610 EndSwitch EndIf EndFunc ;==>Slot diff --git a/COCBot/functions/Image Search/imglocTHSearch.au3 b/COCBot/functions/Image Search/imglocTHSearch.au3 index 4e5c57eda..ce5a4fc00 100644 --- a/COCBot/functions/Image Search/imglocTHSearch.au3 +++ b/COCBot/functions/Image Search/imglocTHSearch.au3 @@ -175,6 +175,16 @@ Func imglocTHSearch($bReTest = False, $myVillage = False, $bForceCapture = True) Else $g_aiTownHallPos = decodeSingleCoord($propsValues[$pv]) ConvertFromVillagePos($g_aiTownHallPos[0], $g_aiTownHallPos[1]) + Switch $iLvlFound + Case 9 + $g_aiTownHallPos[1] = $g_aiTownHallPos[1] + 22 + Case 10 + $g_aiTownHallPos[0] = $g_aiTownHallPos[0] - 7 + Case 12 + $g_aiTownHallPos[1] = $g_aiTownHallPos[1] - 10 + Case 15 + $g_aiTownHallPos[1] = $g_aiTownHallPos[1] + 15 + EndSwitch EndIf Case "nearpoints" If $myVillage = False Then diff --git a/COCBot/functions/Main Screen/checkMainScreen.au3 b/COCBot/functions/Main Screen/checkMainScreen.au3 index 897c3c6c9..651e78b9d 100644 --- a/COCBot/functions/Main Screen/checkMainScreen.au3 +++ b/COCBot/functions/Main Screen/checkMainScreen.au3 @@ -57,8 +57,8 @@ Func _checkMainScreen($bSetLog = Default, $bBuilderBase = Default) ;Checks if in WinGetAndroidHandle() $bObstacleResult = checkObstacles($bBuilderBase) - ;SetDebugLog("CheckObstacles[" & $i & "] Result = " & $bObstacleResult, $COLOR_DEBUG) - SetLog("CheckObstacles[" & $i & "] Result = " & $bObstacleResult, $COLOR_DEBUG) + SetDebugLog("CheckObstacles[" & $i & "] Result = " & $bObstacleResult, $COLOR_DEBUG) + ;Arch: Arbitrary looping limit... If $i > 24 Then SetLog("Giving up and restarting everything.", $COLOR_ERROR) diff --git a/COCBot/functions/Main Screen/checkObstacles.au3 b/COCBot/functions/Main Screen/checkObstacles.au3 index e76a7c1a2..1f2f76b39 100644 --- a/COCBot/functions/Main Screen/checkObstacles.au3 +++ b/COCBot/functions/Main Screen/checkObstacles.au3 @@ -18,8 +18,9 @@ Func checkObstacles($bBuilderBase = Default) ;Checks if something is in the way If $bBuilderBase = Default Then $bBuilderBase = $g_bStayOnBuilderBase Static $iRecursive = 0 - If UBound(decodeSingleCoord(FindImageInPlace2("MinorUpdate", $g_sImgCOCUpdate, 220, 165 + $g_iMidOffsetY, 350, 260 + $g_iMidOffsetY, True))) > 1 Then ; COC Minor Update - SetLog("Chief, we have minor COC Update!", $COLOR_INFO) + If UBound(decodeSingleCoord(FindImageInPlace2("Update", $g_sImgCOCUpdate, 220, 165 + $g_iMidOffsetY, 350, 260 + $g_iMidOffsetY, True))) > 1 Or _ + UBound(decodeSingleCoord(FindImageInPlace2("UpdateNew", $g_sImgCOCUpdate, 350, 370 + $g_iMidOffsetY, 510, 450 + $g_iMidOffsetY, True))) > 1 Then ; COC Minor Update + SetLog("Chief, we have COC Update!", $COLOR_INFO) ClickAway() If _Sleep($DELAYCHECKOBSTACLES1) Then Return EndIf diff --git a/COCBot/functions/Other/UpdateStats.au3 b/COCBot/functions/Other/UpdateStats.au3 index 6b75cafe4..2346fbdb5 100644 --- a/COCBot/functions/Other/UpdateStats.au3 +++ b/COCBot/functions/Other/UpdateStats.au3 @@ -804,7 +804,7 @@ Func WallsStatsMAJ() $g_aiWallsCurrentCount[$g_iCmbUpgradeWallsLevel + 4] -= Number($g_iNbrOfWallsUpped) $g_aiWallsCurrentCount[$g_iCmbUpgradeWallsLevel + 5] += Number($g_iNbrOfWallsUpped) $g_iNbrOfWallsUpped = 0 - For $i = 4 To 16 + For $i = 4 To 17 GUICtrlSetData($g_ahWallsCurrentCount[$i], $g_aiWallsCurrentCount[$i]) Next SaveConfig() diff --git a/COCBot/functions/Pixels/_CheckPixel.au3 b/COCBot/functions/Pixels/_CheckPixel.au3 index fafd445b2..8eee43e11 100644 --- a/COCBot/functions/Pixels/_CheckPixel.au3 +++ b/COCBot/functions/Pixels/_CheckPixel.au3 @@ -48,12 +48,20 @@ Func _WaitForCheckPixel($aScreenCode, $bNeedCapture = Default, $Ignore = Default If $iWaitLoop = Default Then $iWaitLoop = 250 ; if default wait time per loop, then wait 250ms Local $wCount = 0 While _CheckPixel($aScreenCode, $bNeedCapture, $Ignore, $sLogText, $LogTextColor, $bSilentSetLog) = False - If _Sleep($iWaitLoop ) Then Return + If _Sleep($iWaitLoop) Then Return $wCount += 1 If $wCount > 20 Then ; wait for 20*250ms=5 seconds for pixel to appear + If _CheckPixel($aReceivedTroopsTab, True) Then + SetLog("Detected Clan Castle Message. Waiting until it's gone", $COLOR_INFO) + _CaptureRegion2() + While _CheckPixel($aReceivedTroopsTab, True) + If _Sleep($DELAYTRAIN1) Then Return + WEnd + ContinueLoop + EndIf SetLog($sLogText & " not found!", $COLOR_ERROR) Return False EndIf WEnd Return True -EndFunc \ No newline at end of file +EndFunc ;==>_WaitForCheckPixel \ No newline at end of file diff --git a/COCBot/functions/Read Text/getOcr.au3 b/COCBot/functions/Read Text/getOcr.au3 index 7c1c23ea0..0e26dfa79 100644 --- a/COCBot/functions/Read Text/getOcr.au3 +++ b/COCBot/functions/Read Text/getOcr.au3 @@ -19,7 +19,7 @@ Func getGoldVillageSearch($x_start, $y_start) ;48, 69 -> Gets complete value of EndFunc ;==>getGoldVillageSearch Func getRemainTrainTimer($x_start, $y_start, $bNeedCapture = True) ; - Return getOcrAndCapture("coc-RemainTrain", $x_start, $y_start, 90, 14, True, False, $bNeedCapture) + Return getOcrAndCapture("coc-RemainTrain", $x_start, $y_start, 70, 16, True, False, $bNeedCapture) EndFunc ;==>getRemainTrainTimer Func getRemainBuildTimer($x_start, $y_start, $bNeedCapture = True) ; @@ -91,11 +91,11 @@ Func getLabUpgrdResourceWht($x_start, $y_start) ; -> Gets complete value of Elix EndFunc ;==>getLabUpgrdResourceWht Func getLabUpgrdResourceWhtNew($x_start, $y_start) ; -> Gets complete value of Elixir/DE on the troop buttons, xxx,xxx for "laboratory.au3" and "starlaboratory.au3" when white text - Return getOcrAndCapture("coc-lab-wNew", $x_start, $y_start, 80, 14, True) + Return getOcrAndCapture("coc-lab-wNew", $x_start, $y_start, 86, 14, True) EndFunc ;==>getLabUpgrdResourceWhtNew Func getLabUpgrdResourceRed($x_start, $y_start) ; -> Gets complete value of Elixir/DE on the troop buttons, xxx,xxx for "laboratory.au3" when red text - Return getOcrAndCapture("coc-lab-r", $x_start, $y_start, 80, 14, True) + Return getOcrAndCapture("coc-lab-r", $x_start, $y_start, 86, 14, True) EndFunc ;==>getLabUpgrdResourceRed Func getStarLabUpgrdResourceRed($x_start, $y_start) ; -> Gets complete value of Elixir on the troop buttons, xxx,xxx for "starlaboratory.au3" when red text @@ -103,7 +103,7 @@ Func getStarLabUpgrdResourceRed($x_start, $y_start) ; -> Gets complete value of EndFunc ;==>getStarLabUpgrdResourceRed Func getBldgUpgradeTime($x_start, $y_start) ; -> Gets complete remain building upgrade time - Return getOcrAndCapture("coc-uptime", $x_start, $y_start, 105, 18) ; "12d 19h" + Return getOcrAndCapture("coc-uptime", $x_start, $y_start, 105, 18, True) ; "12d 19h" EndFunc ;==>getBldgUpgradeTime Func getLabUpgradeTime($x_start, $y_start) ; -> Gets complete remain lab upgrade time V3 for Dec2022 update @@ -115,11 +115,11 @@ Func getLabUpgradeTime2($x_start, $y_start) ; -> Gets complete remain lab upgrad EndFunc ;==>getLabUpgradeTime2 Func getPetUpgradeTime($x_start, $y_start) ; -> Gets complete remain lab upgrade time V4 for Jun2023 update - Return getOcrAndCapture("coc-uptime3", $x_start, $y_start, 166, 24) ; 166 is required to upgrades > 10 days + Return getOcrAndCapture("coc-uptime3", $x_start, $y_start, 215, 24, True) EndFunc ;==>getPetUpgradeTime Func getHeroUpgradeTime($x_start, $y_start) ; -> Gets complete upgrade time for heroes 595, 490 + $g_iMidOffsetY - Return getOcrAndCapture("coc-uptime", $x_start, $y_start, 105, 18) ; 85 is required to days & hours for hero ; COC 15.352.22 + Return getOcrAndCapture("coc-uptime", $x_start, $y_start, 105, 18, True) ; 85 is required to days & hours for hero ; COC 15.352.22 EndFunc ;==>getHeroUpgradeTime Func getChatString($x_start, $y_start, $language) ; -> Get string chat request - Latin Alphabetic - EN "DonateCC.au3" @@ -178,7 +178,7 @@ Func getSiegeCampCap($x_start, $y_start, $bNeedCapture = True) ; -> Gets army c EndFunc ;==>getSiegeCampCap Func getCCSiegeCampCap($x_start, $y_start, $bNeedCapture = True) ; -> Gets army camp capacity --> train.au3, and used to read CC request time remaining - Return getOcrAndCapture("coc-camps", $x_start, $y_start, 34, 16, True, False, $bNeedCapture) + Return getOcrAndCapture("coc-camps", $x_start, $y_start, 28, 16, True, False, $bNeedCapture) EndFunc ;==>getCCSiegeCampCap Func getCastleDonateCap($x_start, $y_start) ; -> Gets clan castle capacity, --> donatecc.au3 @@ -350,7 +350,7 @@ Func getOcrRateCoc($x_start, $y_start, $sLogText = Default, $LogTextColor = Defa EndFunc ;==>getOcrRateCoc Func getRemainTLaboratory($x_start, $y_start) ; read actual time remaining in Lab for current upgrade (336,260), changed CoC v9.24 282,277 - Return getOcrAndCapture("coc-RemainLaboratory", $x_start, $y_start, 260, 26, True) + Return getOcrAndCapture("coc-RemainLaboratory", $x_start, $y_start, 260, 28, True) EndFunc ;==>getRemainTLaboratory Func getRemainTLaboratory2($x_start, $y_start) ; read actual time remaining in Lab for current upgrade (336,260), changed CoC v9.24 282,277 @@ -400,7 +400,7 @@ Func getArmyCapacityOnTrainTroops($x_start, $y_start) ; -> Gets quantity of tro EndFunc ;==>getArmyCapacityOnTrainTroops Func getQueueTroopsQuantity($x_start, $y_start) ; -> Gets quantity of troops in Queue in Train Tab - Return StringReplace(getOcrAndCapture("coc-qqtroop", $x_start, $y_start, 71, 22, True), "b", "") + Return StringReplace(getOcrAndCapture("coc-qqtroop", $x_start, $y_start, 40, 13, True), "b", "") EndFunc ;==>getQueueTroopsQuantity Func getChatStringChinese($x_start, $y_start) ; -> Get string chat request - Chinese - "DonateCC.au3" diff --git a/COCBot/functions/Search/PrepareSearch.au3 b/COCBot/functions/Search/PrepareSearch.au3 index 6c9ae30d9..87a199cd9 100644 --- a/COCBot/functions/Search/PrepareSearch.au3 +++ b/COCBot/functions/Search/PrepareSearch.au3 @@ -70,7 +70,7 @@ Func PrepareSearch($Mode = $DB) ;Click attack button and find match button, will $g_bLeagueAttack = False Do Local $bSignedUpLegendLeague = False - Local $sSearchDiamond = GetDiamondFromRect("271,185,834,659") + Local $sSearchDiamond = GetDiamondFromRect("300,195,815,630") Local $avAttackButton = findMultiple($g_sImgPrepareLegendLeagueSearch, $sSearchDiamond, $sSearchDiamond, 0, 1000, 1, "objectname,objectpoints", True) If IsArray($avAttackButton) And UBound($avAttackButton, 1) > 0 Then $g_bLeagueAttack = True diff --git a/COCBot/functions/Village/Auto Upgrade.au3 b/COCBot/functions/Village/Auto Upgrade.au3 index 9d6478512..4814622b4 100644 --- a/COCBot/functions/Village/Auto Upgrade.au3 +++ b/COCBot/functions/Village/Auto Upgrade.au3 @@ -262,6 +262,9 @@ Func _AutoUpgrade() Case 15 $g_aUpgradeNameLevel[1] = "Giga Inferno" SetLog("Launched upgrade of Giga Inferno successfully !", $COLOR_SUCCESS) + Case 16 + $g_aUpgradeNameLevel[1] = "Giga Inferno" + SetLog("Launched upgrade of Giga Inferno successfully !", $COLOR_SUCCESS) EndSwitch Else SetLog("Launched upgrade of " & $g_aUpgradeNameLevel[1] & " to level " & $g_aUpgradeNameLevel[2] + 1 & " successfully !", $COLOR_SUCCESS) diff --git a/COCBot/functions/Village/BuilderBase/Collect.au3 b/COCBot/functions/Village/BuilderBase/Collect.au3 index edfb2a442..70397a5be 100644 --- a/COCBot/functions/Village/BuilderBase/Collect.au3 +++ b/COCBot/functions/Village/BuilderBase/Collect.au3 @@ -76,7 +76,7 @@ Func CollectElixirCart($bSwitchToBB = False, $bSwitchToNV = False) Local $bRet, $aiElixirCart, $aiCollect - $aiElixirCart = decodeSingleCoord(FindImageInPlace2("ElixirCart", $g_sImgElixirCart, 470, 90 + $g_iMidOffsetY, 610, 190 + $g_iMidOffsetY)) + $aiElixirCart = decodeSingleCoord(FindImageInPlace2("ElixirCart", $g_sImgElixirCart, 470, 90 + $g_iMidOffsetY, 620, 190 + $g_iMidOffsetY)) If IsArray($aiElixirCart) And UBound($aiElixirCart, 1) = 2 Then SetLog("Found Filled Elixir Cart", $COLOR_SUCCESS) PureClick($aiElixirCart[0], $aiElixirCart[1] + 16) diff --git a/COCBot/functions/Village/BuilderBase/StarLaboratory.au3 b/COCBot/functions/Village/BuilderBase/StarLaboratory.au3 index d8f7b188b..d688b1233 100644 --- a/COCBot/functions/Village/BuilderBase/StarLaboratory.au3 +++ b/COCBot/functions/Village/BuilderBase/StarLaboratory.au3 @@ -86,7 +86,7 @@ Func StarLaboratory($bTestRun = False) SetLog("Laboratory Upgrade in progress, waiting for completion", $COLOR_INFO) If _Sleep($DELAYLABORATORY2) Then Return ; upgrade in process and time not recorded so update completion time! - Local $sLabTimeOCR = getRemainTLaboratory(220, 202 + $g_iMidOffsetY) + Local $sLabTimeOCR = getRemainTLaboratory(220, 200 + $g_iMidOffsetY) Local $iLabFinishTime = ConvertOCRTime("Lab Time", $sLabTimeOCR, False) SetDebugLog("$sLabTimeOCR: " & $sLabTimeOCR & ", $iLabFinishTime = " & $iLabFinishTime & " m") If $iLabFinishTime > 0 Then @@ -484,7 +484,7 @@ Func StarLabGuiDisplay() SetLog("Star Laboratory Upgrade in progress, waiting for completion", $COLOR_INFO) If _Sleep($DELAYLABORATORY2) Then Return ; upgrade in process and time not recorded so update completion time! - Local $sLabTimeOCR = getRemainTLaboratory(220, 202 + $g_iMidOffsetY) + Local $sLabTimeOCR = getRemainTLaboratory(220, 200 + $g_iMidOffsetY) Local $iLabFinishTime = ConvertOCRTime("Lab Time", $sLabTimeOCR, False) SetDebugLog("$sLabTimeOCR: " & $sLabTimeOCR & ", $iLabFinishTime = " & $iLabFinishTime & " m") If $iLabFinishTime > 0 Then diff --git a/COCBot/functions/Village/BuilderBase/SuggestedUpgrades.au3 b/COCBot/functions/Village/BuilderBase/SuggestedUpgrades.au3 index 60f9e86c2..bcaf0b017 100644 --- a/COCBot/functions/Village/BuilderBase/SuggestedUpgrades.au3 +++ b/COCBot/functions/Village/BuilderBase/SuggestedUpgrades.au3 @@ -1,11 +1,11 @@ ; #FUNCTION# ==================================================================================================================== ; Name ..........: SuggestedUpgrades() -; Description ...: Goes to Builders Island and Upgrades buildings with 'suggested upgrades window'. +; Description ...: Goes to Builders Base and Upgrades buildings with 'suggested upgrades window'. ; Syntax ........: SuggestedUpgrades() ; Parameters ....: ; Return values .: None ; Author ........: ProMac (05-2017) -; Modified ......: Moebius14 (08-2023) +; Modified ......: Moebius14 (12-2023) ; Remarks .......: This file is part of MyBot, previously known as ClashGameBot. Copyright 2015-2023 ; MyBot is distributed under the terms of the GNU GPL ; Related .......: @@ -16,14 +16,14 @@ Func chkActivateBBSuggestedUpgrades() ; CheckBox Enable Suggested Upgrades [Update values][Update GUI State] If GUICtrlRead($g_hChkBBSuggestedUpgrades) = $GUI_CHECKED Then - $g_iChkBBSuggestedUpgrades = 1 GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreGold, $GUI_ENABLE) GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreElixir, $GUI_ENABLE) GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreHall, $GUI_ENABLE) GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreWall, $GUI_ENABLE) GUICtrlSetState($g_hChkPlacingNewBuildings, $GUI_ENABLE) + chkActivateBBSuggestedUpgradesGold() + chkActivateBBSuggestedUpgradesElixir() Else - $g_iChkBBSuggestedUpgrades = 0 GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreGold, BitOR($GUI_UNCHECKED, $GUI_DISABLE)) GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreElixir, BitOR($GUI_UNCHECKED, $GUI_DISABLE)) GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreHall, BitOR($GUI_UNCHECKED, $GUI_DISABLE)) @@ -33,40 +33,21 @@ Func chkActivateBBSuggestedUpgrades() EndFunc ;==>chkActivateBBSuggestedUpgrades Func chkActivateBBSuggestedUpgradesGold() - ; if disabled, why continue? - If $g_iChkBBSuggestedUpgrades = 0 Then Return - ; Ignore Upgrade Building with Gold [Update values] - $g_iChkBBSuggestedUpgradesIgnoreGold = (GUICtrlRead($g_hChkBBSuggestedUpgradesIgnoreGold) = $GUI_CHECKED) ? 1 : 0 - ; If Gold is Selected Than we can disable the Builder Hall [is gold] and Wall almost [is Gold] - If $g_iChkBBSuggestedUpgradesIgnoreGold = 0 Then - GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreElixir, $GUI_ENABLE) - GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreHall, $GUI_ENABLE) - GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreWall, $GUI_ENABLE) - Else + If GUICtrlRead($g_hChkBBSuggestedUpgradesIgnoreGold) = $GUI_CHECKED Then GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreElixir, BitOR($GUI_UNCHECKED, $GUI_DISABLE)) GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreHall, BitOR($GUI_UNCHECKED, $GUI_DISABLE)) - GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreWall, BitOR($GUI_UNCHECKED, $GUI_DISABLE)) + Else + GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreElixir, $GUI_ENABLE) + GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreHall, $GUI_ENABLE) EndIf - ; Ignore Upgrade Builder Hall [Update values] - $g_iChkBBSuggestedUpgradesIgnoreHall = (GUICtrlRead($g_hChkBBSuggestedUpgradesIgnoreHall) = $GUI_CHECKED) ? 1 : 0 - ; Update Elixir value - $g_iChkBBSuggestedUpgradesIgnoreElixir = (GUICtrlRead($g_hChkBBSuggestedUpgradesIgnoreElixir) = $GUI_CHECKED) ? 1 : 0 - ; Ignore Wall - $g_iChkBBSuggestedUpgradesIgnoreWall = (GUICtrlRead($g_hChkBBSuggestedUpgradesIgnoreWall) = $GUI_CHECKED) ? 1 : 0 EndFunc ;==>chkActivateBBSuggestedUpgradesGold Func chkActivateBBSuggestedUpgradesElixir() - ; if disabled, why continue? - If $g_iChkBBSuggestedUpgrades = 0 Then Return - ; Ignore Upgrade Building with Elixir [Update values] - $g_iChkBBSuggestedUpgradesIgnoreElixir = (GUICtrlRead($g_hChkBBSuggestedUpgradesIgnoreElixir) = $GUI_CHECKED) ? 1 : 0 - If $g_iChkBBSuggestedUpgradesIgnoreElixir = 0 Then - GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreGold, $GUI_ENABLE) - Else + If GUICtrlRead($g_hChkBBSuggestedUpgradesIgnoreElixir) = $GUI_CHECKED Then GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreGold, BitOR($GUI_UNCHECKED, $GUI_DISABLE)) + Else + GUICtrlSetState($g_hChkBBSuggestedUpgradesIgnoreGold, $GUI_ENABLE) EndIf - ; Update Gold value - $g_iChkBBSuggestedUpgradesIgnoreGold = (GUICtrlRead($g_hChkBBSuggestedUpgradesIgnoreGold) = $GUI_CHECKED) ? 1 : 0 EndFunc ;==>chkActivateBBSuggestedUpgradesElixir Func chkPlacingNewBuildings() @@ -111,48 +92,44 @@ Func MainSuggestedUpgradeCode($bDebugImage = $g_bDebugImageSave) If IsArray($aResult) And UBound($aResult) > 0 Then Switch $aResult[2] Case "Gold" - If Not $g_iChkBBSuggestedUpgradesIgnoreGold And $g_aiCurrentLootBB[$eLootGoldBB] > 250 Then - Click($aResult[0], $aResult[1], 1) - If _Sleep(2000) Then Return - If IsWallDetected() Then $g_WallDetected = True - If GetUpgradeButton($aResult[2], $bDebug, $bDebugImage, $g_WallDetected) Then - If $g_WallDetected Then - ExitLoop + Click($aResult[0], $aResult[1], 1) + If _Sleep(2000) Then Return + If IsWallDetected() Then $g_WallDetected = True + If GetUpgradeButton($aResult[2], $bDebug, $bDebugImage, $g_WallDetected) Then + If $g_WallDetected Then + ExitLoop + Else + $g_iFreeBuilderCountBB -= 1 + If $g_iFreeBuilderCountBB = 0 Then + ExitLoop 2 Else - $g_iFreeBuilderCountBB -= 1 - If $g_iFreeBuilderCountBB = 0 Then - ExitLoop 2 - Else - ExitLoop - EndIf + ExitLoop EndIf - Else - If $i = UBound($aLine) - 1 Then ExitLoop 2 - $y = $aLine[$i][2] + 15 - ExitLoop EndIf + Else + If $i = UBound($aLine) - 1 Then ExitLoop 2 + $y = $aLine[$i][2] + 15 + ExitLoop EndIf Case "Elixir" - If Not $g_iChkBBSuggestedUpgradesIgnoreElixir And $g_aiCurrentLootBB[$eLootElixirBB] > 250 Then - Click($aResult[0], $aResult[1], 1) - If _Sleep(2000) Then Return - If IsWallDetected() Then $g_WallDetected = True - If GetUpgradeButton($aResult[2], $bDebug, $bDebugImage, $g_WallDetected, True) Then - If $g_WallDetected Then - ExitLoop + Click($aResult[0], $aResult[1], 1) + If _Sleep(2000) Then Return + If IsWallDetected() Then $g_WallDetected = True + If GetUpgradeButton($aResult[2], $bDebug, $bDebugImage, $g_WallDetected) Then + If $g_WallDetected Then + ExitLoop + Else + $g_iFreeBuilderCountBB -= 1 + If $g_iFreeBuilderCountBB = 0 Then + ExitLoop 2 Else - $g_iFreeBuilderCountBB -= 1 - If $g_iFreeBuilderCountBB = 0 Then - ExitLoop 2 - Else - ExitLoop - EndIf + ExitLoop EndIf - Else - If $i = UBound($aLine) - 1 Then ExitLoop 2 - $y = $aLine[$i][2] + 15 - ExitLoop EndIf + Else + If $i = UBound($aLine) - 1 Then ExitLoop 2 + $y = $aLine[$i][2] + 15 + ExitLoop EndIf Case "New" If $g_iChkPlacingNewBuildings = 1 Then @@ -187,16 +164,14 @@ Func MainSuggestedUpgradeCode($bDebugImage = $g_bDebugImageSave) ExitLoop EndIf - If _Sleep(1500) Then Return - ClickAway("Left") - If _Sleep(1500) Then Return + If _Sleep(1000) Then Return If Not $g_bRunState Then Return WEnd SetLog("Exiting Auto Upgrade...", $COLOR_INFO) If _Sleep(1500) Then Return - ClickAway("Left") + ClickAway("Right") If _Sleep(500) Then Return If Not $g_bRunState Then Return EndIf @@ -219,14 +194,16 @@ EndFunc ;==>MainSuggestedUpgradeCode Func ClickOnBuilder() Local $asSearchResult = decodeSingleCoord(FindImageInPlace2("MasterBuilderHead", $g_sImgMasterBuilderHead, 445, 0, 500, 54, True)) + ; Debug Stuff Local $sDebugText = "" + Local Const $Debug = False + Local Const $Screencap = True + + If QuickMIS("BC1", $g_sImgAutoUpgradeWindow, $asSearchResult[0] - 23, 50, $asSearchResult[0] + 107, 100) Then Return True If IsArray($asSearchResult) And UBound($asSearchResult) = 2 Then ; Master Builder Check pixel [i] icon Local Const $aMasterBuilder[4] = [$asSearchResult[0] - 15, $asSearchResult[1] - 9, 0x7ABDE3, 10] - ; Debug Stuff - Local Const $Debug = False - Local Const $Screencap = True ; Master Builder is not available return If $g_iFreeBuilderCountBB = 0 Then SetLog("No Master Builder available! [" & $g_iFreeBuilderCountBB & "/" & $g_iTotalBuilderCountBB & "]", $COLOR_INFO) @@ -301,12 +278,27 @@ Func IsWallDetected() Return False EndFunc ;==>IsWallDetected -Func GetUpgradeButton($sUpgButton = "", $Debug = False, $bDebugImage = $g_bDebugImageSave, $bWallUpgrade = False, $ElixForced = False) +Func GetUpgradeButton($sUpgButton = "", $Debug = False, $bDebugImage = $g_bDebugImageSave, $bWallUpgrade = False) Local $sIconBarDiamond = GetDiamondFromRect2(140, 500 + $g_iBottomOffsetY, 720, 590 + $g_iBottomOffsetY) Local $sUpgradeButtonDiamond = GetDiamondFromRect2(350, 500 + $g_iMidOffsetY, 805, 600 + $g_iMidOffsetY) If $sUpgButton = "" Then Return + If Not $bWallUpgrade Then + If $sUpgButton = "Gold" Then + If $g_iChkBBSuggestedUpgradesIgnoreGold Or $g_aiCurrentLootBB[$eLootGoldBB] < 250 Then + If _Sleep(1000) Then Return + Return False + EndIf + ElseIf $sUpgButton = "Elixir" Then + If $g_iChkBBSuggestedUpgradesIgnoreElixir Or $g_aiCurrentLootBB[$eLootElixirBB] < 250 Then + If _Sleep(1000) Then Return + Return False + EndIf + EndIf + EndIf + + Local $ResType = $sUpgButton $sUpgButton = @ScriptDir & "\imgxml\Resources\BuildersBase\AutoUpgrade\ButtonUpg\*" If $bDebugImage Then SaveDebugDiamondImage("GetUpgradeButton", $sIconBarDiamond) @@ -321,25 +313,69 @@ Func GetUpgradeButton($sUpgButton = "", $Debug = False, $bDebugImage = $g_bDebug ; Verify if is Builder Hall and If is to Upgrade If StringInStr($aBuildingName[1], "Hall") And $g_iChkBBSuggestedUpgradesIgnoreHall Then SetLog("Ups! Builder Hall is not to Upgrade!", $COLOR_ERROR) - If _Sleep(1500) Then Return - ClickAway("Left") - If _Sleep(1500) Then Return + If _Sleep(1000) Then Return Return False EndIf If StringInStr($aBuildingName[1], "Wall") And $g_iChkBBSuggestedUpgradesIgnoreWall Then SetLog("Ups! Wall is not to Upgrade!", $COLOR_ERROR) - If _Sleep(1500) Then Return - ClickAway("Left") - If _Sleep(1500) Then Return + If _Sleep(1000) Then Return Return False EndIf ;Wall Double Button Case If $bWallUpgrade Then - If WaitforPixel($aUpgradeIcon[0], $aUpgradeIcon[1] - 60, $aUpgradeIcon[0] + 30, $aUpgradeIcon[1] - 40, "FF887F", 20, 2) Or $ElixForced Then ; Red On Gold Or Was Elix in Menu - If UBound(decodeSingleCoord(FindImageInPlace2("UpgradeButton2", $g_sImgUpgradeBtn2Wall, $aUpgradeIcon[0] + 65, $aUpgradeIcon[1] - 44, _ - $aUpgradeIcon[0] + 140, $aUpgradeIcon[1] - 10, True))) > 1 Then $aUpgradeIcon[0] += 94 - EndIf + + Select + Case $ResType = "Elixir" And $g_iChkBBSuggestedUpgradesIgnoreElixir + SetLog("Elixir upgrade must be ignored", $COLOR_WARNING) + If $g_iChkBBSuggestedUpgradesIgnoreGold Then + SetLog("Gold upgrade must be ignored, looking next...", $COLOR_WARNING) + If _Sleep(1000) Then Return + Return False + Else + If WaitforPixel($aUpgradeIcon[0], $aUpgradeIcon[1] - 60, $aUpgradeIcon[0] + 30, $aUpgradeIcon[1] - 40, "FF887F", 20, 2) Then + SetLog("Not enough Gold to upgrade Wall, looking next...", $COLOR_WARNING) + If _Sleep(1000) Then Return + Return False + Else + If _Sleep($DELAYAUTOUPGRADEBUILDING1) Then Return + EndIf + EndIf + Case $ResType = "Elixir" And Not $g_iChkBBSuggestedUpgradesIgnoreElixir + If UBound(decodeSingleCoord(FindImageInPlace2("UpgradeButton2", $g_sImgUpgradeBtn2Wall, $aUpgradeIcon[0] + 65, $aUpgradeIcon[1] - 44, _ + $aUpgradeIcon[0] + 140, $aUpgradeIcon[1] - 10, True))) > 1 Then $aUpgradeIcon[0] += 94 + SetDebugLog("Resource check passed", $COLOR_DEBUG) + If _Sleep($DELAYAUTOUPGRADEBUILDING1) Then Return + Case $ResType = "Gold" And $g_iChkBBSuggestedUpgradesIgnoreGold + SetLog("Gold upgrade must be ignored", $COLOR_WARNING) + If $g_iChkBBSuggestedUpgradesIgnoreElixir Then + SetLog("Elixir upgrade must be ignored, looking next...", $COLOR_WARNING) + If _Sleep(1000) Then Return + Return False + Else + If UBound(decodeSingleCoord(FindImageInPlace2("UpgradeButton2", $g_sImgUpgradeBtn2Wall, $aUpgradeIcon[0] + 65, $aUpgradeIcon[1] - 44, _ + $aUpgradeIcon[0] + 140, $aUpgradeIcon[1] - 10, True))) > 1 Then + $aUpgradeIcon[0] += 94 + If WaitforPixel($aUpgradeIcon[0], $aUpgradeIcon[1] - 60, $aUpgradeIcon[0] + 30, $aUpgradeIcon[1] - 40, "FF887F", 20, 2) Then + SetLog("Not enough Elixir to upgrade Wall, looking next...", $COLOR_WARNING) + If _Sleep(1000) Then Return + Return False + Else + If _Sleep($DELAYAUTOUPGRADEBUILDING1) Then Return + EndIf + Else + SetLog("Elixir button not found, looking next...", $COLOR_WARNING) + If _Sleep(1000) Then Return + Return False + EndIf + EndIf + Case $ResType = "Gold" And Not $g_iChkBBSuggestedUpgradesIgnoreGold + SetDebugLog("Resource check passed", $COLOR_DEBUG) + If _Sleep($DELAYAUTOUPGRADEBUILDING1) Then Return + Case Else + SetDebugLog("Any case above not found ?? Bad programmer !", $COLOR_DEBUG) + EndSelect + EndIf ClickP($aUpgradeIcon) @@ -379,22 +415,6 @@ EndFunc ;==>GetUpgradeButton Func NewBuildings($aResult, $bDebugImage = $g_bDebugImageSave) Local $sImgDir = @ScriptDir & "\imgxml\Resources\BuildersBase\AutoUpgrade\NewBuildings\Buildings\*" - Local $Screencap = True, $Debug = False - - If $g_BBBuildingPlacementFailed > 0 Then - $g_BBBuildingPlacementFailed = 0 - $g_BBVillageDrag += 1 - If $g_BBVillageDrag > 3 Then $g_BBVillageDrag = 0 - ; write to config? - EndIf - - If $g_BBVillageDrag > 0 Then - If $g_BBVillageDrag = 1 Then ClickDrag(300, 85, 250, 85) ; drag left - If $g_BBVillageDrag = 2 Then ClickDrag(300, 85, 350, 85) ; drag right - If $g_BBVillageDrag = 3 Then ClickDrag(300, 85, 300, 135) ; drag down - - If Not ClickOnBuilder() Then Return False - EndIf If UBound($aResult) = 3 And $aResult[2] = "New" Then @@ -408,7 +428,7 @@ Func NewBuildings($aResult, $bDebugImage = $g_bDebugImageSave) If $bDebugImage Then SaveDebugDiamondImage("AutoUpgradeClock", $sSearchDiamond) - If IsArray($ClocksCoordinates) And UBound($ClocksCoordinates) > 0 Then + If IsArray($ClocksCoordinates) And UBound($ClocksCoordinates) > 1 Then SetLog("[Clocks]: " & UBound($ClocksCoordinates), $COLOR_DEBUG) For $i = 0 To UBound($ClocksCoordinates) - 1 SetLog("Clock " & $i + 1 & " Found at : " & $ClocksCoordinates[$i][1] & ", " & $ClocksCoordinates[$i][2]) @@ -420,31 +440,32 @@ Func NewBuildings($aResult, $bDebugImage = $g_bDebugImageSave) EndIf ; Coordinates for Slot & Tile Zone from Clock position - Local $aCostArea = $ClocksCoordinates[$i][1] & "," & $ClocksCoordinates[$i][2] & "," & $ClocksCoordinates[$i][1] + 160 & "," & $ClocksCoordinates[$i][2] + 75 - Local $aTileArea = $ClocksCoordinates[$i][1] + 120 & "," & $ClocksCoordinates[$i][2] - 177 & "," & $ClocksCoordinates[$i][1] + 160 & "," & $ClocksCoordinates[$i][2] - 127 + Local $aCostArea = $ClocksCoordinates[$i][1] & "," & $ClocksCoordinates[$i][2] + 18 & "," & $ClocksCoordinates[$i][1] + 150 & "," & $ClocksCoordinates[$i][2] + 54 + Local $aTileArea = $ClocksCoordinates[$i][1] + 120 & "," & $ClocksCoordinates[$i][2] - 167 & "," & $ClocksCoordinates[$i][1] + 160 & "," & $ClocksCoordinates[$i][2] - 137 ; Lets see if exist resources ; look for white zeros - If QuickMIS("BC1", $g_sImgAutoUpgradeZero, $ClocksCoordinates[$i][1], $ClocksCoordinates[$i][2], $ClocksCoordinates[$i][1] + 160, $ClocksCoordinates[$i][2] + 75) Then + If QuickMIS("BC1", $g_sImgAutoUpgradeZero, $ClocksCoordinates[$i][1], $ClocksCoordinates[$i][2] + 18, $ClocksCoordinates[$i][1] + 150, $ClocksCoordinates[$i][2] + 54) Then ; Lets se if exist or NOT the Yellow Arrow, If Doesnt exist the [i] icon than exist the Yellow arrow , DONE Local $InfoButton = False - If QuickMIS("BC1", $g_sImgAutoUpgradeInfo, $ClocksCoordinates[$i][1] + 120, $ClocksCoordinates[$i][2] - 177, $ClocksCoordinates[$i][1] + 160, $ClocksCoordinates[$i][2] - 127) Then $InfoButton = True + If QuickMIS("BC1", $g_sImgAutoUpgradeInfo, $ClocksCoordinates[$i][1] + 120, $ClocksCoordinates[$i][2] - 167, $ClocksCoordinates[$i][1] + 160, $ClocksCoordinates[$i][2] - 137) Then $InfoButton = True If $InfoButton Then SetLog("Failed to locate Arrow, looking next...") If $bDebugImage Then SaveDebugRectImage("FoundInfo", $aTileArea) If $i = UBound($ClocksCoordinates) - 1 Then - If $g_bDebugSetlog Then SetDebugLog("Slot without enough resources![1]", $COLOR_DEBUG) + If $g_bDebugSetlog Then SetDebugLog("Slot without enough resources!", $COLOR_DEBUG) CloseWindow() ExitLoop EndIf + ContinueLoop Else ; look for wall - If QuickMIS("BC1", $sImgDir, $ClocksCoordinates[$i][1] + 120, $ClocksCoordinates[$i][2] - 177, $ClocksCoordinates[$i][1] + 160, $ClocksCoordinates[$i][2] - 127) Then + If QuickMIS("BC1", $sImgDir, $ClocksCoordinates[$i][1] + 30, $ClocksCoordinates[$i][2] - 100, $ClocksCoordinates[$i][1] + 110, $ClocksCoordinates[$i][2] - 20) Then SetLog("Found Wall in Building Menu Tile") If $bDebugImage Then SaveDebugRectImage("AutoUpgradeBBwall", $aTileArea) CloseWindow() @@ -458,44 +479,43 @@ Func NewBuildings($aResult, $bDebugImage = $g_bDebugImageSave) EndIf Local $aiPoint[2] - $aiPoint[0] = $ClocksCoordinates[$i][1] + 120 + $aiPoint[0] = $ClocksCoordinates[$i][1] + 70 $aiPoint[1] = $ClocksCoordinates[$i][2] - 77 If $bDebugImage Then SaveDebugPointImage("Tile", $aiPoint) - Click($ClocksCoordinates[$i][1] + 70, $ClocksCoordinates[$i][2] - 50, 1) - If _Sleep(3000) Then Return + Click($ClocksCoordinates[$i][1] + 70, $ClocksCoordinates[$i][2] - 77, 1) + If _Sleep(4000) Then Return - ;Local $aSearchDiamondDebug = GetReduceDiamond(20) - Local $aSearchDiamond = GetDiamondFromRect2(80, 60, 800, 600) + Local $aSearchDiamond = GetDiamondFromRect2(80, 60, 800, 570 + $g_iMidOffsetY) If $bDebugImage Then SaveDebugDiamondImage("UpgradeNewBldgYesNo", $aSearchDiamond) ; Lets search for the Correct Symbol on field - If QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgYes, 80, 60, 800, 600) Then + If QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgYes, 80, 60, 800, 570 + $g_iMidOffsetY) Then Click($g_iQuickMISX, $g_iQuickMISY) SetLog("Placed a new Building on Builder Base!", $COLOR_INFO) If _Sleep(1000) Then Return ; Lets check if exist the [x] , Some Buildings like Traps when you place one will give other to place automatically! - If QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgNo, 80, 60, 800, 600) Then + If QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgNo, 80, 60, 800, 570 + $g_iMidOffsetY) Then SetLog("Found another building!") Click($g_iQuickMISX, $g_iQuickMISY) EndIf Return True Else - If Not QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgNo, 80, 60, 800, 600) And QuickMIS("BC1", $sImgTunnel, 0, 190 + $g_iMidOffsetY, $g_iGAME_WIDTH, $g_iGAME_HEIGHT) Then - ClickDrag(700, 530, 170, 110) + If Not QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgNo, 80, 60, 800, 570 + $g_iMidOffsetY) And QuickMIS("BC1", $sImgTunnel, 0, 190 + $g_iMidOffsetY, $g_iGAME_WIDTH, $g_iGAME_HEIGHT) Then + ClickDrag(700, 500 + $g_iMidOffsetY, 170, 80 + $g_iMidOffsetY) If _Sleep(2000) Then Return - If QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgYes, 80, 60, 800, 600) Then + If QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgYes, 80, 60, 800, 570 + $g_iMidOffsetY) Then Click($g_iQuickMISX, $g_iQuickMISY) SetLog("Placed a new Building on Builder Base!", $COLOR_INFO) If _Sleep(1000) Then Return ; Lets check if exist the [x] , Some Buildings like Traps when you place one will give other to place automatically! - If QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgNo, 80, 60, 800, 600) Then + If QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgNo, 80, 60, 800, 570 + $g_iMidOffsetY) Then SetLog("Found another building!") Click($g_iQuickMISX, $g_iQuickMISY) EndIf @@ -505,18 +525,16 @@ Func NewBuildings($aResult, $bDebugImage = $g_bDebugImageSave) EndIf For $j = 0 To 9 - If QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgNo, 80, 60, 800, 600) Then + If QuickMIS("BC1", $g_sImgAutoUpgradeNewBldgNo, 80, 60, 800, 570 + $g_iMidOffsetY) Then Click($g_iQuickMISX, $g_iQuickMISY) SetLog("Failed to deploy a new building on BB! [" & $g_iQuickMISX & "," & $g_iQuickMISY & "]", $COLOR_ERROR) - $g_BBBuildingPlacementFailed += 1 - SetDebugLog("BuildingPlacementFailed : " & $g_BBBuildingPlacementFailed, $COLOR_ERROR) If _Sleep(100) Then Return False ClickOnBuilder() If _Sleep(1000) Then Return False - ExitLoop 2 + ExitLoop EndIf SetLog("Failed to locate Cancel button [x] : " & $j) @@ -527,14 +545,15 @@ Func NewBuildings($aResult, $bDebugImage = $g_bDebugImageSave) EndIf Else If $bDebugImage Then SaveDebugRectImage("NoWhiteZeros", $aCostArea) - If $g_bDebugSetlog Then SetDebugLog("Slot without enough resources![2]", $COLOR_DEBUG) + SetLog("Slot without enough resources!", $COLOR_INFO) If $i = UBound($ClocksCoordinates) - 1 Then CloseWindow() EndIf Next Else - SetLog("Slot without enough resources![3]", $COLOR_INFO) + SetLog("No Clock Found!", $COLOR_ERROR) CloseWindow() EndIf + EndIf SetLog("Failed to place new building") diff --git a/COCBot/functions/Village/Clan Games/ClanGames.au3 b/COCBot/functions/Village/Clan Games/ClanGames.au3 index 39cf3ba09..d2cde32ac 100644 --- a/COCBot/functions/Village/Clan Games/ClanGames.au3 +++ b/COCBot/functions/Village/Clan Games/ClanGames.au3 @@ -32,7 +32,10 @@ Func _ClanGames($test = False, $HaltMode = False) If $currentDate = 22 Then If Not UTCTimeCG() Then Local Static $iLastTimeChecked[8] = [0, 0, 0, 0, 0, 0, 0, 0] - If $iLastTimeChecked[$g_iCurAccount] = @MDAY Then Return + If $iLastTimeChecked[$g_iCurAccount] = @MDAY Then + SetDebugLog("Exit CG due to UTC Check.", $COLOR_INFO) + Return + EndIf $iLastTimeChecked[$g_iCurAccount] = @MDAY EndIf EndIf @@ -46,7 +49,10 @@ Func _ClanGames($test = False, $HaltMode = False) EndIf If _Sleep(200) Then Return Next - If Not $sFound Then Return + If Not $sFound Then + SetDebugLog("Exit GD when no $sFound.", $COLOR_INFO) + Return + EndIf EndIf ; Check if games has been completed @@ -119,6 +125,7 @@ Func _ClanGames($test = False, $HaltMode = False) $g_bClanGamesCompleted = 1 ClearTempCGFiles() CloseWindow() + UpdateStats() Return ElseIf $aiScoreLimit[0] + 300 >= $aiScoreLimit[1] Then SetLog("You have almost reached max point") @@ -889,6 +896,13 @@ Func IsClanGamesWindow() If _Sleep(1000) Then Return Next + If $Found = False And $currentDate = 22 Then + SetLog("Caravan not available", $COLOR_WARNING) + SetLog("Clan Games is preparing") + $sState = "Prepare" + $bRet = False + EndIf + If $Found = False And $currentDate >= 28 Then SetLog("Caravan not available", $COLOR_WARNING) SetLog("Clan Games has already been completed") @@ -1095,7 +1109,7 @@ Func IsEventRunning($bOpenWindow = False) If QuickMIS("BC1", $g_sImgVersus, 425, 180 + $g_iMidOffsetY, 700, 245 + $g_iMidOffsetY) And $CurrentActiveChallenge <> "Builder Hut" Then If $aActiveEvent[0][0] = "D-BBreakdown" Or $aActiveEvent[0][0] = "BBD-BuildingDes" Then SetDebugLog("Challenge with shared Image", $COLOR_DEBUG2) - If $g_abCGBBDestructionItem[1] = 0 Then + If $g_abCGBBDestructionItem[1] = 0 Or $g_bChkClanGamesBBDes = 0 Then $bNeedPurge = True ;BuildingDes Else $CurrentActiveChallenge = "BB Building" @@ -1103,7 +1117,7 @@ Func IsEventRunning($bOpenWindow = False) EndIf If $aActiveEvent[0][0] = "BBD-WallDes" Or $aActiveEvent[0][0] = "D-WallWhacker" Then SetDebugLog("Challenge with shared Image", $COLOR_DEBUG2) - If $g_abCGBBDestructionItem[14] = 0 Then + If $g_abCGBBDestructionItem[14] = 0 Or $g_bChkClanGamesBBDes = 0 Then $bNeedPurge = True ;Wall Wipe Out Else $CurrentActiveChallenge = "Wall WipeOut" @@ -1111,7 +1125,7 @@ Func IsEventRunning($bOpenWindow = False) EndIf If $aActiveEvent[0][0] = "A-BabyD" Or $aActiveEvent[0][0] = "BBT-BabyD" Then SetDebugLog("Challenge with shared Image", $COLOR_DEBUG2) - If $g_abCGBBTroopsItem[5] = 0 Then + If $g_abCGBBTroopsItem[5] = 0 Or $g_bChkClanGamesBBTroops = 0 Then $bNeedPurge = True ;BabyDrag Else $CurrentActiveChallenge = "Baby Dragon" @@ -1127,7 +1141,7 @@ Func IsEventRunning($bOpenWindow = False) Else If $aActiveEvent[0][0] = "BBD-WallDes" Or $aActiveEvent[0][0] = "D-WallWhacker" Then SetDebugLog("Challenge with shared Image", $COLOR_DEBUG2) - If $g_abCGMainDestructionItem[22] = 0 Then + If $g_abCGMainDestructionItem[22] = 0 Or $g_bChkClanGamesDes = 0 Then $bNeedPurge = True ;WallWhacker Else $CurrentActiveChallenge = "Wall Whacker" @@ -1135,7 +1149,7 @@ Func IsEventRunning($bOpenWindow = False) EndIf If $aActiveEvent[0][0] = "BBD-BuildingDes" Or $aActiveEvent[0][0] = "D-BBreakdown" Then SetDebugLog("Challenge with shared Image", $COLOR_DEBUG2) - If $g_abCGMainDestructionItem[23] = 0 Then + If $g_abCGMainDestructionItem[23] = 0 Or $g_bChkClanGamesDes = 0 Then $bNeedPurge = True ;BBreakdown Else $CurrentActiveChallenge = "Building Breakdown" @@ -1143,7 +1157,7 @@ Func IsEventRunning($bOpenWindow = False) EndIf If $aActiveEvent[0][0] = "BBT-BabyD" Or $aActiveEvent[0][0] = "A-BabyD" Then SetDebugLog("Challenge with shared Image", $COLOR_DEBUG2) - If $g_abCGMainAirItem[2] = 0 Then + If $g_abCGMainAirItem[2] = 0 Or $g_bChkClanGamesAirTroop = 0 Then $bNeedPurge = True ;BabyDrag Else $CurrentActiveChallenge = "Baby Dragon" @@ -1328,19 +1342,8 @@ EndFunc ;==>PurgeEvent Func StartAndPurgeEvent($bTest = False) If QuickMIS("BC1", $g_sImgStart, 230, 120 + $g_iMidOffsetY, 840, 520 + $g_iMidOffsetY) Then - Local $Timer = GetEventTimeInMinutes($g_iQuickMISX, $g_iQuickMISY) - Local $sTimeCG = ConvertOCRTime("ClanGames()", $g_sClanGamesTimeRemaining, False) - If $Timer > 0 Then - SetLog("Starting Challenge" & " [" & $Timer & " min]", $COLOR_SUCCESS) - Click($g_iQuickMISX, $g_iQuickMISY) - GUICtrlSetData($g_hTxtClanGamesLog, @CRLF & _NowTime() & " [" & $g_sProfileCurrentName & "] - Starting Purge for " & $Timer & " min", 1) - _FileWriteLog($g_sProfileLogsPath & "\ClanGames.log", " [" & $g_sProfileCurrentName & "] - Starting Purge for " & $Timer & " min") - Else - SetLog("Starting Challenge" & " [" & $sTimeCG & " min]", $COLOR_SUCCESS) - Click($g_iQuickMISX, $g_iQuickMISY) - GUICtrlSetData($g_hTxtClanGamesLog, @CRLF & _NowTime() & " [" & $g_sProfileCurrentName & "] - Starting Purge for " & $sTimeCG & " min", 1) - _FileWriteLog($g_sProfileLogsPath & "\ClanGames.log", " [" & $g_sProfileCurrentName & "] - Starting Purge for " & $sTimeCG & " min") - EndIf + SetLog("Starting Challenge", $COLOR_SUCCESS) + Click($g_iQuickMISX, $g_iQuickMISY) If _Sleep(3000) Then Return If QuickMIS("BC1", $g_sImgTrashPurge, 235, 140 + $g_iMidOffsetY, 825, 540 + $g_iMidOffsetY, True, False) Then Click($g_iQuickMISX, $g_iQuickMISY) @@ -1351,8 +1354,8 @@ Func StartAndPurgeEvent($bTest = False) If $bTest Then Return Click($g_iQuickMISX, $g_iQuickMISY) SetLog("Start And Purge Any Challenge!", $COLOR_SUCCESS) - GUICtrlSetData($g_hTxtClanGamesLog, @CRLF & _NowTime() & " [" & $g_sProfileCurrentName & "] - Start And Purge Any Challenge : No Challenge Found ", 1) - _FileWriteLog($g_sProfileLogsPath & "\ClanGames.log", " [" & $g_sProfileCurrentName & "] - Start And Purge Any Challenge : No Challenge Found ") + GUICtrlSetData($g_hTxtClanGamesLog, @CRLF & _NowTime() & " [" & $g_sProfileCurrentName & "] - Start And Purge Any Challenge", 1) + _FileWriteLog($g_sProfileLogsPath & "\ClanGames.log", " [" & $g_sProfileCurrentName & "] - Start And Purge Any Challenge") Else SetLog("$g_sImgOkayPurge Issue", $COLOR_ERROR) Return False @@ -1361,6 +1364,9 @@ Func StartAndPurgeEvent($bTest = False) SetLog("$g_sImgTrashPurge Issue", $COLOR_ERROR) Return False EndIf + Else + SetLog("$g_sImgStart Issue", $COLOR_ERROR) + Return False EndIf If _Sleep(1500) Then Return Return True @@ -1398,8 +1404,8 @@ Func GetEventTimeInMinutes($iXStartBtn, $iYStartBtn, $bIsStartBtn = True) Local $Ocr = getOcrEventTime($XAxis, $YAxis) $Ocr = StringReplace($Ocr, " ", "", 0) $Ocr = StringReplace($Ocr, "#", "", 0) - If $Ocr = "1" Then $Ocr = "1d" - If $Ocr = "2" Then $Ocr = "2d" + If $Ocr = "1" Or $Ocr = "11" Or $Ocr = "111" Then $Ocr = "1d" + If $Ocr = "2" Or $Ocr = "21" Or $Ocr = "211" Then $Ocr = "2d" Return ConvertOCRTime("ClanGames()", $Ocr, False) EndFunc ;==>GetEventTimeInMinutes diff --git a/COCBot/functions/Village/ClanCapital.au3 b/COCBot/functions/Village/ClanCapital.au3 index 7db14c542..5ee5d7eec 100644 --- a/COCBot/functions/Village/ClanCapital.au3 +++ b/COCBot/functions/Village/ClanCapital.au3 @@ -1093,11 +1093,12 @@ Func SwitchToMainVillage() Local $bRet = False, $loop = 0 SetDebugLog("Going To MainVillage", $COLOR_ACTION) SwitchToCapitalMain() - For $i = 1 To 10 + For $i = 1 To 20 If QuickMIS("BC1", $g_sImgGeneralCloseButton, 780, 90, 840, 130 + $g_iMidOffsetY) Then ; check if we have window covering map, close it! + SetLog("Found Raid Window Covering Map, Close it!", $COLOR_INFO) + If _Sleep(Random(1250, 2000, 1)) Then Return Click($g_iQuickMISX, $g_iQuickMISY) - SetLog("Found a window covering map, close it!", $COLOR_INFO) - If _Sleep(2000) Then Return + If _Sleep(3000) Then Return SwitchToCapitalMain() EndIf If QuickMIS("BC1", $g_sImgCCMap, 15, 550 + $g_iBottomOffsetY, 115, 640 + $g_iBottomOffsetY) Then @@ -1107,7 +1108,7 @@ Func SwitchToMainVillage() ExitLoop EndIf EndIf - If _Sleep(500) Then Return + If _Sleep(250) Then Return Next While 1 @@ -1131,25 +1132,46 @@ EndFunc ;==>SwitchToMainVillage Func SwitchToClanCapital() Local $bRet = False Local $bAirShipFound = False - For $z = 0 To 10 + For $z = 0 To 14 If QuickMIS("BC1", $g_sImgAirShip, 200, 510 + $g_iBottomOffsetY, 400, 670 + $g_iBottomOffsetY) Then $bAirShipFound = True Click($g_iQuickMISX, $g_iQuickMISY) + If _Sleep(3000) Then Return ExitLoop EndIf - If _Sleep(350) Then Return + If _Sleep(250) Then Return Next If $bAirShipFound = False Then Return $bRet - If _Sleep(3000) Then Return - If QuickMIS("BC1", $g_sImgGeneralCloseButton, 780, 90, 840, 130 + $g_iMidOffsetY) Then - SetLog("Found raid window covering map, close it!", $COLOR_INFO) - Click($g_iQuickMISX, $g_iQuickMISY) - If _Sleep(3000) Then Return - EndIf - If QuickMIS("BC1", $g_sImgCCRaid, 360, 445 + $g_iMidOffsetY, 500, 500 + $g_iMidOffsetY) Then - Click($g_iQuickMISX, $g_iQuickMISY) - If _Sleep(5000) Then Return - EndIf + For $i = 0 To 14 + If QuickMIS("BC1", $g_sImgGeneralCloseButton, 780, 90, 840, 130 + $g_iMidOffsetY) Then + SetLog("Found Raid Window Covering Map, Close it!", $COLOR_INFO) + If _Sleep(Random(1250, 2000, 1)) Then Return + Click($g_iQuickMISX, $g_iQuickMISY) + If _Sleep(3000) Then Return + ExitLoop + EndIf + If _Sleep(250) Then Return + If QuickMIS("BC1", $g_sImgCCMap, 15, 550 + $g_iBottomOffsetY, 115, 640 + $g_iBottomOffsetY) Then + If $g_iQuickMISName = "ReturnHome" Then + SetDebugLog("We are on Clan Capital", $COLOR_ACTION) + ExitLoop + EndIf + EndIf + Next + For $t = 0 To 14 + If QuickMIS("BC1", $g_sImgCCRaid, 360, 445 + $g_iMidOffsetY, 500, 500 + $g_iMidOffsetY) Then + Click($g_iQuickMISX, $g_iQuickMISY) + If _Sleep(6000) Then Return + ExitLoop + EndIf + If _Sleep(250) Then Return + If QuickMIS("BC1", $g_sImgCCMap, 15, 550 + $g_iBottomOffsetY, 115, 640 + $g_iBottomOffsetY) Then + If $g_iQuickMISName = "ReturnHome" Then + SetDebugLog("We are on Clan Capital", $COLOR_ACTION) + ExitLoop + EndIf + EndIf + Next SwitchToCapitalMain() For $i = 1 To 10 SetDebugLog("Waiting for Travel to Clan Capital Map #" & $i, $COLOR_ACTION) @@ -1167,7 +1189,7 @@ EndFunc ;==>SwitchToClanCapital Func SwitchToCapitalMain() Local $bRet = False SetDebugLog("Going to Clan Capital", $COLOR_ACTION) - For $i = 1 To 5 + For $i = 1 To 14 If QuickMIS("BC1", $g_sImgCCMap, 15, 550 + $g_iBottomOffsetY, 115, 640 + $g_iBottomOffsetY) Then If $g_iQuickMISName = "MapButton" Then Click(60, 610 + $g_iBottomOffsetY) ;Click Map @@ -1181,6 +1203,7 @@ Func SwitchToCapitalMain() ExitLoop EndIf EndIf + If _Sleep(250) Then Return Next Return $bRet EndFunc ;==>SwitchToCapitalMain @@ -1323,7 +1346,7 @@ Func CapitalMainUpgradeLoop($aUpgrade) $Failed = True ExitLoop EndIf - Local $BuildingName = getOcrAndCapture("coc-build", 200, 512 + $g_iBottomOffsetY, 460, 25) + Local $BuildingName = getOcrAndCapture("coc-build", 180, 512 + $g_iBottomOffsetY, 510, 25) Click($aRet[1], $aRet[2]) If _Sleep(2000) Then Return If Not WaitUpgradeWindowCC() Then @@ -1366,7 +1389,7 @@ Func DistrictUpgrade($aUpgrade) SetLog("Upgrade Ignored, Looking Next Upgrade", $COLOR_INFO) ; Shouldn't happen ContinueLoop EndIf - Local $BuildingName = getOcrAndCapture("coc-build", 200, 488 + $g_iBottomOffsetY, 460, 25) + Local $BuildingName = getOcrAndCapture("coc-build", 180, 512 + $g_iBottomOffsetY, 510, 25) Click($aRet[1], $aRet[2]) If _Sleep(2000) Then Return If Not WaitUpgradeWindowCC() Then @@ -1390,41 +1413,38 @@ Func DistrictUpgrade($aUpgrade) EndFunc ;==>DistrictUpgrade Func WaitForMap($sMapName = "Capital Peak") - Local $bRet + Local $bRet = False For $i = 1 To 10 SetDebugLog("Waiting for " & $sMapName & "#" & $i, $COLOR_ACTION) - If _Sleep(2000) Then Return - If QuickMIS("BC1", $g_sImgCCMap, 300, 10, 430, 40) Then ExitLoop - Next - Local $aMapName = StringSplit($sMapName, " ", $STR_NOCOUNT) - Local $Text = getOcrAndCapture("coc-mapname", $g_iQuickMISX, $g_iQuickMISY - 12, 230, 35) - SetDebugLog("$Text: " & $Text) - For $i In $aMapName - If StringInStr($Text, $i) Then - SetDebugLog("Match with: " & $i) - $bRet = True - SetLog("We are on " & $sMapName, $COLOR_INFO) + If QuickMIS("BC1", $g_sImgCCMap, 300, 10, 430, 40) Then + If _Sleep(500) Then Return ExitLoop EndIf + If _Sleep(1000) Then Return + If $i = 10 Then Return $bRet + Next + Local $aMapName = StringSplit($sMapName, " ", $STR_NOCOUNT) + SetDebugLog("checking with image", $COLOR_DEBUG) + Local $bLoop = 0 + While 1 + Local $ccMap = QuickMIS("CNX", $g_sImgCCMapName, $g_iQuickMISX, $g_iQuickMISY - 10, $g_iQuickMISX + 220, $g_iQuickMISY + 20) + If IsArray($ccMap) And UBound($ccMap) > 0 Then ExitLoop + $bLoop += 1 + If _Sleep(250) Then Return + If $bLoop = 20 Then Return $bRet + WEnd + Local $mapName = "dummyName" + For $z = 0 To UBound($ccMap) - 1 + $mapName = String($ccMap[$z][0]) + For $i In $aMapName + If StringInStr($mapName, $i) Then + SetDebugLog("Match with: " & $i) + $bRet = True + SetLog("We are on " & $sMapName, $COLOR_INFO) + ExitLoop + EndIf + Next Next - If Not $bRet Then - SetDebugLog("checking with image") - Local $ccMap = QuickMIS("CNX", $g_sImgCCMapName, $g_iQuickMISX, $g_iQuickMISY - 10, $g_iQuickMISX + 200, $g_iQuickMISY + 50) - If IsArray($ccMap) And UBound($ccMap) > 0 Then - Local $mapName = "dummyName" - For $z = 0 To UBound($ccMap) - 1 - $mapName = String($ccMap[$z][0]) - For $i In $aMapName - If StringInStr($mapName, $i) Then - SetDebugLog("Match with: " & $i) - $bRet = True - SetLog("We are on " & $sMapName, $COLOR_INFO) - ExitLoop - EndIf - Next - Next - EndIf - EndIf Return $bRet EndFunc ;==>WaitForMap diff --git a/COCBot/functions/Village/DonateCC.au3 b/COCBot/functions/Village/DonateCC.au3 index 2421294d1..39545d2b7 100644 --- a/COCBot/functions/Village/DonateCC.au3 +++ b/COCBot/functions/Village/DonateCC.au3 @@ -71,13 +71,13 @@ Func IsDonateQueueOnly(ByRef $abDonateQueueOnly) If Not OpenTrainTab($i = 0 ? "Train Troops Tab" : "Brew Spells Tab", True, "IsDonateQueueOnly()") Then ContinueLoop - Local $xQueue = 822 + Local $xQueue = 775 For $j = 0 To 10 If _Sleep(100) Then Return - $xQueue -= 68.5 * $j - If _ColorCheck(_GetPixelColor($xQueue, 163 + $g_iMidOffsetY, True), Hex(0xD7AFA9, 6), 20) Then ; Pink background found at $xQueue + $xQueue -= 60.5 * $j + If _ColorCheck(_GetPixelColor($xQueue, 185 + $g_iMidOffsetY, True), Hex(0xD7AFA9, 6), 20) Then ; Pink background found at $xQueue ExitLoop - ElseIf _ColorCheck(_GetPixelColor($xQueue, 180 + $g_iMidOffsetY, True), Hex(0xCFCFC8, 6), 20) Then ; Gray background + ElseIf _ColorCheck(_GetPixelColor($xQueue, 195 + $g_iMidOffsetY, True), Hex(0xCFCFC8, 6), 20) Then ; Gray background SetLog("2nd army is not prepared. Donate whatever exists in 1st army!!") $abDonateQueueOnly[$i] = False ContinueLoop 2 @@ -94,7 +94,7 @@ Func IsDonateQueueOnly(ByRef $abDonateQueueOnly) For $j = 0 To (UBound($aSearchResult) - 1) Local $TroopIndex = TroopIndexLookup($aSearchResult[$j][0], "IsDonateQueueOnly()") If $TroopIndex < 0 Then ContinueLoop - If _ColorCheck(_GetPixelColor(($xQueue - 10) - $j * 68.5, 220 + $g_iMidOffsetY, True), Hex(0x92A41F, 6), 20) Then ; the green check symbol + If _ColorCheck(_GetPixelColor(($xQueue - 10) - $j * 60.5, 234 + $g_iMidOffsetY, True), Hex(0x96A724, 6), 20) Then ; the green check symbol If $i = 0 Then If _ArrayIndexValid($g_aiAvailQueuedTroop, $TroopIndex) Then $g_aiAvailQueuedTroop[$TroopIndex] += $aSearchResult[$j][1] diff --git a/COCBot/functions/Village/DropTrophy.au3 b/COCBot/functions/Village/DropTrophy.au3 index afb7fd37c..d9c4c8e9b 100644 --- a/COCBot/functions/Village/DropTrophy.au3 +++ b/COCBot/functions/Village/DropTrophy.au3 @@ -153,7 +153,19 @@ Func DropTrophy() SetSlotSpecialTroops() ;b) calculate random drop point... - $aRandomEdge = $g_aaiEdgeDropPoints[Round(Random(0, 3))] + Local $IsBoostButton = False + For $i = 1 To 5 + If _Sleep(300) Then Return + If QuickMIS("BFI", $g_sImgImgLocButtons & "\BoostButtons\BoostButton*.xml", 130, 520 + $g_iBottomOffsetY, 390, 555 + $g_iBottomOffsetY) Then + $IsBoostButton = True + ExitLoop + EndIf + Next + If $IsBoostButton Then + $aRandomEdge = $g_aaiEdgeDropPoints2[Round(Random(0, 3))] + Else + $aRandomEdge = $g_aaiEdgeDropPoints[Round(Random(0, 3))] + EndIf $iRandomXY = Round(Random(0, 4)) SetDebugLog("Hero Loc = " & $iRandomXY & ", X:Y= " & $aRandomEdge[$iRandomXY][0] & "|" & $aRandomEdge[$iRandomXY][1], $COLOR_DEBUG) diff --git a/COCBot/functions/Village/FreeMagicItems.au3 b/COCBot/functions/Village/FreeMagicItems.au3 index 15e000cc0..452bf2905 100644 --- a/COCBot/functions/Village/FreeMagicItems.au3 +++ b/COCBot/functions/Village/FreeMagicItems.au3 @@ -52,7 +52,7 @@ Func CollectFreeMagicItems($bTest = False) SetLog("Free Magic Item Collect Fail! Gem Window popped up!", $COLOR_ERROR) EndIf SetLog("Free Magic Item Detected On Slot #" & $ItemPosition & "", $COLOR_INFO) - If WaitforPixel($aOcrPositions[$i][0] + 25, $aOcrPositions[$i][1] - 30, $aOcrPositions[$i][0] + 35, $aOcrPositions[$i][1] - 25, "AD590D", 10, 1) Then + If WaitforPixel($aOcrPositions[$i][0] + 25, $aOcrPositions[$i][1] - 30, $aOcrPositions[$i][0] + 35, $aOcrPositions[$i][1] - 25, "AD590D", 15, 1) Then SetLog("Free Magic Item Collected On Slot #" & $ItemPosition & "", $COLOR_SUCCESS) $aGem[$i] = "Collected" If _Sleep(1500) Then Return @@ -92,7 +92,7 @@ Func GetFreeMagic() Local $Read = getOcrAndCapture("coc-freemagicitems", $aOcrPositions[$i][0], $aOcrPositions[$i][1], 60, 25, True) If $Read = "FREE" Then - If WaitforPixel($aOcrPositions[$i][0] + 25, $aOcrPositions[$i][1] - 30, $aOcrPositions[$i][0] + 35, $aOcrPositions[$i][1] - 25, "AD590D", 10, 1) Then + If WaitforPixel($aOcrPositions[$i][0] + 25, $aOcrPositions[$i][1] - 30, $aOcrPositions[$i][0] + 35, $aOcrPositions[$i][1] - 25, "AD590D", 15, 1) Then $Read = "SoldOut" EndIf If WaitforPixel($aOcrPositions[$i][0] + 33, $aOcrPositions[$i][1] + 30, $aOcrPositions[$i][0] + 35, $aOcrPositions[$i][1] + 31, "969696", 10, 1) Then @@ -127,7 +127,14 @@ Func OpenTraderWindow() SetLog("Bot will recheck next loop", $COLOR_OLIVE) Return False Else - Local $aIsWeekyDealsOpen[4] = [40, 0, 0x8BC11D, 20] + Local $aIsWeekyDealsOpen[4] = [40, 0, 0x8DC11D, 20] + If _CheckPixel($aReceivedTroopsWeeklyDeals, True) Then ; Found the "You have received" Message on Screen, wait till its gone. + SetDebugLog("Detected Clan Castle Message Blocking Raid Medals Button. Waiting until it's gone", $COLOR_INFO) + _CaptureRegion2() + While _CheckPixel($aReceivedTroopsWeeklyDeals, True) + If _Sleep($DELAYTRAIN1) Then Return + WEnd + EndIf Local $aTabButton = findButton("WeeklyDeals", Default, 1, True) If IsArray($aTabButton) And UBound($aTabButton, 1) = 2 Then $aIsWeekyDealsOpen[1] = $aTabButton[1] diff --git a/COCBot/functions/Village/Laboratory.au3 b/COCBot/functions/Village/Laboratory.au3 index 16109f484..26cc54e7e 100644 --- a/COCBot/functions/Village/Laboratory.au3 +++ b/COCBot/functions/Village/Laboratory.au3 @@ -12,12 +12,11 @@ ; Link ..........: https://github.com/MyBotRun/MyBot/wiki ; Example .......: No ; =============================================================================================================================== -Local $iSlotWidth = 107, $iDistBetweenSlots = 16 ; use for logic to upgrade troops.. good for generic-ness +Local $iSlotWidth = 108, $iDistBetweenSlots = 14 ; use for logic to upgrade troops.. good for generic-ness Local $iYMidPoint = 480 ;Space between rows in lab screen. CHANGE ONLY WITH EXTREME CAUTION. Local $iPicsPerPage = 12, $iPages = 4 ; used to know exactly which page the users choice is on -Local $sLabTroopsSection = "70,365,795,600", $sLabTroopLastPage = "185,365,795,600" -;$sLabTroopLastPage for partial last page, currently 5 columns. -Local $sLabTroopsSectionDiam = GetDiamondFromRect($sLabTroopsSection), $sLabTroopsLastPageDiam = GetDiamondFromRect($sLabTroopLastPage) ; easy to change search areas +Local $sLabTroopsSection = "70,365,795,600" +Local $sLabTroopsSectionDiam = GetDiamondFromRect($sLabTroopsSection) Func TestLaboratory() Local $bWasRunState = $g_bRunState @@ -68,7 +67,7 @@ Func Laboratory($debug = False) ;Click Laboratory BuildingClickP($g_aiLaboratoryPos, "#0197") - If _Sleep($DELAYLABORATORY3) Then Return ; Wait for window to open + If _Sleep($DELAYLABORATORY5) Then Return ; Wait for window to open If Not FindResearchButton() Then Return False ; cant start because we cannot find the research button @@ -92,12 +91,7 @@ Func Laboratory($debug = False) WEnd SetDebugLog("On page " & $iCurPage & " of " & $iPages) ; Get coords of upgrade the user wants - If $iCurPage >= $iPages Then ;Use last partial page - SetDebugLog("Finding on last page diamond") - Local $aPageUpgrades = findMultiple($g_sImgLabResearch, $sLabTroopsLastPageDiam, $sLabTroopsLastPageDiam, 0, 1000, 0, "objectname,objectpoints", True) ; Returns $aCurrentTroops[index] = $aArray[2] = ["TroopShortName", CordX,CordY] - Else ;Use full page - Local $aPageUpgrades = findMultiple($g_sImgLabResearch, $sLabTroopsSectionDiam, $sLabTroopsSectionDiam, 0, 1000, 0, "objectname,objectpoints", True) ; Returns $aCurrentTroops[index] = $aArray[2] = ["TroopShortName", CordX,CordY] - EndIf + Local $aPageUpgrades = findMultiple($g_sImgLabResearch, $sLabTroopsSectionDiam, $sLabTroopsSectionDiam, 0, 1000, 0, "objectname,objectpoints", True) ; Returns $aCurrentTroops[index] = $aArray[2] = ["TroopShortName", CordX,CordY] Local $aCoords, $bUpgradeFound = False If UBound($aPageUpgrades, 1) >= 1 Then ; if we found any troops For $i = 0 To UBound($aPageUpgrades, 1) - 1 ; Loop through found upgrades @@ -135,12 +129,7 @@ Func Laboratory($debug = False) Else ; users choice is any upgrade While ($iCurPage <= $iPages) SetDebugLog("User picked any upgrade.") - If $iCurPage >= $iPages Then ;Use last partial page - SetDebugLog("Finding on last page diamond") - Local $aPageUpgrades = findMultiple($g_sImgLabResearch, $sLabTroopsLastPageDiam, $sLabTroopsLastPageDiam, 0, 1000, 0, "objectname,objectpoints", True) ; Returns $aCurrentTroops[index] = $aArray[2] = ["TroopShortName", CordX,CordY] - Else ;Use full page - Local $aPageUpgrades = findMultiple($g_sImgLabResearch, $sLabTroopsSectionDiam, $sLabTroopsSectionDiam, 0, 1000, 0, "objectname,objectpoints", True) ; Returns $aCurrentTroops[index] = $aArray[2] = ["TroopShortName", CordX,CordY] - EndIf + Local $aPageUpgrades = findMultiple($g_sImgLabResearch, $sLabTroopsSectionDiam, $sLabTroopsSectionDiam, 0, 1000, 0, "objectname,objectpoints", True) ; Returns $aCurrentTroops[index] = $aArray[2] = ["TroopShortName", CordX,CordY] If UBound($aPageUpgrades, 1) >= 1 Then ; if we found any troops SetDebugLog("Found " & UBound($aPageUpgrades, 1) & " possible on this page #" & $iCurPage) For $i = 0 To UBound($aPageUpgrades, 1) - 1 ; Loop through found upgrades @@ -242,11 +231,11 @@ Func GetLabCostResult($aCoords) SetDebugLog("First row.") $iCurSlotOnPage = 2 * $iCurSlotsToTheRight - 1 SetDebugLog("$iCurSlotOnPage=" & $iCurSlotOnPage) - $sCostResult = getLabUpgrdResourceWhtNew(Int(StringSplit($sLabTroopsSection, ",")[1]) + 2 + ($iCurSlotsToTheRight - 1) * ($iSlotWidth + $iDistBetweenSlots), 420 + $g_iMidOffsetY) + $sCostResult = getLabUpgrdResourceWhtNew(Int(StringSplit($sLabTroopsSection, ",")[1]) + ($iCurSlotsToTheRight - 1) * ($iSlotWidth + $iDistBetweenSlots) + 4, 420 + $g_iMidOffsetY) If $sCostResult = "" Then - Local $XCoord = Int(StringSplit($sLabTroopsSection, ",")[1]) + 2 + ($iCurSlotsToTheRight - 1) * ($iSlotWidth + $iDistBetweenSlots) + Local $XCoord = Int(StringSplit($sLabTroopsSection, ",")[1]) + ($iCurSlotsToTheRight - 1) * ($iSlotWidth + $iDistBetweenSlots) + 4 Local $YCoord = 420 + $g_iMidOffsetY - If QuickMIS("BC1", $g_sImgElixirDrop, $XCoord + 77, $YCoord - 4, $XCoord + 103, $YCoord + 18) Then + If QuickMIS("BC1", $g_sImgElixirDrop, $XCoord + 77, $YCoord - 4, $XCoord + 110, $YCoord + 18) Then Local $g_iLaboratoryElixirCostOld = $g_iLaboratoryElixirCost Local $g_iLaboratoryElixirCostNew = getLabUpgrdResourceRed($XCoord, $YCoord) If $g_iLaboratoryElixirCostNew <= $g_iLaboratoryElixirCostOld Or $g_iLaboratoryElixirCostOld = 0 Then $g_iLaboratoryElixirCost = $g_iLaboratoryElixirCostNew @@ -260,11 +249,11 @@ Func GetLabCostResult($aCoords) SetDebugLog("Second row.") $iCurSlotOnPage = 2 * $iCurSlotsToTheRight SetDebugLog("$iCurSlotOnPage=" & $iCurSlotOnPage) - $sCostResult = getLabUpgrdResourceWhtNew(Int(StringSplit($sLabTroopsSection, ",")[1]) + 2 + ($iCurSlotsToTheRight - 1) * ($iSlotWidth + $iDistBetweenSlots), 543 + $g_iMidOffsetY) + $sCostResult = getLabUpgrdResourceWhtNew(Int(StringSplit($sLabTroopsSection, ",")[1]) + ($iCurSlotsToTheRight - 1) * ($iSlotWidth + $iDistBetweenSlots) + 4, 543 + $g_iMidOffsetY) If $sCostResult = "" Then - Local $XCoord = Int(StringSplit($sLabTroopsSection, ",")[1]) + 2 + ($iCurSlotsToTheRight - 1) * ($iSlotWidth + $iDistBetweenSlots) + Local $XCoord = Int(StringSplit($sLabTroopsSection, ",")[1]) + ($iCurSlotsToTheRight - 1) * ($iSlotWidth + $iDistBetweenSlots) + 4 Local $YCoord = 543 + $g_iMidOffsetY - If QuickMIS("BC1", $g_sImgElixirDrop, $XCoord + 77, $YCoord - 4, $XCoord + 103, $YCoord + 18) Then + If QuickMIS("BC1", $g_sImgElixirDrop, $XCoord + 77, $YCoord - 4, $XCoord + 110, $YCoord + 18) Then Local $g_iLaboratoryElixirCostOld = $g_iLaboratoryElixirCost Local $g_iLaboratoryElixirCostNew = getLabUpgrdResourceRed($XCoord, $YCoord) If $g_iLaboratoryElixirCostNew <= $g_iLaboratoryElixirCostOld Or $g_iLaboratoryElixirCostOld = 0 Then $g_iLaboratoryElixirCost = $g_iLaboratoryElixirCostNew @@ -279,16 +268,11 @@ Func GetLabCostResult($aCoords) Return $sCostResult EndFunc ;==>GetLabCostResult -; if we are on last page, smaller clickdrag... for future dev: this is whatever is enough distance to move 6 off to the left and have the next page similarily aligned. "-50" to avoid the white triangle. +; "-50" to avoid the white triangle. Func LabNextPage($iCurPage, $iPages, $iYMidPoint) If $iCurPage >= $iPages Then Return ; nothing left to scroll - If $iCurPage = $iPages - 1 Then ; last page - SetDebugLog("Drag to last page") - ClickDrag(720, $iYMidPoint - 50, 178, $iYMidPoint, 300) - Else - SetDebugLog("Drag to next full page.") - ClickDrag(720, $iYMidPoint - 50, 79, $iYMidPoint, 300) - EndIf + SetDebugLog("Drag to next full page.") + ClickDrag(720, $iYMidPoint - 50, 83, $iYMidPoint, 300) EndFunc ;==>LabNextPage ; check the lab to see if something is upgrading in the lab already diff --git a/COCBot/functions/Village/LocatePetHouse.au3 b/COCBot/functions/Village/LocatePetHouse.au3 index f263a118e..221722056 100644 --- a/COCBot/functions/Village/LocatePetHouse.au3 +++ b/COCBot/functions/Village/LocatePetHouse.au3 @@ -22,13 +22,13 @@ Func LocatePetHouse($bCollect = True) Return EndIf - ; auto locate + ; auto locate ImgLocatePetHouse() - + SetLog("PetHouse: (" & $g_aiPetHousePos[0] & "," & $g_aiPetHousePos[1] & ")", $COLOR_DEBUG) - + If $g_aiPetHousePos[1] = "" Or $g_aiPetHousePos[1] = -1 Then _LocatePetHouse($bCollect) ; manual locate -EndFunc +EndFunc ;==>LocatePetHouse Func _LocatePetHouse($bCollect = True) Local $stext, $MsgBox, $iStupid = 0, $iSilly = 0, $sErrorText = "" @@ -77,12 +77,12 @@ Func _LocatePetHouse($bCollect = True) ClickAway() Return EndIf - Local $sPetHouseInfo = BuildingInfo(242, 468 + $g_iBottomOffsetY); 860x780 + Local $sPetHouseInfo = BuildingInfo(242, 468 + $g_iBottomOffsetY) ; 860x780 If $sPetHouseInfo[0] > 1 Or $sPetHouseInfo[0] = "" Then If StringInStr($sPetHouseInfo[1], "House") = 0 Then Local $sLocMsg = ($sPetHouseInfo[0] = "" ? "Nothing" : $sPetHouseInfo[1]) - $iSilly += 1 + $iSilly += 1 Select Case $iSilly = 1 $sErrorText = "Wait, That is not the Pet House?, It was a " & $sLocMsg & @CRLF @@ -114,7 +114,7 @@ Func _LocatePetHouse($bCollect = True) WEnd ClickAway() -EndFunc ;==>LocatePetHouse +EndFunc ;==>_LocatePetHouse ; Image Search for Pet House Func ImgLocatePetHouse() @@ -130,7 +130,7 @@ Func ImgLocatePetHouse() EndIf Local $avPetHouseRes, $aiPetHouseCoords - + ; active/inactive Pet House have different images ; loop thro the detected images For $i = 0 To UBound($avPetHouse, $UBOUND_ROWS) - 1 @@ -144,6 +144,6 @@ Func ImgLocatePetHouse() $g_aiPetHousePos[1] = $aiPetHouseCoords[1] Return True EndIf - + Return False -EndFunc \ No newline at end of file +EndFunc ;==>ImgLocatePetHouse diff --git a/COCBot/functions/Village/LocateUpgrade.au3 b/COCBot/functions/Village/LocateUpgrade.au3 index 30dc0c0e8..cbcb03b8d 100644 --- a/COCBot/functions/Village/LocateUpgrade.au3 +++ b/COCBot/functions/Village/LocateUpgrade.au3 @@ -265,6 +265,8 @@ Func UpgradeValue($inum, $bRepeat = False) ;function to find the value and type $g_avBuildingUpgrades[$inum][4] = "Giga Inferno" Case 15 $g_avBuildingUpgrades[$inum][4] = "Giga Inferno" + Case 16 + $g_avBuildingUpgrades[$inum][4] = "Giga Inferno" EndSwitch GUICtrlSetData($g_hTxtUpgradeName[$inum], $g_avBuildingUpgrades[$inum][4]) $aUpgradeButton = $aTmpUpgradeButton diff --git a/COCBot/functions/Village/PetHouse.au3 b/COCBot/functions/Village/PetHouse.au3 index b458b2897..c78a91a6f 100644 --- a/COCBot/functions/Village/PetHouse.au3 +++ b/COCBot/functions/Village/PetHouse.au3 @@ -53,7 +53,10 @@ Func PetHouse($test = False) EndIf EndIf - If PetUpgradeInProgress() Then Return False ; see if we know about an upgrade in progress without checking the Pet House + If PetUpgradeInProgress() Then ; see if we know about an upgrade in progress without checking the Pet House + $g_iMinDark4PetUpgrade = 0 + Return False + EndIf ; Get updated village elixir and dark elixir values VillageReport() @@ -83,7 +86,7 @@ Func PetHouse($test = False) If CheckPetUpgrade() Then Return False ; cant start if something upgrading ; Pet upgrade is not in progress and not upgreading, so we need to start an upgrade. - Local $iPetLevelxCoord[8] = [55, 238, 419, 602, 104, 287, 470, 652] + Local $iPetLevelxCoord[9] = [54, 236, 419, 602, 54, 236, 419, 602, 651] For $i = 0 To $ePetCount - 1 ; check if pet upgrade enabled @@ -92,8 +95,8 @@ Func PetHouse($test = False) Local $iPetIndex = $i DragPetHouse($iPetIndex, $iPage) - ; check if pet upgrade unlocked ; c3b6a5 nox c1b7a5 memu? - If _ColorCheck(_GetPixelColor($iPetLevelxCoord[$i], 380 + $g_iMidOffsetY, True), Hex(0xC5BBA7, 6), 20) Then + ; check if pet upgrade unlocked + If _ColorCheck(_GetPixelColor($iPetLevelxCoord[$i], 380 + $g_iMidOffsetY, True), Hex(0xC6BCAA, 6), 15) Then If $g_iTownHallLevel = 14 Then If $i = 0 Or $i = 2 Then $g_ePetLevels[$i] = 10 ; Max level 10 for TH14 EndIf @@ -326,8 +329,6 @@ Func PetGuiDisplay() Return EndIf - $g_iMinDark4PetUpgrade = GetMinDark4PetUpgrade() - Local $IsRunning = False Local $IsStopped = False @@ -359,6 +360,7 @@ Func PetGuiDisplay() $g_sPetUpgradeTime = _DateAdd('n', Ceiling($iPetFinishTime), _NowCalc()) SetLog("Pet House will finish in " & $sPetTimeOCR & " (" & $g_sPetUpgradeTime & ")") EndIf + $g_iMinDark4PetUpgrade = 0 If ProfileSwitchAccountEnabled() Then SwitchAccountVariablesReload("Save") ; saving $asPetLabUpgradeTime[$g_iCurAccount] = $g_sPetUpgradeTime for instantly displaying in multi-stats CloseWindow() Return True @@ -372,6 +374,7 @@ Func PetGuiDisplay() GUICtrlSetData($g_hLbLPetTime, "") ;============================================ $g_sPetUpgradeTime = "" + $g_iMinDark4PetUpgrade = GetMinDark4PetUpgrade() If ProfileSwitchAccountEnabled() Then SwitchAccountVariablesReload("Save") ; saving $asPetLabUpgradeTime[$g_iCurAccount] = $g_sPetUpgradeTime for instantly displaying in multi-stats CloseWindow() Return @@ -390,7 +393,7 @@ Func PetGuiDisplay() EndFunc ;==>PetGuiDisplay Func GetMinDark4PetUpgrade() - Local $iPetLevelxCoord[8] = [55, 238, 419, 602, 104, 287, 470, 652] + Local $iPetLevelxCoord[9] = [54, 236, 419, 602, 54, 236, 419, 602, 651] Local $iMinDark4PetUpgrade = 999999 Local $iPage = 0 @@ -398,16 +401,18 @@ Func GetMinDark4PetUpgrade() ; check if pet upgrade enabled If Not $g_bUpgradePetsEnable[$i] Then ContinueLoop - Local $iPetIndex = $i - DragPetHouse($iPetIndex, $iPage) + DragPetHouse($i, $iPage) + + If $g_iTownHallLevel = 14 Then + If $i = 0 Or $i = 2 Then $g_ePetLevels[$i] = 10 ; Max level 10 for TH14 + EndIf + + ; check if pet upgrade enabled and unlocked + If _ColorCheck(_GetPixelColor($iPetLevelxCoord[$i], 380 + $g_iMidOffsetY, True), Hex(0xC6BCAA, 6), 15) Then - ; check if pet upgrade enabled and unlocked ; c3b6a5 nox c1b7a5 memu? - If _ColorCheck(_GetPixelColor($iPetLevelxCoord[$i], 380 + $g_iMidOffsetY, True), Hex(0xC5BBA7, 6), 20) Then - If $g_iTownHallLevel = 14 Then - If $i = 0 Or $i = 2 Then $g_ePetLevels[$i] = 10 ; Max level 10 for TH14 - EndIf ; get the Pet Level Local $iPetLevel = getPetsLevel($iPetLevelxCoord[$i], 544 + $g_iMidOffsetY) + If Not ($iPetLevel > 0 And $iPetLevel <= $g_ePetLevels[$i]) Then ;If detected level is not between 1 and 10 Or 15, To Prevent Crash If $g_bDebugSetlog Then SetDebugLog("Pet Level OCR Misdetection, Detected Level is : " & $iPetLevel, $COLOR_WARNING) ContinueLoop @@ -422,15 +427,16 @@ Func GetMinDark4PetUpgrade() If _Sleep($DELAYLABORATORY2) Then Return ; get DE requirement to upgrade Pet - Local $iDarkElixirReq = 1000 * Number($g_aiPetUpgradeCostPerLevel[$i][$iPetLevel]) + Local $iDarkElixirReq = (1000 * Number($g_aiPetUpgradeCostPerLevel[$i][$iPetLevel])) $iDarkElixirReq = Int($iDarkElixirReq - ($iDarkElixirReq * Number($g_iBuilderBoostDiscount) / 100)) + SetLog("DE Requirement: " & _NumberFormat($iDarkElixirReq, True)) If $iDarkElixirReq < $iMinDark4PetUpgrade Then $iMinDark4PetUpgrade = $iDarkElixirReq SetLog("New Min Dark: " & _NumberFormat($iMinDark4PetUpgrade, True)) EndIf - ElseIf _ColorCheck(_GetPixelColor($iPetLevelxCoord[$i], 380 + $g_iMidOffsetY, True), Hex(0xABABAB, 6), 20) Then + ElseIf _ColorCheck(_GetPixelColor($iPetLevelxCoord[$i], 380 + $g_iMidOffsetY, True), Hex(0xB5B5B5, 6), 15) Then SetLog($g_asPetNames[$i] & " is Locked") EndIf Next @@ -439,30 +445,53 @@ Func GetMinDark4PetUpgrade() EndFunc ;==>GetMinDark4PetUpgrade Func DragPetHouse($iPetIndex, ByRef $iPage) - Local $iY1 = Random(450 + $g_iMidOffsetY, 490 + $g_iMidOffsetY, 1) - Local $iY2 = Random(450 + $g_iMidOffsetY, 490 + $g_iMidOffsetY, 1) - - If $iPage = 0 Then - If $iPetIndex < 4 Then - Return True - Else - ClickDrag(725, $iY1, 175, $iY2, 250) + Local $iY1 + Local $iY2 + Local $iPageTarget + Local $bLoop = 0 + + Switch $iPetIndex + Case 0, 1, 2, 3 + $iPageTarget = 0 + Case 4, 5, 6, 7 + $iPageTarget = 1 + Case 8 + $iPageTarget = 2 + EndSwitch + + While 1 + + If $iPage = $iPageTarget Then ExitLoop + + Local $iYPoint = Random(500 + $g_iMidOffsetY, 530 + $g_iMidOffsetY, 1) + + If $iPage < $iPageTarget Then + If $iPage = 0 Then + ClickDrag(770, $iYPoint, 190, $iYPoint, 300) + SetDebugLog("Moving from page 0 to 1") + Else + ClickDrag(585, $iYPoint, 370, $iYPoint, 300) + SetDebugLog("Moving from page 1 to 2") + EndIf + If _Sleep(2500) Then Return $iPage += 1 - _Sleep(500) - Return True EndIf - EndIf - If $iPage = 1 Then - If $iPetIndex >= 4 Then - Return True - Else - ClickDrag(135, $iY1, 690, $iY2, 250) + If $iPage > $iPageTarget Then + If $iPage = 2 Then + ClickDrag(270, $iYPoint, 372, $iYPoint, 300) + SetDebugLog("Moving from page 2 to 1") + Else + ClickDrag(60, $iYPoint, 660, $iYPoint, 300) + SetDebugLog("Moving from page 1 to 0") + EndIf + If _Sleep(2500) Then Return $iPage -= 1 - _Sleep(500) - Return True EndIf - EndIf - Return False + $bLoop += 1 + If $bLoop = 10 Then ExitLoop + + WEnd + EndFunc ;==>DragPetHouse diff --git a/COCBot/functions/Village/RequestCC.au3 b/COCBot/functions/Village/RequestCC.au3 index 5577da8d8..56c6026d9 100644 --- a/COCBot/functions/Village/RequestCC.au3 +++ b/COCBot/functions/Village/RequestCC.au3 @@ -39,7 +39,7 @@ Func RequestCC($bClickPAtEnd = True, $sText = "") If Not $g_bRunState Then Return If _Sleep(1000) Then Return - Local $sSearchDiamond = GetDiamondFromRect("718,580,780,614") + Local $sSearchDiamond = GetDiamondFromRect("673,553,740,583") Local Static $aRequestButtonPos[2] = [-1, -1] Local $aRequestButton = findMultiple($g_sImgRequestCCButton, $sSearchDiamond, $sSearchDiamond, 0, 1000, 1, "objectname,objectpoints", True) @@ -136,14 +136,15 @@ Func _makerequest($aRequestButtonPos) EndFunc ;==>_makerequest Func IsFullClanCastleType($CCType = 0) ; Troops = 0, Spells = 1, Siege Machine = 2 - Local $aCheckCCNotFull[3] = [38, 456, 628], $sLog[3] = ["Troop", "Spell", "Siege Machine"] + Local $aCheckCCNotFull[3] = [78, 449, 601], $sLog[3] = ["Troop", "Spell", "Siege Machine"] Local $aiRequestCountCC[3] = [Number($g_iRequestCountCCTroop), Number($g_iRequestCountCCSpell), 0] Local $bIsCCRequestTypeNotUsed = Not ($g_abRequestType[0] Or $g_abRequestType[1] Or $g_abRequestType[2]) If $CCType <> 0 And $bIsCCRequestTypeNotUsed Then ; Continue reading CC status if all 3 items are unchecked, but only if not troop If $g_bDebugSetlog Then SetLog($sLog[$CCType] & " not cared about, only checking troops.") Return True Else - If _ColorCheck(_GetPixelColor($aCheckCCNotFull[$CCType], 447 + $g_iMidOffsetY, True), Hex(0xEA5054, 6), 30) Then ; red symbol + Local $aRedPixel = _PixelSearch($aCheckCCNotFull[$CCType], 433 + $g_iMidOffsetY, $aCheckCCNotFull[$CCType] + 3, 435 + $g_iMidOffsetY, Hex(0xEA5054, 6), 30, True) ; red symbol + If IsArray($aRedPixel) Then If Not $g_abRequestType[$CCType] And Not $bIsCCRequestTypeNotUsed And $CCType <> 0 Then ; Don't care about the CC limit configured in setting SetDebugLog("Found CC " & $sLog[$CCType] & " not full, but check is disabled") @@ -164,9 +165,9 @@ Func IsFullClanCastleType($CCType = 0) ; Troops = 0, Spells = 1, Siege Machine = Return False Else If $CCType < 2 Then - Local $sCCReceived = getOcrAndCapture("coc-camps", 296 + $CCType * 177, 438 + $g_iMidOffsetY, 60, 16, True, False, True) ; read CC (troops x/40 or spells x/2) + Local $sCCReceived = getOcrAndCapture("coc-camps", 307 + $CCType * 158, 428 + $g_iMidOffsetY, 60, 16, True, False, True) ; read CC (troops x/40 or spells x/2) Else - Local $sCCReceived = getOcrAndCapture("coc-camps", 645, 438 + $g_iMidOffsetY, 30, 16, True, False, True) ; read CC (Siege x/1) + Local $sCCReceived = getOcrAndCapture("coc-camps", 617, 428 + $g_iMidOffsetY, 28, 16, True, False, True) ; read CC (Siege x/1) EndIf SetDebugLog("Read CC " & $sLog[$CCType] & "s: " & $sCCReceived) Local $aCCReceived = StringSplit($sCCReceived, "#", $STR_NOCOUNT) ; split the trained troop number from the total troop number @@ -319,11 +320,11 @@ Func RemoveCastleArmy($aToRemove) If _Sleep(500) Then Return ; Click remove Troops & Spells - Local $aPos[2] = [35, 575] + Local $aPos[2] = [79, 518 + $g_iMidOffsetY] For $i = 0 To UBound($aToRemove) - 1 If $aToRemove[$i][1] > 0 Then - $aPos[0] = $aToRemove[$i][0] + 35 - If $i = 7 Then $aPos[0] = 685 ; x-coordinate of Siege machine slot + $aPos[0] = $aToRemove[$i][0] + 48 + If $i = 7 Then $aPos[0] = 647 ; x-coordinate of Siege machine slot SetDebugLog(" - Click at slot " & $i & ". (" & $aPos[0] & ") x " & $aToRemove[$i][1]) ClickRemoveTroop($aPos, $aToRemove[$i][1], $g_iTrainClickDelay) ; Click on Remove button as much as needed EndIf diff --git a/COCBot/functions/Village/StarBonus.au3 b/COCBot/functions/Village/StarBonus.au3 index 3b165d774..c5ca40d3a 100644 --- a/COCBot/functions/Village/StarBonus.au3 +++ b/COCBot/functions/Village/StarBonus.au3 @@ -4,7 +4,7 @@ ; Syntax ........: StarBonus() ; Parameters ....: ; Return values .: MonkeyHunter(2016-1) -; Modified ......: MonkeyHunter (05-2017) +; Modified ......: MonkeyHunter (05-2017), Moebius14 (12-2023) ; Remarks .......: This file is part of MyBot, previously known as ClashGameBot. Copyright 2015-2023 ; MyBot is distributed under the terms of the GNU GPL ; Related .......: @@ -18,29 +18,25 @@ Func StarBonus() ; Verify is Star bonus window open? If Not _CheckPixel($aIsMainGrayed, $g_bCapturePixel, Default, "IsMainGrayed") Then Return ; Star bonus window opens on main base view, and grays page. - Local $aWindowChk1[4] = [640, 184 + $g_iMidOffsetY, 0xCD1A1F, 15] ; Red X to close Window - Local $aWindowChk2[4] = [650, 462 + $g_iBottomOffsetY, 0xE8E8E0, 10] ; White pixel on top trees where it does not belong + Local $aWindowChk1[4] = [615, 155 + $g_iMidOffsetY, 0x33A2F9, 20] ; Top Blue Sky + Local $aWindowChk2[4] = [540, 215 + $g_iMidOffsetY, 0xC6C9C4, 20] ; Grey star If _Sleep($DELAYSTARBONUS100) Then Return ; Verify actual star bonus window open If _CheckPixel($aWindowChk1, $g_bCapturePixel, Default, "Starbonus1") And _CheckPixel($aWindowChk2, $g_bCapturePixel, Default, "Starbonus2") Then ; Find and Click Okay button - Local $offColors[3][3] = [[0x131313, 144, 0], [0xFFFFFF, 54, 17], [0xD7F478, 54, 10]] ; 2nd Black opposite button, 3rd pixel white "O" center top, 4th pixel White "0" bottom center - Local $ButtonPixel = _MultiPixelSearch(353, 442 + $g_iMidOffsetY, 502, 474 + $g_iMidOffsetY, 1, 1, Hex(0x131313, 6), $offColors, 20) ; first vertical black pixel of Okay - SetDebugLog("Okay btn chk-#1: " & _GetPixelColor(354, 442 + $g_iMidOffsetY, $g_bCapturePixel) & ", #2: " & _GetPixelColor(354 + 145, 442 + $g_iMidOffsetY, $g_bCapturePixel) & ", #3: " & _GetPixelColor(354 + 55, 442 + 16 + $g_iMidOffsetY, $g_bCapturePixel) & ", #4: " & _GetPixelColor(355 + 51, 442 + 23 + $g_iMidOffsetY, $g_bCapturePixel), $COLOR_DEBUG) - If IsArray($ButtonPixel) Then - If $g_bDebugSetlog Then - SetDebugLog("ButtonPixelLocation = " & $ButtonPixel[0] & ", " & $ButtonPixel[1], $COLOR_DEBUG) ;Debug - SetDebugLog("Pixel color found #1: " & _GetPixelColor($ButtonPixel[0], $ButtonPixel[1], $g_bCapturePixel) & ", #2: " & _GetPixelColor($ButtonPixel[0] + 144, $ButtonPixel[1], $g_bCapturePixel) & ", #3: " & _GetPixelColor($ButtonPixel[0] + 52, $ButtonPixel[1] + 17, $g_bCapturePixel) & ", #4: " & _GetPixelColor($ButtonPixel[0] + 51, $ButtonPixel[1] + 24, $g_bCapturePixel), $COLOR_DEBUG) - EndIf - Click($ButtonPixel[0] + 75, $ButtonPixel[1] + 25, 2, 50, "#0117") ; Click Okay Button + Local $aiOkayButton = findButton("Okay", Default, 1, True) + If IsArray($aiOkayButton) And UBound($aiOkayButton, 1) = 2 Then + PureClick($aiOkayButton[0], $aiOkayButton[1], 2, 50, "#0117") ; Click Okay Button If _Sleep($DELAYSTARBONUS500) Then Return Return True + Else + SetDebugLog("Cannot Find Okay Button", $COLOR_ERROR) EndIf EndIf SetDebugLog("Star Bonus window not found?", $COLOR_DEBUG) Return False -EndFunc ;==>StarBonus \ No newline at end of file +EndFunc ;==>StarBonus diff --git a/COCBot/functions/Village/SwitchAccountVariablesReload.au3 b/COCBot/functions/Village/SwitchAccountVariablesReload.au3 index 9f3993de0..ce1aed2ea 100644 --- a/COCBot/functions/Village/SwitchAccountVariablesReload.au3 +++ b/COCBot/functions/Village/SwitchAccountVariablesReload.au3 @@ -20,7 +20,7 @@ Func SwitchAccountVariablesReload($sType = "Load", $iAccount = $g_iCurAccount) Local $aiZero83[8][3] = [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]] Local $aiZero84[8][4] = [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]] Local $asEmpty[8] = ["", "", "", "", "", "", "", ""] - Local $aiZeroTroop[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] + Local $aiZeroTroop[$eTroopCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] Local $aiZeroSpell[$eSpellCount] = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0] ; FirstRun diff --git a/COCBot/functions/Village/TreasuryCollect.au3 b/COCBot/functions/Village/TreasuryCollect.au3 index 27bf76acb..8b146e779 100644 --- a/COCBot/functions/Village/TreasuryCollect.au3 +++ b/COCBot/functions/Village/TreasuryCollect.au3 @@ -44,6 +44,14 @@ Func TreasuryCollect() SetLog("Cannot find the Treasury Button", $COLOR_ERROR) EndIf + If _CheckPixel($aReceivedTroopsTreasury, True) Then ; Found the "You have received" Message on Screen, wait till its gone. + SetDebugLog("Detected Clan Castle Message Blocking Treasury Window. Waiting until it's gone", $COLOR_INFO) + _CaptureRegion2() + While _CheckPixel($aReceivedTroopsTreasury, True) + If _Sleep($DELAYTRAIN1) Then Return + WEnd + EndIf + If Not _WaitForCheckPixel($aTreasuryWindow, $g_bCapturePixel, Default, "Wait treasury window:") Then SetLog("Treasury window not found!", $COLOR_ERROR) Return diff --git a/COCBot/functions/Village/UpgradeBuilding.au3 b/COCBot/functions/Village/UpgradeBuilding.au3 index d2ae1b3ae..9b76853ad 100644 --- a/COCBot/functions/Village/UpgradeBuilding.au3 +++ b/COCBot/functions/Village/UpgradeBuilding.au3 @@ -23,7 +23,7 @@ Func UpgradeBuilding() Local $iAvailBldr, $iAvailGold, $iAvailElixir, $iAvailDark Local $Endtime, $Endperiod, $TimeAdd Local $iUpGrdEndTimeDiff = 0 - Local $aCheckFrequency[13] = [5, 15, 20, 30, 60, 60, 120, 240, 240, 240, 240, 300, 300] ; Dwell Time in minutes between each repeat upgrade check TH3-15. TH reference are game TH level - 3. So TH15 = 12 in this array. + Local $aCheckFrequency[14] = [5, 15, 20, 30, 60, 60, 120, 240, 240, 240, 240, 300, 300, 300] ; Dwell Time in minutes between each repeat upgrade check TH3-15. TH reference are game TH level - 3. So TH16 = 13 in this array. Local $iDTDiff Local $bChkAllRptUpgrade = False Local $sTime @@ -245,6 +245,8 @@ Func UpgradeNormal($iUpgradeNumber) $aResult[1] = "Giga Inferno" Case 15 $aResult[1] = "Giga Inferno" + Case 16 + $aResult[1] = "Giga Inferno" EndSwitch $aUpgradeButton = $aTmpUpgradeButton EndIf @@ -272,6 +274,8 @@ Func UpgradeNormal($iUpgradeNumber) $aResult[1] = "Giga Inferno" Case 15 $aResult[1] = "Giga Inferno" + Case 16 + $aResult[1] = "Giga Inferno" EndSwitch $aUpgradeButton = $aTmpUpgradeButton EndIf diff --git a/Languages/English.ini b/Languages/English.ini index d81fff3b17652403e8cac12a88c103f9e96af449..53c0d23c54adf05bb9fc557526e578a430e6b5d1 100644 GIT binary patch delta 624 zcmcbxRN&8QfemwhiUu*{17Qh+0z(i(CPNBCDnk)N&E)=X(vv5A`N2o7$*cZxP5Q?(x#y$C
< z7;Psreixq}#>FDC+2MZ#cW@CyBG6fR48cG$l_4F7K_-O&9SIRvK#_sC045jAPyke) z1B57groTSMEGrH&0_24PG|7v;jKbTeaWTHw#0%1&2~?H|^pV^2{d1YbrweRhv=K%Y zS72}h8d5PmaSLPY_PV`{>sY2MJz#X1e&Hgcz~nF?f%Zv<7`IP4#I$L_WUKc|(=(Ep zWu`m1FdI$Zk<6?${YfaZ$n-aj%tF({Jec`diy1N)@~1l{Fx#4%1AUnXG+6=aOi%=Y zTmp%p7$7?aC=c-hTyA=x2eU9cRB-y=WM3V6*9PGsm z3P4Ty(+e}1#kZw18_7bV{o8N5Fp@iW81cE+qP|+Z*1GyaAVuq*v7`#*mm~5Q{7F~Q$1b%WBTV*R|l1v z1yz_eV1wdD-^W;h{GYQ2LJA583J(IZ0}TRlpUMi#36@ooY75E=#x0jx0D2C~E%#s1 z`9JchDPVMD=>d+NLNGY6VHKC zU`D}#NWlt#lq4vr{m;$@%W(czhc+RcKO8>Z!JFHfMfciEWDy)d!7z^^QRNZ-gZLk$ z{~-SdaUGG5 zjj#mAsqe?3Jch3LsTiYhd8G}o?Shgb)Ui|6cHc1VXmzSrkgW`z&)xmPG9heEJyZF8 za^h?Wno0)^pDbZ{bt=G(9o%G}Z1lRWV#lmwOMLizJfXHMiF@v!Z&TG%ef4V;(Z>y_ zzhYSa{bZ}&=}5%1DINmw*#3~9ua1$v%Bz2OMqF!7Fcggq%z|cW0w9ZS$Bi|(-gr0n zah74M0TdLx)DyEGzwdw>{7}7n{TY6)I3wk_St|w-aF2RA4Pu}hv&lk89>M$gQb4Is zzXjC5PKTobpLbbs^VQSkS?|&HMIovbH*+KY+S-1VjhvqiU&d>mQ0cPMGofA{JL~;{ z4Ln~?QIDhay^GUADYPL!y^~Eruzr2DA@gx+Ic8Fn)g-(p!cVU{nh*Cz!J4N_dhC!~ z0u72`mOr*e6%-&;Xj!?0Fbt0fK*>-=aW@^_lS`ZKZ45aH1KasRx;?Wh%aHBu2{qEr zJld@Bu;5ZDER?)vlbH^rB{qGdh3BQuAz<*y5*q8T5^0^Q7J5wdeJJW{l7#-2u&wp&a#bMYB2%MD}lbMPoba z{o0b(NVq6#dy(0yV5MU)CDdgXCe~;RD&0!yth8UdP z7_10`^c|)9z|PlDt*69#&k|XwMDk7t{%X|p2*MOnV=v)?R8piUmcc!HwHiHfsYqP; z8SF4j@N*GaqqE2e{0RZ%3-BV z19egrmdZgoToiZZqn%(tvo&4~MJXqF%?{`9Mh92s6# zyL(l1G@cga8E=&&zh{AB5>a;aS1YtsTFCa`J=ZTrYEj90zg!pF z0a;s+uB>tJp^wFvfjIG7YC~u6zs}cs1rTaSZOV{1VMPB(=JYylO5(6V5IHctxA74r|U)TgVD*$xSyepfHfA1;pJM>F|v^B2?qx*ESHk)rTu2ND1 zSQKg@fs2dzzi6?!To;~{hCxN9yXTxMdF>|F#HXLPe5>N?-{<}G!)rM#gZ@Q?IG7aLA zdp?A+2iR(CVQxV|5@Uwd6Ufi>i(C3wXD!;uLkK-Wij23ZrDbkTiEHFrHv#{@q~QAP zPo(+!e>Cs5hUEw!Hf5Ug1^sF!p#~kHkySyeGb-E(Y{njnBwM?<_xANXA(3W&{H(se zO>0u8AkRFU%3jVCv3g{6zSgk4k&KyB501rrQ9F)>ufeD6{t82?)C_@Itk{r^=iZ_w z(n+g?l}W9qacq%a&|cegIR=8t7oI_;H)!Z)F4203mq_sW-8)HTrFB?~{X$UcA+iy< zkv`c-mt7$4nx4|2hilixWJH{zFt&0b?$T=x9F%5h>7@Ww^sv~5s>6=01gQ3Z2yxL!^%T#pS^mXHEId-aBf?7<7^5{P5S7Cr(MJ%mYn>=;qb- zPWk(Xa@VDkelKxT?7*3*E2)`c0GP+xDP)W?Hha6Td!JL+3OBy!c^qk66d=RgV+C88DfIQAQt!lM`7_ffXQ=5Pdqq6FaGNyg!I@wxhT zdp3+}&P$d(4;X`gl$7s}qKg5lE)Ku}w7N?wJRJ-m{5F;$62Dlrgt~Dhy^baj%xtqrOXc z1FBy$1=FJ4I9y`6Xf>r9#tehs+FHF0mOfly7UM9zHqEewW5^Y|y$DYb`4)=i=zv5m z>^WpAFlkAsZM>WNR!~HEMOSb%Aw9b(AgMP-wFd^T*{um>SMsyMZheA$YN_s-EkRD6{2vV>MAa|O#+zE@8BL8L!eov?)b$i1y2iPj+MH-Cdk;+on9uCJi!*)i zZM+R~!P23d+K8V)MfKARWYB+)#H$qksuPwJ0zNrQR$OwRhpuqV;jY_7?uY2RsVo0{ zF-D784O_DdbQ^wlU}4{)%B24S=0>A?OWJ8au}Te&!!Hw1l(Wf~Hvi%IUtFxqs%2dy zj~n7MSz@BW$a?viX+wep4`xCUigsUgzK1OEI1@mkQ4k+P&vQ@Y3MwF1(zi1}I(Ix) z0GjfYxMy^UP&NL}<`punMRMs)ddB?9JAjn}>nIvRZV&ZrZWnsy!7;%64zHd`1X|8T2*pjK@C)9-cCA0C1^U%NpoV7yxS2hRvi z+muyr4Gh11;=6#nvL)5&DezGSRJmWHAs&bgDzu9Gw`DXDen-M`V7X!Pe$V$rb_wg6 z+Fs@wZaT4CY=2McpJvnG-MLJl-q6MLQi*z})swn4>-o%hVTx=bGsWX=yDi}Yu{UU{ z9FcD4U9f}T5~VMmiia-9j-PFlJO1MFpt(<)UfQrS*?}@OTwXu^ks3?0iqEjq^5d`t z*BACcgJ!zjsX9miFoiu5Q@TL*e&^A~-nj9e>b1X;L;EkDYP=txUa9>Cs5v4^St5;E6(A1LjJPt(jo!77<;hB& zBs%9iKF7e+D$HP2u zr3BB8_%8b@=rpeEzK986)Z;UZSzEg3(b{}>jNq#gcNt63ya$-a{jAn$FHc|W^VWMDRcT_iZSc6TXhO!8L|lTz?^ zdU`BAzsm7-@j>742XmRYBOeQgJeaSn+gtvc|9z|ECktbjf!`qq1SFwFG%9Dzwlt^{ zrP_S=wLA6KZdZn8JBzdNzmC=B*liVSKu}#ExfQ42f|9knpst_Ceyz@HDnE>P9tiDH zbiZAtxPY?+jAQ#Et(4HAUT^aH74so`79(O-IyhM>?Z6r{=`ch&g@Iy=C;#rrOpk!Y zA|gSZ@K^0?RzOk&8tG|d#I9YC;`?bw#Wp~@ASqkUu#YP5!5mwM*p#aK3riLIvDlRcz$NSl)(PbMc(qftyxHHGwMybzbbkt3HsTb zngNx?l2SS$m8bhloRYEQSA#`^{TyKkC!gqkC10`xLF}(~KtS79*Lg`zCwlmo34fVO zPm)4XEgdZ|yK}@%N3^z!iaizzXP3Kwm@Y8oF? zXpuNy6n-BUieNjuTF+#3L7t@%cgx@N{5k|$XEHoML4Z&H$V9OUX{$lWf$?O997M5} z``2d#0iGGzkIu4yNH;~#iW2D7n@rYKL#GcLs+*4I3PzWV zZI(npy1QO6$n)QTmF_xeSz)o4pc_-iN($~wRzXFPFA~>`y8US%N_3~&!yx3uHinV8 zU2h@BFbBHH(KK>FdK(i?15uuI9DXvSAJ-F%Z;vj5^zpD!tNKg1ON5bO7P8J+83_aus6tqqaXn) zQZfYYFM7`bJJT|86AyiU-11AkunqGe1l}^=f={PcN%Jl!%7||o!jbFggMdNmxxbe& z{!kvw+#$GFta3_lVY6`w40L_^i`_v2bJ+g)`j&ZYFAB6%iq58w2EznGVQt}Oc3agG zWX5*i#1{u{}7;8$+vNg2663=Gh z*UKp~|K|Ph9ZFLK#WPNh29x&w4pZGr>SEfh7J*j40xo!0(l)L2k=q%1jRt*&DHQ*7zaKhh~kGA zc%@lCUjkRrv1A#L1WQxP$DwbFGSCfTrTtV5XPe+ddm7JJ9GvLqY5nD1Je>l!Q(4v8 za2ZeFTM*!a>K71K{$-}VWvyl|tF81|2HY^ETDm~R{9`ApvEm|OoJU9rs@4u8UV*+Z z7R))>dt5zD>dMa%_^27u-vZ8eRoKV17>ilWF0?L?{Ib~;-t}v>#nA~D)l|>tX%pb{ z-Pc_-ai2PKMUVuNoHpT;SDfqoK?iD(nwf(qe%aY#iY0-Pi$?^#RO0>|6JfwB+ts1)sjN)FZCy`l@KJnr|sTd+QxX+F3NzisH#X$4hZG=v8)u%gDT87f8d$U#{ zfK{$o&<_*u9WLEX{Q&;UPr4_=qY$q>eQJu^9~l%z@bqR2oNm7_MfSU?;^oSQg($wapR@htv=Q#pJ`mH+6=ye?CB8s|125z zk_!>}a|p~Jssnpu>`ljn zN!rn1?#7n>&XmNwI^G5B&Ppz_A3W2&o;mDh&WHrN<4K4m4J5~UG<5TN&eEg^1`dLh z8YK;HmcPonKc)4PjH(Nw$5#{Ge_e zKlTTyhg>-&^#j5J9NmSmD6kL4%!8Qx(eNz9H~0cP;xqgzgnBEdReUoHf0Itin86U3 zbLpKJcW7TN)qbNtsD`+%EG<69lOgm*{H2iF;-*8x?kE!6=vhFJt3X_n$fAdOx2f;$ z(-g;m<4q|v5kw%Wm`O}$942+yDR5cnFI!$3ij{z983ZQti3L#`HaZ1gC*iCIcigq> zes~J)T+zh+(s#2I-4(31y?*|pMsg(I!VhG1HgM?!&0SCkU{|as*ULc`v;oO{>Kt@q zR37K=-qZkb6%64{CFEcAr(2;9kk1#75sclJ;TGQc4aC!OMo+~K37j^ogedjWCV^vaF-RQ*#nM z8VOEc{yvp3B)$w$mPl}lk0=d7Z8w>M%kFPht2cLJ_lbIKjuoHRk}P@FYRI##W$g<} z*N=*~%}S3$#y+#ULf{bz6D)2p{?r}#2gR0J77v&ztJI)83EgX;WV+M2yWBcZFv@Oq zkX)^fBSBu?=uZ<2+_o$iT70l9`__2eqzSpWI||AS#Q9x7T??lnmDiC7MeT?;m$X03 zNFhy(XlE-V4h%dxsHs=SANr~FDWfXbo3u;RlQ zgSH96@}O~q(%9ML62Y9l14iTl-D*Gxj)#$!_U0f9-B1^{iTyH>d3iut@Kt63Lqrhm z#{I!V?dBokNA(+|bCp@B%f?wyO6YMV_9LRqa z!WD-=ckzF;F-Q4(*3i}jS)?{!NURMPp+}DVTaQmdkkS5u&0tdGb}!WgG0=y%JD!1O z%l7QZLL`6qhIgXOvZ;{#mF$HlPvX|-IwAiShV${1a11xX^IvW}MzrVG_y>K*xr;&P zKxEnqC6$g9wY91{H>nL09H5p5(3MOEpRK zSel0M9Hn%uc<7<9=Jp2sihN7!Lh+T3w@S-9c^5mY0ask-aw&GZ=8M^nBblmQfQz}l zKuon_;l4Widg;&W8&4&G0?>))3?`pXF7r{^j0JzlD}2+ov6#Nb*+h%S2CqjBt&M_D z+zapjW~hEl{^^_vC$+5PAL*e7cin?GPR&N%v7>3kP~Z@kXZPrqI()mBUKHSzu|SP0 zZ%%K7U)yg@{m)DodRAmMqF$S{7G}~sRdaILc-0<~c1?l@(kyMD514-hr?rjeF7=mT zq@AKPhD9Jzt?_9X^9kvzWO^Zc%;IdE*ZLk(5g~g`iS;j4!s7~X2ZrCVZ%vX;1@3oI zi?MqZbcxgOFxR$gC4C)oAXI5_fQhYdo)x=7Zfm8> z13z5{6DO~PIsfl@cGIsLBEDhz)g9!pVuM{r*)6tKji?t)U=yRx&L<1IZv(1Q%G_JG zQl1-H+`G1w+=q@Ca$TD;7|PS^TBM)9b-uZSJZGn!$Zx4N_t+LJeMKh%8=uND^1dD- ze=`*t(&frsNq0MbiHVREfg{?VHYwjwsEuT!mtw1ZgUqTa1H%xhBryBZoMVt*%SLx} zk947IlkWTwz~YB_t|W%-n4{aY5p=2#fP(M#?T$2V&n1gn)WlIGnzv0+Y#lNkR;G@LrwYJkG>&EX~s~6!8G19FZc{o zulua025PMj#||ZHBk6@fbW9Dd3stQgpMb=^*vrfVT%!IyQpc)Kvs&n9UX==aG#O5d z02h?dltk$CnPj8%@*}m9g>688p8JXP0x=S!uJ>wcotC_7tB0PRLRkX0U|jqT_l*8H z(Y^{p6>tkFxEr$iUNZj23T030e8zWniCF*zW#FyMJx!;V3pKKlWtZOj3(PZFMQ?p& z6;6u?xLxG56Txq#m=Z_JPQ=lds4s*&zE5LmQ7I$uPv$8^mhThOQkbzssa()IG(3Q= z<2rCfE5 zp1w`~>)DEmt@!5=8NHIOQDN#4M(&WJ@#v=<;KE7JP@~)ka)6igTStX4FGom6B{X`? zZMz(^jO4biP%HP1{E<=(b#djQSsR8V_WKT(If^fZ-4FstL!+gBvj?-vUKe~{(puFt z7m2xnAg7LV5dGRUPn9~Oy$teUyj+1YGZ?AJqY)7k2O`ll%T^rewCBo^sQq5-dXhL0 zI2%j5a{EQ*>Pe6gU*@(FkZsSVicH~S7DbCFexP@VOPD1IILk+vu3!l- z5~qHDRJi4z;Py0D@q}cdnsA{0{E5FOE+CA^1UVpQ-A1akh%d3=-LiLg57Q}h5laR; zgr=PxEH&EEz3NBO#ddLC_s3(y0 zJi*BM+|laN?VFM)5e%;se;IAgTq1M+@!L2+?_H!8KcM&iM0M;0kVdESm|{8P>+K9> zAhxaC)Y5fnwW<>Xw@#J~+eZZJBTah4L{RdHB}l0|J`hiWhZ7E5x9E78mwFc0BUvCh zwCCsUad5K~ERe-X>d9V7uKjukO7u}Fk0sUO5XsD%t)ijR>!miTL_{|b7tUQl>WFJ1 zo7vT~4HbP^x?dW|7H(2r*5{7#`*K335|PpSd3X=d2?p)tOV_ZCap);dlE4%R8?+e@ z1bY{oVj*5^9=d^B-lJ*yG9X(_rY_A0!yeq;ybxl-rWApDwqFbaw+#31Q6o_U69-5)wu5BCop%A;EyX@o4 zb;LPD*ov?Q+Z8uO1#*fZw33%C3t?SCuqxd!e`XpT(B$Z45+V-s&DK0V z^LZeS$C0{h9@f>qSs|{?G21sTzez~ECIS6wJP3QvRc@6YHLDl^=g&WY09N9=S$!FN z#_D6&)zvsyMA5=H$7R&{;~#{fe<7mt@i)mlRq^G$OA!hkh%=8UR_X6ib+6DOw2^dm zf5Q>MGhv+zEeFw|luc|AFm=aFl&U?cO}k|AP&f8veW%A#4`KX_D6D@Kz>WdJW&^UA zfFCaAH+Ejoi9Wz59I*9C+6!GASL6_>^@o*U*I_ApTJvwHSYJqrvJ}otZT(HoRkO^n zW`GS9fwe)NUP5s3EX_b2zCsCw7xucdktk;22CfbPs$3)qz2bl=rE?u+F z&YSyZ@6Ow-A!1lHD%6m-!Z@m#(loRyXivH@xu2s%M=AiduZCdfV(iu~l_iqjG0_|? z%t~YlagwlBS5q|h$=^+UEUw}OR?!#pt9=wwaC1E1013&FWt%4xo%Q{F6q;})1Ow72 z$mj5|I%Hy{Y;PYV0+Y@1`{e+G1LEWAE6x%Gud9P#D_+o60na&d((re3)}$W0f(uFH zWt$H4nJZA`)zO9$_Y*ZaG@Duv?7SClVMoDdl1W;4huH(%|vd16%JaXK9~V<9*^ zw3c*DhokJhkRBkS>UCuD^otd1%nz$NwhU3Xj@qqe`DF^uSm8NYptt^U0Wch_(;HA% zO%Uw7DyN`rb>BkruQxjo>GTTcpUH{WxniP$r zs|waQN5Y^OIgYE|x@qhobG&3Tg9sAtfdF8&Ef~0z1;7(wE?$MTw|gPlzZsC3;1@`s z!9p__>k@l0GO_L2&iApV(~|7^AlfNb{OPCs>~F8F1;^)^PGw29slD@GS?X}ah}yya zWrCBF#W9NJfLO{f3p14)7}F?GdxyNmQR9aJE|ESWVN|o4_4#s+5?D9i`~93HwtxVu zpyt$WYDnJ=@?;1+Hq@-H7EfcAwX*SupCWk~3!1ody>fxQ2IIQR33B5W6|o%yll1piksE?}ePo~ggw1R(S;f$% z;W>L4*XO5e7nQc*M)-&9(+mXDZQ!Ze!hr>s71(_A350kcL=N)(5a+FqYAzP9vbNNQ zEc5f@I1sz9hYfAC=kKY#AB^}_ag$^7=N%KCAd{L6L#*!SNI~Bz)zUMjz?Rs>7Eud@ z8kIPS+RWCTg3UTh=l1TLPf0e^%|?0IZU`uSOLxbhySNL7heSL6p@f*hC2-d}p^2|P zDJ7(CZ0DhC6ROpNe!!VYZy!E2E|WnZ*P8uvl+I{`G5hrG>%$oM;18{?;G|bRY6CTi zgKCKNDXZjk{dyS}G;fhtJYiosusuduW2QzP_YwWwOZeLW`K6%i$3lXFk$4^=<5!AlPHxzt$rn^4kd@B^)@nk=crLr*!a`79W(nT%ak6YaPhM^gGA0E3!p!#_GvyLM~_d? znCR&cWGpf=(jZBIrazsx@V7_ds=eeJY=-m~{oa5s@Y58s7|!<{L^*RI&;&SF>v0kk z+&&lK&0L5dyEINTA60&0Azgcx%{?z_38LiU-@7gg{0*^mx~M>AuoxCmnHxY;vvT)m zKP{n-Qh;PscUFb<&8dID0l)>E>ckN&z{MdxagI#X z$gR#|DqYJmU>RG=@|J(!FRrI5h^$5|{t^-$FjOKVDwgQH#J{066C3Y9!xs*{ChQXK z@XnvUF332hVg3ENWU2?E%>%#wmNo|S^T`*Q>Z!USV)brB;bV~DynvBph_V=_UvN&Z zLitwl{5mEg8o)tWan4{qHIloJy6t$==<^-PiLloN*N|9IMf1UNk@L5XvYM zOt%dB9A|)nU&D9v^kxk?lANQ!pAV?>q>6cLWrLfpW!H>zzC5R5r&TOUtwyN_0U{Y^ zO7_#L?qb9UEgX2d~G{ zc=l~bfr(yCZG#pCF1=UtE>4nSb@TIXROzMKQMp=;aWd-7nejgo@h^%`Fp1A)18WL+ zeU*Zy)jG#Fl&8b)&+NGW=*$z{(&EaRXuMY1Iq&%UkZMF%4LngM|CFfY_PDJtH}WJ@ zgfJV)9}5#QK)0bW{|d6wc=loA7xf8$E_7ZH2e^B+5R&^S&fTS)kr!cX=>9a}6jQH1 zA2-R{$3(i3)ChwoOLVKZxE7VUl=iJ)Tz*8=|1~PDL!LOOsCr*{PtEvL5%t)VP{YW8 zZqi%gExgQ{+r9~JbFFO9kof_$r_ z`Xh`$+XY0a7GI8z@xi+6aH8Wc9TUG7_V_1yEO;jtmAX|vXRC^k;!mVMUK|bD#k`&( zj^o>fM5qS&D-{OvFaq~60W|j?KWeY6@Rs)Ku zrT*p<(Sv9DVV{Xz)%Ms!2#+igU!x^7S^X!4mzlF1}JZ8-s+qSpB%fd1@_LsBk5E5KF>N9tK+ zD%a|XPY*VVeQg+DFY?09Tlb{_mH8CGlv(Is;oa|Z(i1GOKcHh^{pahPlevzguSGZe za&P~p4IxUEf75z&waN&Kx^x=_akn&pmbHXn6V`z>%6A#ULtA{e=C+|ocMpp_Qjoh` zw}sc1Dhm_^vlKfzZ@sQ17eG@@D=4ZM4^uU1>d(tN8KK~&@ccZGi8bRv&UQS`WLjMF`{Xv6~SAyTfs z?+PoZaog8k7j=D4=y1L2h6lB=I_ICKf^Y$44z1GJ?>^=r(dX>v17dAIS<;W>K&x#E!$ zaPo?If0_T6T>;dnehSG7ST>lbLZlE;28$-9Q zZTS3(v@DU4Q|+B7bYviQi{Ns=;t$wa&cc9qQl=L#Gve~voV^rq(Dfv1eAziw!ZSgB3fn++^ys=^g$%;AH1KtGN7_y-mitW-nXrC_Cp zglz9}NmN|p(RF~fv(L86Blc`nu%mBR#J)(|Aa^FitHTh-s(Hn%%45?&;cIb;iq>x^ zD|w*b0=d}`i#QO1JSu~1eSTDs|4a=yz25T|N(-sdS&M&8XQ8u^BJq~T@6Cg8vqGnu zWcJ}fgswvTwtr4ps2YSnmN=sR8@b)#51nLla`e#x|92W1VTk^rMYe@C?2G^u&$8zi z51#yHtdXB}>gg=1H=X|o%(fJi#bfQ&d}Ui$Qvz#$#V${gpu=(8t}haeBlbGrlUW&$ zJ$=h#BlNocvU3>w=Se=Et{Ya`zz$VPVO3CaCC2~S1EyzqneA?I4fgrB1LuX}-OIcn zOucYTj}Bz{5BxbITuq@BJ0>L2(e^fj^ z?~Y_St3^E!Zl~CSgL?vYA5W?P#R={S-B?8S4yz~9_QNG+$W{inI%e1 zw~ZzMbWU&ss(pBOpe@|U*G+*!ygTieiL=}v&2XuxH|35ZF*`);qaQc@<%s>iMR@{= zFV|+Q&x$vC$W}>aSjX!yAmGoWPD^kH&6U+XtjN`1JHeej$R zFQY=z@o9c)At8_gJyn$3kHTfl$3=*dcFL5~E~f30TKu=$5d-KHe@;YI5f%U4%ZMTL z43AWAZsbFJ=k&Az><$huUMAqmSLKOYgpp%tk!#Bk2CHO^RrmMLF=VaE^@DuckyVga z;Sr5&Kd8>{3SZcT!5_5MGhGtn>DtGKyJ3*nzaGW@@`z~y4KUxsEFfxVBWS|XlynXs z75nrwEsUH9)3Q}0ul4C(aCE-+x*E44y+{hwE|a^Ddi<^_NtqH}nuNrOX6Ynf6&)|! zkO<)-MMg+~3qzj(XChMEmUJjIuk6V%inE%DH4tcbc?SZhlylUJ zrVEL{;&Vy1V?=)?{H8xf-Nx^c&`S}5AlpIsp|ul3a6@LrVVi1JbZ<+FITa})#RZ4x zd-fot^l$(>h<@}Da4-wj^frj%8^mx25iv^*Rz$TVGa2Jbo)b7#j^b0$bxV3{MZ4DN z+No~@Fv&2t{e++`I;b&?3h^rHpbGW@I~KerIt-g{e%K);!z(qA_2g^lk4=NqF?hF; z@|)nQ{o|l0Lm0-}^b$cDru~&a=*#w)|GqzhTQpN5i$=4r@JYQ9_;-5%U_4txro+)~SShq=AXtUU7@SQ`Sa`=Y`EG zfS^tjokQf}Z1|1G7H$*Uw}oaP*wF#5>~a@Ge%d@9c&%qFFaGO*mvs>ewg9V_l=6YT z%!iU{?2R3RHHtr$$;ncc=^3Hs3lxgYMXiZaebMx2~;PB-MA$jBA8 zdj)g;qF@fMaLV2fSCAz(A{zKg<}3&Xz$6K`p^E`wg~#+QS=P7T^>tC%)Jf;ws3DCB zBpyG=M?$7wlA20$1(KD9L~1mRO?`^%i<`bST4$J@4W{6J=HC&L1j!Nm0zZY37j+U8 zm6LGe)=?mU7~Bi3)tQwzFH{(Tt8Jn?r!eqSd6u3S%~ylBm$aKYh@B#8)lk0+I2(W( zwZu|DJvm4xeB7qLT$h69HVTg8DO}RRF~+^K#k?5Sx5zAWDi)!wV*+`jI| zAcBynWARMF+y$#jp-G6-b}0hrvR4zhZo#ZK>Z;~Ht;sDM%_dgMg`-Y1pbaw(idvrv zeboE{RM@Q`m@@d#9GRZ!tMcM=>~mj~iiRddq%9KT%;Ae9LE9E};9v1kk>B)tiL9Uu zR-M(sIoZr#r+c+pBq@}3sx=?EkUI`~lF?ud12v{y^8+2rfK(CJAN}p<6527!%IAD2fJVM3bj}Nfo3B++T)8sQy};>fzN^7Hx|lC}8DktTp#01y zy^tfvlji}SNi>DryWAQW#!Ev1Tc0<6q^Nn|PwiF%`=o@3iN!yrs3_xnwJym1<1tQb zkB>RmU>mNijzJ*k5sGw08vW6cot^hGKKgY+Wiq%k<8GL-P{Vi>fNf-nQ}q->;4S${ zWQ1OyC-CG6Ntl9;+?aBOG&|$wTer+Xiq(=RJD6p4>@oU$V91z%UcWcwn(=z}CQF>B zN`}kGd%nQJF#JKuA-UjR;a*S7I9%gUxL#1B8@gi=Qm=1dozFx&;GNhgKWF^zfmLWTxiIo2=G&TPB zufNqc-i8%|(mV`*{L|TAOzl<;6`szzn;R#REz18S=;r*D0C04V3V9xj@$MH{`l)|F zF1|x{IuM#UTdQ~)?t!V_f;!i02Ssj&sc{&J4Kc83Ozkz(!CEu-P2884R|D2>FF(a* zBlFQW^io|CW@xlv|63+4b|0d~`Red2n=UQpBi$Top{Bw9g0OxoXcaOw$$(><@=fK- z?pY zq%B7!X|EP-Wb`zkW}&8Lc*0^1VcX@)eRKJjGBEj(1O0LXk4auDnX3}J)gD-t4jzgF zc;)C1Jg~;^U)=lYRNs^-=f^%Fu@spX?H`;kUvp)1zoRkFMx<6kgAf001s+cChfnAh z0IuoqZK=wi3lqFDUbbqHSQuvC1<2Dx{2QYHlA5wX4Kxc3@^n!+W!eq9ySE3bxt1hC zg8+{aP#iJC{fkL*FU_-bxKjZcX@Q}0n;V3CZq*jz_F6WvH(JWSSj)ANap4`&Qjbaw zEf^Y;tp{~gZLjU=;D&g=RW+oTE5R{ub^F0OB;a8-g3_A&LKM*-!BRV-n9{chkMQZP z62&Lq#^z(pLOh!v;v&H3;LUO3i=w?9$SL3kM3+8Z$@sxF*_WV;!S5k3qQzOURW&~m z1^agw$%cO_zr~AdI83a@{%-PUXcc!T)l3uCh!_`0hJ8S`MGr6e@UdlZStej z6xN_QutAQ-cS32blcGyX3L)*#qWYKAn*f*(8Dspss+Nk+TS;=kO%#*#Wb2;~Cf27u zAk~4>?=Ks@)rHhzW;;#(+6dyc@o35BR+wj4zl=U!6K3mY4W|kDN~g}f7tB#t#6O}j z1&uv0DrIkX?~IO}zS=F%AE{L=DT97azWUu>oDK*Q|q!drTdo;sUa`!3W!o~F10 z-2vW;&48aYSeOJ?FMgNx8n2!MGf+e%fZ~dQicW6z+1a$haDaRKX2oTs)1A!f*_W+S zL?nj!>>eKx$C)wIeY`daJORf6tmSDYR5X!N97$PAoLfvrZT=WLfqA}K%87}iJ2q1@ zhNIlhu=Z-Z?T2#TwFP>xQ#kHe%Hvk-1M<#+A%HLbr^vn7F`d7^*C5dQd|mGhsB(b7 zzbO5HbAPLMWZ;$)F#0tZmU^{ExofaeQTb1)-N8Z(218KNgq?RzQH#7Mb$5MlzVY8-eD)V3miqm$gse=tc9YTLF zO=Z>>p@jlJ_qU`GM`KTHBE1n9)`mQ4xoQb@4Zf@y@;ZL>?aO8adYOmEnxiu5hsOl$z*|L|)IX}~iG7wdlj z1@d{8?J#Vf?zJ-++wep0r@EJHSh2RpAK{PzaZjJ|K&Bw>k#ZMHP*BdaKUAg}$LjV+ z7;JC&{>ZzLyPqCC2v-l6@cZ3nq+$$44O>+F$W2!1cEf!4;uYA(p30ikhL?gg-9=tJ z^5@`C2xbydMmKZAwF7jozL9^+Lc+_u-hD{rgt~$DQ8Wd=3TIs)P=#qTcHHwc%mhaB zeV|$(Wxei|Dic}O6!K}Tbvty&^G{k*&2h{k+z}zP<@@htBx5R7xnNg7*7+cihjsv= zif#GXys-jFPOKYu0A3Cte%4H8RNqc`FfGYrR^NMKx z@X}^9i3Vd)1jHj6{GE$M146JcfLtA9m>-&um!FbtFVzKU6-aqx2YvGiJoX>3NSbC_=!*${UIVJZ6a9ZehGhQG&|BlC(I*>YMKZY z;1OjYEOnts)#E=C;8DLIi(}60Kw-W4?Hg$wK+_DJtzLSJp6V!F8=LHCGl7G@qJtJw zTCLQ-KwYn25$Oxtzu_TM7#}|Y-nPlAZZerUJiLE+4E=6_guAb=3`b~dHJD`8%HGLy z-8;pb_($`$-_Cyt4m#^2C-(-QXw_Q70^VmSu%JxCT9_}UO=sAQ>fM@u&o=7 zCqF9SCO|w}U-1LCHusZWOMRsS&EFH6*aYPezj!hDGO2&XZJ5(G_;m=5{954E9ZKK3cZ~Cb=_RP~*ZsHdV)#z`C7`l7Y!BLyphB3m#O<}IPW>N1M@W914 zsD*dU_SX&M3V9D`=b^Iz4iF&*78styF3}Kw$^U84hS#((L9q*EcSpMY~?UWF6eSbEY}kf+_2!I{2i1tzNzG%LUal0A&l1b_Tfnv@U1 z9O~2d*SOU@8V3?HSOu^|hevS;ijNz&+%cX!RsKx!14obTl2&m(G4-6n#}1 z5=3K~C1R>vzt)3s#xNd&gA1eO9rGMDn-Z{^8CTIy0*NU4Y@ob{l9?l@aHh04OO>55 z@WOc+DIpUwt_CoU$wROB0qw4Fxc7gw%ck(m`lk%m@Pe`g8=+NuOI0DcFI=0&x@`XSWk8JMwn0hF~5@%8J`rsR%FMyY=Ql2qq> zUg`7rW-6zp)bz&*_Tju1J&2}0xD=)!3~0uYI}f96tT+fXX<>3NTJ9+IrT?mjtijei zP{We?Y2f*hP;CK5Jf0JW96Fq4m@nMDNfssQOjPJcRt#nuWiwzaSR-Z4Fid0S=`FZ2 zQ5dTTALbeYYHIZm*%}nr8dHDji2`<8T&f-7%qff12qldnLLi!W5O-{^SJ$HEfTeE` z@GpiaPhOI#=0qV^3>P=O{_pYL%owLVJ_`Ev&7CI4HE1|ILTy4tY8n$T3%2{m`!Ndr zA*LVEazGF(Mjbaf*gSg>3-8jv99wWm&l8-dyqRFKjBV0~wAN)ax{-fY*h-)@6cxk- z?k3+Ca+plIRh6DrmRDgD=%9d5eZ;JInO<*_w&S^zw``*514SNOG}Q4}-$XYuD9=B&Q<-s(C11erp3Z2;!!)*Ic>UrE`B6 zpRhU2dz^G%6+Lo0G=6{G39QzYlp=p`X+R~%N=5DOkZE`dHci&?e?)LJC*L$F6Vg=M z-5ub^G#%WQwzFWM45GW2*IY=Rhq-W(-dIbJ4N52)A1{(-)oC!I<)rwLniB4a&8E$` zN7QRWp3a`K<`BG{0JyvGN~u`p0%yW@ayZoeJc=!sDaTB=bZvj@9C*`egM>S`hB7pj z;Y9$3UtvIMg4Ra%*S)&$>_ZsIT!j3(IeQ1>zhq5hgwY6E|4#E+v#iOdA4&!R)!y;> zKPMye#~j~MjC7$g5^;tkx1uoSgVYNYg)F@m?j1_i*rDAWi1C@a-&yYrU)AWHq<~rv zq9|>H_ndJd-%Wq#_>V!w9j`~pw0pp(KMq2NryY>=%`Ig3RuyU_qyHvVq%R0^0B0nB->7|6>ae`#Fy#h;sU&94JnmC z@=8%!%~gM%fsxjk`&%@RVW zsL?)k)>Wy0WiP`{jM*@+uM$_GTIukQB{CS#8FO+u;WjGMg&Y>1zx>A-n;{Z+ar4 z(}5%}oY9BgU&IaNO9&uXNQC5nJ{!$9#XW3oEKRDn^q`SOxl?IkV-oedcQ+-r|NBgTKb zv1g!kfn}Emw)&anx+b+_S6-zf z>6S`c#GusyvL^LjrKp8MT00JCN7cl~c=}W5#L3ft{{Eew~lmLsxo#&%Gfazbm zbqUp*H3xKzt;b6^)7Sn%sf}!W(Q|*cA|SY(vQGxHJ31Mq53T@K56(J^mt>ty=3+UZ z+YzKGXr+rZ4zAx6M7~Ov@q&WNz z4vS@YIxIq}*McLx{dYhvZ57|F7e%bDYz^yIbY`IOkWzwm-q;9kgU2+Q zvdOL4mkD322*TKcsCBA6BKb1rpUa7pbv7>ojsSZXINmL@_Ab-nSE+1tkUfiLCX7x-1hIy-l!tH;orxY{z|6^evF(D|6S)PpnFY}x%DbF;?zb3@h_aM zTPN}j9Dcmh@zT#f_*w>{^rMtwsk4N0Um`?reA%I5xN(@#Qc(j;LY|8a)z1&2;uN=?|_UKC2yZZR-!-OnYEH6`Php!K8Q8BTxTE z=-&xnrs>Su_6N08b{x4K!iC*85&_Tk)>k7Dy`O_Rur{{r_e_xOp0SP9{5IIg%!mGizj0_sWjgHLnvH}P_ycQsG7fEoDSw1WdCvFUc(B84- z!u7|_MkRf4{EW7On(hto4e1wrZ^U)h92j~j7oXL=xc-0WZ6=kVB^9~t%hgg2xyIM> z@3whxx|AKKBEw7O4Gt?%1B{RF-Ln@uBM|)5749T(@NL4YR$_(&9xHGLrYOn5U49-y z?X3Ku&VHziTqM5hYZS0J$1TJBZXF`F-#LPz&K2XHdzPrR*HH&CA| z;8$Gxukf&Vr}*;(B4u@;#^3M(9G_mYq*y`zZ-W;(q8c(0ZA!^ErwyOofm1+?0lI03 zsk+F6#w|4|R_%84xIcZsvFKYd;UgM#W;nv7z=?llWAJ(Ui-rrJCTA^r?OG^6Zqu5- zv2a!3^-f)A9udO8F(Pkw)x$QX{@y^^={txIXp;yjx(x)p;F@KtySzp478?ggun_I* zt|)Ifqw-APP$Ax_h=MW#QV;u=%DpY*ypxa>Yh83#CAb%)#B%6>zLpd}6?St&0R$XR zme+skND@j$y`*)qu}EBO!(w%X+R-Db0ngsQm`Ml*a83`az7_I%9?QShAJv~q9as!$ zb=n=y!S%a&Y1k>8I1_&EY7h1tU0H&|j|O~*p^mdO@w$sko4(kmPQmjHDM22?gO2+* zB&ZQ6Fqg%DH~7e64tUEt;7*h$xUYawi;rj&Uw=5%1L2H&|gc7P}6c;qc}KJ5W z;KJM0O#)UMB;}X{4#a$mayA;4a%Gmoe6$i*&B>1_(b6k${hp&RfPe%uA0nIm@}*h)Xc1aZuEsgXp766HE5&FXTtM_EYlYMMqzD0Y*XqmLdV~Q53uV$HG_Ve>6+7`A9d05k$X2|N5#6o-Rub z4PGZ|eR;^d%#67*i9KqZur{&fkR?)6dMRtNIiT*#J8)1bxf3{==No_f3{yHYba54V zqXAgXpsw76PPC)IXYzjCYpII15`gkOx&#b^2A1jNy|C$9olvA`j}9wV%pU#TR|son zc*nOAWa=88EHHZ~#-Q#Xx*^>w4Dr0#(UJ%lQq>vaHrI&MgP3&wGF zIMU?yNlUu~uq!yHhm=1dv?Bh!SdYd}M81W)3QBsshohwxgJypOu$KinBY+}l^@f>1 zJ;b`pO9B&I$=6?HYzz27oqX!uJ2D}Zf%U+sd@`HV}=*2?KorhK4UrWoDrG zR<3+F!>562J3@%7f>b}sHy%WI&|EpIPG}4kMwDxgyISZ1BP2nckC(Vz(*s|LiI&l5 zQ#`uxYbbS5iClkf`=5~E;xZb-xenn&T#_3_*Voo8<)b&+;GxhYfS8i`niXn{C%Yw8 z=sf`zQ{;y(!P&w_1Q)qaT>bsn#b0PRaO?*C1kTN(BB4;4RTCzN(*>r$+fC@oE3k3@ z0tS(6M7F7@3SDQp12ssaZTl2@XTi?3hB&oCkjDJeu5f=S3xu=S2K+2DhhY+#cz^yu z$eFFwah_BJ*tMDB+32`MS~$e7lT z8XOF3v=_KA^zLG}RL}zhnhiB!pj?In#cmMZMAPsY!x^|?<%UGiXPQ01k5*gtYZ_)4#E$$0Ea+hc|}N!#eyljS9C&5X^~E18{#H4iX}QwZYK-gi{mZNZ*+%w^vYa z5us%^ADvf?F0Mioe2c~{XpfR78bBw?_ScP}B{=5G=!@rOhl3$mFA@{DpW>|!D7xN5 z0vd~zbb$e)R24m@tEj5>%0I0<$Je)h6Q)fDTo6J~!R*-w3|aR6+R77j*FiRr+U|sZ z8>oLb@Nm=I`}i~tXCFJAy^QVkb-fV~Q0p|L-tk3`GZpihdbUSbQ;|np*DR!++KTqD z2Rs|=E4Uu~8bg=k3fZh5aQXp6M@I4kD8vw^*4r=Fb&f)?HuBTwePUf%)>B_rD-PGQ zBBLuvW-8P{M2)BSi`GZw{fo`ks8u@aTMmCIC->f|EEJ}HnS+*6DVT!UWg4jWg4|!L zZ_uWdnL)K5qBB=n2>!wq(EkDq0R)dhIHq})fQc^dP6kh6i{1%>JiXc|O4i5sy^s>L z|E}BbpsP$8WgE(%`Si1 zh7jt;r}8+OZwZYTc6ocQyh;&%*c*?z_(R8IzgwEQrZA!*9#i-S-FPq;iXL#l&2WOcF&+Z!rsPPjG8Y(3WkhQoMN)svhP{XfzfkoJ?nS##6eO5`4h>9G?pK$AT`ESt zea2EI@NzgY;y}bB2T5n!@hT2`j>P)kOQLATrbg-9vO_l&-VZy!i=Syd6Ye-K`;h&j zKC?Z*{~3jOlLi>Z#Ba#n&}Oh`5dVzx3|B+!tZlabh`dsq$T5evyyW$h$8mpC5mE3z zg5zR6$qp%0awFl(gR7ykrq=6NoW%;kmsB9w11&!(8vfD~uq_}2I+v^w;HC%#sx5GH zTAKp(<+W&N^o>JT3kC`~>Z;PPQqm@cPP|zhOhWC}j7Eyd=I2fzP-JYNmksPXK>*xI zIuP$d-e`vT&^J6n31O~g^nZUmmscti)OpEY-3VcNJc}04RU&`6w7J#mcUh)1^+sVE zU%u!`SRT0vv^GS*#O>)c?s0<-LKH2I0_1P5ge{O&vOisZ$3^X3h~0|A;~S~&>VF#f zsi%9^iuYydrz`H_0>ntq-CX}w1Cw4Ho$2#>p_?SxE_1i=u4W9u&{Kcb^92NJt}6Q_ zVj7AG%R933w00Fi9i}=thrD$H*utFwKC?+4EsY+p653uXa|?e^f{K207scgyg9xlU zhCDkX|3S@2B>E?Fzt*+RvO(eV4&)Hcatm+5p^C=16#~67k+~Js+W*2(gjG16S6E2< z(K55E1z_FmGno8sGE;xxtyY+(zTgx2u zUe&Gu`Loh^{@{%hwaHKZ=^Wk!adPq zi8xhH!kJNLyJ~-5@o&%4xq5~wP#j9ll|Li;WgdOAY8x~t{zn4hnhCSv;t=$+)>pX1 zgXUDU$&eBaPV+|02`cf##{=l?mNQ1O_@1a9Zw$ziYEgKF`LNIypJA%ve2U%6!2ZW~ zr{1ztC-C(xhqU?Mdx7Q$mQZ8KTC0y2DNVV3b=0Uq_!NH!-pt7AkC3rL8C1UI!p1P6 zd)%1kLu%lqib+h=<~ovgxj6;g zPbGl%zfN#eL4YHrA8|l3-KHJOkwo?xitpKu;=KAxXO&iI*+I~p($`n@X%6&-xcD@% zX~Q@GU#@>VK-B9?kQQwfYP|9mzcsuzsu7{qNC)z+E8-KT|43eU)NIQ2vDVMyf@8q= zJQN?1rjuTVku~gWVWz+zHcOo|XansPVE9m=ps361484DVX(+S3hOU32w{pCEg{%Ze z(cYV93v2+Y>d1F9S3{sGVT^eRQs{m-o`~(Qd9k_-MNJFs1;X z$M(+7*`!Jk1$EP<2(q<9378kNdXkIC&e95Ut=PGW5#utY35?7p18DGR?o^4E{&Q+< z(EfiBKRYRM^^T(YYnS?s!I1<5Y77M!uhJ{rqS86u^$&O~R&p9NK^pC>?v!rX2Aaca zU0W|T1SfCFXN2)LR+{M=t$*--Vr!5u6G3M6?Q++Bixqe#unh^pxO&jInwjscI`j8T zJ!6jl|4tYU(&-_-&NtBQD&PhfAt=5$YHXHa>s z^SXbX?4a+EEXb^e1|^mn-!)<1~q=4XEK!?bz&&8FZDq;(Ch>H z$X?WW){euDgj(H|d!4-)H$SSd!!zJh9Q@5 z#iZ=O9bqnS+X(Qo8u@>xd&f1G0~p%(3?> z8^K2t(QjZ~y@q+W+F;l5Z`Oa0l}!<-7e+w+u65_gSvW!J#tmwBrV_>!Bj-I?oQR&4 zw=Xn@#YoF}x;kWYi?EA587_)AR<_ZtB|g%%;@ilEhaT&R{;710_WT_K%muK>&QWyr zD33FnLLk5`z`kat2}RLfjyo>#mo-ow4;xlw$Jr)K$I|QmlfGHnUfX}APoOPafTcBI z^Y3x+UZ!^bC9v_FpYND;8H@pjuk&&l&@w7gI4cu~b{+_`*rJHNy<}bk2(X+T&a%gW zQgE`OlTonVafAK_ea9nJk*lOM(UHomLgFoxho6s3Xy`lnk0wwMc#(A5xY$j`?!W^_ zcdxLLlC&l(rw0N_fwq75PJyU6hlxfWmktTcS)VMAe`Od>NDudnv%Aetj;l4S-?K1= zTB-5X@HH-%f48t`bbQU4^26Ks69&M0KE>nd)NHv{1wGTCs|JP1P)JbFo^(J1Q!BCG z`7nQ;Q;qwrzjRNXk&$C;-!hLDN*;X;eONpCbsOjb;z`8uumV&RxS$64x&f+@ zGeWDOlpj>_dVc5#kvX7tQh8rAG|#f5cwvGa_yLtn)4NzsvxxH zC|rgocYV8?7EgaIE4I6Z*jq{^Nr9+@Q0B!rX2=IoL}2jv;sn1A zxTa~E1?^52865PWenqRW#C6ryC5*0viEBOAMwt{07lnT!b9a)_)|&7Sa}e)mB>@$j z9FfchcPZdp?qtVIH*yWk$W& zYNUe~(!Z@pIm91ow4sPuaM9>t-u|1&Bx0|qY)ktDuQ*w*cX8hC0NT{>u&!OAvqoFQ zG@i;YU?G3a_GxO^0Cu*kx^MLS%E^PWi*)V}uYiyZ>3Tv)WaCpMcJLq<319ZAHa`3! z*(;4(vp=rtcxQ8>uroofti$gUCn4y2oO5ZpmNHl6N$1Jr~;M675a)+aw z7ifd%UrL$(d$?cfCYPUSX*Y{qD<4YIDe4?Dp79Se`ZMosyg0u+L>vpQwQ@Anz;!sgoQl%?FN{TO}K7`U7d=x zspo%~%n8dVU+du$aRF4{Ow9dq^$p!`iO)?GZm*#@onFs!Uy1U zvuZ>?=dv-dI|fT{PN) zC(VoY#8gan0^S%b*pTz3W+mLzXKZ;dGj*>Jf`OT@~xp=JaUpJ z_<5Ol!xanhAwQ?OxBU#sB}2OP2pMr2u_(m!=yr15x1}Q3qfJ7)FQ70_21|cC|4Oa( zHTv=L)qi+lq!dJqML4ghU}eC1(a?AN)NUs>BeGg&d*82D< z?3R!XPr?)=S_VHr#n=0<=8|p-Mq|@0Q5X2QqYFzmoF|E_OQsFX6~Z%SrubmsCpBP_ z!-~Kpx4O2ko@;edfNRu0(Mo5KOLxbdQ^TF z)&h?pQv4xx_3am-BE?p8l*}dS2f-Mk?;QkL3p+N-EHMb>cUfV`d^m-YmH>Y3%i&|l z;Me2wpMsk{mf>=;&%*uVUM|S%Vs>V*nMCQhLpi|H{;bJ)H?V&rJsUxu9wG<72w}Gl zBbcv>(tFjfN`awK*daEMfdmiGGRhbYJ+XRtb%5mG+}zN*4hCvBFV3AJ3A;GoJ*S;E zOEW}l$<;CV?kLR$E!C9uZToSCnur2SREcukeFTh~W>tQyLhFyN;tjfKIgPPiczr2qE%1`G9DxZI*hLIdnv3%5=@MJV(0KO{2#K z96DiFVdFpk=cWa;n*p3o=N41fR4nbh^AtMM*mQ=*7Uh2*-zJXAp3+!-IGYe^IFWc? zKqaz)yNZ8yUy>`Jc4To*kmp3I9PQasi4E7FpsFTyZ;8j!&w%n$1y`8BQ8~mc0b&60 zp%n9l61VCQW&2B{H@@;LK;b}kEM6WK=kILu>SXD9%AO90V}oN-0eoUD1AY-obYO>E zZ;NTjs%VlcReD#K5@@DRZL&f2M<#h0N zz!4rsmpQL-*ck@S?SCdmWGLNP#%-49SPr)nnHsSMeg#Em4$b|gU8yhA!x}i0E)gTm zJ|%yG_8+N>A;~f|JhY9E~#)RJ)|b99!+V^{tmdPebSOZBW?l zcJs&|a&edNW803yPO@;iBR#Da7`bMzbzifXkR&Tla0%!@U@g&&Tas4$3zLsY5~LkN z?m)g|>ajLi0ZtG5B47b&06U~EtgRX_{P}+ zQ#q1SqEywOJ=hOnmPir8oe#c^j^N@_;@+{*{|wEKJ;&!IW&%AE(hWPWkI$-I^*`~@ zMN}#d|51B}1R`y1D!c#Z%Xu7e!#rbng2E~zMqz%Y&FGlyCD5&K8Pwml5hNmo~5S6z&K3>cWPPiyk^0$C2RrFC!p_B19Tnp~kWm}$QhM3hjDz^4` z1R#)Lu+HlqazOy0cV)xffFc7iL8Kf`i`*gnemSH@Y(q`7VAr& zp*WdP0T0n;lT`i%A$RbQi+kl+XyD(dzmcjj$9gb+fEYXk88_~bon9R1^m0@b2?PSm znb7m+K^k=IX84TM^GeVV=O=&0WSDyEypl~ycj3g=nlBgTe_*(7In5d{0p%5XSFVQf ziaC}T^Pgqg8uFGEfjL)ha(sQfCP{Zl&-1$*y8@s%jbpdq`%P(pj0=p?igD$JCs17? z)L#SS+E+Vf>CpJz;_#5}4Ggr+X&+uEC9#6XdM?e|PALv6k1o-13WR@lP7n;LEwg1F z^T%5lF1!WKL&FezHlR5$WN!S_Y}5tfA9hB7JJ8nMg}Qj#SkJ>t3BX0-W0?d$zIUnh zDA3>0_}5YAYGZQ)Zc_c==?R5|B|`7GwQ@CNV_G6>P8uOg4G_+lmdIP`dioqhf^KgF z5c`rn{ghj0yPeb~kIH`x9;b;bSsD2n?x+$GEny(SnAVmszR?Jpk>hUo8O@iI`-_L9 zdEUeK=0zW;Sus=}-l(o8 zyaXRHk*GbS0Uhj)ZBj+cWgFWhZ+=(i<<7~$b*PXsp1^_-B;}>x;GV&js7Z@!j{PPb zTuQvbVN6M_8u2}Bm(aE*r%pM1oNI1!=5bafTpE4~S7g|YSQXV=5PFzDf^0-JO6+kz zvIP45n-T~XMjwB|f9PcvU3eZL85`HFo-bB|1o8XbY9xN_ zvwJ{($OC^2_y`LTWgmLP@ctN)fM{~dF`ir8@R4GG@!}^xX+0$~ClU|5P=ZBbi$&ca zSHN+-t;Gzi?I3@4dEwU6&*VAMGify8mP$C?DM~_bn4S3as>~c*MrW@VwE)c!vinC5 zjX>U6*Qx-@do!E92`4}=O^5ZoHykzB*J;k4(*S=zpI;GzUbG&C=x`?Q9_Ry!VAG{>mN$*OqwAj7M=0u@7!Sd(Ey`G!^TZkLMPg&hD?^gD2`MjSD;sd%^P2 zh|=%hbzw&qBw14oASLbbgZ0!z7xiu51=UgGnUqoHmPU8mJhW&-7_I&!vVeuDlNo=< z!01sSHY3oy7WYsJJ~ILgmdba8CgQeXlA-OtyQw<*vA#fpy<{NM)jEv>dqDx6b^s~J zY(pAuTpLu^c3MUvX&$;#>SzgJaE8 z;*IwjQ%&h5C1C}PsoL~(wj{xu z`U!RzzM`~(`pgZr5i~270k{2QqXGeLm6Ve=!@;)IUGNV)xLkQe>DKmG$`*gNX)VtT z2d&gzPrpCgHjg#cK++Amw3n@^$CetBZq5uZRYqL3GQpQya3MMz4K`NO+CZd@zWL5$ zf17SBzBTpI9jOEjNx&ga3X%H}B(N-R*Q6d-TmhI(oPJ|TO}M2{-l}>?y%|8dk`?CBCwZRRp9wjhV)FVkY>ecQZ)@VYB8|2)*k=5ftjLWbEdnhyvdu#dW#E#vT{&XqsJrRFe@}+ht1mP5QgJKsx3++z*0~V!DuFN8%HX&m60zVx11z6c3 z{x+!tq2_4h9d{N?ZR$v|oTw61u*>xzyJV(WV~%Ck zy{Xi|g!`z`X&ER+U(N1`*l-m}$y{Qa^@5pfkU917?Tk%uK3ae6e)prZSC$AI!I_Q7eM+qxT1fsGc^+LiAam!Br9)x=Mn*0eH6q+cI%=lk&b$UKTjDtdaR9 z4P}3;Cp_~!Kfj$Qc?7sZAQ0p*H$2eYT|*RU+tzSpucCilfeGX*fo&g%*HHTz$7%L6 zlk#d<;jfzI$=6_3gIG7FkjnC9`*t(w%jZT8=}0Ar`~~HT`hi`5aZ7LZZIa6nU+`TXyRI#YBfP+dQA3q!)e>r{8=6BgcC?!Kcfab{kdNb?b~N(-cJ&PPdwOi z{tuG|Ge8{?_zcnMTrgk2a=)!+8eJ;B02VI8bL)TojUKK&u)fQUep4bD7l^KLnjBqe z`Nove;IqEGYfUuJBxV^h?mOm)vomCGw$hFn;XnbDi{9V3Mw9i14E#bpdp5tc*# zvxbd!QKDAho00pr>7&Rf%&+6qV?KmffyI9!ue}RlkW)ALb>as2N8!43#WF?G_T+O< zJL(o-aL9i|Ed$-2R=WH3c+hO>X_&P2Jfn}57a6SqvPM)O+BUC&HSxBZDA7@Zr7FWb zokmM-OWBd10e4NTck)Q5M)-naQ`3{N3rd*-9yt&%W=JrqYI-c;b=|nF9a0(pCNzJ@ z-yGph)8`J;Y5F?$V7fYiJc!x?lYRZvQB{W}HI*5UUxTHguC_)u(Na20dC?UTZ3%)U zZk2O@6&76G#$}Z~;ieDvygDWTHw{Q4V1e(y)GYU&ON?TdBH#vRPk8oM4SJ@iKvmP) z9-xOzWS}Q19c{~J8x{LZW3^ntE%|>8hx=-hQT8!qJ#aqWfx7WXt`wu?u4Kl>2iYJ( z$Twy)xB=@BoYKm5@n$ddH7ZCnjT6DAE;y4-dJ#)>@H|46>`ZI4bPt*`2L3DZG1y|d zZlY&a%prxCY3sH5*OH4wWW*c3#pJ}BqG~0aSsS?t=-C)3dmj(7Lobhr+J z|323&ZVyQd-j7A%FFBeFC_(`W%Q2e-Sw48FK3UzOK^$k?6^?ZNCr`V`psZ$f(nj@m zbVxuIyMgg4ccUqr)7( z9XS9uuel>u-9{KauSP?V4#(J)MOg3NL#ynC*(g3p>nSQa2ve=;as?Ej>R7gS+mAlx z-VN)P&&(!O-Kxb|VeQr$2CPA{n7Gp@ynK9H+^2~w=O+P>X{S-(5!~k8ul#+PDTlo% z5FmjUls^YNFEI(Oii3ZDrW|lfGmf12f&54?-8C+Fbyx{ctkQe@weN@mtHblb;hC*g z$XK&;XIP?QftpaJ}e#9*l~apfrEb3J|d*^%*y=`E>CdX6XEmtbrS% zG>J@j-8GRB-k^y2jo2ccD`A}!5%h~nw-fM^u&L#35(%@7WA%Ru+}rrz{)-q+6U~o; zYHjcH_X2!ZSV|_PSF*HHL(I33uwa<*9Yp62*o{ITb+a&{dwgf?m{>xbU3lxkf3fJUw= ztI_9|<_-$x<%oY*+JH|j8ee&Wv*iwi_Y#AKmhQgQSbGKVLr)hr30Qi4l|y0d2kdlD z=4mhANleZ7QrzstKk?R-HtN`g5?)9@hJ;c-Dd}Od(5Nz-_{@EYPKV<+6Sb%uCJAK= zl!U*T&W?crZl7#XgJ`aX?Ih?t7u7QhlWSJu`V#I-v+93ysxyBdYK##}yE31Gl}I-e zuN?t`7*gM}45yT533#|>9A=DimVhmwP9YV<#Ag%*ph%%6S6M<>`|=X4gh%WBX3P$>e4C z!Z1&vw8sK}*dYV9{n9r5+{SL94(~kR%09SKX7_Rw+$2b&mSuT}+#($K0|b3M3s+%3 z&u&+$N>8spb4!7BHy6;LpiX!O?DoQpAzN#I7i?nYBCnLTQ)Q}8=oqG_YVE)<7rC%~ zvvyDA#EBKPF1s6uGT}3L=BZoR z31lS^|8k6LJV@XUfo-thZejxoPF!0I0He^cd($^cJCHyhEPX0#r`O~t>Oj>Gz$o2o z3^*?naABsGnXAmeQ4h_)(U(>$e`zUO#SZt#yHhst2zjhlmw>Fg>`+cXh4GIFHsC() z#5t{h6M&op4~ojhVFp4Lji!#Y8Ge)Jx_sH3N;`6)Ww2p{R=x|%yLn7U^zY>z+)5Q( zyQq;u2=o+N(>Sf@0{7MOq64;k{zMs^8=|-E&<5+Cb5s>e8GvLU@S(m@RPQI|% zKn0j!hrg5!)h7Zq2UFg`FARR&3%$;My>g^E{MAyC7RQOm0T)VDno$Wd-XLdHV!+Z@ zPR*A!vKr4wJ-XWz2Z5Z->3UqWtw->+qS^pD<9uzMdo1i;kp(pIC=4~BJ4bjMcx)+u zvG?v_FjNwjRbk$5Em~pNI5+;#eueVD)Nt0vn18G?G$HC_U_`TBvghA5s+p<5w_1gT ze_&1Mtp|Be58 zQOct1#B+LJ>G5VSi#cBfJN}w77Rdd7=xdnPbYo6){+U?(;l0G6Aej@)%u1{n^eCnv zn8jFdefcF1U$7=#M4M`AS+&}sIr>JRnC+kfF=4(+EE}%gd~^rMe`z^MjZ@vvI^9c}{u>D#ZtDFFnqn_ch^W`Efc;@ISeZ77Vqi2^QIK*+4vh%!6V6SFX ze>;|)tC&n1?oQMz&E?suAq1=Dy7iTt%e!AVXON!?V(7cG?;+LY-c((4`z{KTm}Ahm z!bcP$+JCQwSC^o=%X)&fA4BJVMu4Ii9_&bXH8KZcNTU7(*Cq|4@D#pVfG);Ek~`|E zYEkwBkGTK6Txy=}uGr7o*T`L|o6>I%HK?%9fvh>PP>`ay8pg zh#5i2Re!)MTN`})j5`$JHHCk7GfxTS0h8LWE`JKEk1?v)|1Rt)_)lRqN7UI7Z;6at z1;pGf{oEXgvmJ7tamY|*Rc%hSM`DeM4%@47Klhgu{_@2q9cE{da~!BI0kpADXJq}> zXRR~aRy=rgRFX2|jts(oex3Wi(E+XaAoRIEWSfBXirE3nl$nq>uBC(Z?wVTvjd=Vj z`Lgp9>PHnIhZl^f#G|4m9j!w${dFQr@lQBxs->XNqqQZ@4NGS>+zcD8QZN62j-$f} zF&_{EP@!4}gD{6yArVHilP!YT&hn!y)IeMf9QNrH1!Il67Zkc?EFDr8^VP!vkuGt`?^fLAQ9tp#aTc-(#`i zIPHcS4Yep`hvl7^X{|@gb0H1jOU-o~O0)`K-L?&7*0@6*tEa*AP!~bXFSF9=>}~I~ zmts##3s?H=Z)1diH}jH5RkeWs&(mh@OGuoaND|N&Rq3X=f)Y-SAPvi`NAP?1B6wt( zoCqKRvd5{nMh+lt726)&x?mM%N$6E!1#!b!#uk^YzBxyCXq%VR?$kS9Ptsz@zqq65 zH5$4<1{sPEtU+f17AGCP{RKp%!MfOwOUL)4vLMtw3R~oVl29>$U{6e_@#M^uV3%*m zHJTx#`_Xug|6|>Fm0;NK>uk4Wjn=$jFfxNg|48Y_Aj#1@ghE7)$W096u6a8@gTJL> z0P&vUZI6>V%_wiB4KfkU?NU6}J!q!#*9Z7~H~+)qZiMNQIMgewz$FGf?Ja6f`B`

L8TmmU7%c)_}2p9oAZih*AXG?O1*ctO@4aqcd!H zxsF)|L@4+aj8m7NY=|joS!L>B<7QrK91q)ogq@B2=Y*C)y8zoxj;7jDYzKve|MTz< zh)maT*jAu^^@CJ%e&kqHJNCTMT7u8ru=lW54SVLP?Cd^88!E88mAj~5V;{8C{X|m7 zPOPGT^F#QghK{(@*_n)fYZYZl9d$s=j&CfMTC*Mn1>gT|*D0&}VReuK-e|q}AZpn`DcEMe2-`Lz*?fsBIr5dZbWlepi6DZ`S2v1Zpy-M*aYYK}Ub+CR8Bkpj%TltZZAT9J>B$yA&aW`oQD8 z{qev5Y{K(PqPjSEX-Rl1dYepe2?*>#1Jw3ad5I#^56-@7UsTjZFTM#rAOFCZHCVPR z(mcTS%n$N43tJzSn`Y!}4stS|d_~jzkdYiWcA7Zci}NjJr;je^0MD$86f_Edt~V7F z7m<3aBJ0+<4ADHf_l8S(EIjah+zak^^3Znz@kru^aL zaoPBPs0+vKsqX}8sG9lTn{2@s!f74s+$Q?xWNKA74p=JXnQ5y8yI9{0awOhdAnKOc|Yt$LUpcBe7J1of^nkW%&wCgNOP%sG38p;{f4 z)q!;a4-}|v$WEr=R6_m71A?R0Xb$=vr%aT&XZG&6v#)l(^&wasT@Wp$sV9xxv~4OE zpGX-3A~4PRKska?7qB&d7g=6uyIO;Y7lkgSQOM@9<_+Lf02dfoIZChb3xRU z0Zbobjcd9hBA0>TmZy9Lw51(jXe!v5#QM;Zn09 zbb1M|b#Lj;A={l;Gg|{K+Cm!9aD&rIUXC>99=tL4E)!HPmw2)@!G0V2h%XX9(y&C_ zsCjGXaKrvmTFO&@nb6R`APir356|Q-p(YG_!ip0^lFxos?$@U1I=gd~PS7`|F|3nG zWsgHi^Mm!JSb-3mqkEaRzqgdu&E<(*F<2yuK(8C#X8?0ztR-%YVp!?Ls0$-qjJq2NuS zbiw+o0sESr3ji7;E7!d07Mtfsz74W@g(xLhBxraAmld{XtQTWorB{CXRfX?t@flva zO_I*tObNJc7beDkeTNI0xxM-ie;W~zvr;#k%T5!s!k70`d41WLvuQ;ob&H6<{xW$- zuf)BrCQgrk`og40whWv}U5ywGN9>;9Kqd_joX4$e5Jg^^>llsU)^!8rp{~PzRb3Bf65Na3C~Rm*oJf|?a&z;#5$^}7A4}za>j}=e%FX^=5seXyf)@b z5T-vEkXdFc5lyy@BOe{DEXNpAjpsygj}aqrJMhM>5noEbe7`O>+a7Z{>vj~_;-tu7_Ek8%yJp=xX;j&sU}f|GV$Ezw^S zt7+d`iXXY~c#eeD$p}rc&$D{wMwO8~6Ydp$?}K(_BZtBm54^=ZM=VlY45)Dv)Mhb% zR5E(Qg=Y^LQ9nL+&F2$oI1qj@4JKg{&By8d)YR4WbYPPzJTi^*^`s>idaJ9HtV#1PiGlssSSi)-(r0SUV zN?*K$88so}qB*3pzRWYHAW#63I7*&>ey{ffxgc*WE6~w?v#o{7=?6l)P*|LnTkER0 zyazS5fAgKaah?`3!}((3X}@Qvy+Jfh{YTB#JFpsN1j^>VqyV)O$xx?F? z*q@-o&!nSh=lZcyq(%2LV3J26h=pt)*LjVNT){Fpq0v!lxnCn+jowGH{egBiDWrJllO!V<=cYfd z%jX>oNqj!4IbVP-IYa5A=82g8Cz$%*PnYlbAw3z?_l$peEiBfANlkw)8XEoS2=0aD8O|3IX(jRsyS6n)BbZ}+ zwRCE2_rA~6gaHmDhqK?mP{9r>c9cnD>Tr~ne^+YjlOuZ>>#Zh+A^=c-KP}iGA`ZZI zrsJo5s?fxv1**>GjkjE2QNozTA3l?tlpDZ8gyGX7y*5W+7u#O5IDEDbJ1McHUm?BV z*`R>jz9D+MVRyLLPNi%OyY9y*V-(?y&pJ5Pp`-VgFgX2_J`wh}+BdNb$Cguo6d4L* z0(S~`&78NnK=)-;dv#BLvJnlER`S0b7vca?Z)aJP*x)DR@gM%gT#co^tMlcjsLwUWcq!E;L{`Y99QQJ zQl%vb1%Uc>N?D($Ix0CBgJ(}1=5@S{oafVKtbjc}Ls<5rn=j&j{AAHumdUygbTQLC z3Hg_v7iNIRW0q5ESETMRazYof(w2l+LcTSi^?hVUD>_EoSV6-@b#+itn=j>@aqAd9 z@t>p(Tl!nj$nkfBd%v>AC=gy?`POTb1XYN^9)CmrHd~{_$L6t=JoquockH$<@7;&( z!h`BbZnUzjhcZilL%>o;ghGZWitx+1hJ>jNt&%^%a4DSDYnbpsA&yO`LO+zU3<0tm z#VjhbNOQ~fYfmX<67}?wI2I}7_a6b+cOrwUDg>D6MeqayvqrXJG{O5%ZUd@=?V3*y z-jQUPG3D%ouzj96J7;dW5~mSL$;J{Dy+E9jkqumKby=u?U0RTZlV7qrjRLu;C;DJz z*{R}@o!Z}~u!#ESTGFJ9|NjL@!D)!i*UB$Ku9uxc&=^kcCAejmVUbBAne7G&JBA$U zK%(jSdq+7;WhXOqX(N*+UZ>8Ph>?~<1nY-;P*^1J6ztFAoQiG!7uND-eS+rkhHYN3 zDjykhvVkCfWLS?Y9dGxU2^4&o4-cvTBmQ7TxxI0ZSpEq>Wf+s0V5(GxdF-hjhVpzr zkAWpQ!QYkT{TLu-zRf-sSQh5|Z>@^A57o1h&Kq_bjgzqE z7#Md33ikFp0U1vCC_Hhyy2}O66UMF#?`W>$yob`pSPF&qrc0&&ZS$~x0ik& zAe^#)%lZ_d9*93MPj;oG^BXkf7)zuPXm5o%eV&1~XsYsX4pbZ8!24POe3Oruc3+!- zGh7AwQ;V`i&X{^laccdErQb2TCc{IdBEEwbbpx-{RYl=Ld#dX~QecLH;D9WkT&K!F zkmA8WN1CqzvCot z>x;wv0}>Jf`sHNFC%4v?Wp8g$E=vHm=9Vs|zEHED3Uw7kDwlioRNZ4OT>%~9huKMg zq-hl8tyT84hS?9yKNfmCth5tc0i!{E^q$($3_6{)#lg|#$*7qhHXWf`!0I6){!ND- z-&{JZR{QWroR9xgt_fdHoPZe~)5dwX@lLX}{Yz7rS(x{%gp#Y};5W@-D#Mmd zhn~zn*!~Hn8r6)>6mh|(l?wHHp)32kEFyK%+S>NW|7*1|jUZC*h*6=BOJ|9sSnDb4zYc+por5nf~sxz_xDGUzU% zJ(7YuQz_nibOd1&+C z&~ix#MrA6U}jd*q_~{aM=!<1*6lhT4(~9(tNdQjY00(ag9!lkmBp` zAMuo|Rn~7FqBLYqZfN2YDTTp$CZ$OEA#|BuSODk z2@NS}$Pe(hbs6iuhqOXI@unWO4(z>UyJ62Lcwf5OLFbGWdwXSII0)Cgz$ApoeNqu# zj|F3G5piV}Ijj$5=K4TnegtjniepKrY8(MqAmRX>N=OefME^R1C9-_P4nsoNV2|=x%ufo3byPD6=K%;qt z^KD&NbTRd%7(Rj*G!YBPF5b&HAWgd6WGd92sedNCurEo*&VWBH9wi1=5noad6S-1W zDG`i}OyZzzk+}U75)gXs{Sz1n+@(K?xH@h&cS)}7duVdlRxzf3Q`_b}lGzJRC`X(o z#lu6zc%7SK^f^7HcxXS$4tsPWx4d_^3vZU{1rx14d`iE&%DU*SX@FtolEs@+xtrwO zE9M7LHE%4fPu4RzBLsLWO}%*XCkd042nyia|O>w~Ydcc+;RIc3JhCAy= z^CPjfl|9=G@JB_mhbSr}L_|>y`pRC$5fnRN6DL zz9tdoZ%`e7!r1(89$Sv9ss_rX`gGCee9q&iY~ ziBRKTWdh5DCw~Z+16r_@p5f&BOr#Hdmi~=PbZ@YK+GA-`2+?YzbWqLn2|rj-$O@}s za6a2my3A``a!2Ti*G}gpiHegat&3O)FAg{;P?C3Oc@nWanJ$@5EOG3;Ou&EK{`- zeZ)bhqDDzF{aI5k3hr@5-VfZy9#d|1yHz+(!P%SpVnC`AY^D#;nHH#69W+Ibm#~XX ziDx=XT_bkno%d|g+~ol8*}TVYjMI(0@*L2Ap9-+n{8G5yM1GfB+oUh&sXktG47Z{q z!f(6$u5k{=nOAEstEr8rPqWJpJGT)?N2;Q5Sm2*ovigw!LQF|~p<>=5uBou>(vHh1 zD!tRsI7K4%_&hApnemr_-M&C&{b=&pPpoigU|7Mz7$78 zBK`Hg#dR+sWpU>4I@^*uLx&20`7}r+6q+mz)X-ZIu&sjTM!RUoW@#qM7*#Fr%pY8;ySo0J6T`m79o@jN!n*;OIxbyX_=UJFX|Mm zJ3<7Qfg~$O9&XA?`8K|`;aTzbD6QLuxGOuC(}mC)DbQ7vnPf9ePSFfEafqRr*8*L% zH1H26!#-BMgBRn^|2R`*^~evkQ@9*4Hg$QpWDQ&)q&{1KyBJHBv>AeT)zUNsa%j2%B4kwt{2aeJ4=fnDe% zj(ds~JK3dym#A#!5gzhYHE zUQRP^ZSgO}=x21#jY{>_D%%{$YH#mDPc&aD__X-&szp{SeaFVVgc{&S)zN){7Av;< zx$VY>3&g!z{`!Zk6Q9i;_OIpemhl2QNPb+sj?u{%&5Z6Q81T`AhZ zr1}Ea48f#s;3p$G4A#f^H(RU7{}Hy(_7@K?gZ4-WR1)a;CYQK>cc#QOra5j7rZX?? z`b11IC)mSBUgCDby%rW9yM_h7XFxD@7apOKtm{@%#HUA;G@0Sj0C z?o#+};rMrFgNIL1g1>{{WD|P6Ny;i%b;P*l6wHvm+#{CW!p2<^#~Q925}?HGJ$hkl z#j`9)-{>CpWbEaCk|qmS19oukjE-Y_CS8n1