Difference between revisions of "MediaWiki:TileData.js"
Jump to navigation
Jump to search
Meepledrone (talk | contribs) m (Test) |
Meepledrone (talk | contribs) m (Test) |
||
Line 1,343: | Line 1,343: | ||
inputFieldId: "inputCoatOfArms", | inputFieldId: "inputCoatOfArms", | ||
className: "showCoatOfArms" | className: "showCoatOfArms" | ||
}, | |||
{ | |||
label: "Barrel Symbol", | |||
inputFieldId: "inputBarrelSymbol", | |||
className: "showBarrelSymbol" | |||
}, | |||
{ | |||
label: "Cloth Symbol", | |||
inputFieldId: "inputClothSymbol", | |||
className: "showClothSymbol" | |||
}, | |||
{ | |||
label: "Wheat Symbol", | |||
inputFieldId: "inputWheatSymbol", | |||
className: "showWheatSymbol" | |||
}, | }, | ||
Revision as of 22:27, 27 October 2020
//
// Expansion Selector Data
//
// Global preferences (?)
var PreferencesMap =
{
show: { C1: true, C2: true, WE: true }, // Editions visible
};
// Constants to identify by number tabs and selector ids
var GROUP_C1 = 0,
GROUP_C2 = 1,
GROUP_WE = 2,
GROUP_GEOMETRY = 3,
GROUP_FEATURES = 4,
GROUP_TOTAL = 5;
//
// Base expansion info - Master Tree of Expansions
//
// Generates CSS classes for:
// * Individual entries: 1 class name indicated by "className"
// * Group entries: 4 derived class names based on prefix indicated by "classNamePrefix"
// - <Prefix_> + Full: visible when all the entries in the group are selected
// - <Prefix_> + None: visible when none of the entries in the group is selected
// - <Prefix_> + Any: visible when any of the entries in the group is selected
// - <Prefix_> + Partial: visible when some -but not all- of the entries in the group are selected
//
var ItemTree =
[
// === C1 ===
{
label: "Base game",
inputFieldId: "inputBaseGame_C1",
className: "showBaseGame_C1",
edition: [ "C1" ],
group: GROUP_C1,
selected: false,
},
{
label: "Major Expansions",
inputFieldId: "inputMajor_C1",
classNamePrefix: "showMajor_C1_",
edition: [ "C1" ],
group: GROUP_C1,
selected: false,
open: false,
children:
[
{
label: "Exp. 1 - Inns And Cathedrals",
inputFieldId: "inputInnsAndCathedrals_C1",
className: "showInnsAndCathedrals_C1"
},
{
label: "Exp. 2 - Traders And Builders",
inputFieldId: "inputTradersAndBuilders_C1",
className: "showTradersAndBuilders_C1"
},
{
label: "Exp. 3 - The Princess And The Dragon",
inputFieldId: "inputPrincessAndDragon_C1",
className: "showPrincessAndDragon_C1"
},
{
label: "Exp. 4 - The Tower",
inputFieldId: "inputTower_C1",
className: "showTower_C1"
},
{
label: "Exp. 5 - Abbey And Mayor",
inputFieldId: "inputAbbeyAndMayor_C1",
className: "showAbbeyAndMayor_C1"
},
{
label: "Exp. 6 - Count, King And Robber",
inputFieldId: "inputCountKingAndRobber_C1",
className: "showCountKingAndRobber_C1"
},
{
label: "Exp. 7 - The Catapult",
inputFieldId: "inputCatapult_C1",
className: "showCatapult_C1"
},
{
label: "Exp. 8 - Bridges, Castles And Bazaars",
inputFieldId: "inputBridgesCastlesAndBazaars_C1",
className: "showBridgesCastlesAndBazaars_C1"
},
{
label: "Exp. 9 - Hills and Sheep",
inputFieldId: "inputHillsAndSheep_C1",
className: "showHillsAndSheep_C1"
},
{
label: "The Wheel Of Fortune",
inputFieldId: "inputWheelOfFortune_C1",
className: "showWheelOfFortune_C1"
},
{
label: "The Wheel Of Fortune (BB5)",
inputFieldId: "inputWheelOfFortuneBB5_C1",
className: "showWheelOfFortuneBB5_C1"
},
],
},
{
label: "Minor Expansions",
inputFieldId: "inputMinor_C1",
classNamePrefix: "showMinor_C1_",
edition: [ "C1" ],
group: GROUP_C1,
selected: false,
open: false,
children:
[
{
label: "Mini 1 - The Flier",
inputFieldId: "inputFlier_C1",
className: "showFlier_C1"
},
{
label: "Mini 2 - Dispatches (Messages)",
inputFieldId: "inputMessages_C1",
className: "showMessages_C1"
},
{
label: "Mini 3 - The Ferries",
inputFieldId: "inputFerries_C1",
className: "showFerries_C1"
},
{
label: "Mini 4 - The Goldmines",
inputFieldId: "inputGoldmines_C1",
className: "showGoldmines_C1"
},
{
label: "Mini 5 - Mage And Witch",
inputFieldId: "inputMageAndWitch_C1",
className: "showMageAndWitch_C1"
},
{
label: "Mini 6 - Robbers",
inputFieldId: "inputRobbers_C1",
className: "showRobbers_C1"
},
{
label: "Mini 7 - Crop Circles II",
inputFieldId: "inputCropCircles2_C1",
className: "showCropCircles2_C1"
},
{
label: "River I",
inputFieldId: "inputRiver1_C1",
className: "showRiver1_C1"
},
{
label: "River II",
inputFieldId: "inputRiver2_C1",
className: "showRiver2_C1"
},
{
label: "River III (River I BB5)",
inputFieldId: "inputRiver3_C1",
className: "showRiver3_C1"
},
{
label: "King And Robber",
inputFieldId: "inputKingAndRobber_C1",
className: "showKingAndRobber_C1"
},
{
label: "The Count of Carcassonne",
inputFieldId: "inputCountOfCarcassonne_C1",
className: "showCountOfCarcassonne_C1"
},
{
label: "Crop Circles I",
inputFieldId: "inputCropCircles1_C1",
className: "showCropCircles1_C1"
},
{
label: "The Festival",
inputFieldId: "inputFestival_C1",
className: "showFestival_C1"
},
{
label: "The Phantom",
inputFieldId: "inputPhantom_C1",
className: "showPhantom_C1"
},
{
label: "The School",
inputFieldId: "inputSchool_C1",
className: "showSchool_C1"
},
{
label: "Wind Roses I",
inputFieldId: "inputWindRoses1_C1",
className: "showWindRoses1_C1"
},
{
label: "Besiegers",
inputFieldId: "inputBesiegers_C1",
className: "showBesiegers_C1"
},
{
label: "Monasteries in Germany",
inputFieldId: "inputMonasteriesInGermany_C1",
className: "showMonasteriesInGermany_C1"
},
{
label: "Monasteries in the Netherlands And Belgium (HiG)",
inputFieldId: "inputMonasteriesInNetherlandsAndBelgiumHiG_C1",
className: "showMonasteriesInNetherlandsAndBelgiumHiG_C1"
},
{
label: "Halflings II",
inputFieldId: "inputHalflings2_C1",
className: "showHalflings2_C1"
},
{
label: "Easter In Carcassonne (PnP)",
inputFieldId: "inputEasterInCarcassonne_C1",
className: "showEasterInCarcassonne_C1"
},
{
label: "Castles In Germany",
inputFieldId: "inputCastlesInGermany_C1",
className: "showCastlesInGermany_C1"
},
{
label: "The City Gates (PnP)",
inputFieldId: "inputCityGates_C1",
className: "showCityGates_C1"
},
{
label: "Cathedrals In Germany",
inputFieldId: "inputCathedralsInGermany_C1",
className: "showCathedralsInGermany_C1"
},
{
label: "The Fortune Teller (PnP)",
inputFieldId: "inputFortuneTeller_C1",
className: "showFortuneTeller_C1"
},
]
},
{
label: "Other Expansions",
inputFieldId: "inputOther_C1",
classNamePrefix: "showOther_C1_",
edition: [ "C1" ],
group: GROUP_C1,
selected: false,
open: false,
children:
[
{
label: "Cathars",
inputFieldId: "inputCathars_C1",
className: "showCathars_C1"
},
{
label: "Mini Expansion GQ #11",
inputFieldId: "inputGQ11_C1",
className: "showGQ11_C1"
},
{
label: "Heretics And Shrines",
inputFieldId: "inputHereticsAndShrines_C1",
className: "showHereticsAndShrines_C1"
},
{
label: "Cult, Siege And Creativity",
inputFieldId: "inputCultSiegeAndCreativity_C1",
className: "showCultSiegeAndCreativity_C1"
},
{
label: "The Tunnel",
inputFieldId: "inputTunnel_C1",
className: "showTunnel_C1"
},
{
label: "The Plague",
inputFieldId: "inputPlague_C1",
className: "showPlague_C1"
},
{
label: "La Porxada",
inputFieldId: "inputPorxada_C1",
className: "showPorxada_C1"
},
{
label: "LittleBuldings",
inputFieldId: "inputLittleBuldings_C1",
className: "showLittleBuldings_C1"
},
{
label: "Wind Roses II",
inputFieldId: "inputWindRoses2_C1",
className: "showWindRoses2_C1"
},
{
label: "Russian Promos",
inputFieldId: "inputRussianPromos_C1",
className: "showRussianPromos_C1"
},
{
label: "Monasteries in the Netherlands And Belgium (999Games)",
inputFieldId: "inputMonasteriesInNetherlandsAndBelgium999Games_C1",
className: "showMonasteriesInNetherlandsAndBelgium999Games_C1"
},
{
label: "Halflings I",
inputFieldId: "inputHalflings1_C1",
className: "showHalflings1_C1"
},
{
label: "Darmstadt Promo",
inputFieldId: "inputDarmstadtPromo_C1",
className: "showDarmstadtPromo_C1"
},
{
label: "The Labyrinth",
inputFieldId: "inputLabyrinth_C1",
className: "showLabyrinth_C1"
},
]
},
// === C2 ===
{
label: "Base game",
inputFieldId: "inputBaseGame_C2",
className: "showBaseGame_C2",
edition: [ "C2" ],
group: GROUP_C2,
selected: false,
},
{
label: "Major Expansions",
inputFieldId: "inputMajor_C2",
classNamePrefix: "showMajor_C2_",
edition: [ "C2" ],
group: GROUP_C2,
selected: false,
open: false,
children:
[
{
label: "Exp. 1 - Inns And Cathedrals",
inputFieldId: "inputInnsAndCathedrals_C2",
className: "showInnsAndCathedrals_C2"
},
{
label: "Exp. 2 - Traders And Builders",
inputFieldId: "inputTradersAndBuilders_C2",
className: "showTradersAndBuilders_C2"
},
{
label: "Exp. 3 - The Princess And The Dragon",
inputFieldId: "inputPrincessAndDragon_C2",
className: "showPrincessAndDragon_C2"
},
{
label: "Exp. 4 - The Tower",
inputFieldId: "inputTower_C2",
className: "showTower_C2"
},
{
label: "Exp. 5 - Abbey And Mayor",
inputFieldId: "inputAbbeyAndMayor_C2",
className: "showAbbeyAndMayor_C2"
},
{
label: "Exp. 6 - Count, King And Robber",
inputFieldId: "inputCountKingAndRobber_C2",
className: "showCountKingAndRobber_C2"
},
{
label: "Exp. 8 - Bridges, Castles And Bazaars",
inputFieldId: "inputBridgesCastlesAndBazaars_C2",
className: "showBridgesCastlesAndBazaars_C2"
},
{
label: "Exp. 9 - Hills and Sheep",
inputFieldId: "inputHillsAndSheep_C2",
className: "showHillsAndSheep_C2"
},
{
label: "Exp. 10 - Under The Big Top",
inputFieldId: "inputUnderTheBigTop_C2",
className: "showUnderTheBigTop_C2"
},
],
},
{
label: "Minor Expansions",
inputFieldId: "inputMinor_C2",
classNamePrefix: "showMinor_C2_",
edition: [ "C2" ],
group: GROUP_C2,
selected: false,
open: false,
children:
[
{
label: "Mini 1 - The Flier",
inputFieldId: "inputFlier_C2",
className: "showFlier_C2"
},
{
label: "Mini 2 - Dispatches (Messages)",
inputFieldId: "inputMessages_C2",
className: "showMessages_C2"
},
{
label: "Mini 3 - The Ferries",
inputFieldId: "inputFerries_C2",
className: "showFerries_C2"
},
{
label: "Mini 4 - The Goldmines",
inputFieldId: "inputGoldmines_C2",
className: "showGoldmines_C2"
},
{
label: "Mini 5 - Mage And Witch",
inputFieldId: "inputMageAndWitch_C2",
className: "showMageAndWitch_C2"
},
{
label: "Mini 6 - Robbers",
inputFieldId: "inputRobbers_C2",
className: "showRobbers_C2"
},
{
label: "Mini 7 - Crop Circles",
inputFieldId: "inputCropCircles_C2",
className: "showCropCircles_C2"
},
{
label: "River I",
inputFieldId: "inputRiver1_C2",
className: "showRiver1_C2"
},
{
label: "River II",
inputFieldId: "inputRiver2_C2",
className: "showRiver2_C2"
},
{
label: "The Abbot",
inputFieldId: "inputAbbot_C2",
className: "showAbbot_C2"
},
{
label: "Spiel Promos",
inputFieldId: "inputSpielPromos_C2",
className: "showSpielPromos_C2"
},
{
label: "CutCassonne (CnP)",
inputFieldId: "inputCutCassonne_C2",
className: "showCutCassonne_C2"
},
{
label: "Japanese Buildings",
inputFieldId: "inputBuildingsInJapan_C2",
className: "showBuildingsInJapanl_C2"
},
{
label: "The Watchtowers",
inputFieldId: "inputWatchtowers_C2",
className: "showWatchtowers_C2"
},
{
label: "The Festival",
inputFieldId: "inputFestival_C2",
className: "showFestival_C2"
},
{
label: "The Fortune Teller (PnP)",
inputFieldId: "inputFortuneTeller_C2",
className: "showFortuneTeller_C2"
},
{
label: "Saint Nicholas Scoreboard",
inputFieldId: "inputSaintNicholasScoreboard_C2",
className: "showSaintNicholasScoreboard_C2"
},
{
label: "The Markets of Leipzig",
inputFieldId: "inputMarketsOfLeipzig_C2",
className: "showMarketsOfLeipzig_C2"
},
{
label: "The Fruit-Bearing Trees",
inputFieldId: "inputFruitBearingTrees_C2",
className: "showFruitBearingTrees_C2"
},
{
label: "Monasteries in Germany",
inputFieldId: "inputMonasteriesInGermany_C2",
className: "showMonasteriesInGermany_C2"
},
{
label: "The Barber-Surgeons",
inputFieldId: "inputBarberSurgeons_C2",
className: "showBarberSurgeons_C2"
},
{
label: "Castles In Germany",
inputFieldId: "inputCastlesInGermany_C2",
className: "showCastlesInGermany_C2"
},
{
label: "The Tollkeepers",
inputFieldId: "inputTollkeepers_C2",
className: "showTollkeepers_C2"
},
{
label: "Halflings",
inputFieldId: "inputHalflings_C2",
className: "showHalflings_C2"
},
{
label: "Cathedrals In Germany",
inputFieldId: "inputCathedralsInGermany_C2",
className: "showCathedralsInGermany_C2"
},
]
},
{
label: "Other Expansions",
inputFieldId: "inputOther_C2",
classNamePrefix: "showOther_C2_",
edition: [ "C2" ],
group: GROUP_C2,
selected: false,
open: false,
children:
[
{
label: "The Labyrinth",
inputFieldId: "inputLabyrinth_C2",
className: "showLabyrinth_C2"
},
{
label: "Spiel Doch! 02/2018",
inputFieldId: "inputSpielDoch_C2",
className: "showSpielDoch_C2"
},
]
},
// === WE ===
{
label: "Base game",
inputFieldId: "inputBaseGame_WE",
className: "showBaseGame_WE",
edition: [ "WE" ],
group: GROUP_WE,
selected: false,
},
{
label: "Minor Expansions",
inputFieldId: "inputMinor_WE",
classNamePrefix: "showMinor_WE_",
edition: [ "WE" ],
group: GROUP_WE,
selected: false,
open: false,
children:
[
{
label: "The Gingerbread Man",
inputFieldId: "inputGingerbreadMan_WE",
className: "showGingerbreadMan_WE"
},
{
label: "Crop Circles",
inputFieldId: "inputCropCircles_WE",
className: "showCropCircles_WE"
},
]
},
// Geometry
{
label: "Square Tiles",
inputFieldId: "inputSquareTiles",
classNamePrefix: "showSquareTiles_",
edition: [ "C1", "C2", "WE" ],
group: GROUP_GEOMETRY,
selected: false,
open: false,
children:
[
{
label: "CCCC",
inputFieldId: "inputCCCC",
className: "showCCCC"
},
{
label: "CCCF",
inputFieldId: "inputCCCF",
className: "showCCCF"
},
{
label: "CCCR",
inputFieldId: "inputCCCR",
className: "showCCCR"
},
{
label: "CCFF",
inputFieldId: "inputCCFF",
className: "showCCFF"
},
{
label: "CCFR",
inputFieldId: "inputCCFR",
className: "showCCFR"
},
{
label: "CCRF",
inputFieldId: "inputCCRF",
className: "showCCRF"
},
{
label: "CCRR",
inputFieldId: "inputCCRR",
className: "showCCRR"
},
{
label: "CFCF",
inputFieldId: "inputCFCF",
className: "showCFCF"
},
{
label: "CFCR",
inputFieldId: "inputCFCR",
className: "showCFCR"
},
{
label: "CFFF",
inputFieldId: "inputCFFF",
className: "showCFFF"
},
{
label: "CFFR",
inputFieldId: "inputCFFR",
className: "showCFFR"
},
{
label: "CFRF",
inputFieldId: "inputCFRF",
className: "showCFRF"
},
{
label: "CFRR",
inputFieldId: "inputCFRR",
className: "showCFRR"
},
{
label: "CRCR",
inputFieldId: "inputCRCR",
className: "showCRCR"
},
{
label: "CRFF",
inputFieldId: "inputCRFF",
className: "showCRFF"
},
{
label: "CRFR",
inputFieldId: "inputCRFR",
className: "showCRFR"
},
{
label: "CRRF",
inputFieldId: "inputCRRF",
className: "showCRRF"
},
{
label: "CRRR",
inputFieldId: "inputCRRR",
className: "showCRRR"
},
{
label: "FFFF",
inputFieldId: "inputFFFF",
className: "showFFFF"
},
{
label: "FFFR",
inputFieldId: "inputFFFR",
className: "showFFFR"
},
{
label: "FFRR",
inputFieldId: "inputFFRR",
className: "showFFRR"
},
{
label: "FRFR",
inputFieldId: "inputFRFR",
className: "showFRFR"
},
{
label: "FRRR",
inputFieldId: "inputFRRR",
className: "showFRRR"
},
{
label: "RRRR",
inputFieldId: "inputRRRR",
className: "showRRRR"
},
// River
{
label: "CCSS",
inputFieldId: "inputCCSS",
className: "showCCSS"
},
{
label: "CFSF",
inputFieldId: "inputCFSF",
className: "showCFSF"
},
{
label: "CSCS",
inputFieldId: "inputCSCS",
className: "showCSCS"
},
{
label: "CSRS",
inputFieldId: "inputCSRS",
className: "showCSRS"
},
{
label: "FFFS",
inputFieldId: "inputFFFS",
className: "showFFFS"
},
{
label: "FFSS",
inputFieldId: "inputFFSS",
className: "showFFSS"
},
{
label: "FRFS",
inputFieldId: "inputFRFS",
className: "showFRFS"
},
{
label: "FSFS",
inputFieldId: "inputFSFS",
className: "showFSFS"
},
{
label: "FSRS",
inputFieldId: "inputFSRS",
className: "showFSRS"
},
{
label: "FSSS",
inputFieldId: "inputFSSS",
className: "showFSSS"
},
{
label: "RRSS",
inputFieldId: "inputRRSS",
className: "showRRSS"
},
{
label: "RSRS",
inputFieldId: "inputRSRS",
className: "showRSRS"
},
]
},
{
label: "Halfling Tiles",
inputFieldId: "inputHalflingTiles",
classNamePrefix: "showHalflingTiles_",
edition: [ "C1", "C2" ],
group: GROUP_GEOMETRY,
selected: false,
open: false,
children:
[
{
label: "CCC",
inputFieldId: "inputCCC",
className: "showCCC"
},
{
label: "CCR",
inputFieldId: "inputCCR",
className: "showCCR"
},
{
label: "CFF",
inputFieldId: "inputCFF",
className: "showCFF"
},
{
label: "FCC",
inputFieldId: "inputFCC",
className: "showFCC"
},
{
label: "FCF",
inputFieldId: "inputFCF",
className: "showFCF"
},
{
label: "FCR",
inputFieldId: "inputFCR",
className: "showFCR"
},
{
label: "FFC",
inputFieldId: "inputFFC",
className: "showFFC"
},
{
label: "FFF",
inputFieldId: "inputFFF",
className: "showFFF"
},
{
label: "FFR",
inputFieldId: "inputFFR",
className: "showFFR"
},
{
label: "FRC",
inputFieldId: "inputFRC",
className: "showFRC"
},
{
label: "FRF",
inputFieldId: "inputFRF",
className: "showFRF"
},
{
label: "FRR",
inputFieldId: "inputFRR",
className: "showFRR"
},
{
label: "RCF",
inputFieldId: "inputRCF",
className: "showRCF"
},
{
label: "RCR",
inputFieldId: "inputRCR",
className: "showRCR"
},
{
label: "RFC",
inputFieldId: "inputRFC",
className: "showRFC"
},
{
label: "RFR",
inputFieldId: "inputRFR",
className: "showRFR"
},
{
label: "RRC",
inputFieldId: "inputRRC",
className: "showRRC"
},
{
label: "RRF",
inputFieldId: "inputRRF",
className: "showRRF"
},
]
},
{
label: "Double-sized Tiles",
inputFieldId: "inputDoubleSizedTiles",
className: "showDoubleSizedTiles",
edition: [ "C1", "C2" ],
group: GROUP_GEOMETRY,
selected: false,
},
{
label: "Other Geometries",
inputFieldId: "inputOtherGeometries",
classNamePrefix: "showOtherGeometries_",
edition: [ "C1", "C2" ],
group: GROUP_GEOMETRY,
selected: false,
open: false,
children:
[
{
label: "Tableau 2x3",
inputFieldId: "inputTableau2x3",
className: "showTableau2x3"
},
{
label: "Tableau 3x4",
inputFieldId: "inputTableau3x4",
className: "showTableau3x4"
},
{
label: "Tableau 4x4",
inputFieldId: "inputTableau4x4",
className: "showTableau4x4"
},
]
},
{
label: "Special Tiles",
inputFieldId: "inputSpecialTiles",
classNamePrefix: "showSpecialTiles_",
edition: [ "C1", "C2" ],
group: GROUP_GEOMETRY,
selected: false,
open: false,
children:
[
{
label: "Points Tile",
inputFieldId: "inputPointsTile",
className: "showPT50"
},
{
label: "King Tile",
inputFieldId: "inputKingTile",
className: "showKKKK"
},
{
label: "Robber Baron Tile",
inputFieldId: "inputRobberBaronTile",
className: "showBBBB"
},
{
label: "Message Tile",
inputFieldId: "inputMessageTile",
className: "showMMMM"
},
{
label: "Goldmines Points Tile",
inputFieldId: "inputGoldminesPointsTile",
className: "showPPPP"
},
]
},
// Features
{
label: "Regular Features",
inputFieldId: "inputRegularFeatures",
classNamePrefix: "showRegularFeatures_",
edition: [ "C1", "C2", "WE" ],
group: GROUP_FEATURES,
selected: false,
open: false,
children:
[
{
label: "Road",
inputFieldId: "inputRoad",
className: "showRoad"
},
{
label: "City",
inputFieldId: "inputCity",
className: "showCity"
},
{
label: "Cloister / Monastery",
inputFieldId: "inputMonastery",
className: "showMonastery"
},
{
label: "Farm / Field",
inputFieldId: "inputField",
className: "showField"
},
{
label: "Garden",
inputFieldId: "inputGarden",
className: "showGarden"
},
{
label: "Abbey",
inputFieldId: "inputAbbey",
className: "showAbbey"
},
{
label: "Cult Place / Shrine",
inputFieldId: "inputShrine",
className: "showShrine"
},
{
label: "German Castle",
inputFieldId: "inputGermanCastle",
className: "showGermanCastle"
},
{
label: "German Cathedral",
inputFieldId: "inputGermanCathedral",
className: "showGermanCathedral"
},
{
label: "German Monastery",
inputFieldId: "inputGermanMonastery",
className: "showGermanMonastery"
},
{
label: "Dutch & Belgian Monastery",
inputFieldId: "inputDutchAndBelgianMonastery",
className: "showDutchAndBelgianMonastery"
},
{
label: "Japanese Building",
inputFieldId: "inputJapaneseBuilding",
className: "showJapaneseBuilding"
},
{
label: "Darmstadt Church",
inputFieldId: "inputDarmstadtChurch",
className: "showDarmstadtChurch"
},
{
label: "Baba Yaga's Hut",
inputFieldId: "inputBabaYagasHut",
className: "showBabaYagasHut"
},
]
},
{
label: "Special Features",
inputFieldId: "inputSpecialFeatures",
classNamePrefix: "showSpecialFeatures_",
edition: [ "C1", "C2", "WE" ],
group: GROUP_FEATURES,
selected: false,
open: false,
children:
[
{
label: "River Source",
inputFieldId: "inputRiverSource",
className: "showRiverSource"
},
{
label: "River Lake",
inputFieldId: "inputRiverLake",
className: "showRiverLake"
},
{
label: "River Fork",
inputFieldId: "inputRiverFork",
className: "showRiverFork"
},
{
label: "River Segment",
inputFieldId: "inputRiverSegment",
className: "showRiverSegment"
},
{
label: "Magic Portal",
inputFieldId: "inputMagicPortal",
className: "showMagicPortal"
},
{
label: "Volcano",
inputFieldId: "inputVolcano",
className: "showVolcano"
},
{
label: "Tower Foundation",
inputFieldId: "inputTowerFoundation",
className: "showTowerFoundation"
},
{
label: "Fair",
inputFieldId: "inputFair",
className: "showFair"
},
{
label: "Bazaar",
inputFieldId: "inputBazaar",
className: "showBazaar"
},
{
label: "Circus Area",
inputFieldId: "inputCircusArea",
className: "showCircusArea"
},
{
label: "Acrobat Area",
inputFieldId: "inputAcrobatArea",
className: "showAcrobatArea"
},
{
label: "Flying Machine",
inputFieldId: "inputFlyingMachine",
className: "showFlyingMachine"
},
{
label: "Crop Cicle",
inputFieldId: "inputCropCicle",
className: "showCropCicle"
},
{
label: "Fruit-Bearing Tree",
inputFieldId: "inputFruitBearingTree",
className: "showFruitBearingTree"
},
{
label: "Solovei Razboynik's Tree",
inputFieldId: "inputSoloveiRazboyniksTree",
className: "showSoloveiRazboyniksTree"
},
{
label: "Vodyanoy's Lake",
inputFieldId: "inputVodyanoysLake",
className: "showVodyanoysLake"
},
]
},
{
label: "Special Subordinate Features",
inputFieldId: "inputSpecialSubordinateFeatures",
classNamePrefix: "showSpecialSubordinateFeatures_",
edition: [ "C1", "C2", "WE" ],
group: GROUP_FEATURES,
selected: false,
open: false,
children:
[
{
label: "Water Tower",
inputFieldId: "inputWaterTower",
className: "showWaterTower"
},
{
label: "Highwaymen",
inputFieldId: "inputHighwaymen",
className: "showHighwaymen"
},
{
label: "Field Cottage",
inputFieldId: "inputFieldCottage",
className: "showFieldCottage"
},
{
label: "Farmhouse",
inputFieldId: "inputFarmhouse",
className: "showFarmhouse"
},
{
label: "Field Cattle",
inputFieldId: "inputFieldCattle",
className: "showFieldCattle"
},
{
label: "Cow Shed (Shed)",
inputFieldId: "inputCowShed",
className: "showCowShed"
},
{
label: "Donkey Stable (Shed)",
inputFieldId: "inputDonkeyStable",
className: "showDonkeyStable"
},
{
label: "Pigsty (Shed)",
inputFieldId: "inputPigsty",
className: "showPigsty"
},
{
label: "Small Bridge",
inputFieldId: "inputSmallBridge",
className: "showSmallBridge"
},
{
label: "Large Bridge",
inputFieldId: "inputLargeBridge",
className: "showLargeBridge"
},
{
label: "City Overpass",
inputFieldId: "inputCityOverpass",
className: "showCityOverpass"
},
{
label: "Junction With Village / Crossroads With Village",
inputFieldId: "inputCrossroadWithVillage",
className: "showCrossroadWithVillage"
},
{
label: "Junction With Trees / Crossroads With Trees",
inputFieldId: "inputCrossroadsWithTrees",
className: "showCrossroadsWithTrees"
},
{
label: "Road Cottage",
inputFieldId: "inputRoadCottage",
className: "showRoadCottage"
},
{
label: "Bogatyr's Stone",
inputFieldId: "inputBogatyrsStone",
className: "showBogatyrsStone"
},
{
label: "Roundabout",
inputFieldId: "inputRoundabout",
className: "showRoundabout"
},
{
label: "Inn",
inputFieldId: "inputInn",
className: "showInn"
},
{
label: "Cathedral",
inputFieldId: "inputCathedral",
className: "showCathedral"
},
{
label: "Pig-Herd",
inputFieldId: "inputPigHerd",
className: "showPigHerd"
},
{
label: "Vineyard",
inputFieldId: "inputVineyard",
className: "showVineyard"
},
{
label: "Printed Sheep",
inputFieldId: "inputPrintedSheep",
className: "showPrintedSheep"
},
{
label: "La Porxada",
inputFieldId: "inputPorxada",
className: "showPorxada"
},
{
label: "Tunnel",
inputFieldId: "inputTunnel",
className: "showTunnel"
},
{
label: "Darmstadtium",
inputFieldId: "inputDarmstadtium",
className: "showDarmstadtium"
},
{
label: "Labyrinth",
inputFieldId: "inputLabyrinth",
className: "showLabyrinth"
},
{
label: "Ferry Lake",
inputFieldId: "inputFerryLake",
className: "showFerryLake"
},
{
label: "Siege",
inputFieldId: "inputSiege",
className: "showSiege"
},
{
label: "Festival",
inputFieldId: "inputFestival",
className: "showFestival"
},
{
label: "Watchtower",
inputFieldId: "inputWatchtower",
className: "showWatchtower"
},
{
label: "Bathhouse",
inputFieldId: "inputBathhouse",
className: "showBathhouse"
},
{
label: "Traveler Group",
inputFieldId: "inputTravelerGroup",
className: "showTravelerGroup"
},
]
},
{
label: "Symbols",
inputFieldId: "inputSymbol",
classNamePrefix: "showSymbols_",
edition: [ "C1", "C2", "WE" ],
group: GROUP_FEATURES,
selected: false,
open: false,
children:
[
{
label: "Pennant / Coat Of Arms",
inputFieldId: "inputCoatOfArms",
className: "showCoatOfArms"
},
{
label: "Barrel Symbol",
inputFieldId: "inputBarrelSymbol",
className: "showBarrelSymbol"
},
{
label: "Cloth Symbol",
inputFieldId: "inputClothSymbol",
className: "showClothSymbol"
},
{
label: "Wheat Symbol",
inputFieldId: "inputWheatSymbol",
className: "showWheatSymbol"
},
{
label: "Princess",
inputFieldId: "inputPrincessSymbol",
className: "showPrincessSymbol"
},
{
label: "Dragon",
inputFieldId: "inputDragonSymbol",
className: "showDragonSymbol"
},
{
label: "Wheel With Number",
inputFieldId: "inputWheelWithNumber",
className: "showWheelWithNumber"
},
{
label: "Gold Symbol",
inputFieldId: "inputGoldSymbol",
className: "showGoldSymbol"
},
{
label: "Magic Symbol",
inputFieldId: "inputMagicSymbol",
className: "showMagicSymbol"
},
{
label: "Robber Symbol",
inputFieldId: "inputRobberSymbol",
className: "showRobberSymbol"
},
{
label: "Cathar Symbol",
inputFieldId: "inputCatharSymbol",
className: "showCatharSymbol"
},
{
label: "Festival Symbol",
inputFieldId: "inputFestivalSymbol",
className: "showFestivalSymbol"
},
{
label: "Gingerbread Man Symbol",
inputFieldId: "inputGingerbreadManSymbol",
className: "showGingerbreadManSymbol"
},
{
label: "Outbreak Symbol",
inputFieldId: "inputOutbreakSymbol",
className: "showOutbreakSymbol"
},
{
label: "Wind Rose",
inputFieldId: "inputWindRose",
className: "showWindRose"
},
]
},
{
label: "Special Areas",
inputFieldId: "inputSpecialAreas",
classNamePrefix: "showSpecialAreas_",
edition: [ "C1", "C2", "WE" ],
group: GROUP_FEATURES,
selected: false,
open: false,
children:
[
{
label: "City Of Carcassonne",
inputFieldId: "inputCityOfCarcassonne",
className: "showCityOfCarcassonne"
},
{
label: "Wheel Of Fortune",
inputFieldId: "inputWheelOfFortune",
className: "showWheelOfFortune"
},
{
label: "School",
inputFieldId: "inputSchool",
className: "showSchool"
},
{
label: "City Of Leipzig",
inputFieldId: "inputCityOfLeipzig",
className: "showCityOfLeipzig"
},
]
},
];
var ACTION_CLEAR_ALL = "CLEAR_ALL",
ACTION_SELECT_ALL = "SELECT_ALL",
ACTION_SELECT_ALL_C1 = "SELECT_ALL_C1",
ACTION_SELECT_ALL_C2 = "SELECT_ALL_C2",
ACTION_SELECT_ALL_WE = "SELECT_ALL_WE",
ACTION_LOAD_PRESET = "LOAD_PRESET";
var QuickSelectorDefinition =
[
/*
{
_id: "preClearAll",
label: "Clear All", // Empty
readOnly: true,
action: ACTION_CLEAR_ALL
},
{
_id: "preSelectAll",
label: "Select All", // All
readOnly: true,
action: ACTION_SELECT_ALL
},
*/
{
_id: "preSelectAllC1",
label: "Select All C1", // All C1
readOnly: true,
action: ACTION_SELECT_ALL_C1
},
{
_id: "preSelectAllC2",
label: "Select All C2", // All C2
readOnly: true,
action: ACTION_SELECT_ALL_C2
},
{
_id: "preSelectAllWE",
label: "Select All WE", // All WE
readOnly: true,
action: ACTION_SELECT_ALL_WE
},
{
_id: "preBigBox1",
label: "Big Box 1", // 1, 2, 3, 4, River
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showInnsAndCathedrals_C1",
"showTradersAndBuilders_C1",
"showPrincessAndDragon_C1",
"showTower_C1",
"showRiver1_C1"
]
},
{
_id: "preBigBox2",
label: "Big Box 2", // 1, 2, 3, 5, 6
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showInnsAndCathedrals_C1",
"showTradersAndBuilders_C1",
"showPrincessAndDragon_C1",
"showAbbeyAndMayor_C1",
"showCountKingAndRobber_C1"
]
},
{
_id: "preBigBox3",
label: "Big Box 3", // 1, 2, 3, 5, 8
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showInnsAndCathedrals_C1",
"showTradersAndBuilders_C1",
"showPrincessAndDragon_C1",
"showAbbeyAndMayor_C1",
"showBridgesCastlesAndBazaars_C1"
]
},
{
_id: "preBigBox4",
label: "Big Box 4", // 1, 2, Minis 1-7
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showInnsAndCathedrals_C1",
"showTradersAndBuilders_C1",
"showFlier_C1",
"showMessages_C1",
"showFerries_C1",
"showGoldmines_C1",
"showMageAndWitch_C1",
"showRobbers_C1",
"showCropCircles2_C1"
]
},
{
_id: "preBigBox5",
label: "Big Box 5", // 1, 2, 9, WoF
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showInnsAndCathedrals_C1",
"showTradersAndBuilders_C1",
"showHillsAndSheep_C1",
"showWheelOfFortuneBB5_C1"
]
},
{
_id: "preBigBox6",
label: "Big Box 6", // 1, 2, Minis 1-7, River, Abbot
readOnly: true,
classNames:
[
"showBaseGame_C2",
"showInnsAndCathedrals_C2",
"showTradersAndBuilders_C2",
"showFlier_C2",
"showMessages_C2",
"showFerries_C2",
"showGoldmines_C2",
"showMageAndWitch_C2",
"showRobbers_C2",
"showCropCircles_C2",
"showRiver1_C2",
"showAbbot_C2"
]
},
{
_id: "preLE2003",
label: "Limited Edition 2003", // 1, 2, River
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showInnsAndCathedrals_C1",
"showTradersAndBuilders_C1",
"showRiver1_C1"
]
},
{
_id: "preLE_TB",
label: "LE Traders And Builders", // 2
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showTradersAndBuilders_C1"
]
},
{
_id: "preLE_PD",
label: "LE Princess And Dragon", // 3
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showPrincessAndDragon_C1"
]
},
{
_id: "preLE_CC",
label: "LE Crop Circles", // Crop Circles
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showCropCircles1_C1"
]
},
{
_id: "preLE_10Anniversary",
label: "LE 10th Anniversary", // The Festival
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showFestival_C1"
]
},
{
_id: "preLE_Mueller",
label: "LE Müller Exclusive", // 6, The Besiegers
readOnly: true,
classNames:
[
"showBaseGame_C1",
"showCountKingAndRobber_C1",
"showCathars_C1"
]
},
{
_id: "custom1",
defaultLabel: "Custom 1 (Empty)", // Empty
readOnly: false,
},
{
_id: "custom2",
defaultLabel: "Custom 2 (Empty)", // Empty
readOnly: false,
},
{
_id: "custom3",
defaultLabel: "Custom 3 (Empty)", // Empty
readOnly: false,
},
{
_id: "custom4",
defaultLabel: "Custom 4 (Empty)", // Empty
readOnly: false,
},
{
_id: "custom5",
defaultLabel: "Custom 5 (Empty)", // Empty
readOnly: false,
},
];
// Constants for expresions
var AND = function ( a, b ) { return ( a && b ); },
OR = function ( a, b ) { return ( a || b ); },
NOT = function ( a ) { return !( a ); },
COUNT = function ( a, b ) { return ( +a ) + ( +b ); };
// Derives classes definition
var DerivedClassesTable =
[
/*
//*** Sample ***
{
className: "showAlternativeRulesMessage",
expression: [ AND, "showC1", [ OR, "showDragon", "showMessages" ] ]
},
*/
];
var strPage =
'<div id="_Tabs_">\
<ul>\
<li id="tabs-C1-label"><a href="#tabs-C1" class="wica-translate-contents" id="tabC1Expansions_Label">1st Ed. Expansions <span id="_Tile_Counter_C1_">(0/0)</span></a></li>\
<li id="tabs-C2-label"><a href="#tabs-C2" class="wica-translate-contents" id="tabC2Expansions_Label">2nd Ed. Expansions <span id="_Tile_Counter_C2_">(0/0)</span></a></li>\
<li id="tabs-WE-label"><a href="#tabs-WE" class="wica-translate-contents" id="tabWEExpansions_Label">WE Expansions <span id="_Tile_Counter_WE_">(0/0)</span></a></li>\
<li><a href="#tabs-Geometry" class="wica-translate-contents" id="tabGeomerty_Label">Edges <span id="_Tile_Counter_Geometry_">(0/0)</span></a></li>\
<li><a href="#tabs-Features" class="wica-translate-contents" id="tabFeatures_Label">Features <span id="_Tile_Counter_Features_">(0/0)</span></a></li>\
<li><a href="#tabs-quick" class="wica-translate-contents" id="tabQuickSelectors_Label">Quick Selectors</a></li>\
<li><a href="#tabs-filters" class="wica-translate-contents" id="tabFilters_Label">Filters <span id="_Tile_Filter_">(-)</span></a></li>\
<li><a href="#tabs-help" class="wica-translate-contents" id="tabHelp_Label"\
><span style="color: blue; background-color: white;"><b> ? </b></span></a></li>\
</ul>\
<div id="tabs-C1">\
<form>\
<span id="_Tile_Selector_C1_"></span>\
</form>\
</div>\
<div id="tabs-C2">\
<form>\
<span id="_Tile_Selector_C2_"></span>\
</form>\
</div>\
<div id="tabs-WE">\
<form>\
<span id="_Tile_Selector_WE_"></span>\
</form>\
</div>\
<div id="tabs-Geometry">\
<form>\
<span id="_Tile_Selector_Geometry_"></span>\
</form>\
</div>\
<div id="tabs-Features">\
<form>\
<span id="_Tile_Selector_Features_"></span>\
</form>\
</div>\
<div id="tabs-quick">\
<form>\
<div class="form-box-container">\
<div class="form-box">\
<b class="wica-translate-contents" id="buttonQuickSelection_Label">Quick Selection:</b><br /><br />\
<select id="quickSelectList" style="width: 200px;">\
<option value="defaultSetting" class="wica-translate-contents" id="optionSelectOne_Label">Select one...</option>\
</select><br /><input type="button" name="quickSelectButton" id="quickSelectButton" value="Select Expansions" class="ui-state-active ui-button wica-translate-attr-value" style="margin-top: 5px;"/>\
<br /><br /><br />\
<input type="button" name="quickClearAllButton" id="quickClearAllButton" value="Clear All" class="ui-state-active ui-button wica-translate-attr-value" /> \
<input type="button" name="quickSelectAllButton" id="quickSelectAllButton" value="Select All" class="ui-state-active ui-button wica-translate-attr-value" />\
</div>\
</div>\
</form>\
</div>\
<div id="tabs-filters">\
<form>\
<div class="form-box-container">\
<div class="form-box">\
<b class="wica-translate-contents" id="textShowEditions_Label">Show Editions:</b><br /><br />\
<input type="checkbox" name="filterC1" id ="filterC1" class="inputFilter" value="C1" /> <span class="wica-translate-contents" id="textFirstEdition_Label">1st Edition (C1)</span><br />\
<input type="checkbox" name="filterC2" id ="filterC2" class="inputFilter" value="C2" /> <span class="wica-translate-contents" id="textSecondEdition_Label">New Edition (C2)</span><br />\
<input type="checkbox" name="filterWE" id ="filterWE" class="inputFilter" value="WE" /> <span class="wica-translate-contents" id="textWinterEdition_Label">Winter Edition (WE)</span><br />\
</div>\
</div>\
</form>\
</div>\
<div id="tabs-help"><div class="wica-translate-contents" id="textHelp_Label">\
Loem ipsum\
</div></div>\
<div id="tabs-selection" class="ui-tabs-panel ui-corner-bottom ui-widget-content">\
<span class="wica-translate-contents" id="textCurrentSelection_Label">Current Selection:</span> \
<ul id="_Tile_Result_List_">\
<li class="spaceLines" id="tabs-C1-result"><b class="wica-translate-contents" id="textC1_Label">C1:</b> <span id="_Tile_Result_C1_" class="showC1Tiles"></span><span class="showNoC1Tiles wica-translate-contents" id="textNone_Label">None</span></li>\
<li class="spaceLines" id="tabs-C2-result"><b class="wica-translate-contents" id="textC2_Label">C2:</b> <span id="_Tile_Result_C2_" class="showC2Tiles"></span><span class="showNoC2Tiles wica-translate-contents" id="textNone_Label">None</span></li>\
<li class="spaceLines" id="tabs-WE-result"><b class="wica-translate-contents" id="textWE_Label">WE:</b> <span id="_Tile_Result_WE_" class="showWETiles"></span><span class="showNoWETiles wica-translate-contents" id="textNone_Label">None</span></li>\
<li class="spaceLines"><b class="wica-translate-contents" id="textGeometry_Label">Edges:</b> <span id="_Tile_Result_Geometry_" class="showGeometry"></span><span class="showNoGeometry wica-translate-contents" id="textNone_Label">None</span></li>\
<li class="spaceLines"><b class="wica-translate-contents" id="textFeatures_Label">WE:</b> <span id="_Tile_Result_Features_" class="showFeatures"></span><span class="showNoFeatures wica-translate-contents" id="textNone_Label">None</span></li>\
</ul>\
</div>\
</div>';