Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function EternalDictionary(config) {
- this.description = this.description + ' - ' + config.description;
- this.language = config.language;
- this.settings = this.settings.concat(config.settings);
- };
- EternalDictionary.prototype = new Dictionary({
- game: 'eternal',
- description: 'Eternal',
- // Settings and initialisation
- settings: [
- {
- 'name': 'linkTarget',
- 'description': 'Link target:',
- 'type': 'string',
- 'default': 'http://www.numotgaming.com/cards/<name:simple>'
- },
- {
- 'name': 'imageURL',
- 'description': 'Image source:',
- 'type': 'string',
- 'default': 'http://www.numotgaming.com/cards/images/cards/<name:simple>.png'
- }
- ]
- });
- // Override parent functions
- EternalDictionary.prototype.simplify = function(s) {
- return s.replace(/ /g, '%20');
- };
- EternalDictionary.prototype.findCardById = function(cardID, match, isDict) {
- var cardData = this.cardData[cardID];
- if (!cardData) {return}
- return {
- 'game': this.game,
- 'language': this.language,
- 'name': match.replace(/"/g, '`'),
- 'match': match,
- 'en': cardID,
- 'id': cardID,
- // 'link': cardData[0],
- 'isDict': isDict || 0
- };
- };
- //==============================================================================
- // Individual language(s)
- //==============================================================================
- if (typeof(AutocardAnywhere) == 'undefined') {AutocardAnywhere = {};}
- if (typeof(AutocardAnywhere.games) == 'undefined') {AutocardAnywhere.games = {};}
- AutocardAnywhere.games.eternal = {};
- // English
- AutocardAnywhere.games.eternal.en = new EternalDictionary({
- description: 'English',
- language: 'en',
- settings: [
- {
- 'name': 'ignoreDictionaryWords',
- 'description': 'Ignore Dictionary Words',
- 'type': 'boolean',
- 'default': true,
- 'controlType': 'checkbox'
- },
- {
- 'name': 'emphasiseText',
- 'type': 'boolean',
- 'default': true
- }
- ]
- });
Advertisement
Add Comment
Please, Sign In to add comment