NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name TA Симулятор Боя by RomApache // @description Allows you to simulate combat before actually attacking. // @namespace https://prodgame*.alliances.commandandconquer.com/*/index.aspx* // @include https://prodgame*.alliances.commandandconquer.com/*/index.aspx* // @version 1.03RU_Alpha by RomApache // @author WildKatana | Updated by CodeEcho, PythEch, Matthias Fuchs, Enceladus, KRS_L, TheLuminary, Panavia2, Da Xue, MrHIDEn, TheStriker, JDuarteDJ, null // @updateURL https://userscripts.org/scripts/source/138212.meta.js // @downloadURL https://userscripts.org/scripts/source/138212.user.js // @translator RU: RomApache | TR: PythEch | DE: Matthias Fuchs & Leafy | PT: JDuarteDJ & Contosbarbudos | IT: Hellcco | NL: SkeeterPan | HU: Mancika | FR: Pyroa & NgXAlex | FI: jipx // @grant none // ==/UserScript== (function(){var t=document.createElement("script");t.innerHTML="("+function(){function d(b){try{if(-1<C.indexOf(v)){var a=G[b][C.indexOf(v)];return""!==a?a:b}return b}catch(c){return console.log(c),b}}function t(){qx.Class.define("TACS",{type:"singleton",extend:qx.core.Object,members:{saveObj:{section:{option:"foo"},bounds:{battleResultsBoxLeft:125,battleResultsBoxTop:125},checkbox:{showStatsDuringAttack:!0,showStatsDuringSimulation:!0,skipVictoryPopup:!1,disableArmyFormationManagerTooltips:!1,disableAttackPreparationTooltips:!1}, audio:{playRepairSound:!0},slider:{statsOpacity:100}},buttons:{attack:{layout:{save:null,load:null},simulate:null,unlock:null,repair:null,unlockReset:null,tools:null,formationReset:null,flipVertical:null,flipHorizontal:null,activateInfantry:null,activateVehicles:null,activateAir:null,activateAll:null,repairMode:null,toolbarRefreshStats:null,toolbarShowStats:null,toolbarUndo:null,toolbarRedo:null,options:null},simulate:{back:null,skip:null},shiftFormationUp:null,shiftFormationDown:null,shiftFormationLeft:null, shiftFormationRight:null,optionStats:null},stats:{spoils:{tiberium:null,crystal:null,credit:null,research:null},health:{infantry:null,vehicle:null,aircraft:null,overall:null},repair:{infantry:null,vehicle:null,aircraft:null,overall:null,available:null,max:null},attacks:{availableCP:null,attackCost:null,availableAttacksCP:null,availableAttacksAtFullStrength:null,availableAttacksWithCurrentRepairCharges:null},damage:{units:{overall:null},structures:{construction:null,defense:null,command:null,support:null, overall:null},overall:null},time:null,supportLevel:null},labels:{health:{infantry:null,vehicle:null,aircraft:null,overall:null},repair:{available:null},repairinfos:{infantry:null,vehicle:null,aircraft:null,available:null},attacks:{available:null},damage:{units:{overall:null},structures:{construction:null,defense:null,command:null,support:null,overall:null},overall:null,outcome:null},time:null,supportLevel:null,countDown:null},view:{playerCity:null,playerCityDefenseBonus:null,ownCity:null,ownCityId:null, targetCityId:null,lastUnits:null,lastUnitList:null},layouts:{label:null,list:null,all:null,current:null,restore:null},options:{autoDisplayStats:null,showShift:null,sideLabel:null,locksLabel:null,leftSide:null,rightSide:null,attackLock:null,repairLock:null,markSavedTargets:null,dblClick2DeActivate:null,showStatsDuringAttack:null,showStatsDuringSimulation:null,skipVictoryPopup:null,statsOpacityLabel:null,statsOpacity:null,statsOpacityOutput:null,disableArmyFormationManagerTooltips:null,disableAttackPreparationTooltips:null}, audio:{soundRepairImpact:null,soundRepairReload:null},_Application:null,_MainData:null,_Cities:null,_VisMain:null,_ActiveView:null,_PlayArea:null,_armyBarContainer:null,_armyBar:null,attacker_modules:null,defender_modules:null,battleResultsBox:null,optionsWindow:null,statsPage:null,lastSimulation:null,count:null,counter:null,statsOnly:null,simulationWarning:null,warningIcon:null,userInterface:null,infantryActivated:null,vehiclesActivated:null,airActivated:null,allActivated:null,toolBar:null,TOOL_BAR_LOW:113, TOOL_BAR_HIGH:155,TOOL_BAR_WIDTH:740,repairInfo:null,repairButtons:[],repairButtonsRedrawTimer:null,armybarClickCount:null,armybarClearnClickCounter:null,repairModeTimer:null,curPAVM:null,curViewMode:null,DEFAULTS:null,undoCache:[],ts1:null,ts2:null,attackUnitsLoaded:null,loadData:function(){var b=localStorage.getItem("TACS");if(null!=b){var b=JSON.parse(b),a;for(a in this.saveObj)if("object"==typeof b[a])for(var c in this.saveObj[a])"object"!=typeof b[a][c]&&"undefined"==typeof b[a][c]&&(console.log("Creating missing save option: "+ a+"."+c),b[a][c]=this.saveObj[a][c]);else"undefined"==typeof b[a]&&(console.log("Creating missing option section: "+a),b[a]=this.saveObj[a]);this.saveObj=b;this.saveData()}},saveData:function(){var b=this.saveObj||window.TACS.getInstance().saveObj,b=JSON.stringify(b);localStorage.setItem("TACS",b)},initialize:function(){try{this.loadData();v=qx.locale.Manager.getInstance().getLocale();this.targetCityId="0";this._Application=qx.core.Init.getApplication();this._MainData=ClientLib.Data.MainData.GetInstance(); this._VisMain=ClientLib.Vis.VisMain.GetInstance();this._ActiveView=this._VisMain.GetActiveView();this._PlayArea=this._Application.getPlayArea();this._armyBarContainer=this._Application.getArmySetupAttackBar();this._armyBar=this._Application.getUIItem(ClientLib.Data.Missions.PATH.BAR_ATTACKSETUP);phe.cnc.Util.attachNetEvent(ClientLib.API.Battleground.GetInstance(),"OnSimulateBattleFinished",ClientLib.API.OnSimulateBattleFinished,this,this.onSimulateBattleFinishedEvent);phe.cnc.Util.attachNetEvent(this._VisMain, "ViewModeChange",ClientLib.Vis.ViewModeChange,this,this.viewChangeHandler);phe.cnc.Util.attachNetEvent(this._MainData.get_Cities(),"CurrentOwnChange",ClientLib.Data.CurrentOwnCityChange,this,this.ownCityChangeHandler);this.buttons.simulate.back=new qx.ui.form.Button(d("Setup"));this.buttons.simulate.back.set({width:80,appearance:"button-text-small",toolTipText:d("Вернуться к расстановке")});this.buttons.simulate.back.addListener("click",this.returnSetup,this);this.buttons.simulate.skip=new qx.ui.form.Button(d("SKIP")); this.buttons.simulate.skip.set({width:50,height:21,appearance:"button-text-small",toolTipText:d("Skip to end")});this.buttons.simulate.skip.addListener("click",this.skipSimulation,this);var b=this._Application.getReportReplayOverlay();b.add(this.buttons.simulate.back,{top:12,left:150});"undefined"!=typeof CCTAWrapper_IsInstalled&&CCTAWrapper_IsInstalled&&b.add(this.buttons.simulate.skip,{top:38,left:460});this.buttons.attack.unlock=new qx.ui.form.Button(d("Unlock"));this.buttons.attack.unlock.set({width:45, height:45,padding:0,appearance:"button-text-small",toolTipText:d("Разблокировать атаку")});this.buttons.attack.unlock.addListener("click",this.unlockAttacks,this);this.buttons.attack.unlock.setOpacity(0.5);var a=localStorage.ta_sim_attackLock;(a=a?JSON.parse(localStorage.ta_sim_attackLock):!0)&&this._armyBar.add(this.buttons.attack.unlock,{top:108,right:9});this.buttons.attack.repair=new qx.ui.form.Button(d("Unlock"));this.buttons.attack.repair.set({width:45,height:45,padding:0,appearance:"button-text-small", toolTipText:d("Разблокировать ремонт")});this.buttons.attack.repair.addListener("click",this.unlockRepairs,this);this.buttons.attack.repair.setOpacity(0.5);(a=(a=localStorage.ta_sim_repairLock)?JSON.parse(localStorage.ta_sim_repairLock):!0)&&this._armyBar.add(this.buttons.attack.repair,{top:16,right:9});var c=ClientLib.Data.CityPreArmyUnit.prototype;c.set_Enabled_Original||(c.set_Enabled_Original=c.set_Enabled);c.set_Enabled=function(a){this.set_Enabled_Original(a);window.TACS.getInstance().formationChangeHandler()}; c.MoveBattleUnit_Original||(c.MoveBattleUnit_Original=c.MoveBattleUnit);c.MoveBattleUnit=function(a,b){var c=window.TACS.getInstance();if(c.options.dblClick2DeActivate.getValue()&&2<=c.armybarClickCount&&this.get_CoordX()===a&&this.get_CoordY()===b){var e=this.get_Enabled();this.set_Enabled_Original(e^1)}this.MoveBattleUnit_Original(a,b);c.formationChangeHandler();c.armybarClickCount=0;clearInterval(c.armybarClearnClickCounter)};this.loadLayouts();this.optionsWindow=(new qx.ui.window.Window(d("Настройки"), "FactionUI/icons/icon_forum_properties.png")).set({contentPaddingTop:1,contentPaddingBottom:8,contentPaddingRight:8,contentPaddingLeft:8,width:400,height:400,showMaximize:!1,showMinimize:!1,allowMaximize:!1,allowMinimize:!1,resizable:!1});this.optionsWindow.getChildControl("icon").set({scale:!0,width:25,height:25});this.optionsWindow.setLayout(new qx.ui.layout.VBox);var e=localStorage.ta_sim_options_top;if(e){var e=JSON.parse(localStorage.ta_sim_options_top),l=JSON.parse(localStorage.ta_sim_options_left); this.optionsWindow.moveTo(l,e)}else this.optionsWindow.center();this.optionsWindow.addListener("close",function(){localStorage.ta_sim_options_top=JSON.stringify(this.optionsWindow.getLayoutProperties().top);localStorage.ta_sim_options_left=JSON.stringify(this.optionsWindow.getLayoutProperties().left);this.saveData()},this);this.battleResultsBox=(new qx.ui.window.Window("Симулятор боя 1.03RU","FactionUI/icons/icon_res_plinfo_command_points.png")).set({contentPaddingTop:0,contentPaddingBottom:2,contentPaddingRight:2, contentPaddingLeft:6,showMaximize:!1,showMinimize:!1,allowMaximize:!1,allowMinimize:!1,resizable:!1});this.battleResultsBox.getChildControl("icon").set({scale:!0,width:20,height:20,alignY:"middle"});this.battleResultsBox.setLayout(new qx.ui.layout.HBox);this.battleResultsBox.moveTo(this.saveObj.bounds.battleResultsBoxLeft,this.saveObj.bounds.battleResultsBoxTop);this.battleResultsBox.addListener("move",function(){this.saveObj.bounds.battleResultsBoxLeft=this.battleResultsBox.getBounds().left;this.saveObj.bounds.battleResultsBoxTop= this.battleResultsBox.getBounds().top;this.saveData()},this);this.battleResultsBox.addListener("appear",function(){this.battleResultsBox.setOpacity(this.saveObj.slider.statsOpacity/100)},this);var f=(new qx.ui.tabview.TabView).set({contentPaddingTop:3,contentPaddingBottom:6,contentPaddingRight:7,contentPaddingLeft:3});this.battleResultsBox.add(f);this.initializeStats(f);this.initializeLayout(f);this.initializeInfo(f);this.initializeOptions();this.setupInterface();this.createBasePlateFunction(ClientLib.Vis.Region.RegionNPCCamp); this.createBasePlateFunction(ClientLib.Vis.Region.RegionNPCBase);this.createBasePlateFunction(ClientLib.Vis.Region.RegionCity);this.gameOverlaysToFront()}catch(g){console.log(g)}},initializeStats:function(b){try{this.statsPage=new qx.ui.tabview.Page(d("Стата"));this.statsPage.setLayout(new qx.ui.layout.VBox(1));b.add(this.statsPage);var a=new qx.ui.container.Composite,c=new qx.ui.layout.Grid;c.setColumnAlign(0,"left","middle");c.setColumnAlign(1,"right","middle");c.setColumnFlex(0,1);c.setRowHeight(0, 15);a.setLayout(c);a.setThemedFont("bold");a.setThemedBackgroundColor("#eef");this.statsPage.add(a);this.labels.countDown=new qx.ui.basic.Label("");this.labels.countDown.set({width:0,height:10,marginLeft:5,backgroundColor:"#B40404"});a.add(this.labels.countDown,{row:0,column:0});a=new qx.ui.container.Composite;c=new qx.ui.layout.Grid;c.setColumnAlign(1,"right","middle");c.setColumnFlex(0,1);a.setLayout(c);a.setThemedFont("bold");a.setThemedBackgroundColor("#eef");this.statsPage.add(a);a.add(new qx.ui.basic.Label(d("База:")), {row:0,column:0});this.labels.damage.overall=new qx.ui.basic.Label("100");a.add(this.labels.damage.overall,{row:0,column:1});a.add(new qx.ui.basic.Label(d("Оборона:")),{row:1,column:0});this.labels.damage.units.overall=new qx.ui.basic.Label("100");a.add(this.labels.damage.units.overall,{row:1,column:1});a.add(new qx.ui.basic.Label(d("Постройки:")),{row:2,column:0});this.labels.damage.structures.overall=new qx.ui.basic.Label("100");a.add(this.labels.damage.structures.overall,{row:2,column:1});a.add(new qx.ui.basic.Label(d("Строительный Цех:")), {row:3,column:0});this.labels.damage.structures.construction=new qx.ui.basic.Label("100");a.add(this.labels.damage.structures.construction,{row:3,column:1});a.add(new qx.ui.basic.Label(d("Оборонный Цех:")),{row:4,column:0});this.labels.damage.structures.defense=new qx.ui.basic.Label("100");a.add(this.labels.damage.structures.defense,{row:4,column:1});a.add(new qx.ui.basic.Label(d("Командный центр:")),{row:5,column:0});this.labels.damage.structures.command=new qx.ui.basic.Label("100");a.add(this.labels.damage.structures.command, {row:5,column:1});this.labels.supportLevel=new qx.ui.basic.Label("");a.add(this.labels.supportLevel,{row:6,column:0});this.labels.damage.structures.support=new qx.ui.basic.Label("");a.add(this.labels.damage.structures.support,{row:6,column:1});a=new qx.ui.container.Composite;c=new qx.ui.layout.Grid;c.setColumnAlign(1,"right","middle");c.setColumnFlex(0,1);a.setLayout(c);a.setThemedFont("bold");a.setThemedBackgroundColor("#eef");this.statsPage.add(a);a.add(new qx.ui.basic.Label(d("Общее:")),{row:0, column:0});this.labels.health.overall=new qx.ui.basic.Label("100");a.add(this.labels.health.overall,{row:0,column:1});a.add(new qx.ui.basic.Label(d("Пехота:")),{row:1,column:0});this.labels.health.infantry=new qx.ui.basic.Label("100");a.add(this.labels.health.infantry,{row:1,column:1});a.add(new qx.ui.basic.Label(d("Техника:")),{row:2,column:0});this.labels.health.vehicle=new qx.ui.basic.Label("100");a.add(this.labels.health.vehicle,{row:2,column:1});a.add(new qx.ui.basic.Label(d("Авиация:")), {row:3,column:0});this.labels.health.aircraft=new qx.ui.basic.Label("100");a.add(this.labels.health.aircraft,{row:3,column:1});a=new qx.ui.container.Composite;c=new qx.ui.layout.Grid;c.setColumnAlign(1,"right","middle");c.setColumnFlex(0,1);a.setLayout(c);a.setThemedFont("bold");a.setThemedBackgroundColor("#eef");this.statsPage.add(a);a.add(new qx.ui.basic.Label(d("Исход:")),{row:0,column:0});this.labels.damage.outcome=new qx.ui.basic.Label(d("[обновите стату]"));a.add(this.labels.damage.outcome,{row:0, column:1});a.add(new qx.ui.basic.Label(d("Время боя:")),{row:1,column:0});this.labels.time=new qx.ui.basic.Label("120");a.add(this.labels.time,{row:1,column:1});a=new qx.ui.container.Composite;c=new qx.ui.layout.Grid;c.setColumnAlign(1,"right","middle");c.setColumnFlex(0,1);a.setLayout(c);a.setThemedFont("bold");a.setThemedBackgroundColor("#eef");this.statsPage.add(a);a.add(new qx.ui.basic.Label(d("Ремонт:")),{row:0,column:0});this.labels.repair.available=new qx.ui.basic.Label("00:00:00"); a.add(this.labels.repair.available,{row:0,column:1});a.add(new qx.ui.basic.Label(d("Доступно атак:")),{row:1,column:0});this.labels.attacks.available=new qx.ui.basic.Label("CP:- / FR:- / CFR:-");a.add(this.labels.attacks.available,{row:1,column:1})}catch(e){console.log(e)}},initializeLayout:function(b){try{var a=new qx.ui.tabview.Page(d("Поле"));a.setLayout(new qx.ui.layout.VBox);b.add(a);this.layouts.list=new qx.ui.form.List;this.layouts.list.set({height:174,selectionMode:"one"});a.add(this.layouts.list); var c=new qx.ui.container.Composite;c.setLayout(new qx.ui.layout.HBox(5));this.buttons.attack.layout.load=new qx.ui.form.Button(d("Загр."));this.buttons.attack.layout.load.set({width:80,appearance:"button-text-small",toolTipText:d("Загрузить расстановку")});this.buttons.attack.layout.load.addListener("click",this.loadCityLayout,this);c.add(this.buttons.attack.layout.load);this.buttonLayoutDelete=new qx.ui.form.Button(d("Удалить"));this.buttonLayoutDelete.set({width:80,appearance:"button-text-small", toolTipText:d("Удалить расстановку")});this.buttonLayoutDelete.addListener("click",this.deleteCityLayout,this);c.add(this.buttonLayoutDelete);a.add(c);var e=new qx.ui.container.Composite;e.setLayout(new qx.ui.layout.VBox(1));e.setThemedFont("bold");e.setThemedPadding(2);e.setThemedBackgroundColor("#eef");var l=new qx.ui.container.Composite;l.setLayout(new qx.ui.layout.HBox(5));l.add(new qx.ui.basic.Label(d("Имя: ")));this.layouts.label=new qx.ui.form.TextField;this.layouts.label.setValue(""); l.add(this.layouts.label);e.add(l);this.buttons.attack.layout.save=new qx.ui.form.Button(d("Сохранить"));this.buttons.attack.layout.save.set({width:80,appearance:"button-text-small",toolTipText:d("Сохранить расстановку")});this.buttons.attack.layout.save.addListener("click",this.saveCityLayout,this);e.add(this.buttons.attack.layout.save);a.add(e)}catch(f){console.log(f)}},initializeInfo:function(b){try{var a=new qx.ui.tabview.Page(d("Инфо"));a.setLayout(new qx.ui.layout.VBox(1));b.add(a);var c=new qx.ui.container.Composite; c.setLayout(new qx.ui.layout.VBox(1));c.setThemedFont("bold");c.setThemedPadding(2);c.setThemedBackgroundColor("#eef");a.add(c);var e=(new qx.ui.basic.Label).set({value:"<a target='_blank' href='http://userscripts.org:8080/scripts/discuss/138212'>"+d("Форум")+"</a>",rich:!0});c.add(e);var l=new qx.ui.container.Composite;l.setLayout(new qx.ui.layout.VBox(1));l.setThemedFont("bold");l.setThemedPadding(2);l.setThemedBackgroundColor("#eef");a.add(l);l.add(new qx.ui.basic.Label(d("Захват ресурсов")));this.stats.spoils.tiberium= new qx.ui.basic.Atom("0","webfrontend/ui/common/icn_res_tiberium.png");l.add(this.stats.spoils.tiberium);this.stats.spoils.crystal=new qx.ui.basic.Atom("0","webfrontend/ui/common/icn_res_chrystal.png");l.add(this.stats.spoils.crystal);this.stats.spoils.credit=new qx.ui.basic.Atom("0","webfrontend/ui/common/icn_res_dollar.png");l.add(this.stats.spoils.credit);this.stats.spoils.research=new qx.ui.basic.Atom("0","webfrontend/ui/common/icn_res_research_mission.png");l.add(this.stats.spoils.research); var f=new qx.ui.container.Composite,g=new qx.ui.layout.Grid;f.setLayout(g);f.setThemedFont("bold");f.setThemedBackgroundColor("#eef");a.add(f);this.buttons.optionStats=(new qx.ui.form.Button).set({height:25,width:160,margin:15,alignX:"center",label:d("Настройки"),appearance:"button-text-small",icon:"FactionUI/icons/icon_forum_properties.png",toolTipText:d("Настройки")});this.buttons.optionStats.addListener("click",this.toggleOptionsWindow,this);f.add(this.buttons.optionStats,{row:0,column:0});this.battleResultsBox.add(b)}catch(k){console.log(k)}}, initializeOptions:function(){try{var b=new qx.ui.container.Composite;b.setLayout(new qx.ui.layout.VBox(1));b.setThemedPadding(10);b.setThemedBackgroundColor("#eef");this.optionsWindow.add(b);var a=new qx.ui.container.Composite,c=new qx.ui.layout.Grid(5,5);c.setColumnFlex(2,1);a.setLayout(c);a.setThemedFont("bold");a.setThemedBackgroundColor("#eef");b.add(a);a.add(new qx.ui.basic.Label(d("Версия: ")+"1.03RU_Alpha by RomApache | Lertier"),{row:0,column:0,colSpan:3});this.options.autoDisplayStats=new qx.ui.form.CheckBox(d("Автоматически показывать стату")); var e=localStorage.ta_sim_popup;e?(e=JSON.parse(localStorage.ta_sim_popup),this.options.autoDisplayStats.setValue(e)):this.options.autoDisplayStats.setValue(!0);this.options.autoDisplayStats.addListener("click",this.optionPopup,this);a.add(this.options.autoDisplayStats,{row:1,column:0,colSpan:3});this.options.markSavedTargets=new qx.ui.form.CheckBox(d("Отмечать сохранённые цели на карте"));(e=localStorage.ta_sim_marksavedtargets)?(e=JSON.parse(localStorage.ta_sim_marksavedtargets),this.options.markSavedTargets.setValue(e)): this.options.markSavedTargets.setValue(!0);this.options.markSavedTargets.addListener("click",function(){localStorage.ta_sim_marksavedtargets=JSON.stringify(this.options.markSavedTargets.getValue())},this);a.add(this.options.markSavedTargets,{row:2,column:0,colSpan:3});this.options.dblClick2DeActivate=new qx.ui.form.CheckBox(d("Двойной клик для (де)активации"));(e=localStorage.ta_sim_dblClick2DeActivate)?(e=JSON.parse(localStorage.ta_sim_dblClick2DeActivate),this.options.dblClick2DeActivate.setValue(e)): this.options.dblClick2DeActivate.setValue(!0);this.options.dblClick2DeActivate.addListener("click",function(){localStorage.ta_sim_dblClick2DeActivate=JSON.stringify(this.options.dblClick2DeActivate.getValue())},this);a.add(this.options.dblClick2DeActivate,{row:3,column:0,colSpan:3});this.options.showShift=new qx.ui.form.CheckBox(d("Кнопки сдвига"));(e=localStorage.ta_sim_showShift)?(e=JSON.parse(localStorage.ta_sim_showShift),this.options.showShift.setValue(e)):this.options.showShift.setValue(!0); this.options.showShift.addListener("click",this.optionShowShift,this);a.add(this.options.showShift,{row:4,column:0,colSpan:3});this.options.sideLabel=new qx.ui.basic.Label(d("Сдвиг:"));this.options.leftSide=new qx.ui.form.RadioButton(d("Влево"));this.options.rightSide=new qx.ui.form.RadioButton(d("Вправо"));var l=new qx.ui.form.RadioGroup;l.add(this.options.leftSide,this.options.rightSide);(e=localStorage.ta_sim_side)?(e=JSON.parse(localStorage.ta_sim_side),this.options.rightSide.setValue(e)):this.options.rightSide.setValue(!0); l.addListener("changeSelection",this.setupInterface,this);a.add(this.options.sideLabel,{row:5,column:0});a.add(this.options.leftSide,{row:5,column:1});a.add(this.options.rightSide,{row:5,column:2});this.options.locksLabel=new qx.ui.basic.Label(d("Блокировать:"));this.options.attackLock=new qx.ui.form.CheckBox(d("Атака"));(e=localStorage.ta_sim_attackLock)?(e=JSON.parse(localStorage.ta_sim_attackLock),this.options.attackLock.setValue(e)):this.options.attackLock.setValue(!0);this.options.repairLock=new qx.ui.form.CheckBox(d("Ремонт")); (e=localStorage.ta_sim_repairLock)?(e=JSON.parse(localStorage.ta_sim_repairLock),this.options.repairLock.setValue(e)):this.options.repairLock.setValue(!0);this.options.attackLock.addListener("click",this.optionAttackLock,this);this.options.repairLock.addListener("click",this.optionRepairLock,this);a.add(this.options.locksLabel,{row:6,column:0});a.add(this.options.attackLock,{row:6,column:1});a.add(this.options.repairLock,{row:6,column:2});this.options.showStatsDuringAttack=new qx.ui.form.CheckBox(d("Показывать стату во время атаки")); this.options.showStatsDuringAttack.saveLocation="showStatsDuringAttack";this.options.showStatsDuringAttack.setValue(this.saveObj.checkbox.showStatsDuringAttack);this.options.showStatsDuringAttack.addListener("click",this.toggleCheckboxOption,this);a.add(this.options.showStatsDuringAttack,{row:7,column:0,colSpan:3});this.options.showStatsDuringSimulation=new qx.ui.form.CheckBox(d("Показывать стату во время симуляции"));this.options.showStatsDuringSimulation.saveLocation="showStatsDuringSimulation";this.options.showStatsDuringSimulation.setValue(this.saveObj.checkbox.showStatsDuringSimulation); this.options.showStatsDuringSimulation.addListener("click",this.toggleCheckboxOption,this);a.add(this.options.showStatsDuringSimulation,{row:8,column:0,colSpan:3});this.options.skipVictoryPopup=new qx.ui.form.CheckBox(d("Не показывать результаты после боя"));this.options.skipVictoryPopup.saveLocation="skipVictoryPopup";this.options.skipVictoryPopup.setValue(this.saveObj.checkbox.skipVictoryPopup);this.options.skipVictoryPopup.addListener("click",this.toggleCheckboxOption,this);a.add(this.options.skipVictoryPopup, {row:9,column:0,colSpan:3});webfrontend.gui.reports.CombatVictoryPopup.getInstance().addListener("appear",function(){this.saveObj.checkbox.skipVictoryPopup&&webfrontend.gui.reports.CombatVictoryPopup.getInstance()._onBtnClose()},this);this.options.disableAttackPreparationTooltips=new qx.ui.form.CheckBox(d("Отключить подсказки в окне подготовки"));this.options.disableAttackPreparationTooltips.saveLocation="disableAttackPreparationTooltips";this.options.disableAttackPreparationTooltips.setValue(this.saveObj.checkbox.disableAttackPreparationTooltips); this.options.disableAttackPreparationTooltips.addListener("click",this.toggleCheckboxOption,this);a.add(this.options.disableAttackPreparationTooltips,{row:10,column:0,colSpan:3});this.options.disableArmyFormationManagerTooltips=new qx.ui.form.CheckBox(d("Отключить подсказки для юнитов"));this.options.disableArmyFormationManagerTooltips.saveLocation="disableArmyFormationManagerTooltips";this.options.disableArmyFormationManagerTooltips.setValue(this.saveObj.checkbox.disableArmyFormationManagerTooltips); this.options.disableArmyFormationManagerTooltips.addListener("click",this.toggleCheckboxOption,this);a.add(this.options.disableArmyFormationManagerTooltips,{row:11,column:0,colSpan:3});this.options.statsOpacityLabel=new qx.ui.basic.Label(d("Прозрачность"));this.options.statsOpacityLabel.setMarginTop(10);a.add(this.options.statsOpacityLabel,{row:12,column:0,colSpan:3});this.options.statsOpacity=new qx.ui.form.Slider;a.add(this.options.statsOpacity,{row:13,column:1,colSpan:2});this.options.statsOpacity.setValue(this.saveObj.slider.statsOpacity); this.options.statsOpacityOutput=new qx.ui.basic.Label(String(this.saveObj.slider.statsOpacity));a.add(this.options.statsOpacityOutput,{row:13,column:0});this.options.statsOpacity.addListener("changeValue",function(){var a=this.options.statsOpacity.getValue();this.battleResultsBox.setOpacity(a/100);this.options.statsOpacityOutput.setValue(String(a)+"%");this.saveObj.slider.statsOpacity=a},this);var f=new qx.ui.container.Composite;f.setLayout(new qx.ui.layout.VBox(1));f.setThemedFont("bold");f.setThemedPadding(10); f.setThemedBackgroundColor("#eef");b.add(f);var g=(new qx.ui.basic.Label).set({value:"<a target='_blank' href='http://userscripts.org/scripts/discuss/138212'>"+d("Форум")+"</a>",rich:!0});f.add(g)}catch(k){console.log(k)}},toggleCheckboxOption:function(b){b=b.getTarget();var a=b.getValue();this.saveObj.checkbox[b.saveLocation]=a;this.saveData()},createBasePlateFunction:function(b){try{var a=b.prototype,c;for(c in a)if("function"===typeof a[c]&&(e=a[c].toString(),-1<e.indexOf("region_city_owner"))){c= /[A-Z]{6}\=\(new \$I.[A-Z]{6}\).[A-Z]{6}\(\$I.[A-Z]{6}.Black/;var e=e.match(c).toString(),d=e.slice(0,6);if(b===ClientLib.Vis.Region.RegionNPCCamp){var f="return "+e.slice(12,21)+".prototype."+e.slice(23,29)+".toString();",g=Function("",f),e=g();c=/.I.[A-Z]{6}.prototype.[A-Z]{6}/;var k=e.match(/.I.[A-Z]{6}.prototype/).toString(),e=e.match(c).toString(),f="return "+e+".toString();",g=Function("",f),e=g(),h=e.match(/this.[A-Z]{6}=a/).toString(),h="this."+h.slice(5,11)+"=a;",n=e.match(/this.[A-Z]{6}\(\)/).toString(), n="this."+n.slice(5,13)+";",m=k+".setPlateColor = function(a){"+h+n+"};regionObject.get_BasePlate = function(){return this."+d+";}"}else m="regionObject.get_BasePlate = function(){return this."+d+";}";g=Function("regionObject",m);g(a);break}}catch(q){console.log(q)}},initToolBarListeners:function(){try{var b=this._PlayArea.getLayoutParent().getBounds(),a=this._PlayArea.getLayoutParent().getBounds().width;this._PlayArea.addListener("mouseover",function(){this.toolBar.isVisible()&&(this.toolBarMouse.show(), this.toolBar.setLayoutProperties({bottom:this.TOOL_BAR_LOW}),this.toolBar.setZIndex(1))},this);this._armyBarContainer.addListener("appear",function(){this._armyBarContainer.setZIndex(3);this.toolBar.show();this.toolBarMouse.show()},this);this._armyBarContainer.addListener("changeVisibility",function(){this._armyBarContainer.isVisible()?(this.toolBar.show(),this.toolBarMouse.show()):(this.toolBar.hide(),this.toolBarMouse.hide())},this);this.toolBarMouse.addListener("mouseover",function(){var c=b.width; a!==c&&(a=c,c=this._armyBarContainer.getBounds())&&(this.toolBar.setDomLeft(c.left+(c.width-this.TOOL_BAR_WIDTH)/2),this.toolBarMouse.setDomLeft(c.left+(c.width-this.TOOL_BAR_WIDTH)/2));this.toolBarMouse.hide();this.toolBar.setZIndex(11);this.toolBar.setLayoutProperties({bottom:this.TOOL_BAR_HIGH})},this);this.toolBar.addListener("appear",function(){this.toolBar.setZIndex(1)},this);this._armyBar.addListener("mouseover",function(){this.toolBarMouse.show();this.toolBar.setZIndex(1);this.toolBar.setLayoutProperties({bottom:this.TOOL_BAR_LOW})}, this);this._armyBar.addListener("click",function(){this.armybarClickCount+=1;1==this.armybarClickCount&&(this.armybarClearnClickCounter=setInterval(this.resetDblClick,500))},this)}catch(c){console.log(c)}},setupInterface:function(){try{localStorage.ta_sim_side=JSON.stringify(this.options.rightSide.getValue());var b=this._Application.getUIItem(ClientLib.Data.Missions.PATH.OVL_PLAYAREA),a=this._Application.getUIItem(ClientLib.Data.Missions.PATH.OVL_PLAYAREA).getLayoutParent().getLayoutParent().getBounds().width; this.armybarClickCount=0;switch(this._MainData.get_Player().get_Faction()){case ClientLib.Base.EFactionType.GDIFaction:var c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAFTElEQVR4XtWVW28bRRTHz5nZ9Xrt2IlzKUlanJReiEhLpUpFPAQJBIUH4K1IXEQf+AZIfIE+9oXPgAChPlb0DVGFXlBBlFJoaakobVVCkxbiJI7ttdfeOfwnySo18UXIlRBnd+X1zP/8/mfO7tj0v4lvStKDtseYfVAiGxeCBt8Q8a5Hkj67JGkRYVyEe/2LwSWioNnMeZRx4so1vhLK0Km7xbdO3Fw6fnYpOvr+ye9e/uDzi4NnlqIdGJvC3PjVUNzPfrr66IzP/ylk47pI4tTc6psnbi3/cPmvslxalZPvfjz74dFPZnfj/hDGXsPcc9CMQ8txbrdQ3QQzI0xn7ghXyjRKrJ59aiA5dWAoRa6mEWau4zKOogTGGHN90OTKZUoix+b2XoCNTJ7U/EppplKrHx7w9BpViEwsEHsiMEfQDC+slHLZCbK63gs4VxGqBpR3tDs9PZDMu0p7QSTEQg34xhCxY5jT0PjQZoMK+cjt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6YhNg/x15GquSUOxqhQ0jt9wqMtpU4KdG9h3Mhts0lBKZTK1xXantpCKSODQcCY710LDdSrxjMxkOwgUKbzRbbqT4+zXz3IItA0Ezj/GomcePMQKcuH9HSx6fv70T0KzcLgY6GqkAAAAAElFTkSuQmCC", g="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAACgCAMAAACL85puAAAAn1BMVEX////c3Nzr6+vw8PDT09PFxcXp6enV1dWdnpro6Ojt7e2en5v29vb39/fq6uqhop+kpaOdnpvs7OyhoZ7g4ODOzs7Q0NDX19eam5ecnZq9vb3CwsK6urrGxsbv7+/Hx8fy8vKPkIyTlJC2tLGSk5DLy8ubnJiWl5TR0dGdnpwbfqafoJzZ2dna2trIyMj19fXd3d3e3t74+Pj5+fn6+voyWnv7AAAAAXRSTlMAQObYZgAAAR9JREFUeF7tmkduxTAMREnJvf/ea3qv9z9bYuQE0XyAXswDuJ3FA2XPgkJEHkFEQSRSjZDBAxQED7hCHTzgARhyqz3++7MOQ1a9A18d/T4MyVSj8ZsvnGv+cM2/kImqr7xL8kCk1enXsUjyUKTUae1dDgVU+wYIaM0DyssE0AEd0EGGO+Aqj9CAMxpwQgOuzQNOeAAdnM1XuVUFn7N5QKtKB8MLSFAHiYlELpJ9wajZE9mVl9YtjSWLDnrkzqCl8XswZAd0QAd0QAd0MLrIz5UdiQ7M6/6S/YD9YEAO6IAO6GDy8oGdUGTP79gRx2qxcNAZyVOapgVyyFJGv4yBU5puPj8c7l34MU83m+12wMgNiLyCSBzH6zUwst1stsj8AK74lmQgdGoWAAAAAElFTkSuQmCC"; break;case ClientLib.Base.EFactionType.NODFaction:c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAFrklEQVR4XtVW3W8UZRd/zjPPzO7Mdks/toW2ZrGIpXyIpkFNGtQLJUbfGBODgjHhwuitt8a/wAuMMYG8SSVw440avVAQQzABLBRiAiWEQIyQki3U7ee2u9vdnZ2dOf5myu72g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QRDe0JNxDuPcCayehSSCUFtr//7US8QX1IBmhGcmvR+zBseZhhRE5fGARBSOpaoocHKBgcMAnOsIPDsAiX9rE/n5XbpFT81NstrdHt0h9AZy3tjQmv8bk/4rsVG1mTRE4RkJtzfZlETgD2tqqrAkgQHbMAUDoHXAdgQ7ogA7gEWr+jfgIYxQQo4ARChh6B4zoAB8h9n6VQ1X0c8YB8Ah0cH+AAnVQ8CJ5uUj+C0bFnsiuvEQBMQsGS9YtAFO4pfE94JtIB3RAB3TwWA7GKGDKjsSe2AC81/0l3wO+iXRAB3RwRw52r2tshaJ+e8eWOE6rlYHWSDZJkpTIIks7veQMrNLMF4vJ5MW4L/PMu91+HzjyBEaewUgURYMBcKTX6fSQ8wfrkQWdCN/EzwAAAABJRU5ErkJggg%3D%3D"}this.toolBar&& this._armyBar.getLayoutParent().getLayoutParent().remove(this.toolBar);this.repairInfo&&b.remove(this.repairInfo);this.repairInfo=new qx.ui.container.Composite;var k=new qx.ui.layout.Grid;k.setColumnAlign(0,"right","middle");this.repairInfo.setLayout(k);this.repairInfo.setThemedFont("bold");this.repairInfo.set({visibility:!1});this.repairInfo.add(new qx.ui.basic.Image("webfrontend/ui/icons/icn_repair_off_points.png"),{row:0,column:1});this.labels.repairinfos.available=(new qx.ui.basic.Label("100")).set({textColor:"white"}); this.repairInfo.add(this.labels.repairinfos.available,{row:0,column:0});this.repairInfo.add(new qx.ui.basic.Image("webfrontend/ui/icons/icon_res_repair_inf.png"),{row:1,column:1});this.labels.repairinfos.infantry=(new qx.ui.basic.Label("100")).set({textColor:"white"});this.repairInfo.add(this.labels.repairinfos.infantry,{row:1,column:0});this.repairInfo.add(new qx.ui.basic.Image("webfrontend/ui/icons/icon_res_repair_tnk.png"),{row:2,column:1});this.labels.repairinfos.vehicle=(new qx.ui.basic.Label("100")).set({textColor:"white"}); this.repairInfo.add(this.labels.repairinfos.vehicle,{row:2,column:0});this.repairInfo.add(new qx.ui.basic.Image("webfrontend/ui/icons/icon_res_repair_air.png"),{row:3,column:1});this.labels.repairinfos.aircraft=(new qx.ui.basic.Label("100")).set({textColor:"white"});this.repairInfo.add(this.labels.repairinfos.aircraft,{row:3,column:0});b.add(this.repairInfo,{bottom:130,right:3});this.toolBar=new qx.ui.container.Composite;this.toolBar.setLayout(new qx.ui.layout.Canvas);this.toolBar.setHeight(53);this.toolBar.setWidth(this.TOOL_BAR_WIDTH); this.toolBar.set({decorator:(new qx.ui.decoration.Background).set({backgroundImage:"FactionUI/menues/victory_screen/bgr_victscr_header.png"}),visibility:!1});this._armyBar.getLayoutParent().getLayoutParent().add(this.toolBar,{bottom:this.TOOL_BAR_HIGH,left:(a-this.TOOL_BAR_WIDTH)/2,visibility:!1});this.toolBarMouse=new qx.ui.container.Composite;this.toolBarMouse.setLayout(new qx.ui.layout.Canvas);this.toolBarMouse.setHeight(25);this.toolBarMouse.setWidth(740);this._armyBar.getLayoutParent().getLayoutParent().add(this.toolBarMouse, {bottom:155,left:(a-this.TOOL_BAR_WIDTH)/2});this.toolBarMouse.hide();this.toolBarMouse.setBackgroundColor("#FF0000");this.toolBarMouse.setOpacity(0);this.toolBarMouse.setZIndex(10);this.initToolBarListeners();this.buttons.attack.activateAll=new qx.ui.form.ToggleButton("","FactionUI/icons/icon_disable_unit_active.png");this.buttons.attack.activateAll.set({width:44,height:40,padding:0,show:"icon",appearance:"button-text-small",toolTipText:"<strong>"+d("Деактивировать всё")+"</strong>"});this.buttons.attack.activateAll.addListener("changeValue", function(){var a=this.buttons.attack.activateAll;a.getValue()?(a.setOpacity(0.75),a.setToolTipText("<strong>"+d("Активировать всё")+"</strong>")):(a.setOpacity(1),a.setToolTipText("<strong>"+d("Деактивировать всё")+"</strong>"))},this);this.buttons.attack.activateAll.addListener("execute",function(){var a=this.buttons.attack.activateAll;this.buttons.attack.activateInfantry.getValue()!==a.getValue()&&this.buttons.attack.activateInfantry.setValue(a.getValue());this.buttons.attack.activateVehicles.getValue()!== a.getValue()&&this.buttons.attack.activateVehicles.setValue(a.getValue());this.buttons.attack.activateAir.getValue()!==a.getValue()&&this.buttons.attack.activateAir.setValue(a.getValue())},this);this.buttons.attack.activateInfantry=new qx.ui.form.ToggleButton("","FactionUI/icons/icon_alliance_bonus_inf.png");this.buttons.attack.activateInfantry.set({width:44,height:40,appearance:"button-text-small",toolTipText:"<strong>"+d("Дективировать пехоту")+"</strong>"});this.buttons.attack.activateInfantry.addListener("changeValue", function(){var a=this.buttons.attack.activateInfantry;a.getValue()===this.buttons.attack.activateVehicles.getValue()&&a.getValue()===this.buttons.attack.activateAir.getValue()&&this.buttons.attack.activateAll.setValue(a.getValue());this.activateUnits("infantry",!a.getValue());a.getValue()?(a.setOpacity(0.75),a.setToolTipText("<strong>"+d("Активировать пехоту")+"</strong>")):(a.setOpacity(1),a.setToolTipText("<strong>"+d("Дективировать пехоту")+"</strong>"))},this);this.buttons.attack.activateVehicles= new qx.ui.form.ToggleButton("","FactionUI/icons/icon_alliance_bonus_tnk.png");this.buttons.attack.activateVehicles.set({width:44,height:40,appearance:"button-text-small",toolTipText:"<strong>"+d("Деактивировать технику")+"</strong>"});this.buttons.attack.activateVehicles.addListener("changeValue",function(){var a=this.buttons.attack.activateVehicles;a.getValue()===this.buttons.attack.activateInfantry.getValue()&&a.getValue()===this.buttons.attack.activateAir.getValue()&&this.buttons.attack.activateAll.setValue(a.getValue()); this.activateUnits("vehicles",!a.getValue());a.getValue()?(a.setOpacity(0.75),a.setToolTipText("<strong>"+d("Активировать технику")+"</strong>")):(a.setOpacity(1),a.setToolTipText("<strong>"+d("Деактивировать технику")+"</strong>"))},this);this.buttons.attack.activateAir=new qx.ui.form.ToggleButton("","FactionUI/icons/icon_alliance_bonus_air.png");this.buttons.attack.activateAir.set({width:44,height:40,appearance:"button-text-small",toolTipText:"<strong>"+d("Деактивировать авиацию")+"</strong>"});this.buttons.attack.activateAir.addListener("changeValue", function(){var a=this.buttons.attack.activateAir;a.getValue()===this.buttons.attack.activateInfantry.getValue()&&a.getValue()===this.buttons.attack.activateVehicles.getValue()&&this.buttons.attack.activateAll.setValue(a.getValue());this.activateUnits("air",!a.getValue());a.getValue()?(a.setOpacity(0.75),a.setToolTipText("<strong>"+d("Активировать авиацию")+"</strong>")):(a.setOpacity(1),a.setToolTipText("<strong>"+d("Деактивировать авиацию")+"</strong>"))},this);this.buttons.attack.formationReset=new qx.ui.form.Button("", "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACF9JREFUeNqEV2tMXGUannPmxjADTGGGYZlpyx2hpZbey1ba9LLAguhWE29N6yU2aaLxhz/7Q/rDGKMxxsSoGK1Lq7GkabW2W7CpKZVLbVpBoVwKwi7Qcr8zM8zlnNnnPfse9nQW3ZM8c+Y7t/f53svzfp+g0xyRSETASQ8Y+JLE0PE1I2AGTAx6NgKEgSAQ4HOYEREEQfdHhxBlnAwkAIl8bx7wsiH1uh2IB2KZhMyGF/n5GWAWmAP8/4+IEGV8FfAQkAOIwD1gCogB3EAqPTPR0eGc6euz6wRBFJTXI5J7585xq8s1zc+PAP/k92eYoLQSCSHKOBn+83Bz886Omhp36ccfN2FMHzXdPX8+p7O2Nutec7MruLAgyJIksfuVOYhGo96WkhJYXVw8vuWVVzod+fnduN4J/MaEyJNhkIhEEzCwW2nmO2B894Xnntu6NDMj5z7xhLfw6NHBa8ePrx29fdsakWVZa1RzVqHc15tMhsyysrG977zTBK+0M5EBDk1QS4IIkHvXAsXDTU3lFw4d2uGfnlYST6BDr9fL4XB4BaMrGuezAhg3Hvjgg/bM0tKbGN9iIhNMQvmAqMkFoePUKQ/NXJOYkZWMEy+43KCCZhxtnOAdG/N9d/hwbtunn+7GeBOQCcRp7CoeoPg7gS3A/ksvvljac+6cjYxrK5R+YMiY8/jjC2n79t3Lf/rpO5z5Ot/4ePzAlStr2mtq1ozcumUC6RCXLxEJG2JiDJWnT/elHzjwA8bXOS+WKBREQOQSKw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2W9+ST2fDCfRaZUQ0J5Sj58EPqhnvQiFATYaXUqJxvvvdeB8K6vuPLL++rxmmymSUlJu4D5IWwvqqqShUjJ+LugcviVAJwnRRcXExCP/eyy7yqqvFH6ZqQUVqqQ22noQF5kRNkKAAyS0ONjf1Qv2nVOGZuhDo6INW3Me6nsBKBCPdnKzxg7fz667yQzxdiEhI8YkEHs6ds2iSr6wZNP1d7vyV9//4YORTKRDueRE6oM16eOf3f/vrrBdkVFeSRVk7qgEpAWd+ZbDYzjCUM1Nc7SGSUOpek4GBDQ5x/ctKTUlgYZ4yNdXJOOFlSk/i/e01xcYLeaExG3Ifxnk9rPHXbtqRH3nijADb6OYcoDCEioM6ESAjJGzbEoGNlQK30iKGysKDYYmbywNWra5HhrniPJ9Fgsbh5KZdOibo4MuJCu46FHgzNDw6OaY3TOez3z7q3b89EEoa4jU8pJalZlptYy7cBj0DZdpG4kMhoWyqdY+x2c0JamoyY+kVRlHyTk5Hpvr45eGkq2u18Jvji3G4ZalqJNn2V2jaFwcBKRW02yKzIPbbSjz6SIRhFXbW1ArI6rEm+EJLTu9TWFhpra9Puhv4n5o68POvi6KgXCUrh8BUcOZK/KisromqAsr7ULEDVRaqNXUuavr7n/PkNjSdOpMwODExqu1rUVuwB46b4eLnw5Zfz0AnTpnt65q+89trf0dozNh07ts2ckEB7jUZWSq8QtTfUcSeL5cTKAHL9U1NZ/fX1GQiJday1dZEWFisZd23c6MgqL7dgcxLr3rFDzQM79hQxNHMY/5UWK7xoWVQ2Kivt1zS7Jaua4ewVNzzhmu7tTcLMJCinDpBo1eMqLAzb09MnTHFx4yxYwxyKRIaPl23/YhWUqQH/7tZV4w2ViJ3LTl1MWNRup9mczrFizrDSSSxyFo75AhNZ3if+8d75v94QuHOqW3Oz2s9/Z3uu7gtUkRO1GxftJvXfAgwA2h5U++q5JEgAAAAASUVORK5CYII="); this.buttons.attack.formationReset.set({width:44,height:40,appearance:"button-text-small",toolTipText:"<strong>"+d("Восстановить")+"</strong>"});this.buttons.attack.formationReset.addListener("click",this.resetFormation,this);this.buttons.attack.flipHorizontal=new qx.ui.form.Button("",c);this.buttons.attack.flipHorizontal.set({width:44,height:40,padding:0,show:"icon",appearance:"button-text-small",toolTipText:"<strong>"+d("Отразить по горизонтали")+"</strong>"});this.buttons.attack.flipHorizontal.addListener("click", function(){this.flipFormation("horizontal")},this);this.buttons.attack.flipVertical=new qx.ui.form.Button("",e);this.buttons.attack.flipVertical.set({width:44,height:40,padding:0,show:"icon",appearance:"button-text-small",toolTipText:"<strong>"+d("Отразить по вертикали")+"</strong>"});this.buttons.attack.flipVertical.addListener("click",function(){this.flipFormation("vertical")},this);this.buttons.attack.repairMode=new qx.ui.form.ToggleButton("","FactionUI/icons/icon_mode_repair_active.png");this.buttons.attack.repairMode.set({width:44, height:40,padding:0,show:"icon",appearance:"button-text-small",toolTipText:"<strong>"+d("Активировать режим ремонта")+"</strong>"});this.buttons.attack.repairMode.addListener("execute",this.toggleRepairMode,this);this.buttons.attack.repairMode.addListener("changeValue",function(){var a=this.buttons.attack.repairMode;a.getValue()?a.setToolTipText("<strong>"+d("Деактивировать режим ремонта")+"</strong>"):a.setToolTipText("<strong>"+d("Активировать режим ремонта")+"</strong>")},this);this.buttons.attack.toolbarRefreshStats= new qx.ui.form.Button("",l);this.buttons.attack.toolbarRefreshStats.addListener("click",this.refreshStatistics,this);this.buttons.attack.toolbarRefreshStats.set({width:44,height:40,padding:0,show:"icon",appearance:"button-text-small",toolTipText:"<strong>"+d("Обновить стату")+"</strong>"});this.buttons.attack.toolbarShowStats=new qx.ui.form.Button("","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAACXBIWXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH3QMQFzoqkrYqRAAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAGrUlEQVRYw52WyY9c1RXGf+fe+4aqrqG7qgd6wm2MjYnBKFFIskAifw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cywkxfDDX/3hj1e77VaMihhrJMRA9IEkTbDOgJ6OX4SoEdVTHAHvoa4hM8JnD88ex/8DigFIoHwdTR8AAAAASUVORK5CYII="); this.buttons.attack.toolbarShowStats.addListener("click",this.toggleTools,this);this.buttons.attack.toolbarShowStats.set({width:44,height:40,padding:0,show:"icon",appearance:"button-text-small",toolTipText:"<strong>"+d("Открыть стату")+"</strong>"});this.buttons.attack.toolbarUndo=new qx.ui.form.Button("","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAzdJREFUeNq8ll2ITGEYx+edj901i2UNaaiVyFdK3PgohUJSyo3ykVsXeyFy7+NOElfkjpBy5Yoil5S4EclolfK5YwfL7JwzX8f/af5Hj9eZs2P3nD3165yZc877/N//857nfUwi5PA8T05GLo0xiTiO5DjBe8BaMIDfZsoEMHg32Akug00gNZUOSLD14CQYAu9BMw4B6YDZi9WrwGnQC56A161bf9Lg6Xcmsz7SAcHz4BTIge+gClaA5QxcBqO8Fn7hvTGcXVAXp/5HkLHyPhucAdvAGAV2B6RHjmGKk+c+gLfgKd0qiiAI8ToSwOAzwVFwGPxgzvUAnvXbv29IimI/g0fgNiiAWpgjvgB5eR+tL9PKoOA2TXXWgqZxnEvgrrjUTkRSnXO03Jtg8AaFO2CEv0+AI6CPLrcVUANXwXUwS+XZn1FSYRSJABH+ucy1sB8MyrhBIuxF2AeOgUOgRCEVDtYMcKeXC1dm/ZPP1pUbDcYQd2+BG/KMTkdaf8sQIYvvPBfTHg58H9zkqrfFT6eIzWALWMxZV5UI4RPYC16Bx7qope2CQhEXafdusJIDD+F+3aobJV6+AXfALnCA/5WUAIfjyb0C3iv6LvxTinlDPqULnL0UoNWg386hPEvqfEecOsfUZRi8Rke+ggUsaiZ0L2ABEdvOsrAsA9nQgtISLjN9CK6BebS6RiEVitwIutruBVoEDhFxnIvoy3gllimUkvwAbOf4dTpQowuLWPSKof0AB5QZvAPPcF3pqLa3REqge3StpigzPTk/nclOBpzAbifCn6sU+OvAUXtMZwImcVSt4FXumA47LRO6BiJqdhpW8Cq38mzcDhh+OQ4Du0pIimlIxOlAF+vHNxXcVRWy4pf0yB3g6s6z4Iyo4C7XQ4bOxJYCcXUDv/+yCu6oDW20bSmOYPZSbreym66o4C5TM0ZhsTggu+gOBhu2gksq5qr/oxWA2SfZzq8DLzlLx7J/DrfkRqQCaP18cBB8ZDvvWg7MkBaeW7cXtQOG3ZTMrB+sAUs5Y/9TXwJe6AX4V0sWUQqy7CnlMxwAC/lfhuKu2LuqiakO+I1sD3vGPHvGAoI39PO/BRgAhgJgQiBnZrUAAAAASUVORK5CYII="); this.buttons.attack.toolbarUndo.addListener("click",function(){console.log("Отменить")},this);this.buttons.attack.toolbarUndo.set({width:44,height:40,padding:0,show:"icon",appearance:"button-text-small",toolTipText:"<strong>"+d("Отменить")+"</strong>"});this.buttons.attack.toolbarRedo=new qx.ui.form.Button("","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAx9JREFUeNq8l8uPDFEUxvtWV8/o7hmPTCeeC4bJYIhHIhZYiNjZ2CEidlYWHrEwEyxn7x+wtbSxFqyJiEeEeGS0kU4YY3qobt3lO/HdOK6q6mrd5Sa/VLoe93zn3HPuPZ3LZTTCMDSg43teRsZ9XDaD1SLkvwvAKIFT4DqoJEUiKwFN8A5sB+fB0jgRXo+hdjEMeQM8BE/BCXAWlKNE+N0mFi55UABLwDAY4GO5N8LnOT6vglFwEnwBNzDHgjG/08Kk8ZKREmMbwU4wAVaBNfKKhBgsA21i5/0BAjoqeXEJ3JZ7VoRJ4bFMvgMcB7s5mUzccpbSOE7puQ0jJblxDtyHgHaiABiXUG4CZ8B+ehIog54ybK9RaBFFUAPHwKxEwU8wLnV8lWGuMdR5tcba+3ZCQmsRErUyGIxNQhiXibayfIbAR06Sj5nYJEQiR+F2Cb6CKUlOmwN+xJqvBRcZrk807DtrOcTnkvnv6ZlxRA3QW8OKmGc5PoLxVlwEilyfYRr3nVAv57274A54xYkbEdHZA06DbUy+C67xPwTQ+w1gnyQIQxcq4yvAGzANXjMhf2WyqmuWrZTkGPNInLoCHrjG3QjIi0fo0aIT9gpFXZaQY6Kww/myBexisk2y9htRL/tK9Up+NMM6t6PMj6eZPJ3OWBGwHoyDa+CW3njiIuDxAzG0oDLecN1vgud28+gwWsyRl+BJknEtwOem8wF8V/v7IH/fiwvhX0Vv5DwKq7rUkoavDo5KREbLDJ/lfprJlIjU71oBeWZ0nSWTU5tILa33/zJ8Z+0CJwHrjE4hKwGe8jSkp4G6LvI0LKZpMHsR0KTnniOizjIcS9M79CKgwUOnwKy3R+837vUHuFFlJqBFASUVgYBiZtgJjXZqsXvNgSrXu+VEYZ4cUvtDJgJmmQcF5b1dhhc81db1Oxk9tXHMsZevOEsQ8JnkwlFZpn6K8Jw/E4/ZgrWdZQjUH42D3bbzqQTwlHvGtmmEZVeioAl2xHW24/l+CTAR/eBecFhtvxL+t2xGava86Ga/70aA/WM5TsNz3A2bUd1PP8ZPAQYA6tkaX3nBq4MAAAAASUVORK5CYII="); this.buttons.attack.toolbarRedo.addListener("click",function(){console.log("Повторить")},this);this.buttons.attack.toolbarRedo.set({width:44,height:40,padding:0,show:"icon",appearance:"button-text-small",toolTipText:"<strong>"+d("Повторить")+"</strong>"});this.buttons.attack.options=(new qx.ui.form.Button).set({width:44,height:40,appearance:"button-text-small",icon:"FactionUI/icons/icon_forum_properties.png",toolTipText:"<strong>"+d("Настройки")+"</strong>"});this.buttons.attack.options.addListener("click",this.toggleOptionsWindow, this);this.toolBar.add(this.buttons.attack.flipVertical,{top:10,left:10});this.toolBar.add(this.buttons.attack.flipHorizontal,{top:10,left:60});this.toolBar.add(this.buttons.attack.activateAll,{top:10,left:130});this.toolBar.add(this.buttons.attack.activateInfantry,{top:10,left:180});this.toolBar.add(this.buttons.attack.activateVehicles,{top:10,left:230});this.toolBar.add(this.buttons.attack.activateAir,{top:10,left:280});this.toolBar.add(this.buttons.attack.toolbarRefreshStats,{top:10,left:349}); this.toolBar.add(this.buttons.attack.options,{top:10,right:10});this.toolBar.add(this.buttons.attack.repairMode,{top:10,right:60});this.toolBar.add(this.buttons.attack.toolbarShowStats,{top:10,right:110});this.toolBar.add(this.buttons.attack.toolbarRedo,{top:10,right:175});this.toolBar.add(this.buttons.attack.toolbarUndo,{top:10,right:225});this.toolBar.add(this.buttons.attack.formationReset,{top:10,right:275});this.userInterface&&this._armyBar.remove(this.userInterface);if(this.options.rightSide.getValue())var h= 64,n=g,m=5,q=0,s=30,w=15,x=15;else h=90,n=f,m=15,q=16,s=46,x=w=30;this.userInterface=new qx.ui.container.Composite;this.userInterface.setLayout(new qx.ui.layout.Canvas);this.userInterface.setHeight(160);this.userInterface.setWidth(h);this.userInterface.set({decorator:(new qx.ui.decoration.Background).set({backgroundImage:n})});this.options.rightSide.getValue()?this._armyBar.add(this.userInterface,{top:0,right:53}):this._armyBar.add(this.userInterface,{top:0,left:0});this.buttons.attack.simulate=new qx.ui.form.Button(d("СИМ")); this.buttons.attack.simulate.set({width:58,appearance:"button-text-small",toolTipText:d("Начать симуляцию")});this.buttons.attack.simulate.addListener("click",this.startSimulation,this);this.buttons.attack.tools=new qx.ui.form.Button(d("Стата"));this.buttons.attack.tools.set({width:58,appearance:"button-text-small",toolTipText:d("Открыть настройки")});this.buttons.attack.tools.addListener("click",this.toggleTools,this);this.buttons.shiftFormationLeft=new qx.ui.form.Button("<");this.buttons.shiftFormationLeft.set({width:30, appearance:"button-text-small",toolTipText:d("Сдвиг влево")});this.buttons.shiftFormationLeft.addListener("click",function(){this.shiftFormation("l")},this);this.buttons.shiftFormationRight=new qx.ui.form.Button(">");this.buttons.shiftFormationRight.set({width:30,appearance:"button-text-small",toolTipText:d("Сдвиг вправо")});this.buttons.shiftFormationRight.addListener("click",function(){this.shiftFormation("r")},this);this.buttons.shiftFormationUp=new qx.ui.form.Button("^");this.buttons.shiftFormationUp.set({width:30, appearance:"button-text-small",toolTipText:d("Сдвиг вверх")});this.buttons.shiftFormationUp.addListener("click",function(){this.shiftFormation("u")},this);this.buttons.shiftFormationDown=new qx.ui.form.Button("v");this.buttons.shiftFormationDown.set({width:30,appearance:"button-text-small",toolTipText:d("Сдвиг вниз")});this.buttons.shiftFormationDown.addListener("click",function(){this.shiftFormation("d")},this);var y=localStorage.ta_sim_showShift;if(y=y?JSON.parse(localStorage.ta_sim_showShift): !0)this.userInterface.add(this.buttons.shiftFormationUp,{top:16,right:w}),this.userInterface.add(this.buttons.shiftFormationLeft,{top:35,right:s}),this.userInterface.add(this.buttons.shiftFormationRight,{top:35,right:q}),this.userInterface.add(this.buttons.shiftFormationDown,{top:54,right:x});this.userInterface.add(this.buttons.attack.tools,{top:77,left:m});this.userInterface.add(this.buttons.attack.simulate,{top:100,left:m})}catch(B){console.log(B)}},getAttackUnits:function(){try{var b=this._MainData.get_Cities().get_CurrentOwnCity(), a=this._MainData.get_Cities().get_CurrentCity();if(null!=a){var c=a.get_Id(),e=b.get_CityArmyFormationsManager().GetFormationByTargetBaseId(c);this.view.lastUnits=e;this.view.lastUnitList=e.get_ArmyUnits().l}this.attackUnitsLoaded=!0}catch(d){console.log(d)}},optionPopup:function(){localStorage.ta_sim_popup=JSON.stringify(this.options.autoDisplayStats.getValue())},optionShowShift:function(){localStorage.ta_sim_showShift=JSON.stringify(this.options.showShift.getValue());this.options.showShift.getValue()? this.setupInterface():(this.userInterface.remove(this.buttons.shiftFormationUp),this.userInterface.remove(this.buttons.shiftFormationLeft),this.userInterface.remove(this.buttons.shiftFormationRight),this.userInterface.remove(this.buttons.shiftFormationDown))},optionAttackLock:function(){try{localStorage.ta_sim_attackLock=JSON.stringify(this.options.attackLock.getValue()),this.options.attackLock.getValue()?this._armyBar.add(this.buttons.attack.unlock,{top:108,right:9}):this._armyBar.remove(this.buttons.attack.unlock)}catch(b){console.log(b)}}, optionRepairLock:function(){try{localStorage.ta_sim_repairLock=JSON.stringify(this.options.repairLock.getValue()),this.options.repairLock.getValue()?this._armyBar.add(this.buttons.attack.repair,{top:16,right:9}):this._armyBar.remove(this.buttons.attack.repair)}catch(b){console.log(b)}},toggleTools:function(){this.battleResultsBox.isVisible()?this.battleResultsBox.close():this.battleResultsBox.open()},toggleOptionsWindow:function(){this.optionsWindow.isVisible()?this.optionsWindow.close():this.optionsWindow.open()}, getAllUnitsDeactivated:function(){for(var b=this.getFormation(),a=!1,c=0;c<b.length;c++)if(b[c].e){a=!0;break}return a?!1:!0},refreshStatistics:function(){try{var b=this._MainData.get_Cities().get_CurrentOwnCity();!this.getAllUnitsDeactivated()&&0<b.GetOffenseConditionInPercent()&&(this.timerStart(),ClientLib.API.Battleground.GetInstance().SimulateBattle(),this.buttons.attack.toolbarRefreshStats.setEnabled(!1),this.buttons.attack.simulate.setEnabled(!1),this.labels.countDown.setWidth(110),this.count= 10,this.statsOnly=!0)}catch(a){console.log(a)}},countDownToNextSimulation:function(){try{var b=window.TACS.getInstance();b.count-=1;b.labels.countDown.setWidth(b.labels.countDown.getWidth()-11);0>=b.count&&(clearInterval(b.counter),b.buttons.attack.toolbarRefreshStats.setEnabled(!0),b.warningIcon&&(b._armyBar.remove(b.simulationWarning),b.warningIcon=!1))}catch(a){console.log(a)}},formationChangeHandler:function(){try{0==this.labels.countDown.getWidth()||this.warningIcon||(this.simulationWarning= new qx.ui.basic.Image("https://eaassets-a.akamaihd.net/cncalliancesgame/cdn/data/d75cf9c68c248256dfb416d8b7a86037.png"),this.simulationWarning.set({toolTipText:d("Simulation will be based on most recently refreshed stats!")}),this.options.rightSide.getValue()?this._armyBar.add(this.simulationWarning,{top:122,right:67}):this._armyBar.add(this.simulationWarning,{top:122,left:27}),this.warningIcon=!0)}catch(b){console.log(b)}},calculateLoot:function(){try{var b={1:0,2:0,3:0,6:0,7:0},a=ClientLib.API.Battleground.GetInstance().GetLootFromCurrentCity(), c;for(c in a)b[a[c].Type]+=a[c].Count;this.stats.spoils.tiberium.setLabel(this.formatNumberWithCommas(b[1]));this.stats.spoils.crystal.setLabel(this.formatNumberWithCommas(b[2]));this.stats.spoils.credit.setLabel(this.formatNumberWithCommas(b[3]));this.stats.spoils.research.setLabel(this.formatNumberWithCommas(b[6]))}catch(e){console.log(e)}},getRepairCost:function(b,a,c,e,d){if(b!=a){b=ClientLib.API.Util.GetUnitRepairCosts(e,d,0<a?(b-a)/16/c:b/16/c);for(c=a=0;c<b.length;c++)switch(e=b[c],parseInt(e.Type)){case ClientLib.Base.EResourceType.RepairChargeBase:case ClientLib.Base.EResourceType.RepairChargeInf:case ClientLib.Base.EResourceType.RepairChargeVeh:case ClientLib.Base.EResourceType.RepairChargeAir:a+= e.Count}return a}return 0},setLabelColor:function(b,a,c){var e=["green","blue","black","red"],d=e[0];0<=c&&(a=100-a);99.99<a?d=e[3]:50<a?d=e[2]:0<a&&(d=e[1]);b.setTextColor(d)},updateLabel100:function(b,a,c){this.setLabelColor(b,a,c);a=Math.ceil(100*a)/100;b.setValue(a.toFixed(2).toString())},updateLabel100time:function(b,a,c,e){e=a.toFixed(2).toString()+" @ "+phe.cnc.Util.getTimespanString(e);this.setLabelColor(b,a,c);b.setValue(e)},updateStatsWindow:function(){var b=this,a="",c=0;0===this.stats.damage.structures.construction? (a=d("[обновите стату]"),c=0):100>this.stats.damage.structures.overall?(a=d("Победа"),c=1):(a=d("Полное поражение"),c=3);this.labels.damage.outcome.setValue(a);this.labels.damage.outcome.setTextColor(["black","blue","green","red"][c]);this.updateLabel100(this.labels.damage.overall,this.stats.damage.overall,-1);this.updateLabel100(this.labels.damage.units.overall,this.stats.damage.units.overall,-1);this.updateLabel100(this.labels.damage.structures.overall,this.stats.damage.structures.overall,-1);this.updateLabel100(this.labels.damage.structures.construction, this.stats.damage.structures.construction,-1);this.updateLabel100(this.labels.damage.structures.defense,this.stats.damage.structures.defense,-1);this.view.playerCity?this.updateLabel100(this.labels.damage.structures.command,this.stats.damage.structures.command,-1):(this.labels.damage.structures.command.setValue("--"),this.labels.damage.structures.command.setTextColor("green"));a=0<this.stats.supportLevel?this.stats.supportLevel.toString():"--";this.labels.supportLevel.setValue(d("Поддержка ур.")+a+ ": ");this.updateLabel100(this.labels.damage.structures.support,this.stats.damage.structures.support,-1);this.labels.repair.available.setValue(phe.cnc.Util.getTimespanString(this.stats.repair.available));this.labels.attacks.available.setValue("CP:"+this.stats.attacks.availableAttacksCP+" / F:"+this.stats.attacks.availableAttacksAtFullStrength+"/ C:"+this.stats.attacks.availableAttacksWithCurrentRepairCharges);this.updateLabel100time(this.labels.health.overall,this.stats.health.overall,1,this.stats.repair.overall); this.updateLabel100time(this.labels.health.infantry,this.stats.health.infantry,1,this.stats.repair.infantry);this.updateLabel100time(this.labels.health.vehicle,this.stats.health.vehicle,1,this.stats.repair.vehicle);this.updateLabel100time(this.labels.health.aircraft,this.stats.health.aircraft,1,this.stats.repair.aircraft);setTimeout(function(){b.stats.time=b._VisMain.get_Battleground().get_BattleDuration()/1E3;b.setLabelColor(b.labels.time,b.stats.time/120,-1);b.labels.time.setValue(b.stats.time.toFixed(2).toString())}, 1)},formatNumberWithCommas:function(b){return Math.floor(b).toString().replace(/\B(?=(\d{3})+(?!\d))/g,",")},unlockAttacks:function(){this._armyBar.remove(this.buttons.attack.unlock);var b=this;setTimeout(function(){b._armyBar.add(b.buttons.attack.unlock)},2E3)},unlockRepairs:function(){this._armyBar.remove(this.buttons.attack.repair);var b=this;setTimeout(function(){b._armyBar.add(b.buttons.attack.repair)},5E3)},calculateDefenseBonus:function(b,a){try{this.view.playerCityDefenseBonus=Math.round(ClientLib.Base.PointOfInterestTypes.GetTotalBonusByType(ClientLib.Base.EPOIType.DefenseBonus, a.rpois[6].r,a.rpois[6].s))}catch(c){console.log(c)}},hideAll:function(){this.buttons.attack.repairMode.getValue()&&this.buttons.attack.repairMode.execute();this.battleResultsBox.isVisible()&&this.battleResultsBox.close()},gameOverlaysToFront:function(){webfrontend.gui.reports.ReportsOverlay.getInstance().setZIndex(20);webfrontend.gui.mail.MailOverlay.getInstance().setZIndex(20);webfrontend.gui.alliance.AllianceOverlay.getInstance().setZIndex(20);webfrontend.gui.forum.ForumOverlay.getInstance().setZIndex(20); webfrontend.gui.research.ResearchOverlay.getInstance().setZIndex(20);webfrontend.gui.monetization.ShopOverlay.getInstance().setZIndex(20);webfrontend.gui.ranking.RankingOverlay.getInstance().setZIndex(20)},ownCityChangeHandler:function(b,a){console.log("CurrentOwnChange event");this._armyBarContainer.isVisible()&&(this.buttons.attack.toolbarRefreshStats.setEnabled(!1),this.buttons.attack.simulate.setEnabled(!1),this.onCityLoadComplete(),this.resetDisableButtons());this.updateSaveMarkers()},viewChangeHandler:function(b, a){this.curViewMode=a;this.buttons.attack.simulate.setEnabled(!1);this.buttons.attack.toolbarRefreshStats.setEnabled(!1);try{switch(this.hideAll(),a){case ClientLib.Vis.Mode.Battleground:this.curPAVM=qx.core.Init.getApplication().getPlayArea().getViewMode();this.onCityLoadComplete();break;case ClientLib.Vis.Mode.CombatSetup:this.curPAVM=qx.core.Init.getApplication().getPlayArea().getViewMode(),this.onCityLoadComplete()}}catch(c){console.log(c)}},resetDisableButtons:function(){try{this.buttons.attack.activateInfantry.getValue(!0)&& this.buttons.attack.activateInfantry.setValue(!1),this.buttons.attack.activateVehicles.getValue(!0)&&this.buttons.attack.activateVehicles.setValue(!1),this.buttons.attack.activateAir.getValue(!0)&&this.buttons.attack.activateAir.setValue(!1)}catch(b){console.log(b)}},onCityLoadComplete:function(){try{var b=this;if(this._VisMain.GetActiveView().get_VisAreaComplete()){if(setTimeout(function(){var a=ClientLib.Vis.VisMain.GetInstance().get_CombatSetup();a.SetPosition(0,a.get_MinYPosition()+a.get_DefenseOffsetY()* a.get_GridHeight())},500),this.checkAttackRange(),3<this.curPAVM){this.showCombatTools();var a=this._MainData.get_Cities().get_CurrentCity();if(null!=a){var c=this._MainData.get_Cities().get_CurrentOwnCity();this.stats.attacks.attackCost=c.CalculateAttackCommandPointCostToCoord(a.get_PosX(),a.get_PosY());this.getAvailableRepairAndCP();this.calculateLoot();this.updateLayoutsList();this.getAttackUnits();if(null!=this.targetCityId&&this.targetCityId!==a.get_Id()){this.labels.repair.available.setValue(phe.cnc.Util.getTimespanString(this.stats.repair.available)); this.labels.attacks.available.setValue("CP:"+this.stats.attacks.availableAttacksCP+" / F:"+this.stats.attacks.availableAttacksAtFullStrength+"/ C:-");this.resetDisableButtons();var e=a.get_CityFaction();this.view.playerCity=e===ClientLib.Base.EFactionType.GDIFaction||e===ClientLib.Base.EFactionType.NODFaction;if(this.view.playerCity){var d=a.get_OwnerAllianceId();ClientLib.Net.CommunicationManager.GetInstance().SendSimpleCommand("GetPublicAllianceInfo",{id:d},phe.cnc.Util.createEventDelegate(ClientLib.Net.CommandResult, this,this.calculateDefenseBonus),null)}}this.targetCityId=a.get_Id()}}}else setTimeout(function(){b.onCityLoadComplete()},200)}catch(f){console.log(f)}},showCombatTools:function(){this.curPAVM=qx.core.Init.getApplication().getPlayArea().getViewMode();switch(this.curPAVM){case ClientLib.Data.PlayerAreaViewMode.pavmCombatSetupBase:console.log("!!!\n TACS Warning\n!!!\n onCityLoadComplete, unexpected case pavmCombatSetupBase");break;case ClientLib.Data.PlayerAreaViewMode.pavmCombatSetupDefense:this.options.autoDisplayStats.getValue()&& this.battleResultsBox.open();break;case ClientLib.Data.PlayerAreaViewMode.pavmCombatAttacker:this.options.autoDisplayStats.getValue()&&this.saveObj.checkbox.showStatsDuringAttack&&this.battleResultsBox.open();break;case ClientLib.Data.PlayerAreaViewMode.pavmCombatViewerAttacker:console.log("pavmCombatViewerAttacker");break;case ClientLib.Data.PlayerAreaViewMode.pavmCombatViewerDefender:console.log("pavmCombatViewerDefender");break;case ClientLib.Data.PlayerAreaViewMode.pavmCombatReplay:this.saveObj.checkbox.showStatsDuringSimulation&& (console.log("simulation case 10"),this.battleResultsBox.open())}},getAvailableRepairAndCP:function(){try{var b=this._MainData.get_Cities().get_CurrentOwnCity(),a=b.GetOffenseConditionInPercent(),c=b.get_CityUnitsData(),e=c.GetRepairTimeFromEUnitGroup(ClientLib.Data.EUnitGroup.Infantry,!1),d=c.GetRepairTimeFromEUnitGroup(ClientLib.Data.EUnitGroup.Vehicle,!1),f=c.GetRepairTimeFromEUnitGroup(ClientLib.Data.EUnitGroup.Aircraft,!1);this.stats.repair.available=ClientLib.Base.Resource.GetResourceCount(b.get_RepairOffenseResources().get_RepairChargeOffense()); this.stats.repair.max=this._MainData.get_Time().GetTimeSpan(Math.max(e,f,d));this.stats.attacks.availableCP=this._MainData.get_Player().GetCommandPointCount();this.stats.attacks.availableAttacksCP=Math.floor(this.stats.attacks.availableCP/this.stats.attacks.attackCost);this.stats.attacks.availableAttacksAtFullStrength=Math.floor(this.stats.repair.available/this.stats.repair.max)+1;this.stats.attacks.availableAttacksWithCurrentRepairCharges=Math.floor(this.stats.repair.available/this.stats.repair.overall)+ 1;100!==a&&(this.stats.attacks.availableAttacksAtFullStrength--,this.stats.attacks.availableAttacksAtFullStrength+="*")}catch(g){console.log(g)}},returnSetup:function(){try{this._Application.getPlayArea().setView(ClientLib.Data.PlayerAreaViewMode.pavmCombatSetupDefense,localStorage.ta_sim_last_city,0,0)}catch(b){this._Application.getPlayArea().setView(ClientLib.Data.PlayerAreaViewMode.pavmCombatSetupDefense,localStorage.ta_sim_last_city,0,0),console.log(b)}},checkAttackRange:function(){try{var b= this._MainData.get_Cities(),a=b.get_CurrentCity();if(null!=a){var c=b.get_CurrentOwnCity();10>=ClientLib.Base.Util.CalculateDistance(a.get_PosX(),a.get_PosY(),c.get_PosX(),c.get_PosY())&&(this.buttons.attack.simulate.setEnabled(!0),0>=this.count&&this.buttons.attack.toolbarRefreshStats.setEnabled(!0))}}catch(e){console.log(e)}},skipSimulation:function(){try{for(;this._VisMain.get_Battleground().get_Simulation().DoStep(!1););this._VisMain.get_Battleground().set_ReplaySpeed(1)}catch(b){console.log(b)}}, startSimulation:function(){try{if(1E4<Date.now()-this.lastSimulation){var b=this._MainData.get_Cities().get_CurrentOwnCity();!this.getAllUnitsDeactivated()&&0<b.GetOffenseConditionInPercent()&&(ClientLib.API.Battleground.GetInstance().SimulateBattle(),this.buttons.attack.toolbarRefreshStats.setEnabled(!1),this.buttons.attack.simulate.setEnabled(!1),this.labels.countDown.setWidth(110),this.count=10,this.statsOnly=!1)}else this.enterSimulationView(),this._VisMain.get_Battleground().RestartReplay(), this._VisMain.get_Battleground().set_ReplaySpeed(1)}catch(a){console.log(a)}},onSimulateBattleFinishedEvent:function(b){this.timerEnd("onSimulateBattleFinishedEvent");try{this.statsOnly||(this.enterSimulationView(),setTimeout(function(){ClientLib.Vis.VisMain.GetInstance().get_Battleground().set_ReplaySpeed(1)},1));var a=0,c=0,e=0,d=0,f=0,g=0,k=0,h=0,n=0,m=0,q=0,s=0,w=0,x=0,y=0,B=0,t=0;this.stats.damage.structures.defense=0;this.stats.damage.structures.construction=0;this.stats.damage.structures.command= 0;this.stats.supportLevel=0;this.stats.damage.structures.support=0;this.stats.repair.infantry=0;this.stats.repair.vehicle=0;this.stats.repair.aircraft=0;this.lastSimulation=Date.now();10==this.count&&(this.counter=setInterval(this.countDownToNextSimulation,1E3));for(var u=0;u<b.length;u++){var D=b[u].Value,z=D.t,v=ClientLib.Res.ResMain.GetInstance().GetUnit_Obj(z),C=v.pt,F=v.mt,A=D.l,E=D.sh,r=D.h,p=ClientLib.API.Util.GetUnitMaxHealthByLevel(A,v,!1);switch(C){case ClientLib.Base.EPlacementType.Defense:if(this.view.playerCity)var H= this.view.playerCityDefenseBonus,I=ClientLib.Base.Util.GetNerfAndBoostModifier(A,H),p=Math.floor(p*I/100*16)/16;k+=p;h+=r;e+=p;d+=r;break;case ClientLib.Base.EPlacementType.Offense:a+=p;c+=r;switch(F){case ClientLib.Base.EUnitMovementType.Feet:x+=p;n+=r;y+=this.getRepairCost(E,r,p,A,z);break;case ClientLib.Base.EUnitMovementType.Wheel:case ClientLib.Base.EUnitMovementType.Track:s+=p;m+=r;t+=this.getRepairCost(E,r,p,A,z);break;case ClientLib.Base.EUnitMovementType.Air:case ClientLib.Base.EUnitMovementType.Air2:w+= p,q+=r,B+=this.getRepairCost(E,r,p,A,z)}break;case ClientLib.Base.EPlacementType.Structure:this.view.playerCity&&(H=this.view.playerCityDefenseBonus,I=ClientLib.Base.Util.GetNerfAndBoostModifier(A,H),p=Math.floor(p*I/100*16)/16),f+=p,g+=r,e+=p,d+=r}if(200<=z&&205>=z)this.stats.supportLevel=A,this.stats.damage.structures.support=r/16/p*100;else switch(z){case 131:case 158:case 195:this.stats.damage.structures.defense=0<E?r/16/p*100:0;break;case 112:case 151:case 177:this.stats.damage.structures.construction= r/16/p*100;break;case 111:case 159:this.stats.damage.structures.command=r/16/p*100}}this.stats.health.infantry=x?n/16/x*100:100;this.stats.health.vehicle=s?m/16/s*100:100;this.stats.health.aircraft=w?q/16/w*100:100;this.stats.damage.units.overall=k?h/16/k*100:0;this.stats.damage.structures.overall=g/16/f*100;this.stats.damage.overall=d/16/e*100;this.stats.health.overall=c?c/16/a*100:0;this.stats.repair.infantry=this._MainData.get_Time().GetTimeSpan(y);this.stats.repair.aircraft=this._MainData.get_Time().GetTimeSpan(B); this.stats.repair.vehicle=this._MainData.get_Time().GetTimeSpan(t);this.stats.repair.overall=this._MainData.get_Time().GetTimeSpan(Math.max(y,B,t));this.getAvailableRepairAndCP();this.updateStatsWindow();this.buttons.attack.simulate.setEnabled(!0)}catch(G){console.log("onSimulateBattleFinishedEvent()\n check getRepairCost()",G)}},enterSimulationView:function(){try{var b=this._MainData.get_Cities().get_CurrentCity();this._MainData.get_Cities().get_CurrentOwnCity().get_CityArmyFormationsManager().set_CurrentTargetBaseId(b.get_Id()); localStorage.ta_sim_last_city=b.get_Id();this._Application.getPlayArea().setView(ClientLib.Data.PlayerAreaViewMode.pavmCombatReplay,b.get_Id(),0,0)}catch(a){console.log(a)}},saveUndoState:function(){var b=this.getFormation(),a=this.getTimestamp(),c=this.badClone(this.stats);this.undoCache[0]={f:b,t:a,s:c};console.log(this.undoCache[0])},wipeUndoStateAfter:function(b){var a;for(a=0;a<this.undoCache.length&&!(this.undoCache[a].t>b);a++);this.undoCache=this.undoCache.slice(0,a)},updateLayoutsList:function(){try{if(this.layouts.list.removeAll(), this.loadCityLayouts(),this.layouts.current)for(var b in this.layouts.current){var a=this.layouts.current[b],c=new qx.ui.form.ListItem(a.label,null,a.id);this.layouts.list.add(c)}}catch(e){console.log(e)}},deleteCityLayout:function(){try{var b=this.layouts.list.getSelection();if(null!=b&&0<b.length){var a=b[0].getModel();this.layouts.current&&"undefined"!==typeof this.layouts.current[a]&&(delete this.layouts.current[a],this.saveLayouts(),this.updateLayoutsList(),this.updateSaveMarkers())}}catch(c){console.log(c)}}, loadCityLayout:function(b){try{var a=this.layouts.list.getSelection();if(null!=a&&0<a.length){var c="object"===typeof b?a[0].getModel():b;this.layouts.current&&"undefined"!==typeof this.layouts.current[c]&&this.loadFormation(this.layouts.current[c].layout)}}catch(e){console.log(e)}},saveCityLayout:function(){var b=[],a,c;try{b=this.getFormation(),a=(new Date).getTime().toString(),c=null!==this.stats.damage.structures.construction?this.layouts.label.getValue()+" ("+this.stats.damage.structures.construction.toFixed(0).toString()+ ":"+this.stats.damage.structures.defense.toFixed(0).toString()+":"+this.stats.damage.units.overall.toFixed(0).toString()+")":this.layouts.label.getValue()+" (??:??:??)",this.layouts.current[a]={id:a,label:c,layout:b},this.saveLayouts(),this.updateLayoutsList(),this.updateSaveMarkers(),this.layouts.label.setValue("")}catch(e){console.log(e)}return a},loadCityLayouts:function(){try{if(null!=this._MainData.get_Cities().get_CurrentCity()){var b=this._MainData.get_Cities().get_CurrentCity().get_Id(),a= this._MainData.get_Cities().get_CurrentOwnCity().get_Id();this.layouts.all.hasOwnProperty(b)||(this.layouts.all[b]={});this.layouts.all[b].hasOwnProperty(a)||(this.layouts.all[b][a]={});this.layouts.current=this.layouts.all[b][a]}}catch(c){console.log(c)}},loadLayouts:function(){try{var b=localStorage.ta_sim_layouts;this.layouts.all=b?JSON.parse(b):{}}catch(a){console.log(a)}},saveLayouts:function(){try{localStorage.ta_sim_layouts=JSON.stringify(this.layouts.all)}catch(b){console.log(b)}},loadFormation:function(b){try{this.layouts.restore= !0;for(var a=0;a<b.length;a++){var c=b[a];a==b.length-1&&(this.layouts.restore=!1);for(var e=0;e<this.view.lastUnitList.length;e++)this.view.lastUnitList[e].get_Id()===c.id&&(this.view.lastUnitList[e].MoveBattleUnit(c.x,c.y),void 0===c.e?this.view.lastUnitList[e].set_Enabled(!0):this.view.lastUnitList[e].set_Enabled(c.e))}}catch(d){console.log(d)}},getFormation:function(){var b=[];try{for(var a=0;a<this.view.lastUnitList.length;a++){var c=this.view.lastUnitList[a],e={};e.x=c.get_CoordX();e.y=c.get_CoordY(); e.id=c.get_Id();e.e=c.get_Enabled();b.push(e)}}catch(d){console.log(d)}return b},shiftFormation:function(b){var a=[],c=0,e=0;"u"===b&&(c=-1);"d"===b&&(c=1);"l"===b&&(e=-1);"r"===b&&(e=1);for(b=0;b<this.view.lastUnitList.length;b++){var d=this.view.lastUnitList[b],f={},g=d.get_CoordX()+e;switch(g){case 9:g=0;break;case -1:g=8}var k=d.get_CoordY()+c;switch(k){case 4:k=0;break;case -1:k=3}f.x=g;f.y=k;f.id=d.get_Id();f.e=d.get_Enabled();a.push(f)}this.loadFormation(a)},flipFormation:function(b){var a= [];try{for(var c=0;c<this.view.lastUnitList.length;c++){var e=this.view.lastUnitList[c],d={},f=e.get_CoordX(),g=e.get_CoordY();"horizontal"===b?f=Math.abs(f-8):"vertical"===b&&(g=Math.abs(g-3));d.x=f;d.y=g;d.id=e.get_Id();d.e=e.get_Enabled();a.push(d)}this.loadFormation(a)}catch(k){console.log(k)}},activateUnits:function(b,a){var c=[];try{for(var e=0;e<this.view.lastUnitList.length;e++){var d=this.view.lastUnitList[e],f={};switch(b){case "air":d.get_UnitGameData_Obj().mt!==ClientLib.Base.EUnitMovementType.Air&& d.get_UnitGameData_Obj().mt!==ClientLib.Base.EUnitMovementType.Air2||d.set_Enabled(a);break;case "infantry":d.get_UnitGameData_Obj().mt===ClientLib.Base.EUnitMovementType.Feet&&d.set_Enabled(a);break;case "vehicles":d.get_UnitGameData_Obj().mt!==ClientLib.Base.EUnitMovementType.Wheel&&d.get_UnitGameData_Obj().mt!==ClientLib.Base.EUnitMovementType.Track||d.set_Enabled(a)}f.x=d.get_CoordX();f.y=d.get_CoordY();f.e=d.get_Enabled();f.id=d.get_Id();c.push(f)}this.loadFormation(c)}catch(g){console.log(g)}}, resetFormation:function(){var b=[];try{for(var a=0;a<this.view.lastUnitList.length;a++){var c=this.view.lastUnitList[a],e={};e.x=c.GetCityUnit().get_CoordX();e.y=c.GetCityUnit().get_CoordY();e.id=c.get_Id();b.push(e)}this.loadFormation(b);this.buttons.attack.activateInfantry.getValue(!0)&&this.buttons.attack.activateInfantry.setValue(!1);this.buttons.attack.activateVehicles.getValue(!0)&&this.buttons.attack.activateVehicles.setValue(!1);this.buttons.attack.activateAir.getValue(!0)&&this.buttons.attack.activateAir.setValue(!1)}catch(d){console.log(d)}}, playSound:function(b,a){var c=a.audio[b].cloneNode(!0);c.volume=a.getAudioSettings().ui/100;c.play()},getAudioSettings:function(){return JSON.parse(localStorage.getItem("CNC_Audio"))},repairUnit:function(){try{ClientLib.Net.CommunicationManager.GetInstance().SendCommand("Repair",{cityid:this.ownCityId,entityId:this.unitId,mode:4},phe.cnc.Util.createEventDelegate(ClientLib.Net.CommandResult,this,window.TACS.getInstance().repairResult),this.buttonId,!0)}catch(b){console.log(b)}},repairResult:function(b, a){try{if(a){var c=window.TACS.getInstance();c.saveObj.audio.playRepairSound&&("Inf"==c.repairButtons[b].unitType?c.playSound("soundRepairReload",c):c.playSound("soundRepairImpact",c));c._armyBar.remove(c.repairButtons[b]);delete c.repairButtons[b]}}catch(e){console.log(e)}},removeAllRepairButtons:function(){for(var b in this.repairButtons)this._armyBar.remove(this.repairButtons[b]);this.repairButtons=[]},setResizeTimer:function(){var b=this;this.repairButtonsRedrawTimer&&clearTimeout(b.repairButtonsRedrawTimer); this.repairButtonsRedrawTimer=setTimeout(function(){b.redrawRepairButtons(b)},500)},redrawRepairButtons:function(b){b=b||this;var a=b._MainData.get_Cities().get_CurrentOwnCity().get_Id();0<b.repairButtons.length&&b.removeAllRepairButtons();for(var c=b._VisMain.get_CombatSetup(),e=c.get_ZoomFactor(),d=Math.round(c.get_MinXPosition()*e*-1)+10,c=Math.round(c.get_GridWidth()*e),e=0;e<b.view.lastUnitList.length;e++){var f=b.view.lastUnitList[e];if(1>f.get_HitpointsPercent()){var g=f.GetCityUnit().GetResourceCostForFullRepair().d, k,h,n,m;for(m in g)switch(m=parseInt(m),m){case ClientLib.Base.EResourceType.Crystal:k=g[m];break;case ClientLib.Base.EResourceType.RepairChargeInf:h=g[m];n="Inf";break;case ClientLib.Base.EResourceType.RepairChargeVeh:h=g[m];n="Veh";break;case ClientLib.Base.EResourceType.RepairChargeAir:h=g[m],n="Air"}h=phe.cnc.Util.getTimespanString(b._MainData.get_Time().GetTimeSpan(h));k=b.formatNumberWithCommas(k);b.repairButtons[e]=new qx.ui.form.Button("","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QERCx8kSr25tQAAAB1pVFh0Q29tbWVudAAAAAAAQ3JlYXRlZCB3aXRoIEdJTVBkLmUHAAAABmJLR0QA/wD/AP+gvaeTAAAGVUlEQVQYGQXBeZCWdQEA4Of3e9/3O3aXD2EBAcFWQcyLQ3Qcwxs88koJxXQ0y7QcTRunsfJIM9HRmTxIKrzKP/IqybPySscZdQylVZTEVRLDDeQS2F2W3e97fz1PSCmBpYuuSXMXfhcAAAAAAAAAAAA8t+yPrrz6hgAhpWTJomvSmAmjvfDwYkM7NmorgmpOFsgCMRIBRQwgIIGglLRKBlsMNpMdQ0llxF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0BEEciDPCOPhABEqISglmeKSsa8mR695xNHhbsdEpY4atZTPgMcPyM64dJj/PS+49QAaxInHLTM209uYv+DiYE8qGYUkTwEECHGKM9w+DSvLfvcdTeu0osvATBvevTb7qvxodnfmOSGm6cD6Md5Z/7DR68NcMQhRLIsk8dMzAKIkATNEJg21R9uedOJB1e89NYCx88oANz21PlYhfX42FnXLjCzE4AWzj36aQNbOpgzQ8yDmAUhRhChFZJUYuVHHvz3lZa8c7Gu6ckP7/g6gJFj2mltZXCYZh/ede9bF6gB4EvM73qAPfYV26pSIIYEIqTEYBkMr/hE+usLGO/1J7f70bynwVfb0DGB/2zjsxaftvj0Q6OnRA///XQRAB8Ps+LZlUyZJEbKBEQYKpOhZmn7LlKrIm3bYNG3XzSUuHD+7p7dfCVbVrBuJ71DrBti3TBvvGH6iaM98uTJJqIT+9aZOXeqgbVf2NlMmgkIPT096cGrDjWlMzels9A1OjPulNnCtAOFkDHUy4oPWLeeBAjIAhAiR86ic38pRSkN2tndbdVT3Xo2DevZ2HTRHcvlMJSNsrl/u1pRGsbWJ97WXv2XaiBmpESJsgRiJA9kIZC1eHQ5liubpR1DpQ19pc+3JVv6GM5Hg3D3bTemqZMb3vzLEiPCNqPaokY9qudEZDkpkRIEECQhEGKQA4iaqbSzybaB0pb+0tZWw+FnXmZEY4KQUrL49l+kqZMbXv3TPYrmVrUiquTkAhFQAgAiARAAJYaa7BwqDWa7Oeasy4kNJy+8KISUElh656I097SFAAAAAAAAAAAA4O1Xn3PO964M8H8RODTRLDM3YgAAAABJRU5ErkJggg%3D%3D"); b.repairButtons[e].set({decorator:(new qx.ui.decoration.Background).set({backgroundColor:"transparent"}),width:c,height:38,show:"icon",center:!1,padding:3,appearance:"button-text-small",cursor:"pointer",toolTipText:"Crystal: "+k+" / Time: "+h+" / Type: "+n});b.repairButtons[e].addListener("execute",b.repairUnit,{ownCityId:a,unitId:f.get_Id(),buttonId:e,frm:b});b.repairButtons[e].unitType=n;b._armyBar.add(b.repairButtons[e],{left:d+c*f.get_CoordX(),top:7+38*f.get_CoordY()})}}},toggleRepairMode:function(){try{this.audio.soundRepairImpact|| (this.audio.soundRepairImpact=new Audio(window.soundRepairImpact.d),this.audio.soundRepairReload=new Audio(window.soundRepairReload.d),this.audio.soundRepairImpact.volume=this.getAudioSettings().ui/100,this.audio.soundRepairReload.volume=this.getAudioSettings().ui/100),this._armyBar.getLayoutParent().toggleEnabled(),this._armyBar.setEnabled(!0),this.userInterface.toggleEnabled(),this.battleResultsBox.toggleEnabled(),this.buttons.attack.repairMode.getValue()?(this.redrawRepairButtons(),this._armyBar.addListener("resize", this.setResizeTimer,this),this.repairInfo.show(),this.updateRepairTimeInfobox(),this.repairModeTimer=setInterval(this.updateRepairTimeInfobox,1E3)):(this.removeAllRepairButtons(),this._armyBar.removeListener("resize",this.setResizeTimer,this),this.repairInfo.hide(),clearInterval(this.repairModeTimer))}catch(b){console.log(b)}},updateRepairTimeInfobox:function(){try{var b=window.TACS.getInstance(),a=b._MainData.get_Cities().get_CurrentOwnCity(),c=a.GetResourceCount(ClientLib.Base.EResourceType.RepairChargeInf), e=a.GetResourceCount(ClientLib.Base.EResourceType.RepairChargeVeh),d=a.GetResourceCount(ClientLib.Base.EResourceType.RepairChargeAir);b.stats.repair.available=ClientLib.Base.Resource.GetResourceCount(a.get_RepairOffenseResources().get_RepairChargeOffense());b.labels.repairinfos.available.setValue(phe.cnc.Util.getTimespanString(b.stats.repair.available));b.labels.repairinfos.infantry.setValue(phe.cnc.Util.getTimespanString(c-b.stats.repair.available));b.labels.repairinfos.vehicle.setValue(phe.cnc.Util.getTimespanString(e- b.stats.repair.available));b.labels.repairinfos.aircraft.setValue(phe.cnc.Util.getTimespanString(d-b.stats.repair.available))}catch(f){console.log(f)}},resetDblClick:function(){try{var b=window.TACS.getInstance();clearInterval(b.armybarClearnClickCounter);b.armybarClickCount=0}catch(a){console.log(a)}},updateSaveMarkers:function(){try{if(this.options.markSavedTargets.getValue()){var b=this._MainData.get_Cities().get_CurrentOwnCity(),a=b.get_Id(),c=b.get_X(),d=b.get_Y(),l=this._VisMain.get_Region(), f=this._MainData.get_Server().get_MaxAttackDistance()+0.1;switch(this._MainData.get_Player().get_Faction()){case ClientLib.Base.EFactionType.GDIFaction:var g=ClientLib.Vis.EBackgroundPlateColor.Orange;break;case ClientLib.Base.EFactionType.NODFaction:g=ClientLib.Vis.EBackgroundPlateColor.Cyan}for(b=c-f;b<c+f;b++)for(var k=d-f;k<d+f;k++){var h=l.GetObjectFromPosition(b*l.get_GridWidth(),k*l.get_GridHeight());if(!(null==h||h.get_VisObjectType()!=ClientLib.Vis.VisObject.EObjectType.RegionNPCCamp&&h.get_VisObjectType()!= ClientLib.Vis.VisObject.EObjectType.RegionCityType&&h.get_VisObjectType()!=ClientLib.Vis.VisObject.EObjectType.RegionNPCBase||h.get_VisObjectType()==ClientLib.Vis.VisObject.EObjectType.RegionNPCCamp&&h.get_IsDestroyed()||h.get_VisObjectType()==ClientLib.Vis.VisObject.EObjectType.RegionCityType&&h.IsOwnBase())){h.get_BasePlate().setPlateColor(ClientLib.Vis.EBackgroundPlateColor.Black);var n=h.get_Id();if(this.layouts.all.hasOwnProperty(n)&&this.layouts.all[n].hasOwnProperty(a)){var m=0,q;for(q in this.layouts.all[n][a])this.layouts.all[n][a].hasOwnProperty(q)&& m++;0<m&&h.get_BasePlate().setPlateColor(g)}}}}}catch(s){console.log(s)}},getDateFromMillis:function(b){return new Date(b)},getTimestamp:function(){return(new Date).getTime()},timerStart:function(){this.ts1=this.getTimestamp()},timerEnd:function(b){b=b||"nullName";this.ts2=this.getTimestamp();console.log(this.ts2-this.ts1+"ms to run "+b)},badClone:function(b){return JSON.stringify(b)}}})}function u(){try{if("undefined"!==typeof qx){var b=qx.core.Init.getApplication(),a=qx.core.Init.getApplication().getMenuBar(), c=ClientLib.Vis.VisMain.GetInstance(),d=ClientLib.Data.MainData.GetInstance();if(b&&a&&c&&d&&"undefined"!==typeof PerforceChangelist)if(10<F||"undefined"!==typeof CCTAWrapper_IsInstalled){t();window.TACS.getInstance().initialize();if(392583<=PerforceChangelist){var l=ClientLib.Data.Cities.prototype.get_CurrentCity.toString(),f;for(f in ClientLib.Data.Cities.prototype)if(ClientLib.Data.Cities.prototype.hasOwnProperty(f)&&"function"===typeof ClientLib.Data.Cities.prototype[f]&&-1<ClientLib.Data.Cities.prototype[f].toString().indexOf(l)&& 6==f.length){l=f;break}var g=ClientLib.Data.Cities.prototype.get_CurrentOwnCity.toString(),k;for(k in ClientLib.Data.Cities.prototype)if(ClientLib.Data.Cities.prototype.hasOwnProperty(k)&&"function"===typeof ClientLib.Data.Cities.prototype[k]&&-1<ClientLib.Data.Cities.prototype[k].toString().indexOf(g)&&6==k.length){g=k;break}var h=ClientLib.API.Util.GetUnitRepairCosts.toString(),h=h.replace(l,g),n=h.substring(h.indexOf("{")+1,h.lastIndexOf("}")),m=Function("a,b,c",n);ClientLib.API.Util.GetUnitRepairCosts= m}for(var q in ClientLib.Vis.BaseView.BaseView.prototype)if("function"===typeof ClientLib.Vis.BaseView.BaseView.prototype[q]&&(h=ClientLib.Vis.BaseView.BaseView.prototype[q].toString(),-1<h.indexOf(ClientLib.Vis.BaseView.BaseView.prototype.ShowToolTip.toString()))){console.log("ClientLib.Vis.BaseView.BaseView.prototype.ShowToolTip_Original = ClientLib.Vis.BaseView.BaseView.prototype."+q);Function("","ClientLib.Vis.BaseView.BaseView.prototype.ShowToolTip_Original = ClientLib.Vis.BaseView.BaseView.prototype."+ q)();b="ClientLib.Vis.BaseView.BaseView.prototype."+q+"=function (a){if(ClientLib.Vis.VisMain.GetInstance().get_Mode()==7&&window.TACS.getInstance().saveObj.checkbox.disableAttackPreparationTooltips){return;}else{this.ShowToolTip_Original(a);}}";Function("",b)();console.log(b);break}qx.core.Init.getApplication().getArmyUnitTooltipOverlay().setVisibility_Original=qx.core.Init.getApplication().getArmyUnitTooltipOverlay().setVisibility;qx.core.Init.getApplication().getArmyUnitTooltipOverlay().setVisibility= function(a){window.TACS.getInstance().saveObj.checkbox.disableArmyFormationManagerTooltips?qx.core.Init.getApplication().getArmyUnitTooltipOverlay().setVisibility_Original(!1):qx.core.Init.getApplication().getArmyUnitTooltipOverlay().setVisibility_Original(a)}}else F++,window.setTimeout(u,1E3);else window.setTimeout(u,1E3)}else window.setTimeout(u,1E3)}catch(s){"undefined"!==typeof console?console.log(s):window.opera?opera.postError(s):GM_log(s)}}console.log("TACS: Simulator loaded");var v=null,C= "tr_TR de_DE pt_PT it_IT nl_NL hu_HU fr_FR fi_FI".split(" "),G={Stats:"\u0130statistik Statistik Estat\u00edstica Statistiche Statistieken Statisztika Statistiques Tiedot".split(" "),"Enemy Base:":"D\u00fc\u015fman \u00dcss\u00fc:;Feindliche Basis:;Base Inimiga:;Base Nemica:;Vijandelijke Basis:;Ellens\u00e9ges b\u00e1zis:;Base Ennemie:;Vihollisen tukikohta:".split(";"),"Оборона:":"Savunma \u00dcniteleri:;Verteidigung:;Defesas:;Difesa:;Verdediging:;V\u00e9delem:;D\u00e9fenses:;Puolustus:".split(";"), "Buildings:":"Binalar: Geb\u00e4ude: Edif\u00edcios: Strutture: Gebouwen: \u00c9p\u00fcletek: B\u00e2timents: Rakennelmat:".split(" "),"Construction Yard:":"\u015eantiye:;Bauhof:;Estaleiro:;Cantiere:;Bouwplaats:;K\u00f6zpont:;Chantier De Construction:;Rakennustukikohta:".split(";"),"Defense Facility:":"Savunma Tesisi:;Verteidigungseinrichtung:;Instala\u00e7\u00f5es de Defesa:;Stazione di Difesa:;Defensiefaciliteit:;V\u00e9delmi B\u00e1zis:;Complexe De D\u00e9fense:;Puolustuslaitos:".split(";"),"Command Center:":"Komuta Merkezi:;Kommandozentrale:;Centro de Comando:;Centro di Comando:;Commandocentrum:;Parancsnoki k\u00f6zpont:;Centre De Commandement:;Komentokeskus:".split(";"), "Available Repair:":"Mevcut Onar\u0131m:;;;;;;;Korjausaikaa j\u00e4ljell\u00e4:".split(";"),"Available Attacks:":"Mevcut Sald\u0131r\u0131lar:;;;;;;;Hy\u00f6kk\u00e4yksi\u00e4:".split(";"),"Overall:":"T\u00fcm Birlikler:;Gesamt:;Geral:;Totale:;Totaal:;\u00c1ttekint\u00e9s:;Total:;Yhteens\u00e4:".split(";"),"Infantry:":"Piyadeler: Infanterie: Infantaria: Fanteria: Infanterie: Gyalogs\u00e1g: Infanterie: Jalkav\u00e4ki:".split(" "),"Vehicle:":"Motorlu Birlikler:;Fahrzeuge:;Ve\u00edculos:;Veicoli:;Voertuigen:;J\u00e1rmu:;V\u00e9hicules:;Ajoneuvot:".split(";"), "Aircraft:":"Hava Ara\u00e7lar\u0131:;Flugzeuge:;Avi\u00f5es:;Velivoli:;Vliegtuigen:;L\u00e9giero:;Avions:;Lentokoneet:".split(";"),"Outcome:":"Sonu\u00e7: Ergebnis: Resultado: Esito: Uitkomst: Eredm\u00e9ny: R\u00e9sultat: Lopputulos:".split(" "),Unknown:"Bilinmiyor Unbekannt Desconhecido Sconosciuto Onbekend Ismeretlen Inconnu Tuntematon".split(" "),"Battle Time:":"Sava\u015f S\u00fcresi:;Kampfdauer:;Tempo de Batalha:;Tempo di Battaglia:;Gevechtsduur:;Csata ideje:;Dur\u00e9e Du Combat:;Taistelun kesto:".split(";"), Layouts:"Dizili\u015f Layouts Forma\u00e7\u00f5es Formazione Indelingen Elrendez\u00e9s Dispositions Asetelmat".split(" "),Load:"Y\u00fckle Laden Carregar Carica Laad T\u00f6lt\u00e9s Charger Lataa".split(" "),"Load this saved layout.":"Kay\u0131tl\u0131 dizili\u015fi y\u00fckle.;Gespeichertes Layout laden.;Carregar esta forma\u00e7\u00e3o guardada.;Carica questa formazione salvata.;Laad deze opgeslagen indeling.;T\u00f6ltsd be ezt az elmentett elrendez\u00e9st.;Charger Cette Disposition.;Lataa valittu asetelma.".split(";"), Delete:"Sil L\u00f6schen Apagar Cancella Verwijder T\u00f6rl\u00e9s Effacer Poista".split(" "),"Name: ":"\u0130sim: ;Name: ;Nome: ;Nome: ;Naam: ;N\u00e9v: ;Nom: ;Nimi: ".split(";"),"Delete this saved layout.":"Kay\u0131tl\u0131 dizili\u015fi sil.;Gew\u00e4hltes Layout l\u00f6schen.;Apagar esta forma\u00e7\u00e3o guardada.;Cancella questa formazione salvata.;Verwijder deze opgeslagen indeling.;T\u00f6r\u00f6ld ezt az elmentett elrendez\u00e9st.;Effacer Cette Disposition.;Poista valittu asetelma.".split(";"), Save:"Kaydet Speichern Guardar Salva Opslaan Ment\u00e9s Sauvegarder Tallenna".split(" "),"Save this layout.":"Bu dizili\u015fi kaydet.;Layout speichern.;Guardar esta forma\u00e7\u00e3o.;Salva questa formazione.;Deze indeling opslaan.;Mentsd el ezt az elrendez\u00e9st.;Sauvegarder Cette Disposition.;Tallenna nykyinen asetelma.".split(";"),Info:"Bilgi Info Info Info Info Info Infos Tietoa".split(" "),Forums:"Forum Forum F\u00f3runs Forum Forums F\u00f3rum Forums Keskustelupalsta".split(" "),Spoils:"Ganimetler Rohstoffausbeute Esp\u00f3lios Bottino Opbrengst Zs\u00e1km\u00e9ny Butin Sotasaalis".split(" "), Options:"Se\u00e7enekler Optionen Op\u00e7\u00f5es: Opzioni: Opties: Opci\u00f3k: Options: Asetukset".split(" "),"TACS Options":"TACS Se\u00e7enekleri;;;;;;;".split(";"),"Auto display stats":"\u0130statistik penceresini otomatik olarak g\u00f6ster;Dieses Fenster automatisch \u00f6ffnen;Mostrar esta caixa automaticamente;Apri automaticamente la finestra Strumenti;Dit venster automatisch weergeven;Ezen ablak aut\u00f3matikus megjelen\u00edt\u00e9se;Affich. Auto. de cette Fen\u00eatre;N\u00e4yt\u00e4 simuloinnin tiedot automaattisesti".split(";"), "Show shift buttons":"Kayd\u0131rma tu\u015flar\u0131n\u0131 g\u00f6ster;Bewegungstasten anzeigen;Mostrar bot\u00f5es de deslocamento;Mostra i pulsanti di spostamento;Verschuifknoppen weergeven;Eltol\u00f3 gombok megjelen\u00edt\u00e9se;Affich. Auto. Boutons de D\u00e9placement;N\u00e4yt\u00e4 armeijan siirtopainikkeet".split(";"),"Warning!":"Uyar\u0131! Warnung! Aviso! Attenzione! Waarschuwing! Figyelem! Attention! Varoitus!".split(" "),Simulate:"Simule et;Simulieren;Simular;Simula;Simuleer;Szimul\u00e1ci\u00f3;Simuler;Simuloi".split(";"), "Start Combat Simulation":"Sava\u015f Simulasyonunu Ba\u015flat;Kampfsimulation starten;Come\u00e7ar a simala\u00e7\u00e3o de combate;Avvia simulazione;Start Gevechtssimulatie;Csata szimul\u00e1ci\u00f3 elind\u00edt\u00e1sa;D\u00e9marrer La Simulation Du Combat;Aloita taistelun simulaatio".split(";"),Setup:"D\u00fczen Aufstellung Configura\u00e7\u00e3o Setup Opzet Elrendez\u00e9s Organisation Takaisin".split(" "),"Return to Combat Setup":"Ordu d\u00fczenini g\u00f6ster;Zur\u00fcck zur Einheitenaufstellung;Voltar \u00e0 configura\u00e7\u00e3o de combate;Ritorna alla configurazione;Keer terug naar Gevechtsopzet;Vissza az egys\u00e9gek elrendez\u00e9s\u00e9hez;Retourner \u00e0 l'Organisation Des Troupes;Return to Combat Setup".split(";"), Unlock:"Kilidi a\u00e7;Freigabe;Desbloquear;Sblocca;Ontgrendel;Felold;Debloquer;Avaa".split(";"),"Open Simulator Tools":"Simulat\u00f6r Ara\u00e7lar\u0131n\u0131 G\u00f6ster;Extras \u00f6ffnen;Abrir as ferramentas do simulador;Apri strumenti;Open Simulator Gereedschap;Megnyitja a szimul\u00e1tor inform\u00e1ci\u00f3s ablak\u00e1t;Ouvrir Les R\u00e9glages Du Simulateur;Avaa simulaattorin ty\u00f6kalut".split(";"),"Shift units left":"Birlikleri sola kayd\u0131r;Einheiten nach links bewegen;Deslocar as unidades para a esquerda;Spostare le unit\u00e0 a sinistra;Verschuif eenheden links;Egys\u00e9gek eltol\u00e1sa balra;D\u00e9placer Les Unit\u00e9s Vers La Gauche;Siirt\u00e4\u00e4 yksikk\u00f6j\u00e4 vasemmalle".split(";"), "Shift units right":"Birlikleri sa\u011fa kayd\u0131r;Einheiten nach rechts bewegen;Deslocar as unidades para a direita;Spostare le unit\u00e0 a destra;Verschuif eenheden rechts;Egys\u00e9gek eltol\u00e1sa jobbra;D\u00e9placer Les Unit\u00e9s Vers La Droite;Siirt\u00e4\u00e4 yksikk\u00f6j\u00e4 oikealle".split(";"),"Shift units up":"Birlikleri yukar\u0131 kayd\u0131r;Einheiten nach oben bewegen;Deslocar as unidades para cima;Spostare le unit\u00e0 in alto;Verschuif eenheden omhoog;Egys\u00e9gek eltol\u00e1sa fel;D\u00e9placer Les Unit\u00e9s Vers Le Haut;Siirt\u00e4\u00e4 yksikk\u00f6j\u00e4 yl\u00f6s".split(";"), "Shift units down":"Birlikleri a\u015fa\u011f\u0131 kayd\u0131r;Einheiten nach unten bewegen;Deslocar as unidades para baixo;Spostare le unit\u00e0 in basso;Verschuif eenheden omlaag;Egys\u00e9gek eltol\u00e1sa le;D\u00e9placer Les Unit\u00e9s Vers Le Bas;Siirt\u00e4\u00e4 yksikk\u00f6j\u00e4 alas".split(";"),"Total Victory":"Mutlak Zafer;Gesamtsieg;Vit\u00f3ria Total;Vittoria Totale;Totale Overwinning;Teljes gyozelem;Victoire Totale;Totaalinen Voitto".split(";"),Victory:"Zafer Sieg Vit\u00f3ria Vittoria Overwinning Gyozelem Victoire Voitto".split(" "), "Total Defeat":"Mutlak Yenilgi;Totale Niederlage;Derrota total;Sconfitta Totale;Totale Nederlaag;Teljes veres\u00e9g;D\u00e9faite Totale;Total Tappio".split(";"),"Support lvl ":'Takviye seviyesi ;Stufe Supportwaffe ;N\u00edvel do Suporte ;Supporto lvl ;Ondersteuningsniveau ;"Support" \u00e9p\u00fclet szintje ;Lvl. Du Support ;Tukitykist\u00f6n taso '.split(";"),Refresh:"Yenile Erfrischen Actualizar Rinfrescare Verversen Felfriss\u00edt Actualiser P\u00e4ivit\u00e4".split(" "),"Refresh Stats":"\u0130statistikleri Yenile;Erfrischen Statistik;Estat\u00edstica;Rinfrescare Statistiche;Verversen Statistieken;Friss\u00edt\u00e9s Stats;Actualiser Les Stats;P\u00e4ivit\u00e4 tiedot".split(";"), "Side:":"Taraf: Seite Lado: Zijde C\u00f4t\u00e9 Sijainti:".split(" "),Left:"Sol Links Esquerda Links Gauche Vasen".split(" "),Right:"Sa\u011f Rechts Direita Rechts Droite Oikea".split(" "),"Locks:":"Kilitler: Freigabe Bloquear: Vergrendelingen: V\u00e9rouiller: Varmistimet:".split(" "),Attack:"Sald\u0131r\u0131 Angriff Atacar Aanvallen Attaquer Hy\u00f6kk\u00e4ys".split(" "),Repair:"Onar\u0131m Reparatur Reparar Repareren R\u00e9parer Korjaus".split(" "),Reset:"S\u0131f\u0131rla Palauta".split(" "), "Simulation will be based on most recently refreshed stats!":"Simulasyon en son g\u00fcncellenen istatistiklere g\u00f6re yap\u0131lacakt\u0131r!;Die Simulation basiert auf den zuletzt aktualisierten Stand;A simula\u00e7\u00e3o vai ser baseada na mais recente data!;;Simulatie zal gebaseerd worden op meest recentelijke ververste statistieken!;;La Simulation sera bas\u00e9e en fonction des derni\u00e8res stats actualis\u00e9es !;Simulaatio suoritetaan viimeisimm\u00e4n p\u00e4ivityksen tiedoilla!".split(";"), "Unlock Attack Button":"Sald\u0131r\u0131 D\u00fc\u011fmesinin Kilidini A\u00e7;Angriffsbutton freigeben;Desbloquear o bot\u00e3o de ataque;Sblocca pulsante d'attacco;Ontgrendel Aanvalsknop;a T\u00e1mad\u00e1s gomb felold\u00e1sa;D\u00e9bloquer Le Bouton d'Attaque;Poista hy\u00f6kk\u00e4usnapin lukitus".split(";"),"Unlock Repair Button":"Onar\u0131m D\u00fc\u011fmesinin Kilidini A\u00e7;Reparaturbutton freigeben;Desbloquear bot\u00e3o de repara\u00e7\u00e3o;;Ontgrendel Repareerknop;;D\u00e9bloquer Le Bouton de R\u00e9paration;Poista korjausnapin lukitus".split(";"), "Unlock Reset Button":"S\u0131f\u0131rlama D\u00fc\u011fmesinin Kilidini A\u00e7;;;;;;;Avaa Tyhjenn\u00e4 nappi".split(";"),SKIP:"ATLA ".split(" "),"Skip to end":"Simulasyonu atla;Zum Ende Vorspringen;;;;;;Mene loppuun".split(";"),"Reset Formation":"Dizili\u015fi S\u0131f\u0131rla;;;;;;;Palauta armeijan oletusasetelma".split(";"),"Flip Horizontal":"Yatay \u00c7evir;Horizontal Spiegeln;;;;;;K\u00e4\u00e4nn\u00e4 vaakasuunnassa".split(";"),"Flip Vertical":"Dikey \u00c7evir;Vertikal Spiegeln;;;;;;K\u00e4\u00e4nn\u00e4 pystysuunnassa".split(";"), "Activate All":"Hepsini Aktifle\u015ftir;Alle Aktivieren;;;;;;Aktivoi kaikki".split(";"),"Deactivate All":"Hepsini Deaktifle\u015ftir;Alle Deaktivieren;;;;;;Poista kaikki k\u00e4yt\u00f6st\u00e4".split(";"),"Activate Infantry":"Piyadeleri Aktifle\u015ftir;Infanterie Aktivieren;;;;;;Aktivoi jalkav\u00e4ki".split(";"),"Deactivate Infantry":"Piyadeleri Deaktifle\u015ftir;Infanterie Deaktivieren;;;;;;Poista jalkav\u00e4ki k\u00e4yt\u00f6st\u00e4".split(";"),"Activate Vehicles":"Motorlu Birlikleri Aktifle\u015ftir;Fahrzeuge Aktivieren;;;;;;Aktivoi ajoneuvot".split(";"), "Deactivate Vehicles":"Motorlu Birlikleri Deaktifle\u015ftir;Fahrzeuge Deaktivieren;;;;;;Poista ajoneuvot k\u00e4yt\u00f6st\u00e4".split(";"),"Activate Air":"Hava Ara\u00e7lar\u0131n\u0131 Aktifle\u015ftir;Flugzeuge Aktivieren;;;;;;Aktivoi lentokoneet".split(";"),"Deactivate Air":"Hava Ara\u00e7lar\u0131n\u0131 Deaktifle\u015ftir;Flugzeuge Deaktivieren;;;;;;Poista lentokoneet k\u00e4yt\u00f6st\u00e4".split(";"),"Activate Repair Mode":"Onar\u0131m Modunu A\u00e7;Reparatur Modus Aktivieren;;;;;;Aktivoi korjaustila".split(";"), "Deactivate Repair Mode":"Onar\u0131m Modunu Kapat;Reparatur Modus Deaktivieren;;;;;;Poista korjaustila k\u00e4yt\u00f6st\u00e4".split(";"),"Version: ":"S\u00fcr\u00fcm: ;;;;;;;Versio: ".split(";"),"Mark saved targets on region map":"Kaydedilmi\u015f hedefleri haritada i\u015faretle;Gespeicherte Ziele auf der Karte Markieren;;;;;;Merkitse tallennetut kohteet alue kartalle".split(";"),"Enable 'Double-click to (De)activate units'":"\u00c7ift-t\u0131klama ile birlikleri (de)aktifle\u015ftirmeyi etkinle\u015ftir;Doppel-Klick zum Einheiten (De)-Aktivieren ;;;;;;Tuplaklikkaus aktivoi/deaktivoi yksik\u00f6t".split(";"), "Show Stats During Attack":"\u0130statistikleri sald\u0131r\u0131 s\u0131ras\u0131nda g\u00f6ster;;;;;;;N\u00e4yt\u00e4 tiedot -ikkuna hy\u00f6kk\u00e4yksen aikana".split(";"),"Show Stats During Simulation":"\u0130statistikleri simulasyondayken g\u00f6ster;;;;;;;N\u00e4yt\u00e4 tiedot -ikkuna simuloinnin aikana".split(";"),"Skip Victory-Popup After Battle":"Sava\u015f Bitiminde Zafer Bildirimini Atla;;;;;;;Ohita taistelun j\u00e4lkeinen voittoruutu".split(";"),"Stats Window Opacity":"\u0130statistik Penceresi Saydaml\u0131\u011f\u0131;;;;;;;Tiedot -ikkunan l\u00e4pin\u00e4kyvyys".split(";"), "Disable Unit Tooltips In Army Formation Manager":"Ordu Dizili\u015fi Y\u00f6neticisinde Birlik \u0130pu\u00e7lar\u0131n\u0131 Gizle;;;;;;;Poista k\u00e4yt\u00f6st\u00e4 yksik\u00f6iden ty\u00f6kaluvihjeet armeijan muodostamisikkunassa".split(";"),"Disable Tooltips In Attack Preparation View":"Sald\u0131r\u0131 Haz\u0131rl\u0131k G\u00f6r\u00fcn\u00fcm\u00fcnde \u0130pu\u00e7lar\u0131n\u0131 Gizle;;;;;;;Poista ty\u00f6kaluvihjeet k\u00e4yt\u00f6st\u00e4 hy\u00f6kk\u00e4yksen valmisteluikkunassa".split(";"), Undo:"Geri Al;;;;;;;Kumoa".split(";"),Redo:"\u0130leri Al;;;;;;;Tee uudelleen".split(";"),"Open Stats Window":"\u0130statistik Penceresini A\u00e7;;;;;;;Avaa tiedot -ikkuna".split(";")},F=0;/commandandconquer\.com/i.test(document.domain)&&window.setTimeout(u,1E3)}.toString()+")();";t.type="text/javascript";/commandandconquer\.com/i.test(document.domain)&&document.getElementsByTagName("head")[0].appendChild(t);window.soundRepairImpact={info:"Impact Wrench Sound; Used in TACS; courtesy of: http://www.freesfx.co.uk", d:"data:video/ogg;base64,T2dnUwACAAAAAAAAAADGNAAAAAAAAGaVV6ABHgF2b3JiaXMAAAAAAQB9AAAAAAAAAPoAAAAAAAC4AU9nZ1MAAAAAAAAAAAAAxjQAAAEAAACQEk9NDlL///////////////8RA3ZvcmJpcx0AAABYaXBoLk9yZyBsaWJWb3JiaXMgSSAyMDA3MDYyMgEAAAAhAAAAQ09NTUVOVFM9aHR0cDovL3d3dy5mcmVlc2Z4LmNvLnVrAQV2b3JiaXMiQkNWAQBAAAAkcxgqRqVzFoQQGkJQGeMcQs5r7BlCTBGCHDJMW8slc5AhpKBCiFsogdCQVQAAQAAAh0F4FISKQQghhCU9WJKDJz0IIYSIOXgUhGlBCCGEEEIIIYQQQgghhEU5aJKDJ0EIHYTjMDgMg+U4+ByERTlYEIMnQegghA9CuJqDrDkIIYQkNUhQgwY56ByEwiwoioLEMLgWhAQ1KIyC5DDI1IMLQoiag0k1+BqEZ0F4FoRpQQghhCRBSJCDBkHIGIRGQViSgwY5uBSEy0GoGoQqOQgfhCA0ZBUAkAAAoKIoiqIoChAasgoAyAAAEEBRFMdxHMmRHMmxHAsIDVkFAAABAAgAAKBIiqRIjuRIkiRZkiVZkiVZkuaJqizLsizLsizLMhAasgoASAAAUFEMRXEUBwgNWQUAZAAACKA4iqVYiqVoiueIjgiEhqwCAIAAAAQAABA0Q1M8R5REz1RV17Zt27Zt27Zt27Zt27ZtW5ZlGQgNWQUAQAAAENJpZqkGiDADGQZCQ1YBAAgAAIARijDEgNCQ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SdhwY75ikWtCCSywt/tgYhCsXuDUNvqsLlUIceedfm1srqiYwnNULfUBmfmzd/O9Ke5/+WImoxAcwvjTO0w5jNet8lKxwcANkyPNCbUybGxwers7FNH5sxRpUxJ3oGWkL/kkD/Vc2bLNUdo906OtCVEcV7ve13cnIXsDuGj7A2z/R3ryW2NpTce5KBTtyzoJ8yR0eu1qcmcl/RIBFWzdTjEAwNS/04FC5WrQ/aUFWtTXYIefImaXiYP3XYmpV6ur4X1NcJLiW3EuKShAHUEr2b/Jl0ZF9S8RfqBhbq5ji2LqNcqEb+eECSlzOzIk0vzXJhr4zPoh+V4zZ0z7FrM3So1166RnlqoG9F0zFcIACABXtdRTRQAQgcAHjGsHna3Vg6zFf2e1ntWVV/JjCQNFERNPJLftL0Pq77GNT1OTvXe0+Wo79njR/l/1YialWOMk+qyJ9Vw/R2Og5Wph7YPISuWF8XX/jLDyuIlVWqTcxIgai+AXLVYc1+zrzUjrfvopAYX6hRbRVYvZ9fDyALrzEu2cfMP1WsbvlNtcyHzkY9M7tXlEYZTn5+wPu2oRLAxR0Ux76q6otUIfOkf4pZiVk2yhtJUuZ0pLCtMWl5dnWJb8CYg9AFTlHjkODEYAH4HEnPntnG7TQypIH4AY4zUI43BCXvOOcyZOaUoERQCACAq2+yetE4y5eaX/7ZqzMfwv75j9vXQY4xh7++usqts9ZPkasx595fnYc45o69vtvDq6hbhVQRz5Est4KyIg+lp5unD+lYn1dXVMK++CRY6vM0555x7//wkAED1y6omS1iQXmdI+y1C8UTQHG9vbyK9vj0RDizko6qqYXWVRdXoOUfha2CeLgDAYroAsN/eLObBAUAD"}; window.soundRepairReload={info:"Reload sound; Used in TACS; courtesy of: http://www.freesfx.co.uk; 7806 bytes",d:"data:video/ogg;base64,T2dnUwACAAAAAAAAAACpAAAAAAAAAJKfvKcBHgF2b3JiaXMAAAAAAQB9AAAAAAAAAPoAAAAAAAC4AU9nZ1MAAAAAAAAAAAAAqQAAAAEAAABQ3ZLQDlL///////////////8RA3Z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