Best JavaScript code snippet using wpt
legacyUI.js
Source:legacyUI.js
1function registerLegacyBindings() {2 Game.ui.bindElement('uraniumStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Uranium)*storagePrice); });3 Game.ui.bindElement('uraniumStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Uranium)/2.5*storagePrice); });4 Game.ui.bindElement('oilStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Oil)*storagePrice); });5 Game.ui.bindElement('oilStorageMetalCost', function(){ return Game.settings.format(getStorage(RESOURCE.Oil)/2.5*storagePrice); });6 Game.ui.bindElement('metalStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Metal)*storagePrice); });7 Game.ui.bindElement('gemStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Gem)*storagePrice); });8 Game.ui.bindElement('gemStorageMetalCost', function(){ return Game.settings.format(getStorage(RESOURCE.Gem)/2.5*storagePrice); });9 Game.ui.bindElement('charcoalStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Charcoal)*storagePrice); });10 Game.ui.bindElement('charcoalStorageMetalCost', function(){ return Game.settings.format(getStorage(RESOURCE.Charcoal)/2.5*storagePrice); });11 Game.ui.bindElement('woodStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Wood)*storagePrice); });12 Game.ui.bindElement('woodStorageMetalCost', function(){ return Game.settings.format(getStorage(RESOURCE.Wood)/2.5*storagePrice); });13 Game.ui.bindElement('lunariteStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Lunarite)*storagePrice); });14 Game.ui.bindElement('lunariteStorageMetalCost', function(){ return Game.settings.format(getStorage(RESOURCE.Lunarite)*4*storagePrice); });15 Game.ui.bindElement('methaneStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Methane)*storagePrice); });16 Game.ui.bindElement('methaneStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Methane)/2.5*storagePrice); });17 Game.ui.bindElement('titaniumStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Titanium)*storagePrice); });18 Game.ui.bindElement('titaniumStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Titanium)/2.5*storagePrice); });19 Game.ui.bindElement('goldStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Gold)*storagePrice); });20 Game.ui.bindElement('goldStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Gold)/2.5*storagePrice); });21 Game.ui.bindElement('silverStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Silver)*storagePrice); });22 Game.ui.bindElement('silverStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Silver)/2.5*storagePrice); });23 Game.ui.bindElement('siliconStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Silicon)*storagePrice); });24 Game.ui.bindElement('siliconStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Silicon)/2.5*storagePrice); });25 Game.ui.bindElement('lavaStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Lava)*storagePrice); });26 Game.ui.bindElement('lavaStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Lava)/2.5*storagePrice); });27 Game.ui.bindElement('hydrogenStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Hydrogen)*storagePrice); });28 Game.ui.bindElement('hydrogenStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Hydrogen)/2.5*storagePrice); });29 Game.ui.bindElement('heliumStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Helium)*storagePrice); });30 Game.ui.bindElement('heliumStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Helium)/2.5*storagePrice); });31 Game.ui.bindElement('iceStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Ice)*storagePrice); });32 Game.ui.bindElement('iceStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Ice)/2.5*storagePrice); });33 Game.ui.bindElement('meteoriteStorageCost', function(){ return Game.settings.format(getStorage(RESOURCE.Meteorite)*storagePrice); });34 Game.ui.bindElement('meteoriteStorageLunariteCost', function(){ return Game.settings.format(getStorage(RESOURCE.Meteorite)*4*storagePrice); });35 Game.ui.bindElement('PSU', function(){ return Game.settings.format(PSU); });36 Game.ui.bindElement('PSUSilverCost', function(){ return Game.settings.format(PSUSilverCost); });37 Game.ui.bindElement('PSUGoldCost', function(){ return Game.settings.format(PSUGoldCost); });38 Game.ui.bindElement('PSUUraniumCost', function(){ return Game.settings.format(PSUUraniumCost); });39 Game.ui.bindElement('PSUT2', function(){ return Game.settings.format(PSUT2); });40 Game.ui.bindElement('PSUT2SilverCost', function(){ return Game.settings.format(PSUT2SilverCost); });41 Game.ui.bindElement('PSUT2GoldCost', function(){ return Game.settings.format(PSUT2GoldCost); });42 Game.ui.bindElement('PSUT2UraniumCost', function(){ return Game.settings.format(PSUT2UraniumCost); });43 Game.ui.bindElement('heater', function(){ return Game.settings.format(heater); });44 Game.ui.bindElement('heaterLunariteCost', function(){ return Game.settings.format(heaterLunariteCost); });45 Game.ui.bindElement('heaterGemCost', function(){ return Game.settings.format(heaterGemCost); });46 Game.ui.bindElement('heaterSiliconCost', function(){ return Game.settings.format(heaterSiliconCost); });47 Game.ui.bindElement('plasmatic', function(){ return Game.settings.format(plasmatic); });48 Game.ui.bindElement('plasmaticLunariteCost', function(){ return Game.settings.format(plasmaticLunariteCost); });49 Game.ui.bindElement('plasmaticSiliconCost', function(){ return Game.settings.format(plasmaticSiliconCost); });50 Game.ui.bindElement('plasmaticMeteoriteCost', function(){ return Game.settings.format(plasmaticMeteoriteCost); });51 Game.ui.bindElement('bath', function(){ return Game.settings.format(bath); });52 Game.ui.bindElement('bathLavaCost', function(){ return Game.settings.format(bathLavaCost); });53 Game.ui.bindElement('bathGoldCost', function(){ return Game.settings.format(bathGoldCost); });54 Game.ui.bindElement('bathMeteoriteCost', function(){ return Game.settings.format(bathMeteoriteCost); });55 Game.ui.bindElement('battery', function(){ return Game.settings.format(battery); });56 Game.ui.bindElement('batteryMetalCost', function(){ return Game.settings.format(batteryMetalCost); });57 Game.ui.bindElement('batteryGemCost', function(){ return Game.settings.format(batteryGemCost); });58 Game.ui.bindElement('batteryLunariteCost', function(){ return Game.settings.format(batteryLunariteCost); });59 Game.ui.bindElement('batteryT2', function(){ return Game.settings.format(batteryT2); });60 Game.ui.bindElement('batteryT2MetalCost', function(){ return Game.settings.format(batteryT2MetalCost); });61 Game.ui.bindElement('batteryT2GemCost', function(){ return Game.settings.format(batteryT2GemCost); });62 Game.ui.bindElement('batteryT2LunariteCost', function(){ return Game.settings.format(batteryT2LunariteCost); });63 Game.ui.bindElement('batteryT3', function(){ return Game.settings.format(batteryT3); });64 Game.ui.bindElement('batteryT3MetalCost', function(){ return Game.settings.format(batteryT3MetalCost); });65 Game.ui.bindElement('batteryT3GemCost', function(){ return Game.settings.format(batteryT3GemCost); });66 Game.ui.bindElement('batteryT3LunariteCost', function(){ return Game.settings.format(batteryT3LunariteCost); });67 Game.ui.bindElement('batteryT4', function(){ return Game.settings.format(batteryT4); });68 Game.ui.bindElement('batteryT4MetalCost', function(){ return Game.settings.format(batteryT4MetalCost); });69 Game.ui.bindElement('batteryT4GemCost', function(){ return Game.settings.format(batteryT4GemCost); });70 Game.ui.bindElement('batteryT4LunariteCost', function(){ return Game.settings.format(batteryT4LunariteCost); });71 Game.ui.bindElement('batteryT5', function(){ return Game.settings.format(batteryT5); });72 Game.ui.bindElement('batteryT5MetalCost', function(){ return Game.settings.format(batteryT5MetalCost); });73 Game.ui.bindElement('batteryT5GemCost', function(){ return Game.settings.format(batteryT5GemCost); });74 Game.ui.bindElement('batteryT5LunariteCost', function(){ return Game.settings.format(batteryT5LunariteCost); });75 Game.ui.bindElement('charcoalEngine', function(){ return Game.settings.format(charcoalEngine); });76 Game.ui.bindElement('charcoalEngineMetalCost', function(){ return Game.settings.format(charcoalEngineMetalCost); });77 Game.ui.bindElement('charcoalEngineGemCost', function(){ return Game.settings.format(charcoalEngineGemCost); });78 Game.ui.bindElement('charcoalEngineOutput', function(){ return Game.settings.format(charcoalEngineOutput); });79 Game.ui.bindElement('solarPanel', function(){ return Game.settings.format(solarPanel); });80 Game.ui.bindElement('solarPanelMetalCost', function(){ return Game.settings.format(solarPanelMetalCost); });81 Game.ui.bindElement('solarPanelGemCost', function(){ return Game.settings.format(solarPanelGemCost); });82 Game.ui.bindElement('solarPanelOutput', function(){ return solarPanelOutput; });83 Game.ui.bindElement('methaneStation', function(){ return Game.settings.format(methaneStation); });84 Game.ui.bindElement('methaneStationLunariteCost', function(){ return Game.settings.format(methaneStationLunariteCost); });85 Game.ui.bindElement('methaneStationTitaniumCost', function(){ return Game.settings.format(methaneStationTitaniumCost); });86 Game.ui.bindElement('nuclearStation', function(){ return Game.settings.format(nuclearStation); });87 Game.ui.bindElement('nuclearStationLunariteCost', function(){ return Game.settings.format(nuclearStationLunariteCost); });88 Game.ui.bindElement('nuclearStationTitaniumCost', function(){ return Game.settings.format(nuclearStationTitaniumCost); });89 Game.ui.bindElement('magmatic', function(){ return Game.settings.format(magmatic); });90 Game.ui.bindElement('magmaticLunariteCost', function(){ return Game.settings.format(magmaticLunariteCost); });91 Game.ui.bindElement('magmaticGemCost', function(){ return Game.settings.format(magmaticGemCost); });92 Game.ui.bindElement('magmaticSilverCost', function(){ return Game.settings.format(magmaticSilverCost); });93 Game.ui.bindElement('fusionReactor', function(){ return Game.settings.format(fusionReactor); });94 Game.ui.bindElement('fusionReactorLunariteCost', function(){ return Game.settings.format(fusionReactorLunariteCost); });95 Game.ui.bindElement('fusionReactorTitaniumCost', function(){ return Game.settings.format(fusionReactorTitaniumCost); });96 Game.ui.bindElement('fusionReactorSiliconCost', function(){ return Game.settings.format(fusionReactorSiliconCost); });97 Game.ui.bindElement('pump', function(){ return Game.settings.format(pump); });98 Game.ui.bindElement('pumpMetalCost', function(){ return Game.settings.format(pumpMetalCost); });99 Game.ui.bindElement('pumpGemCost', function(){ return Game.settings.format(pumpGemCost); });100 Game.ui.bindElement('pumpjack', function(){ return Game.settings.format(pumpjack); });101 Game.ui.bindElement('pumpjackOilCost', function(){ return Game.settings.format(pumpjackOilCost); });102 Game.ui.bindElement('pumpjackGemCost', function(){ return Game.settings.format(pumpjackGemCost); });103 Game.ui.bindElement('pumpjackMetalCost', function(){ return Game.settings.format(pumpjackMetalCost); });104 Game.ui.bindElement('pumpjackOutput', function(){ return Game.settings.format(pumpjackOutput); });105 Game.ui.bindElement('oilField', function(){ return Game.settings.format(oilField); });106 Game.ui.bindElement('oilFieldTitaniumCost', function(){ return Game.settings.format(oilFieldTitaniumCost); });107 Game.ui.bindElement('oilFieldLunariteCost', function(){ return Game.settings.format(oilFieldLunariteCost); });108 Game.ui.bindElement('oilFieldSiliconCost', function(){ return Game.settings.format(oilFieldSiliconCost); });109 Game.ui.bindElement('oilRig', function(){ return Game.settings.format(oilRig); });110 Game.ui.bindElement('oilRigTitaniumCost', function(){ return Game.settings.format(oilRigTitaniumCost); });111 Game.ui.bindElement('oilRigLunariteCost', function(){ return Game.settings.format(oilRigLunariteCost); });112 Game.ui.bindElement('oilRigMeteoriteCost', function(){ return Game.settings.format(oilRigMeteoriteCost); });113 Game.ui.bindElement('miner', function(){ return Game.settings.format(miner); });114 Game.ui.bindElement('minerMetalCost', function(){ return Game.settings.format(minerMetalCost); });115 Game.ui.bindElement('minerWoodCost', function(){ return Game.settings.format(minerWoodCost); });116 Game.ui.bindElement('heavyDrill', function(){ return Game.settings.format(heavyDrill); });117 Game.ui.bindElement('heavyDrillMetalCost', function(){ return Game.settings.format(heavyDrillMetalCost); });118 Game.ui.bindElement('heavyDrillGemCost', function(){ return Game.settings.format(heavyDrillGemCost); });119 Game.ui.bindElement('heavyDrillOilCost', function(){ return Game.settings.format(heavyDrillOilCost); });120 Game.ui.bindElement('heavyDrillOutput', function(){ return Game.settings.format(heavyDrillOutput); });121 Game.ui.bindElement('gigaDrill', function(){ return Game.settings.format(gigaDrill); });122 Game.ui.bindElement('gigaDrillLunariteCost', function(){ return Game.settings.format(gigaDrillLunariteCost); });123 Game.ui.bindElement('gigaDrillGemCost', function(){ return Game.settings.format(gigaDrillGemCost); });124 Game.ui.bindElement('gigaDrillSiliconCost', function(){ return Game.settings.format(gigaDrillSiliconCost); });125 Game.ui.bindElement('quantumDrill', function(){ return Game.settings.format(quantumDrill); });126 Game.ui.bindElement('quantumDrillLunariteCost', function(){ return Game.settings.format(quantumDrillLunariteCost); });127 Game.ui.bindElement('quantumDrillGoldCost', function(){ return Game.settings.format(quantumDrillGoldCost); });128 Game.ui.bindElement('quantumDrillMeteoriteCost', function(){ return Game.settings.format(quantumDrillMeteoriteCost); });129 Game.ui.bindElement('gemMiner', function(){ return Game.settings.format(gemMiner); });130 Game.ui.bindElement('gemMinerMetalCost', function(){ return Game.settings.format(gemMinerMetalCost); });131 Game.ui.bindElement('gemMinerGemCost', function(){ return Game.settings.format(gemMinerGemCost); });132 Game.ui.bindElement('advancedDrill', function(){ return Game.settings.format(advancedDrill); });133 Game.ui.bindElement('advancedDrillMetalCost', function(){ return Game.settings.format(advancedDrillMetalCost); });134 Game.ui.bindElement('advancedDrillGemCost', function(){ return Game.settings.format(advancedDrillGemCost); });135 Game.ui.bindElement('advancedDrillOilCost', function(){ return Game.settings.format(advancedDrillOilCost); });136 Game.ui.bindElement('advancedDrillOutput', function(){ return Game.settings.format(advancedDrillOutput); });137 Game.ui.bindElement('diamondDrill', function(){ return Game.settings.format(diamondDrill); });138 Game.ui.bindElement('diamondDrillLunariteCost', function(){ return Game.settings.format(diamondDrillLunariteCost); });139 Game.ui.bindElement('diamondDrillGemCost', function(){ return Game.settings.format(diamondDrillGemCost); });140 Game.ui.bindElement('diamondDrillSiliconCost', function(){ return Game.settings.format(diamondDrillSiliconCost); });141 Game.ui.bindElement('carbyneDrill', function(){ return Game.settings.format(carbyneDrill); });142 Game.ui.bindElement('carbyneDrillLunariteCost', function(){ return Game.settings.format(carbyneDrillLunariteCost); });143 Game.ui.bindElement('carbyneDrillGemCost', function(){ return Game.settings.format(carbyneDrillGemCost); });144 Game.ui.bindElement('carbyneDrillMeteoriteCost', function(){ return Game.settings.format(carbyneDrillMeteoriteCost); });145 Game.ui.bindElement('woodburner', function(){ return Game.settings.format(woodburner); });146 Game.ui.bindElement('woodburnerMetalCost', function(){ return Game.settings.format(woodburnerMetalCost); });147 Game.ui.bindElement('woodburnerWoodCost', function(){ return Game.settings.format(woodburnerWoodCost); });148 Game.ui.bindElement('furnace', function(){ return Game.settings.format(furnace); });149 Game.ui.bindElement('furnaceMetalCost', function(){ return Game.settings.format(furnaceMetalCost); });150 Game.ui.bindElement('furnaceWoodCost', function(){ return Game.settings.format(furnaceWoodCost); });151 Game.ui.bindElement('furnaceOilCost', function(){ return Game.settings.format(furnaceOilCost); });152 Game.ui.bindElement('furnaceOutput', function(){ return Game.settings.format(furnaceOutput); });153 Game.ui.bindElement('furnaceWoodInput', function(){ return Game.settings.format(furnaceWoodInput); });154 Game.ui.bindElement('kiln', function(){ return Game.settings.format(kiln); });155 Game.ui.bindElement('kilnLunariteCost', function(){ return Game.settings.format(kilnLunariteCost); });156 Game.ui.bindElement('kilnGemCost', function(){ return Game.settings.format(kilnGemCost); });157 Game.ui.bindElement('kilnSiliconCost', function(){ return Game.settings.format(kilnSiliconCost); });158 Game.ui.bindElement('fryer', function(){ return Game.settings.format(fryer); });159 Game.ui.bindElement('fryerLunariteCost', function(){ return Game.settings.format(fryerLunariteCost); });160 Game.ui.bindElement('fryerLavaCost', function(){ return Game.settings.format(fryerLavaCost); });161 Game.ui.bindElement('fryerMeteoriteCost', function(){ return Game.settings.format(fryerMeteoriteCost); });162 Game.ui.bindElement('woodcutter', function(){ return Game.settings.format(woodcutter); });163 Game.ui.bindElement('woodcutterMetalCost', function(){ return Game.settings.format(woodcutterMetalCost); });164 Game.ui.bindElement('woodcutterWoodCost', function(){ return Game.settings.format(woodcutterWoodCost); });165 Game.ui.bindElement('laserCutter', function(){ return Game.settings.format(laserCutter); });166 Game.ui.bindElement('laserCutterMetalCost', function(){ return Game.settings.format(laserCutterMetalCost); });167 Game.ui.bindElement('laserCutterGemCost', function(){ return Game.settings.format(laserCutterGemCost); });168 Game.ui.bindElement('laserCutterOilCost', function(){ return Game.settings.format(laserCutterOilCost); });169 Game.ui.bindElement('laserCutterOutput', function(){ return Game.settings.format(laserCutterOutput); });170 Game.ui.bindElement('deforester', function(){ return Game.settings.format(deforester); });171 Game.ui.bindElement('deforesterLunariteCost', function(){ return Game.settings.format(deforesterLunariteCost); });172 Game.ui.bindElement('deforesterTitaniumCost', function(){ return Game.settings.format(deforesterTitaniumCost); });173 Game.ui.bindElement('deforesterSiliconCost', function(){ return Game.settings.format(deforesterSiliconCost); });174 Game.ui.bindElement('infuser', function(){ return Game.settings.format(infuser); });175 Game.ui.bindElement('infuserLunariteCost', function(){ return Game.settings.format(infuserLunariteCost); });176 Game.ui.bindElement('infuserOilCost', function(){ return Game.settings.format(infuserOilCost); });177 Game.ui.bindElement('infuserMeteoriteCost', function(){ return Game.settings.format(infuserMeteoriteCost); });178 Game.ui.bindElement('moonWorker', function(){ return Game.settings.format(moonWorker); });179 Game.ui.bindElement('moonWorkerGemCost', function(){ return Game.settings.format(moonWorkerGemCost); });180 Game.ui.bindElement('moonDrill', function(){ return Game.settings.format(moonDrill); });181 Game.ui.bindElement('moonDrillMetalCost', function(){ return Game.settings.format(moonDrillMetalCost); });182 Game.ui.bindElement('moonDrillGemCost', function(){ return Game.settings.format(moonDrillGemCost); });183 Game.ui.bindElement('moonDrillOilCost', function(){ return Game.settings.format(moonDrillOilCost); });184 Game.ui.bindElement('moonQuarry', function(){ return Game.settings.format(moonQuarry); });185 Game.ui.bindElement('moonQuarryLunariteCost', function(){ return Game.settings.format(moonQuarryLunariteCost); });186 Game.ui.bindElement('moonQuarryGemCost', function(){ return Game.settings.format(moonQuarryGemCost); });187 Game.ui.bindElement('moonQuarrySiliconCost', function(){ return Game.settings.format(moonQuarrySiliconCost); });188 Game.ui.bindElement('planetExcavator', function(){ return Game.settings.format(planetExcavator); });189 Game.ui.bindElement('planetExcavatorTitaniumCost', function(){ return Game.settings.format(planetExcavatorTitaniumCost); });190 Game.ui.bindElement('planetExcavatorIceCost', function(){ return Game.settings.format(planetExcavatorIceCost); });191 Game.ui.bindElement('planetExcavatorMeteoriteCost', function(){ return Game.settings.format(planetExcavatorMeteoriteCost); });192 Game.ui.bindElement('vacuum', function(){ return Game.settings.format(vacuum); });193 Game.ui.bindElement('vacuumLunariteCost', function(){ return Game.settings.format(vacuumLunariteCost); });194 Game.ui.bindElement('vacuumGemCost', function(){ return Game.settings.format(vacuumGemCost); });195 Game.ui.bindElement('suctionExcavator', function(){ return Game.settings.format(suctionExcavator); });196 Game.ui.bindElement('suctionExcavatorLunariteCost', function(){ return Game.settings.format(suctionExcavatorLunariteCost); });197 Game.ui.bindElement('suctionExcavatorGemCost', function(){ return Game.settings.format(suctionExcavatorGemCost); });198 Game.ui.bindElement('suctionExcavatorOilCost', function(){ return Game.settings.format(suctionExcavatorOilCost); });199 Game.ui.bindElement('spaceCow', function(){ return Game.settings.format(spaceCow); });200 Game.ui.bindElement('spaceCowTitaniumCost', function(){ return Game.settings.format(spaceCowTitaniumCost); });201 Game.ui.bindElement('spaceCowLunariteCost', function(){ return Game.settings.format(spaceCowLunariteCost); });202 Game.ui.bindElement('spaceCowSiliconCost', function(){ return Game.settings.format(spaceCowSiliconCost); });203 Game.ui.bindElement('vent', function(){ return Game.settings.format(vent); });204 Game.ui.bindElement('ventHeliumCost', function(){ return Game.settings.format(ventHeliumCost); });205 Game.ui.bindElement('ventLunariteCost', function(){ return Game.settings.format(ventLunariteCost); });206 Game.ui.bindElement('ventMeteoriteCost', function(){ return Game.settings.format(ventMeteoriteCost); });207 Game.ui.bindElement('explorer', function(){ return Game.settings.format(explorer); });208 Game.ui.bindElement('explorerGemCost', function(){ return Game.settings.format(explorerGemCost); });209 Game.ui.bindElement('lunariteDrill', function(){ return Game.settings.format(lunariteDrill); });210 Game.ui.bindElement('lunariteDrillLunariteCost', function(){ return Game.settings.format(lunariteDrillLunariteCost); });211 Game.ui.bindElement('lunariteDrillGemCost', function(){ return Game.settings.format(lunariteDrillGemCost); });212 Game.ui.bindElement('lunariteDrillOilCost', function(){ return Game.settings.format(lunariteDrillOilCost); });213 Game.ui.bindElement('pentaDrill', function(){ return Game.settings.format(pentaDrill); });214 Game.ui.bindElement('pentaDrillLunariteCost', function(){ return Game.settings.format(pentaDrillLunariteCost); });215 Game.ui.bindElement('pentaDrillGemCost', function(){ return Game.settings.format(pentaDrillGemCost); });216 Game.ui.bindElement('pentaDrillSiliconCost', function(){ return Game.settings.format(pentaDrillSiliconCost); });217 Game.ui.bindElement('titanDrill', function(){ return Game.settings.format(titanDrill); });218 Game.ui.bindElement('titanDrillLunariteCost', function(){ return Game.settings.format(titanDrillLunariteCost); });219 Game.ui.bindElement('titanDrillGoldCost', function(){ return Game.settings.format(titanDrillGoldCost); });220 Game.ui.bindElement('titanDrillMeteoriteCost', function(){ return Game.settings.format(titanDrillMeteoriteCost); });221 Game.ui.bindElement('droid', function(){ return Game.settings.format(droid); });222 Game.ui.bindElement('droidLunariteCost', function(){ return Game.settings.format(droidLunariteCost); });223 Game.ui.bindElement('droidMethaneCost', function(){ return Game.settings.format(droidMethaneCost); });224 Game.ui.bindElement('destroyer', function(){ return Game.settings.format(destroyer); });225 Game.ui.bindElement('destroyerLunariteCost', function(){ return Game.settings.format(destroyerLunariteCost); });226 Game.ui.bindElement('destroyerGemCost', function(){ return Game.settings.format(destroyerGemCost); });227 Game.ui.bindElement('destroyerOilCost', function(){ return Game.settings.format(destroyerOilCost); });228 Game.ui.bindElement('deathStar', function(){ return Game.settings.format(deathStar); });229 Game.ui.bindElement('deathStarLunariteCost', function(){ return Game.settings.format(deathStarLunariteCost); });230 Game.ui.bindElement('deathStarSilverCost', function(){ return Game.settings.format(deathStarSilverCost); });231 Game.ui.bindElement('deathStarSiliconCost', function(){ return Game.settings.format(deathStarSiliconCost); });232 Game.ui.bindElement('actuator', function(){ return Game.settings.format(actuator); });233 Game.ui.bindElement('actuatorLunariteCost', function(){ return Game.settings.format(actuatorLunariteCost); });234 Game.ui.bindElement('actuatorHeliumCost', function(){ return Game.settings.format(actuatorHeliumCost); });235 Game.ui.bindElement('actuatorMeteoriteCost', function(){ return Game.settings.format(actuatorMeteoriteCost); });236 Game.ui.bindElement('scout', function(){ return Game.settings.format(scout); });237 Game.ui.bindElement('scoutLunariteCost', function(){ return Game.settings.format(scoutLunariteCost); });238 Game.ui.bindElement('scoutTitaniumCost', function(){ return Game.settings.format(scoutTitaniumCost); });239 Game.ui.bindElement('spaceLaser', function(){ return Game.settings.format(spaceLaser); });240 Game.ui.bindElement('spaceLaserLunariteCost', function(){ return Game.settings.format(spaceLaserLunariteCost); });241 Game.ui.bindElement('spaceLaserGemCost', function(){ return Game.settings.format(spaceLaserGemCost); });242 Game.ui.bindElement('spaceLaserOilCost', function(){ return Game.settings.format(spaceLaserOilCost); });243 Game.ui.bindElement('bertha', function(){ return Game.settings.format(bertha); });244 Game.ui.bindElement('berthaTitaniumCost', function(){ return Game.settings.format(berthaTitaniumCost); });245 Game.ui.bindElement('berthaLunariteCost', function(){ return Game.settings.format(berthaLunariteCost); });246 Game.ui.bindElement('berthaSiliconCost', function(){ return Game.settings.format(berthaSiliconCost); });247 Game.ui.bindElement('cannon', function(){ return Game.settings.format(cannon); });248 Game.ui.bindElement('cannonOilCost', function(){ return Game.settings.format(cannonOilCost); });249 Game.ui.bindElement('cannonLunariteCost', function(){ return Game.settings.format(cannonLunariteCost); });250 Game.ui.bindElement('cannonMeteoriteCost', function(){ return Game.settings.format(cannonMeteoriteCost); });251 Game.ui.bindElement('blowtorch', function(){ return Game.settings.format(blowtorch); });252 Game.ui.bindElement('blowtorchLunariteCost', function(){ return Game.settings.format(blowtorchLunariteCost); });253 Game.ui.bindElement('blowtorchTitaniumCost', function(){ return Game.settings.format(blowtorchTitaniumCost); });254 Game.ui.bindElement('scorcher', function(){ return Game.settings.format(scorcher); });255 Game.ui.bindElement('scorcherLunariteCost', function(){ return Game.settings.format(scorcherLunariteCost); });256 Game.ui.bindElement('scorcherGemCost', function(){ return Game.settings.format(scorcherGemCost); });257 Game.ui.bindElement('scorcherOilCost', function(){ return Game.settings.format(scorcherOilCost); });258 Game.ui.bindElement('annihilator', function(){ return Game.settings.format(annihilator); });259 Game.ui.bindElement('annihilatorLunariteCost', function(){ return Game.settings.format(annihilatorLunariteCost); });260 Game.ui.bindElement('annihilatorGemCost', function(){ return Game.settings.format(annihilatorGemCost); });261 Game.ui.bindElement('annihilatorSilverCost', function(){ return Game.settings.format(annihilatorSilverCost); });262 Game.ui.bindElement('desert', function(){ return Game.settings.format(desert); });263 Game.ui.bindElement('desertLunariteCost', function(){ return Game.settings.format(desertLunariteCost); });264 Game.ui.bindElement('desertSiliconCost', function(){ return Game.settings.format(desertSiliconCost); });265 Game.ui.bindElement('desertMeteoriteCost', function(){ return Game.settings.format(desertMeteoriteCost); });266 Game.ui.bindElement('lab', function(){ return Game.settings.format(lab); });267 Game.ui.bindElement('labWoodCost', function(){ return Game.settings.format(labWoodCost); });268 Game.ui.bindElement('labGemCost', function(){ return Game.settings.format(labGemCost); });269 Game.ui.bindElement('labMetalCost', function(){ return Game.settings.format(labMetalCost); });270 Game.ui.bindElement('labT2', function(){ return Game.settings.format(labT2); });271 Game.ui.bindElement('labT2WoodCost', function(){ return Game.settings.format(labT2WoodCost); });272 Game.ui.bindElement('labT2GemCost', function(){ return Game.settings.format(labT2GemCost); });273 Game.ui.bindElement('labT2MetalCost', function(){ return Game.settings.format(labT2MetalCost); });274 Game.ui.bindElement('labT3', function(){ return Game.settings.format(labT3); });275 Game.ui.bindElement('labT3WoodCost', function(){ return Game.settings.format(labT3WoodCost); });276 Game.ui.bindElement('labT3GemCost', function(){ return Game.settings.format(labT3GemCost); });277 Game.ui.bindElement('labT3MetalCost', function(){ return Game.settings.format(labT3MetalCost); });278 Game.ui.bindElement('labT4', function(){ return Game.settings.format(labT4); });279 Game.ui.bindElement('labT4WoodCost', function(){ return Game.settings.format(labT4WoodCost); });280 Game.ui.bindElement('labT4GemCost', function(){ return Game.settings.format(labT4GemCost); });281 Game.ui.bindElement('labT4MetalCost', function(){ return Game.settings.format(labT4MetalCost); });282 Game.ui.bindElement('labT5', function(){ return Game.settings.format(labT5); });283 Game.ui.bindElement('labT5WoodCost', function(){ return Game.settings.format(labT5WoodCost); });284 Game.ui.bindElement('labT5GemCost', function(){ return Game.settings.format(labT5GemCost); });285 Game.ui.bindElement('labT5MetalCost', function(){ return Game.settings.format(labT5MetalCost); });286 Game.ui.bindElement('chemicalPlant', function(){ return Game.settings.format(chemicalPlant); });287 Game.ui.bindElement('chemicalPlantMetalCost', function(){ return Game.settings.format(chemicalPlantMetalCost); });288 Game.ui.bindElement('chemicalPlantGemCost', function(){ return Game.settings.format(chemicalPlantGemCost); });289 Game.ui.bindElement('chemicalPlantOilCost', function(){ return Game.settings.format(chemicalPlantOilCost); });290 Game.ui.bindElement('oxidisation', function(){ return Game.settings.format(oxidisation); });291 Game.ui.bindElement('oxidisationMetalCost', function(){ return Game.settings.format(oxidisationMetalCost); });292 Game.ui.bindElement('oxidisationGemCost', function(){ return Game.settings.format(oxidisationGemCost); });293 Game.ui.bindElement('oxidisationOilCost', function(){ return Game.settings.format(oxidisationOilCost); });294 Game.ui.bindElement('hydrazine', function(){ return Game.settings.format(hydrazine); });295 Game.ui.bindElement('hydrazineTitaniumCost', function(){ return Game.settings.format(hydrazineTitaniumCost); });296 Game.ui.bindElement('hydrazineSiliconCost', function(){ return Game.settings.format(hydrazineSiliconCost); });297 Game.ui.bindElement('hydrazineGoldCost', function(){ return Game.settings.format(hydrazineGoldCost); });298 Game.ui.bindElement('grinder', function(){ return Game.settings.format(grinder); });299 Game.ui.bindElement('grinderTitaniumCost', function(){ return Game.settings.format(grinderTitaniumCost); });300 Game.ui.bindElement('grinderLunariteCost', function(){ return Game.settings.format(grinderLunariteCost); });301 Game.ui.bindElement('grinderGoldCost', function(){ return Game.settings.format(grinderGoldCost); });302 Game.ui.bindElement('cubic', function(){ return Game.settings.format(cubic); });303 Game.ui.bindElement('cubicUraniumCost', function(){ return Game.settings.format(cubicUraniumCost); });304 Game.ui.bindElement('cubicLunariteCost', function(){ return Game.settings.format(cubicLunariteCost); });305 Game.ui.bindElement('cubicOilCost', function(){ return Game.settings.format(cubicOilCost); });306 Game.ui.bindElement('enricher', function(){ return Game.settings.format(enricher); });307 Game.ui.bindElement('enricherTitaniumCost', function(){ return Game.settings.format(enricherTitaniumCost); });308 Game.ui.bindElement('enricherLunariteCost', function(){ return Game.settings.format(enricherLunariteCost); });309 Game.ui.bindElement('enricherSiliconCost', function(){ return Game.settings.format(enricherSiliconCost); });310 Game.ui.bindElement('recycler', function(){ return Game.settings.format(recycler); });311 Game.ui.bindElement('recyclerMethaneCost', function(){ return Game.settings.format(recyclerMethaneCost); });312 Game.ui.bindElement('recyclerLunariteCost', function(){ return Game.settings.format(recyclerLunariteCost); });313 Game.ui.bindElement('recyclerMeteoriteCost', function(){ return Game.settings.format(recyclerMeteoriteCost); });314 Game.ui.bindElement('crucible', function(){ return Game.settings.format(crucible); });315 Game.ui.bindElement('crucibleGemCost', function(){ return Game.settings.format(crucibleGemCost); });316 Game.ui.bindElement('crucibleLunariteCost', function(){ return Game.settings.format(crucibleLunariteCost); });317 Game.ui.bindElement('extractor', function(){ return Game.settings.format(extractor); });318 Game.ui.bindElement('extractorTitaniumCost', function(){ return Game.settings.format(extractorTitaniumCost); });319 Game.ui.bindElement('extractorLunariteCost', function(){ return Game.settings.format(extractorLunariteCost); });320 Game.ui.bindElement('extractorSiliconCost', function(){ return Game.settings.format(extractorSiliconCost); });321 Game.ui.bindElement('extruder', function(){ return Game.settings.format(extruder); });322 Game.ui.bindElement('extruderTitaniumCost', function(){ return Game.settings.format(extruderTitaniumCost); });323 Game.ui.bindElement('extruderLunariteCost', function(){ return Game.settings.format(extruderLunariteCost); });324 Game.ui.bindElement('extruderSiliconCost', function(){ return Game.settings.format(extruderSiliconCost); });325 Game.ui.bindElement('veluptuator', function(){ return Game.settings.format(veluptuator); });326 Game.ui.bindElement('veluptuatorGoldCost', function(){ return Game.settings.format(veluptuatorGoldCost); });327 Game.ui.bindElement('veluptuatorLunariteCost', function(){ return Game.settings.format(veluptuatorLunariteCost); });328 Game.ui.bindElement('veluptuatorMeteoriteCost', function(){ return Game.settings.format(veluptuatorMeteoriteCost); });329 Game.ui.bindElement('collector', function(){ return Game.settings.format(collector); });330 Game.ui.bindElement('collectorLunariteCost', function(){ return Game.settings.format(collectorLunariteCost); });331 Game.ui.bindElement('collectorTitaniumCost', function(){ return Game.settings.format(collectorTitaniumCost); });332 Game.ui.bindElement('magnet', function(){ return Game.settings.format(magnet); });333 Game.ui.bindElement('magnetLunariteCost', function(){ return Game.settings.format(magnetLunariteCost); });334 Game.ui.bindElement('magnetTitaniumCost', function(){ return Game.settings.format(magnetTitaniumCost); });335 Game.ui.bindElement('magnetGoldCost', function(){ return Game.settings.format(magnetGoldCost); });336 Game.ui.bindElement('eCell', function(){ return Game.settings.format(eCell); });337 Game.ui.bindElement('eCellSilverCost', function(){ return Game.settings.format(eCellSilverCost); });338 Game.ui.bindElement('eCellGoldCost', function(){ return Game.settings.format(eCellGoldCost); });339 Game.ui.bindElement('eCellSiliconCost', function(){ return Game.settings.format(eCellSiliconCost); });340 Game.ui.bindElement('hindenburg', function(){ return Game.settings.format(hindenburg); });341 Game.ui.bindElement('hindenburgLunariteCost', function(){ return Game.settings.format(hindenburgLunariteCost); });342 Game.ui.bindElement('hindenburgMethaneCost', function(){ return Game.settings.format(hindenburgMethaneCost); });343 Game.ui.bindElement('hindenburgMeteoriteCost', function(){ return Game.settings.format(hindenburgMeteoriteCost); });344 Game.ui.bindElement('drone', function(){ return Game.settings.format(drone); });345 Game.ui.bindElement('droneLunariteCost', function(){ return Game.settings.format(droneLunariteCost); });346 Game.ui.bindElement('droneSiliconCost', function(){ return Game.settings.format(droneSiliconCost); });347 Game.ui.bindElement('tanker', function(){ return Game.settings.format(tanker); });348 Game.ui.bindElement('tankerLunariteCost', function(){ return Game.settings.format(tankerLunariteCost); });349 Game.ui.bindElement('tankerTitaniumCost', function(){ return Game.settings.format(tankerTitaniumCost); });350 Game.ui.bindElement('tankerSiliconCost', function(){ return Game.settings.format(tankerSiliconCost); });351 Game.ui.bindElement('compressor', function(){ return Game.settings.format(compressor); });352 Game.ui.bindElement('compressorLunariteCost', function(){ return Game.settings.format(compressorLunariteCost); });353 Game.ui.bindElement('compressorTitaniumCost', function(){ return Game.settings.format(compressorTitaniumCost); });354 Game.ui.bindElement('compressorSiliconCost', function(){ return Game.settings.format(compressorSiliconCost); });355 Game.ui.bindElement('skimmer', function(){ return Game.settings.format(skimmer); });356 Game.ui.bindElement('skimmerLunariteCost', function(){ return Game.settings.format(skimmerLunariteCost); });357 Game.ui.bindElement('skimmerTitaniumCost', function(){ return Game.settings.format(skimmerTitaniumCost); });358 Game.ui.bindElement('skimmerMeteoriteCost', function(){ return Game.settings.format(skimmerMeteoriteCost); });359 Game.ui.bindElement('icePick', function(){ return Game.settings.format(icePick); });360 Game.ui.bindElement('icePickLunariteCost', function(){ return Game.settings.format(icePickLunariteCost); });361 Game.ui.bindElement('icePickGemCost', function(){ return Game.settings.format(icePickGemCost); });362 Game.ui.bindElement('iceDrill', function(){ return Game.settings.format(iceDrill); });363 Game.ui.bindElement('iceDrillLunariteCost', function(){ return Game.settings.format(iceDrillLunariteCost); });364 Game.ui.bindElement('iceDrillTitaniumCost', function(){ return Game.settings.format(iceDrillTitaniumCost); });365 Game.ui.bindElement('iceDrillSiliconCost', function(){ return Game.settings.format(iceDrillSiliconCost); });366 Game.ui.bindElement('freezer', function(){ return Game.settings.format(freezer); });367 Game.ui.bindElement('freezerLunariteCost', function(){ return Game.settings.format(freezerLunariteCost); });368 Game.ui.bindElement('freezerTitaniumCost', function(){ return Game.settings.format(freezerTitaniumCost); });369 Game.ui.bindElement('freezerSiliconCost', function(){ return Game.settings.format(freezerSiliconCost); });370 Game.ui.bindElement('mrFreeze', function(){ return Game.settings.format(mrFreeze); });371 Game.ui.bindElement('mrFreezeWoodCost', function(){ return Game.settings.format(mrFreezeWoodCost); });372 Game.ui.bindElement('mrFreezeHeliumCost', function(){ return Game.settings.format(mrFreezeHeliumCost); });373 Game.ui.bindElement('mrFreezeMeteoriteCost', function(){ return Game.settings.format(mrFreezeMeteoriteCost); });374 Game.ui.bindElement('printer', function(){ return Game.settings.format(printer); });375 Game.ui.bindElement('printerLunariteCost', function(){ return Game.settings.format(printerLunariteCost); });376 Game.ui.bindElement('printerSiliconCost', function(){ return Game.settings.format(printerSiliconCost); });377 Game.ui.bindElement('web', function(){ return Game.settings.format(web); });378 Game.ui.bindElement('webLunariteCost', function(){ return Game.settings.format(webLunariteCost); });379 Game.ui.bindElement('webUraniumCost', function(){ return Game.settings.format(webUraniumCost); });380 Game.ui.bindElement('webSiliconCost', function(){ return Game.settings.format(webSiliconCost); });381 Game.ui.bindElement('smasher', function(){ return Game.settings.format(smasher); });382 Game.ui.bindElement('smasherSiliconCost', function(){ return Game.settings.format(smasherSiliconCost); });383 Game.ui.bindElement('smasherSilverCost', function(){ return Game.settings.format(smasherSilverCost); });384 Game.ui.bindElement('smasherGemCost', function(){ return Game.settings.format(smasherGemCost); });385 Game.ui.bindElement('nebulous', function(){ return Game.settings.format(nebulous); });386 Game.ui.bindElement('nebulousLunariteCost', function(){ return Game.settings.format(nebulousLunariteCost); });387 Game.ui.bindElement('nebulousLavaCost', function(){ return Game.settings.format(nebulousLavaCost); });388 Game.ui.bindElement('nebulousGoldCost', function(){ return Game.settings.format(nebulousGoldCost); });389 Game.ui.bindElement('dyson', function(){ return Game.settings.format(dyson); });390 Game.ui.bindElement('dysonPieces', function(){ return Game.settings.format(dyson); });391 Game.ui.bindElement('dysonPieces2', function(){ return Game.settings.format(dyson); });392 Game.ui.bindElement('dysonPieces3', function(){ return Game.settings.format(dyson); });393 Game.ui.bindElement('dysonTitaniumCost', function(){ return Game.settings.format(dysonTitaniumCost); });394 Game.ui.bindElement('dysonGoldCost', function(){ return Game.settings.format(dysonGoldCost); });395 Game.ui.bindElement('dysonSiliconCost', function(){ return Game.settings.format(dysonSiliconCost); });396 Game.ui.bindElement('dysonMeteoriteCost', function(){ return Game.settings.format(dysonMeteoriteCost); });397 Game.ui.bindElement('dysonIceCost', function(){ return Game.settings.format(dysonIceCost); });398 Game.ui.bindElement('ring', function(){ return Game.settings.format(ring); });399 Game.ui.bindElement('swarm', function(){ return Game.utils.formatters["shortName"](swarm.toFixed(0)); });400 Game.ui.bindElement('sphere', function(){ return Game.settings.format(sphere); });401 //T5 machines402 Game.ui.bindElement('planetNuke', function(){ return Game.settings.format(planetNuke); });403 Game.ui.bindElement('planetNukeTitaniumCost', function(){ return Game.settings.format(planetNukeTitaniumCost); });404 Game.ui.bindElement('planetNukeSiliconCost', function(){ return Game.settings.format(planetNukeSiliconCost); });405 Game.ui.bindElement('planetNukeIceCost', function(){ return Game.settings.format(planetNukeIceCost); });406 Game.ui.bindElement('condensator', function(){ return Game.settings.format(condensator); });407 Game.ui.bindElement('condensatorLunariteCost', function(){ return Game.settings.format(condensatorLunariteCost); });408 Game.ui.bindElement('condensatorGemCost', function(){ return Game.settings.format(condensatorGemCost); });409 Game.ui.bindElement('condensatorIceCost', function(){ return Game.settings.format(condensatorIceCost); });410 Game.ui.bindElement('fossilator', function(){ return Game.settings.format(fossilator); });411 Game.ui.bindElement('fossilatorUraniumCost', function(){ return Game.settings.format(fossilatorUraniumCost); });412 Game.ui.bindElement('fossilatorCharcoalCost', function(){ return Game.settings.format(fossilatorCharcoalCost); });413 Game.ui.bindElement('fossilatorLavaCost', function(){ return Game.settings.format(fossilatorLavaCost); });414 Game.ui.bindElement('multiDrill', function(){ return Game.settings.format(multiDrill); });415 Game.ui.bindElement('multiDrillTitaniumCost', function(){ return Game.settings.format(multiDrillTitaniumCost); });416 Game.ui.bindElement('multiDrillGoldCost', function(){ return Game.settings.format(multiDrillGoldCost); });417 Game.ui.bindElement('multiDrillOilCost', function(){ return Game.settings.format(multiDrillOilCost); });418 Game.ui.bindElement('diamondChamber', function(){ return Game.settings.format(diamondChamber); });419 Game.ui.bindElement('diamondChamberUraniumCost', function(){ return Game.settings.format(diamondChamberUraniumCost); });420 Game.ui.bindElement('diamondChamberCharcoalCost', function(){ return Game.settings.format(diamondChamberCharcoalCost); });421 Game.ui.bindElement('diamondChamberMeteoriteCost', function(){ return Game.settings.format(diamondChamberMeteoriteCost); });422 Game.ui.bindElement('microPollutor', function(){ return Game.settings.format(microPollutor); });423 Game.ui.bindElement('microPollutorMetalCost', function(){ return Game.settings.format(microPollutorMetalCost); });424 Game.ui.bindElement('microPollutorWoodCost', function(){ return Game.settings.format(microPollutorWoodCost); });425 Game.ui.bindElement('microPollutorLavaCost', function(){ return Game.settings.format(microPollutorLavaCost); });426 Game.ui.bindElement('forest', function(){ return Game.settings.format(forest); });427 Game.ui.bindElement('forestMetalCost', function(){ return Game.settings.format(forestMetalCost); });428 Game.ui.bindElement('forestGemCost', function(){ return Game.settings.format(forestGemCost); });429 Game.ui.bindElement('forestHydrogenCost', function(){ return Game.settings.format(forestHydrogenCost); });430 Game.ui.bindElement('cloner', function(){ return Game.settings.format(cloner); });431 Game.ui.bindElement('clonerTitaniumCost', function(){ return Game.settings.format(clonerTitaniumCost); });432 Game.ui.bindElement('clonerGoldCost', function(){ return Game.settings.format(clonerGoldCost); });433 Game.ui.bindElement('clonerMethaneCost', function(){ return Game.settings.format(clonerMethaneCost); });434 Game.ui.bindElement('interCow', function(){ return Game.settings.format(interCow); });435 Game.ui.bindElement('interCowLunariteCost', function(){ return Game.settings.format(interCowLunariteCost); });436 Game.ui.bindElement('interCowGoldCost', function(){ return Game.settings.format(interCowGoldCost); });437 Game.ui.bindElement('interCowHydrogenCost', function(){ return Game.settings.format(interCowHydrogenCost); });438 Game.ui.bindElement('club', function(){ return Game.settings.format(club); });439 Game.ui.bindElement('clubUraniumCost', function(){ return Game.settings.format(clubUraniumCost); });440 Game.ui.bindElement('clubWoodCost', function(){ return Game.settings.format(clubWoodCost); });441 Game.ui.bindElement('clubHeliumCost', function(){ return Game.settings.format(clubHeliumCost); });442 Game.ui.bindElement('philosopher', function(){ return Game.settings.format(philosopher); });443 Game.ui.bindElement('philosopherMetalCost', function(){ return Game.settings.format(philosopherMetalCost); });444 Game.ui.bindElement('philosopherSilverCost', function(){ return Game.settings.format(philosopherSilverCost); });445 Game.ui.bindElement('philosopherMeteoriteCost', function(){ return Game.settings.format(philosopherMeteoriteCost); });446 Game.ui.bindElement('werewolf', function(){ return Game.settings.format(werewolf); });447 Game.ui.bindElement('werewolfUraniumCost', function(){ return Game.settings.format(werewolfUraniumCost); });448 Game.ui.bindElement('werewolfGemCost', function(){ return Game.settings.format(werewolfGemCost); });449 Game.ui.bindElement('werewolfMethaneCost', function(){ return Game.settings.format(werewolfMethaneCost); });450 Game.ui.bindElement('tardis', function(){ return Game.settings.format(tardis); });451 Game.ui.bindElement('tardisTitaniumCost', function(){ return Game.settings.format(tardisTitaniumCost); });452 Game.ui.bindElement('tardisSiliconCost', function(){ return Game.settings.format(tardisSiliconCost); });453 Game.ui.bindElement('tardisMeteoriteCost', function(){ return Game.settings.format(tardisMeteoriteCost); });454 Game.ui.bindElement('harvester', function(){ return Game.settings.format(harvester); });455 Game.ui.bindElement('harvesterLunariteCost', function(){ return Game.settings.format(harvesterLunariteCost); });456 Game.ui.bindElement('harvesterWoodCost', function(){ return Game.settings.format(harvesterWoodCost); });457 Game.ui.bindElement('harvesterOilCost', function(){ return Game.settings.format(harvesterOilCost); });458 Game.ui.bindElement('cage', function(){ return Game.settings.format(cage); });459 Game.ui.bindElement('cageLunariteCost', function(){ return Game.settings.format(cageLunariteCost); });460 Game.ui.bindElement('cageSiliconCost', function(){ return Game.settings.format(cageSiliconCost); });461 Game.ui.bindElement('cageMeteoriteCost', function(){ return Game.settings.format(cageMeteoriteCost); });462 Game.ui.bindElement('overexchange', function(){ return Game.settings.format(overexchange); });463 Game.ui.bindElement('overexchangeMetalCost', function(){ return Game.settings.format(overexchangeMetalCost); });464 Game.ui.bindElement('overexchangeSilverCost', function(){ return Game.settings.format(overexchangeSilverCost); });465 Game.ui.bindElement('overexchangeHeliumCost', function(){ return Game.settings.format(overexchangeHeliumCost); });466 467 // Wonders - Floor 1468 Game.ui.bindElement('preciousGemCost', function() { return Game.settings.format(preciousGemCost); });469 Game.ui.bindElement('preciousSilverCost', function() { return Game.settings.format(preciousSilverCost); });470 Game.ui.bindElement('preciousGoldCost', function() { return Game.settings.format(preciousGoldCost); });471 Game.ui.bindElement('preciousActivateGemCost', function() { return Game.settings.format(preciousActivateGemCost); });472 Game.ui.bindElement('preciousActivateSilverCost', function() { return Game.settings.format(preciousActivateSilverCost); });473 Game.ui.bindElement('preciousActivateGoldCost', function() { return Game.settings.format(preciousActivateGoldCost); });474 Game.ui.bindElement('energeticWoodCost', function() { return Game.settings.format(energeticWoodCost); });475 Game.ui.bindElement('energeticCharcoalCost', function() { return Game.settings.format(energeticCharcoalCost); });476 Game.ui.bindElement('energeticUraniumCost', function() { return Game.settings.format(energeticUraniumCost); });477 Game.ui.bindElement('energeticActivateWoodCost', function() { return Game.settings.format(energeticActivateWoodCost); });478 Game.ui.bindElement('energeticActivateCharcoalCost', function() { return Game.settings.format(energeticActivateCharcoalCost); });479 Game.ui.bindElement('energeticActivateUraniumCost', function() { return Game.settings.format(energeticActivateUraniumCost); });480 Game.ui.bindElement('techSiliconCost', function() { return Game.settings.format(techSiliconCost); });481 Game.ui.bindElement('techGoldCost', function() { return Game.settings.format(techGoldCost); });482 Game.ui.bindElement('techGemCost', function() { return Game.settings.format(techGemCost); });483 Game.ui.bindElement('techActivateSiliconCost', function() { return Game.settings.format(techActivateSiliconCost); });484 Game.ui.bindElement('techActivateGoldCost', function() { return Game.settings.format(techActivateGoldCost); });485 Game.ui.bindElement('techActivateGemCost', function() { return Game.settings.format(techActivateGemCost); });486 Game.ui.bindElement('meteoriteMeteoriteCost', function() { return Game.settings.format(meteoriteMeteoriteCost); });487 Game.ui.bindElement('meteoriteIceCost', function() { return Game.settings.format(meteoriteIceCost); });488 Game.ui.bindElement('meteoriteSiliconCost', function() { return Game.settings.format(meteoriteSiliconCost); });489 Game.ui.bindElement('meteoriteActivateMeteoriteCost', function() { return Game.settings.format(meteoriteActivateMeteoriteCost); });490 Game.ui.bindElement('meteoriteActivateIceCost', function() { return Game.settings.format(meteoriteActivateIceCost); });491 Game.ui.bindElement('meteoriteActivateSiliconCost', function() { return Game.settings.format(meteoriteActivateSiliconCost); });492 // Wonders - Floor 2493 Game.ui.bindElement('commsWonderGoldCost', function() { return Game.settings.format(commsWonderGoldCost); });494 Game.ui.bindElement('commsWonderSiliconCost', function() { return Game.settings.format(commsWonderSiliconCost); });495 Game.ui.bindElement('commsWonderIceCost', function() { return Game.settings.format(commsWonderIceCost); });496 Game.ui.bindElement('rocketWonderLunariteCost', function() { return Game.settings.format(rocketWonderLunariteCost); });497 Game.ui.bindElement('rocketWonderTitaniumCost', function() { return Game.settings.format(rocketWonderTitaniumCost); });498 Game.ui.bindElement('rocketWonderMetalCost', function() { return Game.settings.format(rocketWonderMetalCost); });499 Game.ui.bindElement('antimatterWonderUraniumCost', function() { return Game.settings.format(antimatterWonderUraniumCost); });500 Game.ui.bindElement('antimatterWonderLavaCost', function() { return Game.settings.format(antimatterWonderLavaCost); });501 Game.ui.bindElement('antimatterWonderOilCost', function() { return Game.settings.format(antimatterWonderOilCost); });502 Game.ui.bindElement('antimatterWonderMethaneCost', function() { return Game.settings.format(antimatterWonderMethaneCost); });503 Game.ui.bindElement('portalMeteoriteCost', function() { return Game.settings.format(portalMeteoriteCost); });504 Game.ui.bindElement('portalHeliumCost', function() { return Game.settings.format(portalHeliumCost); });505 Game.ui.bindElement('portalSiliconCost', function() { return Game.settings.format(portalSiliconCost); });506 // Wonders - Floor 3507 Game.ui.bindElement('stargateWonderPlasmaCost', function() { return Game.settings.format(stargateWonderPlasmaCost); });508 Game.ui.bindElement('stargateWonderSiliconCost', function() { return Game.settings.format(stargateWonderSiliconCost); });509 Game.ui.bindElement('stargateWonderMeteoriteCost', function() { return Game.settings.format(stargateWonderMeteoriteCost); });510}511function legacyRefreshUI() {512 if(energyLow) {513 $('#energyLow').removeClass('hidden');514 } else {515 $('#energyLow').addClass('hidden');516 }517 if(sphere > Game.interstellar.stars.systemsConquered) {518 $('#buildSphereInfo').hide();519 $('#buildSphereButton').hide();520 } else {521 $('#buildSphereInfo').show();522 $('#buildSphereButton').show();523 }524 $('#heaterToggled').text(heaterToggled === true ? "Off" : "On");525 $('#plasmaticToggled').text(plasmaticToggled === true ? "Off" : "On");526 $('#bathToggled').text(bathToggled === true ? "Off" : "On");527 $('#charcoalToggled').text(charcoalToggled === true ? "Off" : "On");528 $('#rocketFuelToggled').text(rocketFuelToggled === true ? "Off" : "On");529 $('#meteoriteToggled').text(meteoriteToggled === true ? "Off" : "On");530 $('#antimatterToggled').text(antimatterToggled === true ? "Off" : "On");...
config.py
Source:config.py
...1069## content.1070## Type: Bool1071c.zoom.text_only = False1072## Bindings for normal mode1073config.bind("'", 'enter-mode jump_mark')1074config.bind('+', 'zoom-in')1075config.bind('-', 'zoom-out')1076config.bind('.', 'repeat-command')1077config.bind('/', 'set-cmd-text /')1078config.bind(':', 'set-cmd-text :')1079config.bind(';I', 'hint images tab')1080config.bind(';O', 'hint links fill :open -t -r {hint-url}')1081config.bind(';R', 'hint --rapid links window')1082config.bind(';Y', 'hint links yank-primary')1083config.bind(';b', 'hint all tab-bg')1084config.bind(';d', 'hint links download')1085config.bind(';f', 'hint all tab-fg')1086config.bind(';h', 'hint all hover')1087config.bind(';i', 'hint images')1088config.bind(';o', 'hint links fill :open {hint-url}')1089config.bind(';r', 'hint --rapid links tab-bg')1090config.bind(';t', 'hint inputs')1091config.bind(';y', 'hint links yank')1092config.bind('<Alt-1>', 'tab-focus 1')1093config.bind('<Alt-2>', 'tab-focus 2')1094config.bind('<Alt-3>', 'tab-focus 3')1095config.bind('<Alt-4>', 'tab-focus 4')1096config.bind('<Alt-5>', 'tab-focus 5')1097config.bind('<Alt-6>', 'tab-focus 6')1098config.bind('<Alt-7>', 'tab-focus 7')1099config.bind('<Alt-8>', 'tab-focus 8')1100config.bind('<Alt-9>', 'tab-focus -1')1101config.bind('<Ctrl-A>', 'navigate increment')1102config.bind('<Ctrl-Alt-p>', 'print')1103config.bind('<Ctrl-B>', 'scroll-page 0 -1')1104config.bind('<Ctrl-D>', 'scroll-page 0 0.5')1105config.bind('<Ctrl-F5>', 'reload -f')1106config.bind('<Ctrl-F>', 'scroll-page 0 1')1107config.bind('<Ctrl-N>', 'open -w')1108config.bind('<Ctrl-PgDown>', 'tab-next')1109config.bind('<Ctrl-PgUp>', 'tab-prev')1110config.bind('<Ctrl-Q>', 'quit')1111config.bind('<Ctrl-Return>', 'follow-selected -t')1112config.bind('<Ctrl-Shift-N>', 'open -p')1113config.bind('<Ctrl-Shift-T>', 'undo')1114config.bind('<Ctrl-Shift-W>', 'close')1115config.bind('<Ctrl-T>', 'open -t')1116config.bind('<Ctrl-Tab>', 'tab-focus last')1117config.bind('<Ctrl-U>', 'scroll-page 0 -0.5')1118config.bind('<Ctrl-V>', 'enter-mode passthrough')1119config.bind('<Ctrl-W>', 'tab-close')1120config.bind('<Ctrl-X>', 'navigate decrement')1121config.bind('<Ctrl-^>', 'tab-focus last')1122config.bind('<Ctrl-h>', 'home')1123config.bind('<Ctrl-p>', 'tab-pin')1124config.bind('<Ctrl-s>', 'stop')1125config.bind('<Escape>', 'clear-keychain ;; search ;; fullscreen --leave')1126config.bind('<F11>', 'fullscreen')1127config.bind('<F5>', 'reload')1128config.bind('<Return>', 'follow-selected')1129config.bind('<back>', 'back')1130config.bind('<forward>', 'forward')1131config.bind('=', 'zoom')1132config.bind('?', 'set-cmd-text ?')1133config.bind('@', 'run-macro')1134config.bind('B', 'set-cmd-text -s :quickmark-load -t')1135config.bind('D', 'tab-close -o')1136config.bind('F', 'hint all tab')1137config.bind('G', 'scroll-to-perc')1138config.bind('H', 'back')1139config.bind('J', 'tab-prev')1140config.bind('K', 'tab-next')1141config.bind('L', 'forward')1142config.bind('M', 'bookmark-add')1143config.bind('N', 'search-prev')1144config.bind('O', 'set-cmd-text -s :open -t')1145config.bind('PP', 'open -t -- {primary}')1146config.bind('Pp', 'open -t -- {clipboard}')1147config.bind('R', 'reload -f')1148config.bind('Sb', 'open qute://bookmarks#bookmarks')1149config.bind('Sh', 'open qute://history')1150config.bind('Sq', 'open qute://bookmarks')1151config.bind('Ss', 'open qute://settings')1152config.bind('T', 'tab-focus')1153config.bind('ZQ', 'quit')1154config.bind('ZZ', 'quit --save')1155config.bind('[[', 'navigate prev')1156config.bind(']]', 'navigate next')1157config.bind('`', 'enter-mode set_mark')1158config.bind('ad', 'download-cancel')1159config.bind('b', 'set-cmd-text -s :quickmark-load')1160config.bind('cd', 'download-clear')1161config.bind('co', 'tab-only')1162config.bind('d', 'scroll-page 0 0.5')1163#config.bind('d', 'tab-close')1164config.bind('f', 'hint')1165config.bind('g$', 'tab-focus -1')1166config.bind('g0', 'tab-focus 1')1167config.bind('gB', 'set-cmd-text -s :bookmark-load -t')1168config.bind('gC', 'tab-clone')1169config.bind('gO', 'set-cmd-text :open -t -r {url:pretty}')1170config.bind('gU', 'navigate up -t')1171config.bind('g^', 'tab-focus 1')1172config.bind('ga', 'open -t')1173config.bind('gb', 'set-cmd-text -s :bookmark-load')1174config.bind('gd', 'download')1175config.bind('gf', 'view-source')1176config.bind('gg', 'scroll-to-perc 0')1177config.bind('gl', 'tab-move -')1178config.bind('gm', 'tab-move')1179config.bind('go', 'set-cmd-text :open {url:pretty}')1180config.bind('gr', 'tab-move +')1181config.bind('gt', 'set-cmd-text -s :buffer')1182config.bind('gu', 'navigate up')1183config.bind('h', 'scroll left')1184config.bind('i', 'enter-mode insert')1185config.bind('j', 'scroll down')1186config.bind('k', 'scroll up')1187config.bind('l', 'scroll right')1188config.bind('m', 'quickmark-save')1189config.bind('n', 'search-next')1190config.bind('o', 'set-cmd-text -s :open')1191config.bind('pP', 'open -- {primary}')1192config.bind('pp', 'open -- {clipboard}')1193config.bind('q', 'record-macro')1194config.bind('r', 'reload')1195config.bind('sf', 'save')1196config.bind('sk', 'set-cmd-text -s :bind')1197config.bind('sl', 'set-cmd-text -s :set -t')1198config.bind('ss', 'set-cmd-text -s :set')1199config.bind('th', 'back -t')1200config.bind('tl', 'forward -t')1201#config.bind('u', 'undo')1202config.bind('u', 'scroll-page 0 -0.5')1203config.bind('U', 'undo')1204config.bind('v', 'enter-mode caret')1205config.bind('wB', 'set-cmd-text -s :bookmark-load -w')1206config.bind('wO', 'set-cmd-text :open -w {url:pretty}')1207config.bind('wP', 'open -w -- {primary}')1208config.bind('wb', 'set-cmd-text -s :quickmark-load -w')1209config.bind('wf', 'hint all window')1210config.bind('wh', 'back -w')1211config.bind('wi', 'inspector')1212config.bind('wl', 'forward -w')1213config.bind('wo', 'set-cmd-text -s :open -w')1214config.bind('wp', 'open -w -- {clipboard}')1215config.bind('x', 'tab-close')1216#config.bind('xO', 'set-cmd-text :open -b -r {url:pretty}')1217#config.bind('xb', 'config-cycle statusbar.hide')1218#config.bind('xo', 'set-cmd-text -s :open -b')1219#config.bind('xt', 'config-cycle tabs.show always switching')1220#config.bind('xx', 'config-cycle statusbar.hide ;; config-cycle tabs.show always switching')1221config.bind('yD', 'yank domain -s')1222config.bind('yP', 'yank pretty-url -s')1223config.bind('yT', 'yank title -s')1224config.bind('yY', 'yank -s')1225config.bind('yd', 'yank domain')1226config.bind('yp', 'yank pretty-url')1227config.bind('yt', 'yank title')1228config.bind('yy', 'yank')1229config.bind('{{', 'navigate prev -t')1230config.bind('}}', 'navigate next -t')1231## Bindings for caret mode1232config.bind('$', 'move-to-end-of-line', mode='caret')1233config.bind('0', 'move-to-start-of-line', mode='caret')1234config.bind('<Ctrl-Space>', 'drop-selection', mode='caret')1235config.bind('<Escape>', 'leave-mode', mode='caret')1236config.bind('<Return>', 'yank selection', mode='caret')1237config.bind('<Space>', 'toggle-selection', mode='caret')1238config.bind('G', 'move-to-end-of-document', mode='caret')1239config.bind('H', 'scroll left', mode='caret')1240config.bind('J', 'scroll down', mode='caret')1241config.bind('K', 'scroll up', mode='caret')1242config.bind('L', 'scroll right', mode='caret')1243config.bind('Y', 'yank selection -s', mode='caret')1244config.bind('[', 'move-to-start-of-prev-block', mode='caret')1245config.bind(']', 'move-to-start-of-next-block', mode='caret')1246config.bind('b', 'move-to-prev-word', mode='caret')1247config.bind('c', 'enter-mode normal', mode='caret')1248config.bind('e', 'move-to-end-of-word', mode='caret')1249config.bind('gg', 'move-to-start-of-document', mode='caret')1250config.bind('h', 'move-to-prev-char', mode='caret')1251config.bind('j', 'move-to-next-line', mode='caret')1252config.bind('k', 'move-to-prev-line', mode='caret')1253config.bind('l', 'move-to-next-char', mode='caret')1254config.bind('v', 'toggle-selection', mode='caret')1255config.bind('w', 'move-to-next-word', mode='caret')1256config.bind('y', 'yank selection', mode='caret')1257config.bind('{', 'move-to-end-of-prev-block', mode='caret')1258config.bind('}', 'move-to-end-of-next-block', mode='caret')1259## Bindings for command mode1260config.bind('<Alt-B>', 'rl-backward-word', mode='command')1261config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='command')1262config.bind('<Alt-D>', 'rl-kill-word', mode='command')1263config.bind('<Alt-F>', 'rl-forward-word', mode='command')1264config.bind('<Ctrl-?>', 'rl-delete-char', mode='command')1265config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='command')1266config.bind('<Ctrl-B>', 'rl-backward-char', mode='command')1267config.bind('<Ctrl-D>', 'completion-item-del', mode='command')1268config.bind('<Ctrl-E>', 'rl-end-of-line', mode='command')1269config.bind('<Ctrl-F>', 'rl-forward-char', mode='command')1270config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='command')1271config.bind('<Ctrl-K>', 'rl-kill-line', mode='command')1272config.bind('<Ctrl-N>', 'command-history-next', mode='command')1273config.bind('<Ctrl-P>', 'command-history-prev', mode='command')1274config.bind('<Ctrl-Shift-Tab>', 'completion-item-focus prev-category', mode='command')1275config.bind('<Ctrl-Tab>', 'completion-item-focus next-category', mode='command')1276config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='command')1277config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='command')1278config.bind('<Ctrl-Y>', 'rl-yank', mode='command')1279config.bind('<Down>', 'command-history-next', mode='command')1280config.bind('<Escape>', 'leave-mode', mode='command')1281config.bind('<Return>', 'command-accept', mode='command')1282config.bind('<Shift-Delete>', 'completion-item-del', mode='command')1283config.bind('<Shift-Tab>', 'completion-item-focus prev', mode='command')1284config.bind('<Tab>', 'completion-item-focus next', mode='command')1285config.bind('<Up>', 'command-history-prev', mode='command')1286## Bindings for hint mode1287config.bind('<Ctrl-B>', 'hint all tab-bg', mode='hint')1288config.bind('<Ctrl-F>', 'hint links', mode='hint')1289config.bind('<Ctrl-R>', 'hint --rapid links tab-bg', mode='hint')1290config.bind('<Escape>', 'leave-mode', mode='hint')1291config.bind('<Return>', 'follow-hint', mode='hint')1292## Bindings for insert mode1293config.bind('<Ctrl-E>', 'open-editor', mode='insert')1294config.bind('<Escape>', 'leave-mode', mode='insert')1295config.bind('<Shift-Ins>', 'insert-text {primary}', mode='insert')1296## Bindings for passthrough mode1297config.bind('<Ctrl-V>', 'leave-mode', mode='passthrough')1298## Bindings for prompt mode1299config.bind('<Alt-B>', 'rl-backward-word', mode='prompt')1300config.bind('<Alt-Backspace>', 'rl-backward-kill-word', mode='prompt')1301config.bind('<Alt-D>', 'rl-kill-word', mode='prompt')1302config.bind('<Alt-F>', 'rl-forward-word', mode='prompt')1303config.bind('<Ctrl-?>', 'rl-delete-char', mode='prompt')1304config.bind('<Ctrl-A>', 'rl-beginning-of-line', mode='prompt')1305config.bind('<Ctrl-B>', 'rl-backward-char', mode='prompt')1306config.bind('<Ctrl-E>', 'rl-end-of-line', mode='prompt')1307config.bind('<Ctrl-F>', 'rl-forward-char', mode='prompt')1308config.bind('<Ctrl-H>', 'rl-backward-delete-char', mode='prompt')1309config.bind('<Ctrl-K>', 'rl-kill-line', mode='prompt')1310config.bind('<Ctrl-U>', 'rl-unix-line-discard', mode='prompt')1311config.bind('<Ctrl-W>', 'rl-unix-word-rubout', mode='prompt')1312config.bind('<Ctrl-X>', 'prompt-open-download', mode='prompt')1313config.bind('<Ctrl-Y>', 'rl-yank', mode='prompt')1314config.bind('<Down>', 'prompt-item-focus next', mode='prompt')1315config.bind('<Escape>', 'leave-mode', mode='prompt')1316config.bind('<Return>', 'prompt-accept', mode='prompt')1317config.bind('<Shift-Tab>', 'prompt-item-focus prev', mode='prompt')1318config.bind('<Tab>', 'prompt-item-focus next', mode='prompt')1319config.bind('<Up>', 'prompt-item-focus prev', mode='prompt')1320config.bind('n', 'prompt-accept no', mode='prompt')1321config.bind('y', 'prompt-accept yes', mode='prompt')1322config.bind(';;', 'hint links download')1323## Bindings for register mode1324config.bind('<Escape>', 'leave-mode', mode='register')...
build.py
Source:build.py
1#!/usr/bin/env python2import os3import argparse4script_dir = os.path.dirname(os.path.abspath(__file__))5# TODO: We can lookup https://github.com/tmux/tmux/blob/3.0/options-table.c#L1436# Extracted from http://man7.org/linux/man-pages/man1/tmux.1.html#OPTIONS7# Some options are ignored(see commented items)8server_options = (9 "backspace",10 "buffer-limit",11 # 'command-alias', # Ignored: is array12 "default-terminal",13 "escape-time",14 "exit-empty",15 "exit-unattached",16 "focus-events",17 "history-file",18 "message-limit",19 "set-clipboard",20 # 'terminal-overrides', # Ignored: is array21 # 'user-keys', # Ignored: is array22)23session_options = (24 "activity-action",25 "assume-paste-time",26 "base-index",27 "bell-action",28 "default-command",29 # 'default-shell', # Ignored: to set $SHELL correctly30 "default-size",31 "destroy-unattached",32 "detach-on-destroy",33 "display-panes-active-colour",34 "display-panes-colour",35 "display-panes-time",36 "display-time",37 "history-limit",38 "key-table",39 "lock-after-time",40 "lock-command",41 "message-command-style",42 "message-style",43 "mouse",44 "prefix",45 "prefix2",46 "renumber-windows",47 "repeat-time",48 "set-titles",49 "set-titles-string",50 "silence-action",51 "status",52 # 'status-format' # Ignored: is array53 "status-interval",54 "status-justify",55 "status-keys",56 "status-left",57 "status-left-length",58 "status-left-style",59 "status-position",60 "status-right",61 "status-right-length",62 "status-right-style",63 "status-style",64 # 'update-environment', # Ignored: is array65 "visual-activity",66 "visual-bell",67 "visual-silence",68 "word-separators",69)70window_options = (71 "aggressive-resize",72 "automatic-rename",73 "automatic-rename-format",74 "clock-mode-colour",75 "clock-mode-style",76 "main-pane-height",77 "main-pane-width",78 "mode-keys",79 "mode-style",80 "monitor-activity",81 "monitor-bell",82 "monitor-silence",83 "other-pane-height",84 "other-pane-width",85 "pane-active-border-style",86 "pane-base-index",87 "pane-border-format",88 "pane-border-status",89 "pane-border-style",90 "synchronize-panes",91 "window-status-activity-style",92 "window-status-bell-style",93 "window-status-current-format",94 "window-status-current-style",95 "window-status-format",96 "window-status-last-style",97 "window-status-separator",98 "window-status-style",99 "window-size",100 "wrap-search",101 "xterm-keys",102)103pane_options = (104 "allow-rename",105 "alternate-screen",106 "remain-on-exit",107 "window-active-style",108 "window-style",109)110# Copied from https://github.com/tmux/tmux/blob/2.9/key-bindings.c111initial_key_bindings = (112 "bind C-b send-prefix",113 "bind C-o rotate-window",114 "bind C-z suspend-client",115 "bind Space next-layout",116 "bind ! break-pane",117 "bind '\"' split-window",118 "bind '#' list-buffers",119 "bind '$' command-prompt -I'#S' \"rename-session -- '%%'\"",120 "bind % split-window -h",121 'bind & confirm-before -p"kill-window #W? (y/n)" kill-window',122 'bind "\'" command-prompt -pindex "select-window -t \':%%\'"',123 "bind ( switch-client -p",124 "bind ) switch-client -n",125 "bind , command-prompt -I'#W' \"rename-window -- '%%'\"",126 "bind - delete-buffer",127 "bind . command-prompt \"move-window -t '%%'\"",128 "bind 0 select-window -t:=0",129 "bind 1 select-window -t:=1",130 "bind 2 select-window -t:=2",131 "bind 3 select-window -t:=3",132 "bind 4 select-window -t:=4",133 "bind 5 select-window -t:=5",134 "bind 6 select-window -t:=6",135 "bind 7 select-window -t:=7",136 "bind 8 select-window -t:=8",137 "bind 9 select-window -t:=9",138 "bind : command-prompt",139 "bind \\; last-pane",140 "bind = choose-buffer -Z",141 "bind ? list-keys",142 "bind D choose-client -Z",143 "bind E select-layout -E",144 "bind L switch-client -l",145 "bind M select-pane -M",146 "bind [ copy-mode",147 "bind ] paste-buffer",148 "bind c new-window",149 "bind d detach-client",150 "bind f command-prompt \"find-window -Z -- '%%'\"",151 "bind i display-message",152 "bind l last-window",153 "bind m select-pane -m",154 "bind n next-window",155 "bind o select-pane -t:.+",156 "bind p previous-window",157 "bind q display-panes",158 "bind r refresh-client",159 "bind s choose-tree -Zs",160 "bind t clock-mode",161 "bind w choose-tree -Zw",162 'bind x confirm-before -p"kill-pane #P? (y/n)" kill-pane',163 "bind z resize-pane -Z",164 "bind '{' swap-pane -U",165 "bind '}' swap-pane -D",166 "bind '~' show-messages",167 "bind PPage copy-mode -u",168 "bind -r Up select-pane -U",169 "bind -r Down select-pane -D",170 "bind -r Left select-pane -L",171 "bind -r Right select-pane -R",172 "bind M-1 select-layout even-horizontal",173 "bind M-2 select-layout even-vertical",174 "bind M-3 select-layout main-horizontal",175 "bind M-4 select-layout main-vertical",176 "bind M-5 select-layout tiled",177 "bind M-n next-window -a",178 "bind M-o rotate-window -D",179 "bind M-p previous-window -a",180 "bind -r S-Up refresh-client -U 10",181 "bind -r S-Down refresh-client -D 10",182 "bind -r S-Left refresh-client -L 10",183 "bind -r S-Right refresh-client -R 10",184 "bind -r DC refresh-client -c",185 "bind -r M-Up resize-pane -U 5",186 "bind -r M-Down resize-pane -D 5",187 "bind -r M-Left resize-pane -L 5",188 "bind -r M-Right resize-pane -R 5",189 "bind -r C-Up resize-pane -U",190 "bind -r C-Down resize-pane -D",191 "bind -r C-Left resize-pane -L",192 "bind -r C-Right resize-pane -R",193 "bind -n MouseDown1Pane select-pane -t=\\; send-keys -M",194 "bind -n MouseDrag1Border resize-pane -M",195 "bind -n MouseDown1Status select-window -t=",196 "bind -n WheelDownStatus next-window",197 "bind -n WheelUpStatus previous-window",198 "bind -n MouseDrag1Pane if -Ft= '#{mouse_any_flag}' 'if -Ft= \"#{pane_in_mode}\" \"copy-mode -M\" \"send-keys -M\"' 'copy-mode -M'",199 "bind -n WheelUpPane if -Ft= '#{mouse_any_flag}' 'send-keys -M' 'if -Ft= \"#{pane_in_mode}\" \"send-keys -M\" \"copy-mode -et=\"'",200 'bind -n MouseDown3StatusRight display-menu -t= -xM -yS -T "#[align=centre]#{client_name}" '201 " 'Detach' 'd' {detach-client}"202 " 'Detach & Kill' 'X' {detach-client -P}"203 " 'Detach Others' 'o' {detach-client -a}"204 " ''"205 " 'Lock' 'l' {lock-client}",206 'bind -n MouseDown3StatusLeft display-menu -t= -xM -yS -T "#[align=centre]#{session_name}" '207 " 'Next' 'n' {switch-client -n}"208 " 'Previous' 'p' {switch-client -p}"209 " ''"210 " 'Renumber' 'N' {move-window -r}"211 " 'Rename' 'n' {command-prompt -I \"#S\" \"rename-session -- '%%'\"}"212 " ''"213 " 'New Session' 's' {new-session}"214 " 'New Window' 'w' {new-window}",215 'bind -n MouseDown3Status display-menu -t= -xW -yS -T "#[align=centre]#{window_index}:#{window_name}" '216 " 'Swap Left' 'l' {swap-window -t:-1}"217 " 'Swap Right' 'r' {swap-window -t:+1}"218 " '#{?pane_marked_set,,-}Swap Marked' 's' {swap-window}"219 " ''"220 " 'Kill' 'X' {kill-window}"221 " 'Respawn' 'R' {respawn-window -k}"222 " '#{?pane_marked,Unmark,Mark}' 'm' {select-pane -m}"223 " 'Rename' 'n' {command-prompt -I \"#W\" \"rename-window -- '%%'\"}"224 " ''"225 " 'New After' 'w' {new-window -a}"226 " 'New At End' 'W' {new-window}",227 'bind < display-menu -xW -yS -T "#[align=centre]#{window_index}:#{window_name}" '228 " 'Swap Left' 'l' {swap-window -t:-1}"229 " 'Swap Right' 'r' {swap-window -t:+1}"230 " '#{?pane_marked_set,,-}Swap Marked' 's' {swap-window}"231 " ''"232 " 'Kill' 'X' {kill-window}"233 " 'Respawn' 'R' {respawn-window -k}"234 " '#{?pane_marked,Unmark,Mark}' 'm' {select-pane -m}"235 " 'Rename' 'n' {command-prompt -I \"#W\" \"rename-window -- '%%'\"}"236 " ''"237 " 'New After' 'w' {new-window -a}"238 " 'New At End' 'W' {new-window}",239 "bind -n MouseDown3Pane if -Ft= '#{||:#{mouse_any_flag},#{pane_in_mode}}' 'select-pane -t=; send-keys -M' {display-menu -t= -xM -yM -T \"#[align=centre]#{pane_index} (#{pane_id})\" "240 " '#{?mouse_word,Search For #[underscore]#{=/9/...:mouse_word},}' 'C-r' {copy-mode -t=; send -Xt= search-backward \"#{q:mouse_word}\"}"241 " '#{?mouse_word,Type #[underscore]#{=/9/...:mouse_word},}' 'C-y' {send-keys -l -- \"#{q:mouse_word}\"}"242 " '#{?mouse_word,Copy #[underscore]#{=/9/...:mouse_word},}' 'c' {set-buffer -- \"#{q:mouse_word}\"}"243 " '#{?mouse_line,Copy Line,}' 'l' {set-buffer -- \"#{q:mouse_line}\"}"244 " ''"245 " 'Horizontal Split' 'h' {split-window -h}"246 " 'Vertical Split' 'v' {split-window -v}"247 " ''"248 " 'Swap Up' 'u' {swap-pane -U}"249 " 'Swap Down' 'd' {swap-pane -D}"250 " '#{?pane_marked_set,,-}Swap Marked' 's' {swap-pane}"251 " ''"252 " 'Kill' 'X' {kill-pane}"253 " 'Respawn' 'R' {respawn-pane -k}"254 " '#{?pane_marked,Unmark,Mark}' 'm' {select-pane -m}"255 " '#{?window_zoomed_flag,Unzoom,Zoom}' 'z' {resize-pane -Z}"256 "}",257 'bind -n M-MouseDown3Pane display-menu -t= -xM -yM -T "#[align=centre]#{pane_index} (#{pane_id})" '258 " '#{?mouse_word,Search For #[underscore]#{=/9/...:mouse_word},}' 'C-r' {copy-mode -t=; send -Xt= search-backward \"#{q:mouse_word}\"}"259 " '#{?mouse_word,Type #[underscore]#{=/9/...:mouse_word},}' 'C-y' {send-keys -l -- \"#{q:mouse_word}\"}"260 " '#{?mouse_word,Copy #[underscore]#{=/9/...:mouse_word},}' 'c' {set-buffer -- \"#{q:mouse_word}\"}"261 " '#{?mouse_line,Copy Line,}' 'l' {set-buffer -- \"#{q:mouse_line}\"}"262 " ''"263 " 'Horizontal Split' 'h' {split-window -h}"264 " 'Vertical Split' 'v' {split-window -v}"265 " ''"266 " 'Swap Up' 'u' {swap-pane -U}"267 " 'Swap Down' 'd' {swap-pane -D}"268 " '#{?pane_marked_set,,-}Swap Marked' 's' {swap-pane}"269 " ''"270 " 'Kill' 'X' {kill-pane}"271 " 'Respawn' 'R' {respawn-pane -k}"272 " '#{?pane_marked,Unmark,Mark}' 'm' {select-pane -m}"273 " '#{?window_zoomed_flag,Unzoom,Zoom}' 'z' {resize-pane -Z}",274 'bind > display-menu -xP -yP -T "#[align=centre]#{pane_index} (#{pane_id})" '275 " '#{?mouse_word,Search For #[underscore]#{=/9/...:mouse_word},}' 'C-r' {copy-mode -t=; send -Xt= search-backward \"#{q:mouse_word}\"}"276 " '#{?mouse_word,Type #[underscore]#{=/9/...:mouse_word},}' 'C-y' {send-keys -l -- \"#{q:mouse_word}\"}"277 " '#{?mouse_word,Copy #[underscore]#{=/9/...:mouse_word},}' 'c' {set-buffer -- \"#{q:mouse_word}\"}"278 " '#{?mouse_line,Copy Line,}' 'l' {set-buffer -- \"#{q:mouse_line}\"}"279 " ''"280 " 'Horizontal Split' 'h' {split-window -h}"281 " 'Vertical Split' 'v' {split-window -v}"282 " ''"283 " 'Swap Up' 'u' {swap-pane -U}"284 " 'Swap Down' 'd' {swap-pane -D}"285 " '#{?pane_marked_set,,-}Swap Marked' 's' {swap-pane}"286 " ''"287 " 'Kill' 'X' {kill-pane}"288 " 'Respawn' 'R' {respawn-pane -k}"289 " '#{?pane_marked,Unmark,Mark}' 'm' {select-pane -m}"290 " '#{?window_zoomed_flag,Unzoom,Zoom}' 'z' {resize-pane -Z}",291 "bind -Tcopy-mode C-Space send -X begin-selection",292 "bind -Tcopy-mode C-a send -X start-of-line",293 "bind -Tcopy-mode C-c send -X cancel",294 "bind -Tcopy-mode C-e send -X end-of-line",295 "bind -Tcopy-mode C-f send -X cursor-right",296 "bind -Tcopy-mode C-b send -X cursor-left",297 "bind -Tcopy-mode C-g send -X clear-selection",298 "bind -Tcopy-mode C-k send -X copy-end-of-line",299 "bind -Tcopy-mode C-n send -X cursor-down",300 "bind -Tcopy-mode C-p send -X cursor-up",301 "bind -Tcopy-mode C-r command-prompt -ip'(search up)' -I'#{pane_search_string}' 'send -X search-backward-incremental \"%%%\"'",302 "bind -Tcopy-mode C-s command-prompt -ip'(search down)' -I'#{pane_search_string}' 'send -X search-forward-incremental \"%%%\"'",303 "bind -Tcopy-mode C-v send -X page-down",304 "bind -Tcopy-mode C-w send -X copy-selection-and-cancel",305 "bind -Tcopy-mode Escape send -X cancel",306 "bind -Tcopy-mode Space send -X page-down",307 "bind -Tcopy-mode , send -X jump-reverse",308 "bind -Tcopy-mode \\; send -X jump-again",309 "bind -Tcopy-mode F command-prompt -1p'(jump backward)' 'send -X jump-backward \"%%%\"'",310 "bind -Tcopy-mode N send -X search-reverse",311 "bind -Tcopy-mode R send -X rectangle-toggle",312 "bind -Tcopy-mode T command-prompt -1p'(jump to backward)' 'send -X jump-to-backward \"%%%\"'",313 "bind -Tcopy-mode f command-prompt -1p'(jump forward)' 'send -X jump-forward \"%%%\"'",314 "bind -Tcopy-mode g command-prompt -p'(goto line)' 'send -X goto-line \"%%%\"'",315 "bind -Tcopy-mode n send -X search-again",316 "bind -Tcopy-mode q send -X cancel",317 "bind -Tcopy-mode t command-prompt -1p'(jump to forward)' 'send -X jump-to-forward \"%%%\"'",318 "bind -Tcopy-mode Home send -X start-of-line",319 "bind -Tcopy-mode End send -X end-of-line",320 "bind -Tcopy-mode MouseDown1Pane select-pane",321 "bind -Tcopy-mode MouseDrag1Pane select-pane\\; send -X begin-selection",322 "bind -Tcopy-mode MouseDragEnd1Pane send -X copy-selection-and-cancel",323 "bind -Tcopy-mode WheelUpPane select-pane\\; send -N5 -X scroll-up",324 "bind -Tcopy-mode WheelDownPane select-pane\\; send -N5 -X scroll-down",325 "bind -Tcopy-mode DoubleClick1Pane select-pane\\; send -X select-word",326 "bind -Tcopy-mode TripleClick1Pane select-pane\\; send -X select-line",327 "bind -Tcopy-mode NPage send -X page-down",328 "bind -Tcopy-mode PPage send -X page-up",329 "bind -Tcopy-mode Up send -X cursor-up",330 "bind -Tcopy-mode Down send -X cursor-down",331 "bind -Tcopy-mode Left send -X cursor-left",332 "bind -Tcopy-mode Right send -X cursor-right",333 "bind -Tcopy-mode M-1 command-prompt -Np'(repeat)' -I1 'send -N \"%%%\"'",334 "bind -Tcopy-mode M-2 command-prompt -Np'(repeat)' -I2 'send -N \"%%%\"'",335 "bind -Tcopy-mode M-3 command-prompt -Np'(repeat)' -I3 'send -N \"%%%\"'",336 "bind -Tcopy-mode M-4 command-prompt -Np'(repeat)' -I4 'send -N \"%%%\"'",337 "bind -Tcopy-mode M-5 command-prompt -Np'(repeat)' -I5 'send -N \"%%%\"'",338 "bind -Tcopy-mode M-6 command-prompt -Np'(repeat)' -I6 'send -N \"%%%\"'",339 "bind -Tcopy-mode M-7 command-prompt -Np'(repeat)' -I7 'send -N \"%%%\"'",340 "bind -Tcopy-mode M-8 command-prompt -Np'(repeat)' -I8 'send -N \"%%%\"'",341 "bind -Tcopy-mode M-9 command-prompt -Np'(repeat)' -I9 'send -N \"%%%\"'",342 "bind -Tcopy-mode M-< send -X history-top",343 "bind -Tcopy-mode M-> send -X history-bottom",344 "bind -Tcopy-mode M-R send -X top-line",345 "bind -Tcopy-mode M-b send -X previous-word",346 "bind -Tcopy-mode C-M-b send -X previous-matching-bracket",347 "bind -Tcopy-mode M-f send -X next-word-end",348 "bind -Tcopy-mode C-M-f send -X next-matching-bracket",349 "bind -Tcopy-mode M-m send -X back-to-indentation",350 "bind -Tcopy-mode M-r send -X middle-line",351 "bind -Tcopy-mode M-v send -X page-up",352 "bind -Tcopy-mode M-w send -X copy-selection-and-cancel",353 "bind -Tcopy-mode 'M-{' send -X previous-paragraph",354 "bind -Tcopy-mode 'M-}' send -X next-paragraph",355 "bind -Tcopy-mode M-Up send -X halfpage-up",356 "bind -Tcopy-mode M-Down send -X halfpage-down",357 "bind -Tcopy-mode C-Up send -X scroll-up",358 "bind -Tcopy-mode C-Down send -X scroll-down",359 "bind -Tcopy-mode-vi C-c send -X cancel",360 "bind -Tcopy-mode-vi C-d send -X halfpage-down",361 "bind -Tcopy-mode-vi C-e send -X scroll-down",362 "bind -Tcopy-mode-vi C-b send -X page-up",363 "bind -Tcopy-mode-vi C-f send -X page-down",364 "bind -Tcopy-mode-vi C-h send -X cursor-left",365 "bind -Tcopy-mode-vi C-j send -X copy-selection-and-cancel",366 "bind -Tcopy-mode-vi Enter send -X copy-selection-and-cancel",367 "bind -Tcopy-mode-vi C-u send -X halfpage-up",368 "bind -Tcopy-mode-vi C-v send -X rectangle-toggle",369 "bind -Tcopy-mode-vi C-y send -X scroll-up",370 "bind -Tcopy-mode-vi Escape send -X clear-selection",371 "bind -Tcopy-mode-vi Space send -X begin-selection",372 "bind -Tcopy-mode-vi '$' send -X end-of-line",373 "bind -Tcopy-mode-vi , send -X jump-reverse",374 "bind -Tcopy-mode-vi / command-prompt -p'(search down)' 'send -X search-forward \"%%%\"'",375 "bind -Tcopy-mode-vi 0 send -X start-of-line",376 "bind -Tcopy-mode-vi 1 command-prompt -Np'(repeat)' -I1 'send -N \"%%%\"'",377 "bind -Tcopy-mode-vi 2 command-prompt -Np'(repeat)' -I2 'send -N \"%%%\"'",378 "bind -Tcopy-mode-vi 3 command-prompt -Np'(repeat)' -I3 'send -N \"%%%\"'",379 "bind -Tcopy-mode-vi 4 command-prompt -Np'(repeat)' -I4 'send -N \"%%%\"'",380 "bind -Tcopy-mode-vi 5 command-prompt -Np'(repeat)' -I5 'send -N \"%%%\"'",381 "bind -Tcopy-mode-vi 6 command-prompt -Np'(repeat)' -I6 'send -N \"%%%\"'",382 "bind -Tcopy-mode-vi 7 command-prompt -Np'(repeat)' -I7 'send -N \"%%%\"'",383 "bind -Tcopy-mode-vi 8 command-prompt -Np'(repeat)' -I8 'send -N \"%%%\"'",384 "bind -Tcopy-mode-vi 9 command-prompt -Np'(repeat)' -I9 'send -N \"%%%\"'",385 "bind -Tcopy-mode-vi : command-prompt -p'(goto line)' 'send -X goto-line \"%%%\"'",386 "bind -Tcopy-mode-vi \\; send -X jump-again",387 "bind -Tcopy-mode-vi ? command-prompt -p'(search up)' 'send -X search-backward \"%%%\"'",388 "bind -Tcopy-mode-vi A send -X append-selection-and-cancel",389 "bind -Tcopy-mode-vi B send -X previous-space",390 "bind -Tcopy-mode-vi D send -X copy-end-of-line",391 "bind -Tcopy-mode-vi E send -X next-space-end",392 "bind -Tcopy-mode-vi F command-prompt -1p'(jump backward)' 'send -X jump-backward \"%%%\"'",393 "bind -Tcopy-mode-vi G send -X history-bottom",394 "bind -Tcopy-mode-vi H send -X top-line",395 "bind -Tcopy-mode-vi J send -X scroll-down",396 "bind -Tcopy-mode-vi K send -X scroll-up",397 "bind -Tcopy-mode-vi L send -X bottom-line",398 "bind -Tcopy-mode-vi M send -X middle-line",399 "bind -Tcopy-mode-vi N send -X search-reverse",400 "bind -Tcopy-mode-vi T command-prompt -1p'(jump to backward)' 'send -X jump-to-backward \"%%%\"'",401 "bind -Tcopy-mode-vi V send -X select-line",402 "bind -Tcopy-mode-vi W send -X next-space",403 "bind -Tcopy-mode-vi ^ send -X back-to-indentation",404 "bind -Tcopy-mode-vi b send -X previous-word",405 "bind -Tcopy-mode-vi e send -X next-word-end",406 "bind -Tcopy-mode-vi f command-prompt -1p'(jump forward)' 'send -X jump-forward \"%%%\"'",407 "bind -Tcopy-mode-vi g send -X history-top",408 "bind -Tcopy-mode-vi h send -X cursor-left",409 "bind -Tcopy-mode-vi j send -X cursor-down",410 "bind -Tcopy-mode-vi k send -X cursor-up",411 "bind -Tcopy-mode-vi l send -X cursor-right",412 "bind -Tcopy-mode-vi n send -X search-again",413 "bind -Tcopy-mode-vi o send -X other-end",414 "bind -Tcopy-mode-vi q send -X cancel",415 "bind -Tcopy-mode-vi t command-prompt -1p'(jump to forward)' 'send -X jump-to-forward \"%%%\"'",416 "bind -Tcopy-mode-vi v send -X rectangle-toggle",417 "bind -Tcopy-mode-vi w send -X next-word",418 "bind -Tcopy-mode-vi '{' send -X previous-paragraph",419 "bind -Tcopy-mode-vi '}' send -X next-paragraph",420 "bind -Tcopy-mode-vi % send -X next-matching-bracket",421 "bind -Tcopy-mode-vi MouseDown1Pane select-pane",422 "bind -Tcopy-mode-vi MouseDrag1Pane select-pane\\; send -X begin-selection",423 "bind -Tcopy-mode-vi MouseDragEnd1Pane send -X copy-selection-and-cancel",424 "bind -Tcopy-mode-vi WheelUpPane select-pane\\; send -N5 -X scroll-up",425 "bind -Tcopy-mode-vi WheelDownPane select-pane\\; send -N5 -X scroll-down",426 "bind -Tcopy-mode-vi DoubleClick1Pane select-pane\\; send -X select-word",427 "bind -Tcopy-mode-vi TripleClick1Pane select-pane\\; send -X select-line",428 "bind -Tcopy-mode-vi BSpace send -X cursor-left",429 "bind -Tcopy-mode-vi NPage send -X page-down",430 "bind -Tcopy-mode-vi PPage send -X page-up",431 "bind -Tcopy-mode-vi Up send -X cursor-up",432 "bind -Tcopy-mode-vi Down send -X cursor-down",433 "bind -Tcopy-mode-vi Left send -X cursor-left",434 "bind -Tcopy-mode-vi Right send -X cursor-right",435 "bind -Tcopy-mode-vi C-Up send -X scroll-up",436 "bind -Tcopy-mode-vi C-Down send -X scroll-down",437)438if __name__ == "__main__":439 prefix = ""440 filename = "tmux-reset"441 parser = argparse.ArgumentParser(description="Creates a tmux-reset config")442 parser.add_argument(443 "-t",444 "--tpm",445 action="store_true",446 help="build for .tmux file for TPM compatibility",447 )448 args = parser.parse_args()449 if args.tpm:450 prefix = "tmux "451 filename += ".tmux"452 header = """#!/usr/bin/env bash453CURRENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"454"""455 with open(os.path.join(script_dir, filename), "w") as f:456 if args.tpm:457 f.write("%s\n" % header)458 options = server_options + session_options + window_options + pane_options459 for option_name in options:460 f.write("%sset-option -ug %s\n" % (prefix, option_name))461 f.write("%sunbind-key -a\n" % prefix)462 for binding in initial_key_bindings:463 if args.tpm:464 binding = binding.replace(" \\; ", ' "\\;" ')...
scopeflags.ts
Source:scopeflags.ts
1// Each scope gets a bitset that may contain these flags2// prettier-ignore3export const SCOPE_OTHER = 0b000000000,4 SCOPE_PROGRAM = 0b000000001,5 SCOPE_FUNCTION = 0b000000010,6 SCOPE_ARROW = 0b000000100,7 SCOPE_SIMPLE_CATCH = 0b000001000,8 SCOPE_SUPER = 0b000010000,9 SCOPE_DIRECT_SUPER = 0b000100000,10 SCOPE_CLASS = 0b001000000,11 SCOPE_STATIC_BLOCK = 0b010000000,12 SCOPE_TS_MODULE = 0b100000000,13 SCOPE_VAR = SCOPE_PROGRAM | SCOPE_FUNCTION | SCOPE_TS_MODULE;14export type ScopeFlags =15 | typeof SCOPE_OTHER16 | typeof SCOPE_PROGRAM17 | typeof SCOPE_FUNCTION18 | typeof SCOPE_VAR19 | typeof SCOPE_ARROW20 | typeof SCOPE_SIMPLE_CATCH21 | typeof SCOPE_SUPER22 | typeof SCOPE_DIRECT_SUPER23 | typeof SCOPE_CLASS24 | typeof SCOPE_STATIC_BLOCK;25// These flags are meant to be _only_ used inside the Scope class (or subclasses).26// prettier-ignore27export const BIND_KIND_VALUE = 0b000000_0000_01,28 BIND_KIND_TYPE = 0b000000_0000_10,29 // Used in checkLVal and declareName to determine the type of a binding30 BIND_SCOPE_VAR = 0b000000_0001_00, // Var-style binding31 BIND_SCOPE_LEXICAL = 0b000000_0010_00, // Let- or const-style binding32 BIND_SCOPE_FUNCTION = 0b000000_0100_00, // Function declaration33 BIND_SCOPE_OUTSIDE = 0b000000_1000_00, // Special case for function names as34 // bound inside the function35 // Misc flags36 BIND_FLAGS_NONE = 0b000001_0000_00,37 BIND_FLAGS_CLASS = 0b000010_0000_00,38 BIND_FLAGS_TS_ENUM = 0b000100_0000_00,39 BIND_FLAGS_TS_CONST_ENUM = 0b001000_0000_00,40 BIND_FLAGS_TS_EXPORT_ONLY = 0b010000_0000_00,41 BIND_FLAGS_FLOW_DECLARE_FN = 0b100000_0000_00,42 BIND_FLAGS_TS_IMPORT = 0b1_000000_0000_00;43// These flags are meant to be _only_ used by Scope consumers44// prettier-ignore45/* = is value? | is type? | scope | misc flags */46export const BIND_CLASS = BIND_KIND_VALUE | BIND_KIND_TYPE | BIND_SCOPE_LEXICAL | BIND_FLAGS_CLASS ,47 BIND_LEXICAL = BIND_KIND_VALUE | 0 | BIND_SCOPE_LEXICAL | 0 ,48 BIND_VAR = BIND_KIND_VALUE | 0 | BIND_SCOPE_VAR | 0 ,49 BIND_FUNCTION = BIND_KIND_VALUE | 0 | BIND_SCOPE_FUNCTION | 0 ,50 BIND_TS_INTERFACE = 0 | BIND_KIND_TYPE | 0 | BIND_FLAGS_CLASS ,51 BIND_TS_TYPE = 0 | BIND_KIND_TYPE | 0 | 0 ,52 BIND_TS_ENUM = BIND_KIND_VALUE | BIND_KIND_TYPE | BIND_SCOPE_LEXICAL | BIND_FLAGS_TS_ENUM,53 BIND_TS_AMBIENT = 0 | 0 | 0 | BIND_FLAGS_TS_EXPORT_ONLY,54 // These bindings don't introduce anything in the scope. They are used for assignments and55 // function expressions IDs.56 BIND_NONE = 0 | 0 | 0 | BIND_FLAGS_NONE ,57 BIND_OUTSIDE = BIND_KIND_VALUE | 0 | 0 | BIND_FLAGS_NONE ,58 BIND_TS_CONST_ENUM = BIND_TS_ENUM | BIND_FLAGS_TS_CONST_ENUM ,59 BIND_TS_NAMESPACE = 0 | 0 | 0 | BIND_FLAGS_TS_EXPORT_ONLY,60 BIND_TS_TYPE_IMPORT= 0 | BIND_KIND_TYPE | 0 | BIND_FLAGS_TS_IMPORT,61 BIND_FLOW_DECLARE_FN = BIND_FLAGS_FLOW_DECLARE_FN;62export type BindingTypes =63 | typeof BIND_NONE64 | typeof BIND_OUTSIDE65 | typeof BIND_VAR66 | typeof BIND_LEXICAL67 | typeof BIND_CLASS68 | typeof BIND_FUNCTION69 | typeof BIND_TS_INTERFACE70 | typeof BIND_TS_TYPE71 | typeof BIND_TS_ENUM72 | typeof BIND_TS_AMBIENT73 | typeof BIND_TS_NAMESPACE;74// prettier-ignore75export const CLASS_ELEMENT_FLAG_STATIC = 0b1_00,76 CLASS_ELEMENT_KIND_GETTER = 0b0_10,77 CLASS_ELEMENT_KIND_SETTER = 0b0_01,78 CLASS_ELEMENT_KIND_ACCESSOR = CLASS_ELEMENT_KIND_GETTER | CLASS_ELEMENT_KIND_SETTER;79// prettier-ignore80export const CLASS_ELEMENT_STATIC_GETTER = CLASS_ELEMENT_KIND_GETTER | CLASS_ELEMENT_FLAG_STATIC,81 CLASS_ELEMENT_STATIC_SETTER = CLASS_ELEMENT_KIND_SETTER | CLASS_ELEMENT_FLAG_STATIC,82 CLASS_ELEMENT_INSTANCE_GETTER = CLASS_ELEMENT_KIND_GETTER,83 CLASS_ELEMENT_INSTANCE_SETTER = CLASS_ELEMENT_KIND_SETTER,84 CLASS_ELEMENT_OTHER = 0;85export type ClassElementTypes =86 | typeof CLASS_ELEMENT_STATIC_GETTER87 | typeof CLASS_ELEMENT_STATIC_SETTER88 | typeof CLASS_ELEMENT_INSTANCE_GETTER89 | typeof CLASS_ELEMENT_INSTANCE_SETTER...
hardware.py
Source:hardware.py
1#2# Migration test hardware configuration description3#4# Copyright (c) 2016 Red Hat, Inc.5#6# This library is free software; you can redistribute it and/or7# modify it under the terms of the GNU Lesser General Public8# License as published by the Free Software Foundation; either9# version 2 of the License, or (at your option) any later version.10#11# This library is distributed in the hope that it will be useful,12# but WITHOUT ANY WARRANTY; without even the implied warranty of13# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU14# Lesser General Public License for more details.15#16# You should have received a copy of the GNU Lesser General Public17# License along with this library; if not, see <http://www.gnu.org/licenses/>.18#19class Hardware(object):20 def __init__(self, cpus=1, mem=1,21 src_cpu_bind=None, src_mem_bind=None,22 dst_cpu_bind=None, dst_mem_bind=None,23 prealloc_pages = False,24 huge_pages=False, locked_pages=False):25 self._cpus = cpus26 self._mem = mem # GiB27 self._src_mem_bind = src_mem_bind # List of NUMA nodes28 self._src_cpu_bind = src_cpu_bind # List of pCPUs29 self._dst_mem_bind = dst_mem_bind # List of NUMA nodes30 self._dst_cpu_bind = dst_cpu_bind # List of pCPUs31 self._prealloc_pages = prealloc_pages32 self._huge_pages = huge_pages33 self._locked_pages = locked_pages34 def serialize(self):35 return {36 "cpus": self._cpus,37 "mem": self._mem,38 "src_mem_bind": self._src_mem_bind,39 "dst_mem_bind": self._dst_mem_bind,40 "src_cpu_bind": self._src_cpu_bind,41 "dst_cpu_bind": self._dst_cpu_bind,42 "prealloc_pages": self._prealloc_pages,43 "huge_pages": self._huge_pages,44 "locked_pages": self._locked_pages,45 }46 @classmethod47 def deserialize(cls, data):48 return cls(49 data["cpus"],50 data["mem"],51 data["src_cpu_bind"],52 data["src_mem_bind"],53 data["dst_cpu_bind"],54 data["dst_mem_bind"],55 data["prealloc_pages"],56 data["huge_pages"],...
JmolBinding.js
Source:JmolBinding.js
1Clazz.declarePackage ("JV.binding");2Clazz.load (["JV.binding.Binding"], "JV.binding.JmolBinding", null, function () {3c$ = Clazz.declareType (JV.binding, "JmolBinding", JV.binding.Binding);4Clazz.makeConstructor (c$, 5function () {6Clazz.superConstructor (this, JV.binding.JmolBinding, []);7this.set ("toggle");8});9Clazz.defineMethod (c$, "set", 10function (name) {11this.name = name;12this.setGeneralBindings ();13this.setSelectBindings ();14}, "~S");15Clazz.defineMethod (c$, "setSelectBindings", 16function () {17this.bindAction (33296, 30);18this.bindAction (33040, 36);19});20Clazz.defineMethod (c$, "setGeneralBindings", 21 function () {22this.bindAction (8474, 45);23this.bindAction (8454, 45);24this.bindAction (8721, 45);25this.bindAction (8712, 45);26this.bindAction (8464, 25);27this.bindAction (8720, 25);28this.bindAction (8472, 28);29this.bindAction (8453, 28);30this.bindAction (8465, 29);31this.bindAction (8456, 29);32this.bindAction (288, 46);33this.bindAction (8464, 40);34this.bindAction (8464, 16);35this.bindAction (4370, 23);36this.bindAction (4356, 23);37this.bindAction (33040, 2);38this.bindAction (8467, 38);39this.bindAction (8723, 6);40this.bindAction (8475, 39);41this.bindAction (290, 46);42this.bindAction (289, 46);43this.bindAction (291, 46);44this.bindAction (290, 38);45this.bindAction (289, 6);46this.bindAction (291, 39);47this.bindAction (8464, 44);48this.bindAction (8464, 41);49this.bindAction (8465, 42);50this.bindAction (8473, 13);51this.bindAction (8465, 14);52this.bindAction (8472, 27);53this.bindAction (8465, 26);54this.bindAction (8464, 10);55this.bindAction (8472, 9);56this.bindAction (8465, 8);57this.bindAction (33297, 24);58this.bindAction (33288, 24);59this.bindAction (33296, 43);60this.bindAction (8464, 7);61this.bindAction (8464, 11);62this.bindAction (8464, 12);63this.bindAction (33040, 17);64this.bindAction (33040, 22);65this.bindAction (33040, 19);66this.bindAction (33040, 20);67this.bindAction (33296, 37);68this.bindAction (33040, 18);69this.bindAction (33043, 21);70this.bindAction (33040, 4);71this.bindAction (33040, 5);72this.bindAction (33040, 3);73this.bindAction (33040, 0);74this.bindAction (33043, 1);75});...
Using AI Code Generation
1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org');3wpt.bind('test', function(err, data) {4 if (err) {5 console.log(err);6 } else {7 console.log(data);8 }9});10var wpt = require('webpagetest');11var wpt = new WebPageTest('www.webpagetest.org');12wpt.bind('test', function(err, data) {13 if (err) {14 console.log(err);15 } else {16 console.log(data);17 }18});19var wpt = require('webpagetest');20var wpt = new WebPageTest('www.webpagetest.org');21wpt.bind('test', function(err, data) {22 if (err) {23 console.log(err);24 } else {25 console.log(data);26 }27});28var wpt = require('webpagetest');29var wpt = new WebPageTest('www.webpagetest.org');30wpt.bind('test', function(err, data) {31 if (err) {32 console.log(err);33 } else {34 console.log(data);35 }36});37var wpt = require('webpagetest');38var wpt = new WebPageTest('www.webpagetest.org');39wpt.bind('test', function(err, data) {40 if (err) {41 console.log(err);42 } else {43 console.log(data);44 }45});46var wpt = require('webpagetest');47var wpt = new WebPageTest('www.webpagetest.org');48wpt.bind('test', function(err, data) {49 if (err) {50 console.log(err);51 } else {52 console.log(data);53 }54});55var wpt = require('webpagetest');56var wpt = new WebPageTest('www.webpagetest.org');57wpt.bind('test', function(err, data) {58 if (err) {59 console.log(err);60 } else {61 console.log(data);62 }63});64var wpt = require('webpag
Using AI Code Generation
1var wpt = require('webpagetest');2var api = new wpt('www.webpagetest.org');3var options = {4};5api.runTest(url, options, function(err, data) {6 if (err) return console.error(err);7 console.log('Test status:', data.statusText);8 console.log('Test ID:', data.data.testId);9 console.log('Test URL:', data.data.userUrl);10 console.log('View results:', data.data.summaryCSV);11 console.log('View results:', data.data.detailCSV);12});13var wpt = require('webpagetest');14var api = new wpt('www.webpagetest.org');15var options = {16};17api.runTest(url, options, function(err, data) {18 if (err) return console.error(err);19 console.log('Test status:', data.statusText);20 console.log('Test ID:', data.data.testId);21 console.log('Test URL:', data.data.userUrl);22 console.log('View results:', data.data.summaryCSV);23 console.log('View results:', data.data.detailCSV);24});
Using AI Code Generation
1var client = require('webpagetest')('www.webpagetest.org');2var location = 'Dulles:Chrome';3var runs = 3;4var options = {5};6client.runTest(url, options, function(err, data) {7 if (err) return console.error(err);8 console.log('Test submitted to WebPagetest for %s', url);9 console.log('View your test at: %s', data.data.userUrl);10});
Using AI Code Generation
1var wpt = require('wpt');2var wptBind = require('wpt-bind');3var wpt = wptBind(wpt);4var wpt = new WebPageTest('www.webpagetest.org', 'A.99a8b7d1c9c9d9e9f9g9h9i9j9k9l9m9n9o9p9q9r9s9t9u9v9w9x9y9z');5 if (err) return console.log('Test failed:', err);6 console.log('Test submitted. Poll for results.');7 wpt.getTestResults(data.data.testId, function(err, data) {8 if (err) return console.log('Error retrieving results:', err);9 console.log('First View:', data.data.average.firstView);10 console.log('Repeat View:', data.data.average.repeatView);11 });12});
Using AI Code Generation
1var wpt = require('wpt');2var wpt = new wpt('your api key');3var test = wpt.test;4var test = test.bind(wpt);5test('url to be tested', 'test options', function(err, data){6 console.log(data);7});8var wpt = require('wpt');9var wpt = new wpt('your api key');10var test = wpt.test;11var test = test.bind(wpt);12test('url to be tested', 'test options', 'callback function');13var wpt = require('wpt');14var wpt = new wpt('your api key');15var test = wpt.test;16var test = test.bind(wpt);17test('url to be tested', 'test options', 'callback function');18var wpt = require('wpt');19var wpt = new wpt('your api key');20var test = wpt.test;21var test = test.bind(wpt);22test('url to be tested', 'test options', 'callback function');23var wpt = require('wpt');24var wpt = new wpt('your api key');25var test = wpt.test;26var test = test.bind(wpt);27test('url to be tested', 'test options', 'callback function');28var wpt = require('wpt');29var wpt = new wpt('your api key');30var test = wpt.test;31var test = test.bind(wpt);32test('url to be tested', 'test options', 'callback function');33var wpt = require('wpt');34var wpt = new wpt('your api key');35var test = wpt.test;36var test = test.bind(wpt);37test('url to be tested', 'test options', 'callback function');38var wpt = require('wpt');
Using AI Code Generation
1var wpt = require('webpagetest');2var wpt = new WebPageTest('www.webpagetest.org');3var obj = {4};5function test(a, b, c) {6 console.log(a, b, c);7}8wpt.bind(test, obj)();9var wpt = require('webpagetest');10var wpt = new WebPageTest('www.webpagetest.org');11var obj = {12};13function test(a, b, c) {14 console.log(a, b, c);15}16wpt.bind(test, obj)();17var wpt = require('webpagetest');18var wpt = new WebPageTest('www.webpagetest.org');19var obj = {20};21function test(a, b, c) {22 console.log(a, b, c);23}24wpt.bind(test, obj)();25var wpt = require('webpagetest');26var wpt = new WebPageTest('www.webpagetest.org');27var obj = {28};29function test(a, b, c) {30 console.log(a, b, c);31}32wpt.bind(test, obj)();33var wpt = require('
Using AI Code Generation
1var wpt = require('webpagetest');2var webPageTest = new wpt('www.webpagetest.org', 'A.2f1c9b9b9e6d7f0f8b8c9b9d2c1c9b9b');3webPageTest.bind('testId', function(err, data) {4 console.log(data);5});6 console.log(data);7});8webPageTest.getLocations(function(err, data) {9 console.log(data);10});11webPageTest.getTesters(function(err, data) {12 console.log(data);13});14webPageTest.getTestStatus('testId', function(err, data) {15 console.log(data);16});17webPageTest.getTestResults('testId', function(err, data) {18 console.log(data);19});20webPageTest.getHAR('testId', function(err, data) {21 console.log(data);22});23webPageTest.getWaterfall('testId', function(err, data) {24 console.log(data);25});26webPageTest.getScreenshot('testId', function(err, data) {27 console.log(data);28});29webPageTest.getVideo('testId', function(err, data) {30 console.log(data);31});
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!