Changes

Jump to navigation Jump to search
no edit summary
Line 5: Line 5:  
var wagonSelection;
 
var wagonSelection;
   −
var wagon-brake = "https://unrailed-wiki.com/images/8/83/BrakeWagon_3.png";
+
var wagonBrake = "https://unrailed-wiki.com/images/8/83/BrakeWagon_3.png";
var wagon-buckinator = "https://unrailed-wiki.com/images/0/01/BuckinatorWagon_3.png";
+
var wagonwagonBuckinator = "https://unrailed-wiki.com/images/0/01/BuckinatorWagon_3.png";
var wagon-cannon = "https://unrailed-wiki.com/images/7/75/CannonWagon_1.png";
+
var wagonCannon = "https://unrailed-wiki.com/images/7/75/CannonWagon_1.png";
var wagon-collector = "https://unrailed-wiki.com/images/0/0a/CollectorWagon_3.png";
+
var wagonCollector = "https://unrailed-wiki.com/images/0/0a/CollectorWagon_3.png";
var wagon-compass = "https://unrailed-wiki.com/images/8/88/CompassWagon_1.png";
+
var wagonCompass = "https://unrailed-wiki.com/images/8/88/CompassWagon_1.png";
var wagon-crafter = "https://unrailed-wiki.com/images/f/f8/CraftingWagon_3.png";
+
var wagonCrafter = "https://unrailed-wiki.com/images/f/f8/CraftingWagon_3.png";
var wagon-dynamite = "https://unrailed-wiki.com/images/8/89/DynamiteWagon_3.png";
+
var wagonDynamite = "https://unrailed-wiki.com/images/8/89/DynamiteWagon_3.png";
var wagon-ghost = "https://unrailed-wiki.com/images/1/1f/GhostWagon_1.png";
+
var wagonGhost = "https://unrailed-wiki.com/images/1/1f/GhostWagon_1.png";
var wagon-light = "https://unrailed-wiki.com/images/7/7a/LightWagon_2.png";
+
var wagonLight = "https://unrailed-wiki.com/images/7/7a/LightWagon_2.png";
var wagon-milk = "https://unrailed-wiki.com/images/5/59/MilkWagon_3.png";
+
var wagonMilk = "https://unrailed-wiki.com/images/5/59/MilkWagon_3.png";
var wagon-miner = "https://unrailed-wiki.com/images/a/ab/MinerWagon_3.png";
+
var wagonMiner = "https://unrailed-wiki.com/images/a/ab/MinerWagon_3.png";
var wagon-slots = "https://unrailed-wiki.com/images/1/13/SlotMachineWagon_3.png";
+
var wagonSlots = "https://unrailed-wiki.com/images/1/13/SlotMachineWagon_3.png";
var wagon-storage = "https://unrailed-wiki.com/images/1/1f/StorageWagon_3.png";
+
var wagonStorage = "https://unrailed-wiki.com/images/1/1f/StorageWagon_3.png";
var wagon-supercharger = "https://unrailed-wiki.com/images/7/70/SuperchargerWagon_3.png";
+
var wagonSupercharger = "https://unrailed-wiki.com/images/7/70/SuperchargerWagon_3.png";
var wagon-tank = "https://unrailed-wiki.com/images/f/f1/TankWagon_3.png";
+
var wagonTank = "https://unrailed-wiki.com/images/f/f1/TankWagon_3.png";
var wagon-converter = "https://unrailed-wiki.com/images/4/4b/TransformerWagon_3.png";
+
var wagonTransformer = "https://unrailed-wiki.com/images/4/4b/TransformerWagon_3.png";
 
 
 
$('#wagon-configurator-list li').click(function(){
 
$('#wagon-configurator-list li').click(function(){
Line 32: Line 32:  
$('#wagon-configurator li.wagon-slot').click(function(){
 
$('#wagon-configurator li.wagon-slot').click(function(){
 
var wagonConfiguratorList = $('#wagon-configurator-list li.selected')[0].classList[0];
 
var wagonConfiguratorList = $('#wagon-configurator-list li.selected')[0].classList[0];
 +
$(this).css("background-image", "url(" + wagonConfiguratorList + ")");
 
alert("You selected " + wagonConfiguratorList);
 
alert("You selected " + wagonConfiguratorList);
 
});
 
});
 
});
 
});

Navigation menu