コード例 #1
0
 def do_config(self):
     self.data, self.i18n = g_gui.register_data(self.ids, self.data, self.i18n)
     g_gui.register(self.ids, self.template, self.data, self.apply)
コード例 #2
0
 def __init__(self):
     self.ids = 'crewExtended'
     self.version = 'v5.03 (2018-05-29)'
     self.version_id = 503
     self.author = 'by spoter'
     self.data = {
         'version':
         self.version_id,
         'enabled':
         True,
         'personalFileTotalXP':
         True,
         'personalFileSkillXP':
         True,
         'personalFileSkillBattle':
         True,
         'currentCrewRankOnTop':
         True,
         'currentCrewRankBattle':
         True,
         'currentCrewRoleBattle':
         False,
         'currentCrewBattleIcon':
         True,
         'currentColorBattle':
         6,
         'currentCrewRankExp':
         False,
         'currentCrewRoleExp':
         True,
         'currentCrewExpIcon':
         True,
         'currentColorExp':
         5,
         'colors': [
             '0000FF', 'A52A2B', 'D3691E', '6595EE', 'FCF5C8', '00FFFF',
             '28F09C', 'FFD700', '008000', 'ADFF2E', 'FF69B5', '00FF00',
             'FFA500', 'FFC0CB', '800080', 'FF0000', '8378FC', 'DB0400',
             '80D639', 'FFE041', 'FFFF00', 'FA8072'
         ],
         'color_i18n': [
             'UI_menu_blue', 'UI_menu_brown', 'UI_menu_chocolate',
             'UI_menu_cornflower_blue', 'UI_menu_cream', 'UI_menu_cyan',
             'UI_menu_emerald', 'UI_menu_gold', 'UI_menu_green',
             'UI_menu_green_yellow', 'UI_menu_hot_pink', 'UI_menu_lime',
             'UI_menu_orange', 'UI_menu_pink', 'UI_menu_purple',
             'UI_menu_red', 'UI_menu_wg_blur', 'UI_menu_wg_enemy',
             'UI_menu_wg_friend', 'UI_menu_wg_squad', 'UI_menu_yellow',
             'UI_menu_nice_red'
         ]
     }
     self.i18n = {
         'version': self.version_id,
         'UI_description': 'Crew Extended',
         'UI_setting_personalFileSilverXP_text':
         'To reset main skill: {} experience',
         'UI_setting_personalFile_label': 'Personal File :',
         'UI_setting_personalFileTotalXP_text': 'Show total exp',
         'UI_setting_personalFileTotalXP_tooltip':
         '{HEADER}Info:{/HEADER}{BODY}Show Total Experience to current tankman{/BODY}',
         'UI_setting_personalFileSkillXP_text': 'Show exp to 100%',
         'UI_setting_personalFileSkillXP_tooltip':
         '{HEADER}Info:{/HEADER}{BODY}Show Experience to current skill with format: to 1% (to 100%){/BODY}',
         'UI_setting_personalFileSkillBattle_text': 'Show battles to 100%',
         'UI_setting_personalFileSkillBattle_tooltip':
         '{HEADER}Info:{/HEADER}{BODY}Show Battles to current skill with format: 1 battle to 1% (100 battle to 100%){/BODY}',
         'UI_setting_currentCrew_label': 'Current Crew :',
         'UI_setting_currentColorBattle_text': 'Change Battles color',
         'UI_setting_currentColorBattle_tooltip': '',
         'UI_setting_currentCrewRankOnTop_text': 'Show Rank on Top',
         'UI_setting_currentCrewRankOnTop_tooltip':
         '{HEADER}Info:{/HEADER}{BODY}Default Role on top in current crew list in hangar, change it! :){/BODY}',
         'UI_setting_currentCrewRankBattle_text': 'Show Battles in Rank',
         'UI_setting_currentCrewRankBattle_tooltip':
         '{HEADER}Info:{/HEADER}{BODY}Show Battles to current skill in Rank field{/BODY}',
         'UI_setting_currentCrewRoleBattle_text': 'Show Battles in Role',
         'UI_setting_currentCrewRoleBattle_tooltip':
         '{HEADER}Info:{/HEADER}{BODY}Show Battles to current skill in Role field{/BODY}',
         'UI_setting_currentCrewBattleIcon_text': 'Show Battle Icon',
         'UI_setting_currentCrewBattleIcon_tooltip': '',
         'UI_setting_currentCrewRankExp_text': 'Show Exp in Rank',
         'UI_setting_currentCrewRankExp_tooltip':
         '{HEADER}Info:{/HEADER}{BODY}Show Exp to current skill in Rank field{/BODY}',
         'UI_setting_currentCrewRoleExp_text': 'Show Exp in Role',
         'UI_setting_currentCrewRoleExp_tooltip':
         '{HEADER}Info:{/HEADER}{BODY}Show Exp to current skill in Role field{/BODY}',
         'UI_setting_currentCrewExpIcon_text': 'Show Exp Icon',
         'UI_setting_currentCrewExpIcon_tooltip': '',
         'UI_setting_currentColorExp_text': 'Change Exp color',
         'UI_setting_currentColorExp_tooltip': '',
         'UI_menu_blue': 'Blue',
         'UI_menu_brown': 'Brown',
         'UI_menu_chocolate': 'Chocolate',
         'UI_menu_cornflower_blue': 'Cornflower Blue',
         'UI_menu_cream': 'Cream',
         'UI_menu_cyan': 'Cyan',
         'UI_menu_emerald': 'Emerald',
         'UI_menu_gold': 'Gold',
         'UI_menu_green': 'Green',
         'UI_menu_green_yellow': 'Green Yellow',
         'UI_menu_hot_pink': 'Hot Pink',
         'UI_menu_lime': 'Lime',
         'UI_menu_orange': 'Orange',
         'UI_menu_pink': 'Pink',
         'UI_menu_purple': 'Purple',
         'UI_menu_red': 'Red',
         'UI_menu_wg_blur': 'WG Blur',
         'UI_menu_wg_enemy': 'WG Enemy',
         'UI_menu_wg_friend': 'WG Friend',
         'UI_menu_wg_squad': 'WG Squad',
         'UI_menu_yellow': 'Yellow',
         'UI_menu_nice_red': 'Nice Red'
     }
     self.data, self.i18n = g_gui.register_data(self.ids, self.data,
                                                self.i18n, 'spoter')
     g_gui.register(self.ids, self.template, self.data, self.apply)
     print '[LOAD_MOD]:  [%s %s, %s]' % (self.ids, self.version,
                                         self.author)
コード例 #3
0
    def __init__(self):
        self.ids = 'crewExtended'
        self.version = 'v6.02 (2020-12-20)'
        self.version_id = 602
        self.author = 'by spoter'
        self.data = {
            'version'                : self.version_id,
            'enabled'                : True,
            'personalFileTotalXP'    : True,
            'personalFileSkillXP'    : True,
            'personalFileSkillBattle': True,
            'currentCrewRankOnTop'   : True,
            'currentCrewRankBattle'  : True,
            'currentCrewRoleBattle'  : False,
            'currentCrewBattleIcon'  : True,
            'currentColorBattle'     : 6,
            'currentCrewRankExp'     : False,
            'currentCrewRoleExp'     : True,
            'currentCrewExpIcon'     : True,
            'currentCrewShowNewSkillPercent': True,
            'currentCrewShowSkillResetStatus': True,
            'currentColorExp'        : 5,
            'barracksEnable'         : True,
            'barracksBattleOrExp'    : True,
            'barracksSkillIcons'     : True,
            'colors'                 : ['0000FF', 'A52A2B', 'D3691E', '6595EE', 'FCF5C8', '00FFFF', '28F09C', 'FFD700', '008000', 'ADFF2E', 'FF69B5', '00FF00', 'FFA500', 'FFC0CB', '800080', 'FF0000', '8378FC', 'DB0400', '80D639', 'FFE041', 'FFFF00', 'FA8072'],
            'color_i18n'             : ['UI_menu_blue', 'UI_menu_brown', 'UI_menu_chocolate', 'UI_menu_cornflower_blue', 'UI_menu_cream', 'UI_menu_cyan', 'UI_menu_emerald', 'UI_menu_gold', 'UI_menu_green', 'UI_menu_green_yellow', 'UI_menu_hot_pink', 'UI_menu_lime', 'UI_menu_orange', 'UI_menu_pink', 'UI_menu_purple', 'UI_menu_red', 'UI_menu_wg_blur', 'UI_menu_wg_enemy', 'UI_menu_wg_friend', 'UI_menu_wg_squad', 'UI_menu_yellow', 'UI_menu_nice_red'],
            'premiumSkillIcon'       : '<img align=\"top\" src=\"img://gui/maps//icons/library/referralCoin-1.png\" height=\"16\" width=\"16\" vspace=\"-3\"/>',
            'battleIcon'             : '<img align=\"top\" src=\"img://gui/maps//icons/library/BattleResultIcon-1.png\" height=\"14\" width=\"14\" vspace=\"-3\"/>',
            'expIcon'                : '<img align=\"top\" src=\"img://gui/maps//icons/library/XpIcon-1.png\" height=\"16\" width=\"16\" vspace=\"-3\"/>'

        }
        self.i18n = {
            'version'                                   : self.version_id,
            'UI_description'                            : 'Crew Extended',
            'UI_setting_personalFileSilverXP_text'      : 'To reset main skill: {} experience',
            'UI_setting_personalFile_label'             : 'Personal File :',
            'UI_setting_personalFileTotalXP_text'       : 'Show total exp',
            'UI_setting_personalFileTotalXP_tooltip'    : '{HEADER}Info:{/HEADER}{BODY}Show Total Experience to current tankman{/BODY}',
            'UI_setting_personalFileSkillXP_text'       : 'Show exp to 100%',
            'UI_setting_personalFileSkillXP_tooltip'    : '{HEADER}Info:{/HEADER}{BODY}Show Experience to current skill with format: to 1% (to 100%){/BODY}',
            'UI_setting_personalFileSkillBattle_text'   : 'Show battles to 100%',
            'UI_setting_personalFileSkillBattle_tooltip': '{HEADER}Info:{/HEADER}{BODY}Show Battles to current skill with format: 1 battle to 1% (100 battle to 100%){/BODY}',
            'UI_setting_currentCrew_label'              : 'Current Crew :',
            'UI_setting_currentColorBattle_text'        : 'Change Battles color',
            'UI_setting_currentColorBattle_tooltip'     : '',
            'UI_setting_currentCrewRankOnTop_text'      : 'Show Rank on Top',
            'UI_setting_currentCrewRankOnTop_tooltip'   : '{HEADER}Info:{/HEADER}{BODY}Default Role on top in current crew list in hangar, change it! :){/BODY}',
            'UI_setting_currentCrewRankBattle_text'     : 'Show Battles in Rank',
            'UI_setting_currentCrewRankBattle_tooltip'  : '{HEADER}Info:{/HEADER}{BODY}Show Battles to current skill in Rank field{/BODY}',
            'UI_setting_currentCrewRoleBattle_text'     : 'Show Battles in Role',
            'UI_setting_currentCrewRoleBattle_tooltip'  : '{HEADER}Info:{/HEADER}{BODY}Show Battles to current skill in Role field{/BODY}',
            'UI_setting_currentCrewBattleIcon_text'     : 'Show Battle Icon',
            'UI_setting_currentCrewBattleIcon_tooltip'  : '',
            'UI_setting_currentCrewRankExp_text'        : 'Show Exp in Rank',
            'UI_setting_currentCrewRankExp_tooltip'     : '{HEADER}Info:{/HEADER}{BODY}Show Exp to current skill in Rank field{/BODY}',
            'UI_setting_currentCrewRoleExp_text'        : 'Show Exp in Role',
            'UI_setting_currentCrewRoleExp_tooltip'     : '{HEADER}Info:{/HEADER}{BODY}Show Exp to current skill in Role field{/BODY}',
            'UI_setting_currentCrewExpIcon_text'        : 'Show Exp Icon',
            'UI_setting_currentCrewExpIcon_tooltip'     : '',
            'UI_setting_currentCrewShowNewSkillPercent_text'   : 'Show percentage new skills',
            'UI_setting_currentCrewShowNewSkillPercent_tooltip': '',
            'UI_setting_currentCrewShowSkillResetStatus_text'   : 'Show skill reset without gold',
            'UI_setting_currentCrewShowSkillResetStatus_tooltip': '',
            'UI_setting_currentColorExp_text'           : 'Change Exp color',
            'UI_setting_currentColorExp_tooltip'        : '',
            'UI_setting_barracks_label'                 : 'Barracks :',
            'UI_setting_barracksEnable_text'            : 'Show in Barracks',
            'UI_setting_barracksEnable_tooltip'         : '',
            'UI_setting_barracksBattleOrExp_text'       : 'Show Battle or Exp',
            'UI_setting_barracksBattleOrExp_tooltip'    : '{HEADER}Info:{/HEADER}{BODY}Enabled: Show Battles to next skill level\nDisabled: Show Experience to next skill level{/BODY}',
            'UI_setting_barracksSkillIcons_text'        : 'Show Skill Icons',
            'UI_setting_barracksSkillIcons_tooltip'     : '',
            'UI_menu_blue'                              : 'Blue',
            'UI_menu_brown'                             : 'Brown',
            'UI_menu_chocolate'                         : 'Chocolate',
            'UI_menu_cornflower_blue'                   : 'Cornflower Blue',
            'UI_menu_cream'                             : 'Cream',
            'UI_menu_cyan'                              : 'Cyan',
            'UI_menu_emerald'                           : 'Emerald',
            'UI_menu_gold'                              : 'Gold',
            'UI_menu_green'                             : 'Green',
            'UI_menu_green_yellow'                      : 'Green Yellow',
            'UI_menu_hot_pink'                          : 'Hot Pink',
            'UI_menu_lime'                              : 'Lime',
            'UI_menu_orange'                            : 'Orange',
            'UI_menu_pink'                              : 'Pink',
            'UI_menu_purple'                            : 'Purple',
            'UI_menu_red'                               : 'Red',
            'UI_menu_wg_blur'                           : 'WG Blur',
            'UI_menu_wg_enemy'                          : 'WG Enemy',
            'UI_menu_wg_friend'                         : 'WG Friend',
            'UI_menu_wg_squad'                          : 'WG Squad',
            'UI_menu_yellow'                            : 'Yellow',
            'UI_menu_nice_red'                          : 'Nice Red'

        }
        self.data, self.i18n = g_gui.register_data(self.ids, self.data, self.i18n, 'spoter')
        g_gui.register(self.ids, self.template, self.data, self.apply)
        print '[LOAD_MOD]:  [%s %s, %s]' % (self.ids, self.version, self.author)
コード例 #4
0
 def doConfig(self):
     self.data, self.i18n = g_gui.register_data(self.ids, self.data,
                                                self.i18n)
     g_gui.register(self.ids, self.template, self.data, self.apply)
コード例 #5
0
 def __init__(self):
     self.ids = 'repair_extended'
     self.version = 'v3.05 (2017-07-20)'
     self.author = 'by spoter'
     self.version_id = 305
     self.buttons = {
         'buttonRepair': [Keys.KEY_SPACE],
         'buttonChassis': [[Keys.KEY_LALT, Keys.KEY_RALT]]
     }
     self.data = {
         'version': self.version_id,
         'enabled': True,
         'buttonChassis': self.buttons['buttonChassis'],
         'buttonRepair': self.buttons['buttonRepair'],
         'removeStun': True,
         'extinguishFire': True,
         'healCrew': True,
         'repairDevices': True,
         'restoreChassis': False,
         'useGoldKits': True,
         'repairPriority': {
             'lightTank': {
                 'medkit': ['driver', 'commander', 'gunner', 'loader'],
                 'repairkit':
                 ['engine', 'ammoBay', 'gun', 'turretRotator', 'fuelTank']
             },
             'mediumTank': {
                 'medkit': ['loader', 'driver', 'commander', 'gunner'],
                 'repairkit':
                 ['turretRotator', 'engine', 'ammoBay', 'gun', 'fuelTank']
             },
             'heavyTank': {
                 'medkit': ['commander', 'loader', 'gunner', 'driver'],
                 'repairkit':
                 ['turretRotator', 'ammoBay', 'engine', 'gun', 'fuelTank']
             },
             'SPG': {
                 'medkit': ['commander', 'loader', 'gunner', 'driver'],
                 'repairkit':
                 ['ammoBay', 'engine', 'gun', 'turretRotator', 'fuelTank']
             },
             'AT-SPG': {
                 'medkit': ['loader', 'gunner', 'commander', 'driver'],
                 'repairkit':
                 ['ammoBay', 'gun', 'engine', 'turretRotator', 'fuelTank']
             },
             'AllAvailableVariables': {
                 'medkit':
                 ['commander', 'gunner', 'driver', 'radioman', 'loader'],
                 'repairkit': [
                     'engine', 'ammoBay', 'gun', 'turretRotator', 'chassis',
                     'surveyingDevice', 'radio', 'fuelTank'
                 ]
             }
         }
     }
     self.i18n = {
         'version': self.version_id,
         'UI_repair_name': 'Repair extended',
         'UI_repair_buttonChassis_text': 'Button: Restore Chassis',
         'UI_repair_buttonChassis_tooltip': '',
         'UI_repair_buttonRepair_text': 'Button: Smart Repair',
         'UI_repair_buttonRepair_tooltip': '',
         'UI_repair_removeStun_text': 'Remove stun',
         'UI_repair_removeStun_tooltip': '',
         'UI_repair_useGoldKits_text': 'Use Gold Kits',
         'UI_repair_useGoldKits_tooltip': '',
         'UI_repair_extinguishFire_text': 'Extinguish fire',
         'UI_repair_extinguishFire_tooltip': '',
         'UI_repair_healCrew_text': 'Heal crew',
         'UI_repair_healCrew_tooltip': '',
         'UI_repair_restoreChassis_text': 'Restore chassis',
         'UI_repair_restoreChassis_tooltip': '',
         'UI_repair_repairDevices_text': 'Repair devices',
         'UI_repair_repairDevices_tooltip': ''
     }
     self.data, self.i18n = g_gui.register_data(self.ids, self.data,
                                                self.i18n)
     g_gui.register(self.ids, self.template, self.data, self.apply)
     print '[LOAD_MOD]:  [%s v%s, %s]' % (self.ids, self.version,
                                          self.author)
コード例 #6
0
 def load(self):
     print '[LOAD_MOD]:  [%s v%s, %s]' % (self.ids, self.version, self.author)
     self.data, self.i18n = g_gui.register_data(self.ids, self.data, self.i18n)
コード例 #7
0
 def __init__(self):
     self.ids = 'spotted_extended_light'
     self.version = 'v4.06 (2019-05-04)'
     self.version_id = 406
     self.author = 'by spoter'
     self.data = {
         'version': self.version_id,
         'enabled': True,
         'sound': True,
         'iconSizeX': 47,
         'iconSizeY': 16,
         'soundSpotted': 'enemy_sighted_for_team',
         'soundAssist': 'gun_intuition',
         'messageColorSpotted': 10,
         'messageColorAssistRadio': 6,
         'messageColorAssistTrack': 11,
         'messageColorAssistStun': 5
     }
     self.i18n = {
         'version':
         self.version_id,
         'UI_description':
         'Spotted extended Light',
         'UI_setting_sound_text':
         'Use sound in battle',
         'UI_setting_sound_tooltip':
         '{HEADER}<font color="#FFD700">Info:</font>{/HEADER}{BODY}Configure sounds in config file: <font color="#FFD700">/mods/configs/spotted_extended_light/spotted_extended_light.json</font>'
         '{/BODY}',
         'UI_setting_iconSizeX_text':
         'Icon size X-coordinate',
         'UI_setting_iconSizeX_value':
         ' px.',
         'UI_setting_iconSizeY_text':
         'Icon size Y-coordinate',
         'UI_setting_iconSizeY_value':
         ' px.',
         'UI_setting_messageColorSpotted_text':
         'Color to message "Spotted',
         'UI_setting_messageColorSpotted_tooltip':
         '',
         'UI_setting_messageColorAssistRadio_text':
         'Color to message "Radio Hit Assist"',
         'UI_setting_messageColorAssistRadio_tooltip':
         '',
         'UI_setting_messageColorAssistTrack_text':
         'Color to message "Track Hit Assist"',
         'UI_setting_messageColorAssistTrack_tooltip':
         '',
         'UI_setting_messageColorAssistStun_text':
         'Color to message "Stun Hit Assist"',
         'UI_setting_messageColorAssistStun_tooltip':
         '',
         'UI_menu_blue':
         'Blue',
         'UI_menu_brown':
         'Brown',
         'UI_menu_chocolate':
         'Chocolate',
         'UI_menu_cornflower_blue':
         'Cornflower Blue',
         'UI_menu_cream':
         'Cream',
         'UI_menu_cyan':
         'Cyan',
         'UI_menu_emerald':
         'Emerald',
         'UI_menu_gold':
         'Gold',
         'UI_menu_green':
         'Green',
         'UI_menu_green_yellow':
         'Green Yellow',
         'UI_menu_hot_pink':
         'Hot Pink',
         'UI_menu_lime':
         'Lime',
         'UI_menu_orange':
         'Orange',
         'UI_menu_pink':
         'Pink',
         'UI_menu_purple':
         'Purple',
         'UI_menu_red':
         'Red',
         'UI_menu_wg_blur':
         'WG Blur',
         'UI_menu_wg_enemy':
         'WG Enemy',
         'UI_menu_wg_friend':
         'WG Friend',
         'UI_menu_wg_squad':
         'WG Squad',
         'UI_menu_yellow':
         'Yellow',
         'UI_menu_nice_red':
         'Nice Red',
         'UI_message_Spotted_text':
         'Spotted {vehicles}',
         'UI_message_AssistRadio_text':
         'Assist Radio:{vehicles}{damage}',
         'UI_message_AssistTrack_text':
         'Assist Track:{vehicles}{damage}',
         'UI_message_AssistStun_text':
         'Assist Stun:{vehicles}{damage}',
         'UI_message_macrosList':
         'Available macros in messages {icons}, {names}, {vehicles}, {icons_names}, {icons_vehicles}, {full}, {damage}'
     }
     self.data, self.i18n = g_gui.register_data(self.ids, self.data,
                                                self.i18n, 'spoter')
     g_gui.register(self.ids, self.template, self.data, self.apply)
     print '[LOAD_MOD]:  [%s %s, %s]' % (self.ids, self.version,
                                         self.author)
コード例 #8
0
    def __init__(self):
        self.ids = 'spotMarksMapsData'
        self.ver = 100
        self.data = {
            'version'               : self.ver,
            '_MapName'              : (
                (['ctf', 'base1', 'coordinates in (x,y,z)', (0.01, 0.01, 0.01)], ['ctf', 'base2', 'coordinates in (x,y,z)', (0.01, 0.01, 0.01)]),
                (['domination', 'base1', 'coordinates in (x,y,z)', (0.01, 0.01, 0.01)], ['domination', 'base2', 'coordinates in (x,y,z)', (0.01, 0.01, 0.01)]),
                (['assault', 'base1', 'coordinates in (x,y,z)', (0.01, 0.01, 0.01)], ['assault', 'base2', 'coordinates in (x,y,z)', (0.01, 0.01, 0.01)]),
            ),
            '01_karelia'            : (
                # 'ctf'
                ([
                     (371.917, 22.0266, -177.35),
                     (493.51, 30.6817, 70.0026),
                     (-233.433, 23.2223, 38.3076),
                     (-62.6051, 19.2882, 199.456),
                     (93.672, 22.0219, 79.9208),
                     (185.491, 39.162, 288.741),
                     (-129.531, 19.2147, 99.3572),
                     (41.7303, 19.8767, 113.237)
                 ],
                 [
                     (105.3, 23.4566, -439.695),
                     (290.918, 26.3094, -415.662),
                     (-35.4793, 21.0322, -122.507),
                     (-158.128, 20.4884, 11.6587),
                     (-318.479, 37.2686, 138.426)
                 ]),
                # ([(371.917, 22.0266, -177.35), (-38.7174, 20.6221, 3.88532), (-62.323, 21.1302, -64.2737), (-484.587, 41.6859, -39.0637), (277.149, 39.0939, 189.29), (287.932, 54.9766, 412.636), (167.194, 41.5668, 351.833)], [(-38.7174, 20.6221, 3.88532), (-62.323, 21.1302, -64.2737), (-484.587, 41.6859, -39.0637), (-485.664, 65.4323, -469.358), (-429.249, 35.6641, -152.877), (277.149, 39.0939, 189.29), (287.932, 54.9766, 412.636), (167.194, 41.5668, 351.833), (-116.654, 20.325, -22.963)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([
                     (-287.143, 32.8441, 53.257),
                     (39.9227, 26.4455, -171.349),
                     (0.919496, 20.3146, 43.3204),
                     (-277.453, 37.7346, -186.563),
                     (-484.533, 40.6582, -33.9339)
                 ],
                 [
                     (-183.915, 39.7661, -283.818),
                     (-165.707, 25.4594, -182.162),
                     (284.984, 37.8261, 183.869)
                 ])
            ),
            '02_malinovka'          : (
                # 'ctf'
                ([
                     (-305.11, 9.37727, -234.568),
                     (-16.1777, 4.78391, 26.5759),
                     (154.91, 16.3431, -37.902),
                     (139.304, 25.3862, 155.417),
                     (3.41607, 21.3172, 174.173),
                     (-27.8981, 25.5284, 255.717)
                 ], [
                     (-249.076, 9.15585, -22.349),
                     (-155.409, 10.4096, 21.397),
                     (-95.3846, 9.49698, 3.06379),
                     (-307.269, 9.35208, -230.241),
                     (-96.0581, 14.8748, 152.325),
                     (136.301, 25.4225, 160.916),
                     (496.736, 60.5611, 394.617),
                     (-27.8981, 25.5284, 255.717)
                 ]),
                # ([(-87.4027, 9.79008, -28.7285), (11.8839, 9.93128, -144.129), (-260.851, 9.77789, -405.307), (158.749, 16.6823, -27.0007), (175.761, 19.4496, 65.8675), (139.739, 25.1161, 149.679), (421.953, 55.5026, 301.764)], [(-124.134, 9.59206, 7.44205), (-90.9091, 9.82202, -27.7949), (-249.638, 9.07871, -22.1089), (-120.229, 14.4694, 157.536), (-314.215, 9.33623, -238.975), (0.0066656, 21.3506, 188.668), (133.746, 25.163, 163.649), (339.175, 55.3964, 380.807)]),
                # 'domination'
                ([
                     (302.796, 27.2025, 49.8634),
                     (139.142, 25.382, 154.773),
                     (-27.8981, 25.5284, 255.717)
                 ], [
                     (135.234, 25.3755, 161.326),
                     (-27.8981, 25.5284, 255.717)
                 ]),
                # 'assault'
                ([], [])
            ),
            '03_campania_big'       : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '04_himmelsdorf'        : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '05_prohorovka'         : (
                # 'ctf'
                ([], []),
                # ([(-344.214, 9.90543, 73.9396), (-495.056, 21.9927, 39.8306), (-461.423, 13.7267, 38.0076), (33.3768, 10.228, 39.3744), (31.4288, 10.6367, -6.57884), (326.377, 10.0794, 8.4657), (466.592, 30.7791, -102.303), (472.715, 32.018, -77.1577)], [(-338.711, 10.5767, -96.6661), (-495.83, 18.795, -125.446), (-495.534, 21.9519, 35.8387), (40.3161, 10.1472, -17.019), (208.74, 9.9951, -26.0816), (230.982, 9.70868, -64.6931), (500.084, 37.1061, -196.039)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '06_ensk'               : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '07_lakeville'          : (
                # 'ctf'
                ([], []),
                # ([(-80.069, 6.41545, 78.2053), (179.73, -4.8691, 150.418), (141.34, -4.91541, 9.93952), (134.608, -5.00138, -28.1786), (118.469, 14.0239, -367.363), (-317.537, 22.5343, -10.3654), (-344.361, 8.77602, 282.413), (17.7711, 7.2991, 369.066), (-265.335, 15.0933, 326.87)], [(-78.5001, 7.1412, -67.6482), (107.257, -4.84451, -122.466), (139.031, -4.97592, 64.8037), (-17.5822, 6.63461, 293.195), (7.99448, 8.94406, -371.503), (-317.447, 23.3271, -13.9052), (-306.809, 11.7696, -296.899), (147.594, -4.78767, -92.2459)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '08_ruinberg'           : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '10_hills'              : (
                # 'ctf'
                ([], []),
                # ([(279.34, 25.2322, 187.455), (180.673, 19.794, 216.029), (-338.968, 7.8405, -207.874), (-326.886, 12.1465, 3.33471), (29.4907, 27.6254, 110.743), (9.95471, 27.8499, 103.174)], [(74.4703, 30.1248, -76.3657), (-309.91, 10.983, -43.5275), (-241.558, 1.54507, -5.77622)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '11_murovanka'          : (
                # 'ctf'
                ([], []),
                # ([(155.623, 7.50984, 50.7796), (-445.965, 12.3073, 181.356)], [(150.473, 7.47175, 34.13), (-437.529, 14.4005, -190.919)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '13_erlenberg'          : (
                # 'ctf'
                ([], []),
                # ([(97.0585, 1.73174, -430.833), (282.857, 12.2049, 91.9694), (331.927, 20.4223, 83.8991), (484.342, 29.5171, -40.1278), (368.287, 21.9487, 103.998), (-65.5456, 0.13398, -3.66104), (7.30499, -0.181949, 131.043), (-484.654, 16.7327, -165.991), (73.3182, -0.0491436, 192.941)], [(-492.561, 18.6186, -190.137), (-279.068, 8.99187, -117.066), (199.961, 8.56291, -446.199)], [(-299.465, 11.811, 24.4044), (-41.6205, 0.0402616, 2.57273), (281.108, 12.2053, 97.6094), (309.347, 13.1147, -16.7171), (493.604, 28.479, -12.9697), (-363.021, 12.5469, 192.343), (73.3182, -0.0491436, 192.941)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])

            ),
            '14_siegfried_line'     : (
                # 'ctf'
                ([], []),
                # ([(422.836, -0.536739, -222.759), (-31.5272, -4.01621, -89.9775), (-167.013, -13.3798, -157.023)], [(-239.913, -11.1651, 176.155)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '17_munchen'            : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '18_cliff'              : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '19_monastery'          : (
                # 'ctf'
                ([], []),
                # ([], [(326.01, -4.90546, 111.441), (400.357, 15.8451, 49.8318)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '22_slough'             : (
                # 'ctf'
                ([], []),
                # ([(177.294, 5.38809, 269.203), (217.984, -3.05096, 95.3409), (-149.134, 5.96888, 109.835), (-304.599, 5.18439, 59.5462), (-94.8094, -0.0841094, -90.335)], [(39.9612, 6.30066, -197.249), (-18.8949, 6.72953, -274.144), (-108.145, -2.36425, -119.928), (199.16, 0.811627, 138.875), (337.705, -4.19894, -79.4721), (-40.4363, -0.287934, -447.344)]),
                ([], []),
                ([], [])
            ),
            '23_westfeld'           : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '28_desert'             : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '29_el_hallouf'         : (
                # 'ctf'
                ([], []),
                # ([(-486.017, 61.3318, 497.057), (-328.721, 61.5027, 489.476), (-362.563, 64.425, 494.564), (-32.2327, 7.09785, 11.9004), (-35.7119, 7.16327, 12.3836)], [(-328.721, 61.5027, 489.476), (-362.563, 64.425, 494.564), (5.33137, 21.91, -46.4244), (-162.107, 32.0237, 155.03)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '31_airfield'           : (
                # 'ctf'
                ([], []),
                # ([(-31.5241, 0.970781, -83.4666), (3.5211, -1.84615, 12.973)], [(-34.295, 0.83001, -83.2242)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '33_fjord'              : (
                # 'ctf'
                ([], []),
                # ([(135.227, 22.2955, 89.9605), (103.883, 22.457, 189.681), (109.025, 26.6079, 246.806)], [(150.602, 41.8268, 203.492), (8.75892, 19.3056, 304.72), (67.9457, 25.8051, 253.97), (-79.3051, 15.8195, 39.5272)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '34_redshire'           : (
                # 'ctf'
                ([], []),
                # ([(126.305, 7.31473, 32.6867), (161.712, 15.351, 157.482), (302.918, 21.5731, -62.1638), (322.253, 23.2771, -70.3704), (-466.862, 9.46229, -156.063), (-337.777, 14.8228, 12.9962), (-245.88, 22.7605, 10.1585)], [(102.524, 13.2774, 137.88), (144.298, 14.9232, 106.977), (332.268, 22.6426, 24.1643), (-250.12, 22.4691, 13.0845)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '35_steppes'            : (
                # 'ctf'
                ([], []),
                # ([(35.6068, 0.0675564, -46.5849), (157.85, 3.73304, 87.4139), (-176.765, 0.660691, -114.414), (242.4, 14.658, -495.36), (210.151, 16.0987, -499.737), (146.787, 16.9983, -476.356), (-12.0513, 8.34863, -368.383)], [(-98.0384, -0.0751553, 62.2948), (157.479, 3.88404, 94), (-177.38, 0.775795, -110.017), (-173.86, 10.8168, 495.924), (-251.634, 10.0065, 486.611), (-474.831, 0.864808, 10.2991)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '36_fishing_bay'        : (
                # 'ctf'
                ([], []),
                # ([(133.974, 6.85865, 49.459), (411.329, -4.12651, 191.46), (34.2371, 13.9362, 90.92), (-403.763, 19.8049, -80.2957), (-452.331, 19.5812, 164.5), (-249.521, 22.452, -197.189), (-141.295, 15.3926, -177.869)], [(-286.443, 21.6917, -189.973), (-317.546, 15.6169, -46.9166), (24.2669, 16.692, 32.2045), (419.187, -2.86265, 18.0742), (-139.118, 15.1498, -180.467)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '37_caucasus'           : (
                # 'ctf'
                ([], []),
                # ([(25.5246, 4.4959, 29.9133), (46.303, 4.23922, 38.728), (6.99784, 1.51318, 9.23373)], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '38_mannerheim_line'    : (
                # 'ctf'
                ([], []),
                # ([(128.296, 1.72147, 125.157), (-69.62, -0.294984, 176.84)], [(43.5662, -0.166392, -111.62)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '44_north_america'      : (
                # 'ctf'
                ([], []),
                # ([(-0.477468, -8.21883, -119.807), (-218.613, 1.5609, 90.1762), (-468.817, 5.25304, 117.361), (233.642, 3.67883, -298.718), (47.8273, 4.56921, -377.836)], [(78.3206, 8.92147, 250.58), (-84.8534, 1.96668, 198.953), (30.0013, -8.65191, 74.4488), (69.794, -8.0264, 39.9398), (13.7082, -8.88126, 97.9794), (363.354, 3.02559, -224.341), (441.397, -6.41367, -446.634), (484.374, 4.01481, 294.374), (360.324, 4.86011, 451.413), (43.4435, -7.88478, 51.7646)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '45_north_america'      : (
                # 'ctf'
                ([], []),
                # ([(-55.3425, -12.1103, 104.711), (-136.59, -5.01845, 55.5173), (-249.617, -9.81604, 406.878), (-175.079, -12.493, 380.689), (-153.909, -10.8438, 238.452), (-445.197, 10.5543, 497.272), (-479.813, 17.5762, 110.136), (176.157, 10.0881, -302.609), (218.58, 5.88894, -96.1802), (329.724, 18.3151, 76.5674)], [(-227.16, -2.71393, 49.6255), (-138.595, -5.02132, 52.1804), (-452.208, 10.6209, 496.119), (-116.499, -10.3102, 373.299), (-380.97, 15.3026, -115.127), (195.918, 11.1476, -306.539), (-195.735, 5.60084, -328.22)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '47_canada_a'           : (
                # 'ctf'
                ([], []),
                # ([(-34.5336, -10.4827, -37.644), (-174.666, -3.94227, -12.6122), (2.15952, -4.98555, -155.264), (332.364, -4.11723, -43.6303), (157.746, -3.54683, -397.114), (-208.535, -6.13352, -6.11681), (-362.545, -2.09773, -179.898), (-288.499, 4.8415, -326.605), (-310.364, 9.22021, -346.111), (-317.357, 9.05777, -362.333), (-142.629, -1.99022, 383.058)], [(198.336, -8.47199, 95.5213), (-94.0136, -4.74729, 228.926), (-311.123, 3.55459, 314.336), (-133.651, -7.25193, 162.553)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '59_asia_great_wall'    : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '63_tundra'             : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '73_asia_korea'         : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '83_kharkiv'            : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '84_winter'             : (
                # 'ctf'
                ([], []),
                # ([(12.4407, 6.48786, 132.69)], [(-80.9593, 7.58463, 107.072)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '86_himmelsdorf_winter' : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '90_minsk'              : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '92_stalingrad'         : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '95_lost_city'          : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '96_prohorovka_defense' : (
                # 'ctf'
                ([], []),
                # ([(-344.214, 9.90543, 73.9396), (-495.056, 21.9927, 39.8306), (-461.423, 13.7267, 38.0076), (33.3768, 10.228, 39.3744), (31.4288, 10.6367, -6.57884), (326.377, 10.0794, 8.4657), (466.592, 30.7791, -102.303), (472.715, 32.018, -77.1577)], [(-338.711, 10.5767, -96.6661), (-495.83, 18.795, -125.446), (-495.534, 21.9519, 35.8387), (40.3161, 10.1472, -17.019), (208.74, 9.9951, -26.0816), (230.982, 9.70868, -64.6931), (500.084, 37.1061, -196.039)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '99_poland'             : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '100_thepit'            : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '101_dday'              : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '103_ruinberg_winter'   : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '112_eiffel_tower_ctf'  : (
                # 'ctf'
                ([], []),
                # ([(-132.88, 6.64391, 216.893), (-228.697, 10.0129, 141.979), (-131.821, 9.18746, 16.7217), (-349.143, 7.48962, 41.3225)], [(117.16, 5.99205, 253.052), (-3.94333, -0.925388, 355.432), (73.5, 9.03571, -14.6004), (320.302, 7.79187, 50.6466), (215.655, 9.8497, 139.428)]),
                # 'domination'
                ([], []),
                # 'assault'
                ([], [])
            ),
            '114_czech'             : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '115_sweden'            : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '208_bf_epic_normandy'  : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '212_epic_random_valley': (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '217_er_alaska'         : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),
            '222_er_clime'          : (
                # 'ctf'
                ([], []),
                # 'domination'
                ([], []),
                # 'assault'
                ([], []),
            ),

        }
        self.data = g_gui.register_data(self.ids, self.data, {}, 'spoter')[0]
コード例 #9
0
 def __init__(self):
     self.ids = 'chatInfo'
     self.version = 'v1.05 (2019-02-13)'
     self.version_id = 105
     self.author = 'by spoter'
     self.data = {
         'version': self.version_id,
         'enabled': True,
         'newbieDays': 30,
         'newbieWinRate': 46.0,
         'twinkBattles': 5.0,
         'showNewbie': True,
         'showTwink': True,
         'showWinRate': True,
         'showBattles': True,
         'colorNewbie': 11,
         'colorNewbieSpammer': 23,
         'colorTwink': 6,
         'colorTwinkSpammer': 23
     }
     self.i18n = {
         'version': self.version_id,
         'UI_description': 'Chat Info',
         'UI_setting_showNewbie_text': 'Show Newbie status in chat',
         'UI_setting_showNewbie_tooltip':
         '{HEADER}<font color="#FFD700">Info:</font>{/HEADER}{BODY}Newbie status:\n<font color="#FFD700">low played days\nlow winRate</font>{/BODY}',
         'UI_setting_showWinRate_text': 'Show winRate to user in chat',
         'UI_setting_showWinRate_tooltip': '',
         'UI_setting_showTwink_text': 'Show Twink status in chat',
         'UI_setting_showTwink_tooltip':
         '{HEADER}<font color="#FFD700">Info:</font>{/HEADER}{BODY}Twink status:\n<font color="#FFD700">low played battles</font>{/BODY}',
         'UI_setting_showBattles_text': 'Show Battles to user in chat',
         'UI_setting_showBattles_tooltip': '',
         'UI_setting_newbieDays_text': 'How long is a newbie',
         'UI_setting_newbieDays_value': ' day\'s',
         'UI_setting_newbieWinRate_text': 'Newbie winRate status',
         'UI_setting_newbieWinRate_value': '%',
         'UI_setting_twinkBattles_text': 'Twink battles status',
         'UI_setting_twinkBattles_value': 'k',
         'UI_setting_colorNewbie_text': 'Newbie Color in chat',
         'UI_setting_colorNewbie_tooltip': '',
         'UI_setting_colorNewbieSpammer_text':
         'Newbie Spammer Color in chat',
         'UI_setting_colorNewbieSpammer_tooltip':
         '{HEADER}<font color="#FFD700">Info:</font>{/HEADER}{BODY}Spammer status:\n<font color="#FFD700">0% WinRate</font>{/BODY}',
         'UI_setting_colorTwink_text': 'Twink Color in chat',
         'UI_setting_colorTwink_tooltip': '',
         'UI_setting_colorTwinkSpammer_text': 'Twink Spammer Color in chat',
         'UI_setting_colorTwinkSpammer_tooltip':
         '{HEADER}<font color="#FFD700">Info:</font>{/HEADER}{BODY}Spammer status:\n<font color="#FFD700">0% WinRate</font>{/BODY}',
         'UI_chat_winRate': '[{winRate}]',
         'UI_chat_battles': '[{battles}]',
         'UI_color_blue': 'Blue',
         'UI_color_brown': 'Brown',
         'UI_color_chocolate': 'Chocolate',
         'UI_color_cornflower_blue': 'Cornflower Blue',
         'UI_color_cream': 'Cream',
         'UI_color_cyan': 'Cyan',
         'UI_color_emerald': 'Emerald',
         'UI_color_gold': 'Gold',
         'UI_color_green': 'Green',
         'UI_color_green_yellow': 'Green Yellow',
         'UI_color_hot_pink': 'Hot Pink',
         'UI_color_lime': 'Lime',
         'UI_color_orange': 'Orange',
         'UI_color_pink': 'Pink',
         'UI_color_purple': 'Purple',
         'UI_color_red': 'Red',
         'UI_color_wg_blur': 'WG Blur',
         'UI_color_wg_enemy': 'WG Enemy',
         'UI_color_wg_friend': 'WG Friend',
         'UI_color_wg_squad': 'WG Squad',
         'UI_color_yellow': 'Yellow',
         'UI_color_nice_red': 'Nice Red',
         'UI_color_very_bad': 'Very bad rating',
         'UI_color_bad': 'Bad rating',
         'UI_color_normal': 'Normal rating',
         'UI_color_good': 'Good rating',
         'UI_color_very_good': 'Very good rating',
         'UI_color_unique': 'Unique rating'
     }
     self.data, self.i18n = g_gui.register_data(self.ids, self.data,
                                                self.i18n, 'spoter')
     g_gui.register(self.ids, self.template, self.data, self.apply)
     print '[LOAD_MOD]:  [%s %s, %s]' % (self.ids, self.version,
                                         self.author)
コード例 #10
0
 def __init__(self):
     self.ids = 'bookmarks'
     self.version = 'v1.01 (2018-05-29)'
     self.version_id = 101
     self.author = 'by spoter'
     self.data = {
         'version'  : self.version_id,
         'enabled'  : True,
         'showLiked': True,
         'showMods' : True,
         'showStats': True,
         'showNews' : True,
         'showBlog' : True,
         'liked'    : [
             ['Канал Вспышки', 'https://www.youtube.com/user/VspishkaArm/videos'],
             ['Канал ТоТ СаМый CEZAR', 'https://www.youtube.com/user/UC1HLYmxSmpQ_plKZw6QNwfg/videos'],
             ['Канал KorbenDallas', 'https://www.youtube.com/user/UCHJUP0eG8AiejFG_xkJGbRA/videos'],
             ['Всё актуальное и самое важное о мире Танков.', 'http://vk.com/wotclue'],
         ],
         'mods'     : [
             ['wotspeak.ru', 'http://wotspeak.ru'],
             ['wotsite.net', 'http://wotsite.net'],
             ['wgmods.net', 'https://wgmods.net'],
             ['aces.gg', 'http://aces.gg/mods/'],
             ['res-mods.ru', 'http://res-mods.ru']
         ],
         'stats'    : [
             ['kttc.ru', 'https://kttc.ru/wot/ru/user/{}'],
             ['wot-news.com', 'http://wot-news.com/stat/nstat/ru/ru/{}'],
             ['noobmeter.com', 'http://www.noobmeter.com/player/ru/{}'],
             ['wotomatic.net ', 'http://wotomatic.net/?search={}']
         ],
         'news'     : [
             ['Новости World of Tanks каждый день', 'http://wot-news.com'],
             ['Новости WoT на официальном сайте', 'http://worldoftanks.ru/ru/news/'],
             ['Всё актуальное и самое важное о мире Танков.', 'http://vk.com/wotclue'],
             ['Последняя информация о будущих обновлениях', 'http://vk.com/wotleaks'],
         ],
         'blog'     : [
             ['Канал Вспышки', 'https://www.youtube.com/user/VspishkaArm/videos'],
             ['Канал Near_You', 'https://www.youtube.com/user/alexeykuchkin/videos'],
             ['Канал ТоТ СаМый CEZAR', 'https://www.youtube.com/channel/UC1HLYmxSmpQ_plKZw6QNwfg/videos'],
             ['Канал KorbenDallas', 'https://www.youtube.com/channel/UCHJUP0eG8AiejFG_xkJGbRA/videos'],
             ['Канал G1deon', 'https://www.youtube.com/user/gdwintmn/videos'],
             ['Канал GrimOptimist', 'https://www.youtube.com/user/dmitryamba/videos'],
             ['Канал jmr WoT', 'https://www.youtube.com/user/JMRWoT/videos'],
             ['Канал Fermani WoT', 'https://www.youtube.com/user/fermani1/videos'],
             ['Канал Rados23 K.R.S', 'https://www.youtube.com/channel/UCohZi_kki3pz_p9wSAXeGzg/videos'],
             ['Канал Amway921', 'https://www.youtube.com/user/Amway921WOT/videos'],
             ['Канал DeSeRtod', 'https://www.youtube.com/user/DeSeRtodTV/videos'],
             ['Канал Arti25', 'https://www.youtube.com/user/TheArti25/videos'],
             ['Канал EviL_GrannY', 'https://www.youtube.com/channel/UCIIOIYlkNb6vFftQV-nUhDQ/videos'],
         ]
     }
     self.i18n = {
         'version'                     : self.version_id,
         'UI_description'              : 'Bookmarks',
         'UI_setting_showLiked_text'   : 'Show Liked site bookmarks',
         'UI_setting_showLiked_tooltip': '',
         'UI_setting_showMods_text'    : 'Show Mods site bookmarks',
         'UI_setting_showMods_tooltip' : '',
         'UI_setting_showStats_text'   : 'Show Statistics site bookmarks',
         'UI_setting_showStats_tooltip': '',
         'UI_setting_showNews_text'    : 'Show News site bookmarks',
         'UI_setting_showNews_tooltip' : '',
         'UI_setting_showBlog_text'    : 'Show Blog Bookmarks',
         'UI_setting_showBlog_tooltip' : '',
         'UI_setting_config_text'      : 'Links list in config: /mods/configs/bookmarks/bookmarks.json',
         'UI_setting_config_tooltip'   : '',
         'UI_setting_message_liked'    : 'Liked site bookmarks',
         'UI_setting_message_mods'     : 'Mods site bookmarks',
         'UI_setting_message_stats'    : 'Statistics site bookmarks',
         'UI_setting_message_news'     : 'News site bookmarks',
         'UI_setting_message_blog'     : 'Blog Bookmarks',
     }
     self.data, self.i18n = g_gui.register_data(self.ids, self.data, self.i18n, 'spoter')
     g_gui.register(self.ids, self.template, self.data, self.apply)
     print '[LOAD_MOD]:  [%s %s, %s]' % (self.ids, self.version, self.author)
コード例 #11
0
 def __init__(self):
     self.ids = 'insigniaMonitor'
     self.version = 'v1.01 (2019-08-23)'
     self.version_id = 101
     self.author = 'by spoter'
     self.data = {
         'version': self.version_id,
         'enabled': True,
         'panelSuccess': {
             'x': 1260,
             'y': -900,
             'width': 163,
             'height': 50,
             'drag': True,
             'border': True,
             'alignX': COMPONENT_ALIGN.LEFT,
             'alignY': COMPONENT_ALIGN.BOTTOM
         },
         'panelConditions': {
             'x': 650,
             'y': -300,
             'width': 163,
             'height': 50,
             'drag': True,
             'border': True,
             'alignX': COMPONENT_ALIGN.LEFT,
             'alignY': COMPONENT_ALIGN.BOTTOM
         },
         'shadowText': {
             'distance': 0,
             'angle': 0,
             'color': 0x000000,
             "alpha": 1,
             'blurX': 1,
             'blurY': 1,
             'strength': 1,
             'quality': 1
         },
         'font': '$IMELanguageBar',
         'fontSize': 10,
         'fontColor': '#FFFFFF',
     }
     self.i18n = {
         'version':
         self.version_id,
         'UI_description':
         'insignia monitor',
         'minDetections':
         '<img src=\"img://gui/maps/mod_insigniaMonitor/conditions/condition_assist.png\" vspace=\"-6\" width=\"10\" height=\"10\" />',
         'minFrags':
         '<img src=\"img://gui/maps/mod_insigniaMonitor/conditions/condition_kill_vehicles.png\" vspace=\"-6\" width=\"10\" height=\"10\" />',
         'scout':
         '<img src=\"img://gui/maps/mod_insigniaMonitor/insignia/scout.png\" width=\"32\" height=\"32\"/>',
         'scout_success':
         '<img src=\"img://gui/maps/mod_insigniaMonitor/insignia/scout.png\"/>',
         'warrior':
         '<img src=\"img://gui/maps/mod_insigniaMonitor/insignia/warrior.png\" width=\"32\" height=\"32\"/>',
         'warrior_success':
         '<img src=\"img://gui/maps/mod_insigniaMonitor/insignia/warrior.png\"/>',
     }
     self.data, self.i18n = g_gui.register_data(self.ids, self.data,
                                                self.i18n, 'spoter')
     g_gui.register(self.ids, self.template, self.data, self.apply)
     print '[LOAD_MOD]:  [%s %s, %s]' % (self.ids, self.version,
                                         self.author)
コード例 #12
0
    def __init__(self):
        self.ids = 'steelHunterAutoUpgrades2020'
        self.author = 'by spoter'
        self.version = 'v1.10 (2020-09-22)'
        self.version_id = 110
        self.versionI18n = 110
        lang = getLanguageCode().lower()
        self.data = {
            'version'                 : self.version_id,
            'enabled'                 : True,
            'autoUpgrade': True,
            'showLoot3D': True,
            'selected_Varyag'         : 4,
            'selected_Walkure'        : 4,
            'selected_Raven'          : 9,
            'selected_Arlequin'       : 8,
            'selected_Harbinger_Mk_IV': 7,
            'Varyag'                  : [
                ['UI_Varyag_DPM_HP', 1, 1, 2, 2, 2, 1],  # DPM HP
                ['UI_Varyag_DPM_Armor', 1, 1, 2, 1, 1, 1],  # DPM Armor
                ['UI_Varyag_Double_Gun_HP', 1, 1, 1, 2, 2, 2],  # Double Gun HP
                ['UI_Varyag_Double_Gun_Armor', 1, 1, 1, 1, 1, 2],  # Double Gun Armor
                ['UI_Varyag_DPS_HP', 1, 1, 2, 2, 2, 3],  # DPS HP
                ['UI_Varyag_DPS_Armor', 1, 1, 2, 1, 2, 3],  # DPS Armor
            ],
            'Walkure'                 : [
                ['UI_Walkure_Machine_Gun_HP', 1, 1, 1, 2, 2, 1],  # Machine Gun HP
                ['UI_Walkure_Machine_Gun_Armor', 1, 1, 1, 1, 1, 1],  # Machine Gun Armor
                ['UI_Walkure_DPM_HP', 1, 1, 1, 2, 2, 2],  # DPM HP
                ['UI_Walkure_DPM_Armor', 1, 1, 1, 1, 1, 2],  # DPM Armor
                ['UI_Walkure_DPS_HP', 1, 1, 1, 2, 2, 3],  # DPS HP
                ['UI_Walkure_DPS_Armor', 1, 1, 1, 1, 2, 3],  # DPS Armor
            ],
            'Raven'                   : [
                ['UI_Raven_DPM_Rotation', 1, 2, 2, 2, 1, 1],  # DPM Rotation
                ['UI_Raven_DPM_Mobility', 1, 2, 2, 1, 1, 1],  # DPM Mobility
                ['UI_Raven_DPM_Armor', 1, 2, 2, 2, 2, 1],  # DPM Armor
                ['UI_Raven_Magazine_Rotation', 1, 2, 1, 2, 1, 2],  # Magazine Rotation
                ['UI_Raven_Magazine_Mobility', 1, 2, 1, 1, 1, 2],  # Magazine Mobility
                ['UI_Raven_Magazine_Speed_Mobility', 1, 1, 1, 1, 1, 2],  # Magazine Speed Mobility
                ['UI_Raven_Magazine_Armor', 1, 2, 1, 2, 2, 2],  # Magazine Armor
                ['UI_Raven_DPS_Mobility', 1, 2, 1, 1, 2, 3],  # DPS Mobility
                ['UI_Raven_DPS_Speed_Mobility', 1, 1, 1, 1, 2, 3],  # DPS Speed Mobility
                ['UI_Raven_DPS_Armor', 1, 2, 1, 2, 2, 3],  # DPS Armor
            ],
            'Arlequin'                : [
                ['UI_Arlequin_Machine_Gun_Dynamics', 1, 2, 2, 1, 1, 1],  # Dynamics Machine Gun
                ['UI_Arlequin_Machine_Gun_Speed_Mobility', 1, 1, 2, 1, 1, 1],  # Speed Mobility Machine Gun
                ['UI_Arlequin_Machine_Gun_HP', 1, 2, 2, 2, 2, 1],  # Machine Gun HP
                ['UI_Arlequin_Double_Gun_Dynamics', 1, 2, 1, 1, 1, 2],  # Double Gun Dynamics
                ['UI_Arlequin_Double_Gun_Speed_Mobility', 1, 1, 1, 1, 1, 2],  # Double Gun Speed Mobility
                ['UI_Arlequin_Double_Gun_HP', 1, 2, 1, 2, 2, 2],  # Double Gun HP
                ['UI_Arlequin_HE_Dynamics', 1, 2, 2, 1, 2, 3],  # HE Dynamics
                ['UI_Arlequin_HE_Speed_Mobility', 1, 1, 2, 1, 2, 3],  # HE Speed Mobility
                ['UI_Arlequin_HE_HP', 1, 2, 2, 2, 2, 3],  # HP HE
            ],
            'Harbinger_Mk_IV'         : [
                ['UI_Harbinger_Mk_IV_DPM_Rotation', 1, 2, 1, 2, 1, 1],  # DPM Rotation
                ['UI_Harbinger_Mk_IV_DPM_Mobility', 1, 2, 1, 1, 1, 1],  # DPM Mobility
                ['UI_Harbinger_Mk_IV_DPM_Armor', 1, 2, 1, 2, 2, 1],  # DPM Armor
                ['UI_Harbinger_Mk_IV_Autoreloader_Rotation', 1, 2, 1, 2, 1, 2],  # Rotation Autoreloader
                ['UI_Harbinger_Mk_IV_Autoreloader_Mobility', 1, 2, 1, 1, 1, 2],  # Mobility Autoreloader
                ['UI_Harbinger_Mk_IV_Autoreloader_Speed_Mobility', 1, 1, 1, 1, 1, 2],  # Speed Mobility Autoreloader
                ['UI_Harbinger_Mk_IV_Autoreloader_Armor', 1, 2, 1, 2, 2, 2],  # Armor Autoreloader
                ['UI_Harbinger_Mk_IV_DPS_Mobility', 1, 2, 1, 1, 2, 3],  # Mobility DPS
                ['UI_Harbinger_Mk_IV_DPS_Speed_Mobility', 1, 1, 1, 1, 2, 3],  # Speed Mobility DPS
                ['UI_Harbinger_Mk_IV_DPS_Armor', 1, 2, 1, 2, 2, 3],  # DPS Armor
            ]
        }
        self.i18n = {
            'version'                                       : self.versionI18n,
            'UI_name'                                       : 'Steel Hunter Auto Upgrades 2020',
            'UI_battleMessage'                              : 'Auto select %s Upgrade to level %s',
            'UI_Varyag_description'                         : 'Varyag',
            'UI_Walkure_description'                        : 'Walkure',
            'UI_Raven_description'                          : 'Raven',
            'UI_Arlequin_description'                       : 'Arlequin',
            'UI_Harbinger_Mk_IV_description'                : 'Harbinger Mk. IV',

            'UI_Varyag_DPM_HP'                              : 'DPM HP [1, 1, 2, 2, 2, 1]',
            'UI_Varyag_DPM_Armor'                           : 'DPM Armor [1, 1, 2, 1, 1, 1]',
            'UI_Varyag_Double_Gun_HP'                       : 'Double Gun HP [1, 1, 1, 2, 2, 2]',
            'UI_Varyag_Double_Gun_Armor'                    : 'Double Gun Armor [1, 1, 1, 1, 1, 2]',
            'UI_Varyag_DPS_HP'                              : 'DPS HP [1, 1, 2, 2, 2, 3]',
            'UI_Varyag_DPS_Armor'                           : 'DPS Armor [1, 1, 2, 1, 2, 3]',

            'UI_Walkure_Machine_Gun_HP'                     : 'Machine Gun HP [1, 1, 1, 2, 2, 1]',
            'UI_Walkure_Machine_Gun_Armor'                  : 'Machine Gun Armor [1, 1, 1, 1, 1, 1]',
            'UI_Walkure_DPM_HP'                             : 'DPM HP [1, 1, 1, 2, 2, 2]',
            'UI_Walkure_DPM_Armor'                          : 'DPM Armor [1, 1, 1, 1, 1, 2]',
            'UI_Walkure_DPS_HP'                             : 'DPS HP [1, 1, 1, 2, 2, 3]',
            'UI_Walkure_DPS_Armor'                          : 'DPS Armor [1, 1, 1, 1, 2, 3]',

            'UI_Raven_DPM_Rotation'                         : 'DPM Rotation [1, 2, 2, 2, 1, 1]',
            'UI_Raven_DPM_Mobility'                         : 'DPM Mobility [1, 2, 2, 1, 1, 1]',
            'UI_Raven_DPM_Armor'                            : 'DPM Armor [1, 2, 2, 2, 2, 1]',
            'UI_Raven_Magazine_Rotation'                    : 'Magazine Rotation [1, 2, 1, 2, 1, 2]',
            'UI_Raven_Magazine_Mobility'                    : 'Magazine Mobility [1, 2, 1, 1, 1, 2]',
            'UI_Raven_Magazine_Speed_Mobility'              : 'Magazine Speed Mobility [1, 1, 1, 1, 1, 2]',
            'UI_Raven_Magazine_Armor'                       : 'Magazine Armor [1, 2, 1, 2, 2, 2]',
            'UI_Raven_DPS_Mobility'                         : 'DPS Mobility [1, 2, 1, 1, 2, 3]',
            'UI_Raven_DPS_Speed_Mobility'                   : 'DPS Speed Mobility [1, 1, 1, 1, 2, 3]',
            'UI_Raven_DPS_Armor'                            : 'DPS Armor [1, 2, 1, 2, 2, 3]',

            'UI_Arlequin_Machine_Gun_Dynamics'              : 'Machine Gun Dynamics [1, 2, 2, 1, 1, 1]',
            'UI_Arlequin_Machine_Gun_Speed_Mobility'        : 'Machine Gun Speed Mobility [1, 1, 2, 1, 1, 1]',
            'UI_Arlequin_Machine_Gun_HP'                    : 'Machine Gun HP [1, 2, 2, 2, 2, 1]',
            'UI_Arlequin_Double_Gun_Dynamics'               : 'Double Gun Dynamics [1, 2, 1, 1, 1, 2]',
            'UI_Arlequin_Double_Gun_Speed_Mobility'         : 'Double Gun Speed Mobility [1, 1, 1, 1, 1, 2]',
            'UI_Arlequin_Double_Gun_HP'                     : 'Double Gun HP [1, 2, 1, 2, 2, 2]',
            'UI_Arlequin_HE_Dynamics'                       : 'HE Dynamics [1, 2, 2, 1, 2, 3]',
            'UI_Arlequin_HE_Speed_Mobility'                 : 'HE Speed Mobility [1, 1, 2, 1, 2, 3]',
            'UI_Arlequin_HE_HP'                             : 'HE HP [1, 2, 2, 2, 2, 3]',

            'UI_Harbinger_Mk_IV_DPM_Rotation'               : 'DPM Rotation [1, 2, 1, 2, 1, 1]',
            'UI_Harbinger_Mk_IV_DPM_Mobility'               : 'DPM Mobility [1, 2, 1, 1, 1, 1]',
            'UI_Harbinger_Mk_IV_DPM_Armor'                  : 'DPM Armor [1, 2, 1, 2, 2, 1]',
            'UI_Harbinger_Mk_IV_Autoreloader_Rotation'      : 'Autoreloader Rotation [1, 2, 1, 2, 1, 2]',
            'UI_Harbinger_Mk_IV_Autoreloader_Mobility'      : 'Autoreloader Mobility [1, 2, 1, 1, 1, 2]',
            'UI_Harbinger_Mk_IV_Autoreloader_Speed_Mobility': 'Autoreloader Speed Mobility [1, 1, 1, 1, 1, 2]',
            'UI_Harbinger_Mk_IV_Autoreloader_Armor'         : 'Autoreloader Armor [1, 2, 1, 2, 2, 2]',
            'UI_Harbinger_Mk_IV_DPS_Mobility'               : 'DPS Mobility [1, 2, 1, 1, 2, 3]',
            'UI_Harbinger_Mk_IV_DPS_Speed_Mobility'         : 'DPS Speed Mobility [1, 1, 1, 1, 2, 3]',
            'UI_Harbinger_Mk_IV_DPS_Armor'                  : 'DPS Armor [1, 2, 1, 2, 2, 3]',
            'UI_autoUpgrade_text' : 'Auto-upgrades vehicle in Steel Hunter battle',
            'UI_autoUpgrade_tooltip': '',
            'UI_showLoot3D_text'   : 'Show 3D loot marker, after press Radar button',
            'UI_showLoot3D_tooltip': '',

        }
        if 'ru' in lang:
            self.i18n.update({
                'UI_name'                                       : 'Стальной Охотник Авто Улучшения 2020',
                'UI_Varyag_description'                         : 'Варяг',
                'UI_battleMessage'                              : 'Авто выбор %s Улучшения для уровня %s',
                'UI_Varyag_DPM_HP'                              : 'Уроний в ХП [1, 1, 2, 2, 2, 1]',
                'UI_Varyag_DPM_Armor'                           : 'Уроний в броню [1, 1, 2, 1, 1, 1]',
                'UI_Varyag_Double_Gun_HP'                       : 'Шотган в ХП [1, 1, 1, 2, 2, 2]',
                'UI_Varyag_Double_Gun_Armor'                    : 'Шотган в броню [1, 1, 1, 1, 1, 2]',
                'UI_Varyag_DPS_HP'                              : 'Скорострелка в ХП [1, 1, 2, 2, 2, 3]',
                'UI_Varyag_DPS_Armor'                           : 'Скорострелка в броню [1, 1, 2, 1, 2, 3]',

                'UI_Walkure_Machine_Gun_HP'                     : 'Барабан в ХП [1, 1, 1, 2, 2, 1]',
                'UI_Walkure_Machine_Gun_Armor'                  : 'Барабан в броню [1, 1, 1, 1, 1, 1]',
                'UI_Walkure_DPM_HP'                             : 'Уроний в ХП [1, 1, 1, 2, 2, 2]',
                'UI_Walkure_DPM_Armor'                          : 'Уроний в броню [1, 1, 1, 1, 1, 2]',
                'UI_Walkure_DPS_HP'                             : 'Скорострелка в ХП [1, 1, 1, 2, 2, 3]',
                'UI_Walkure_DPS_Armor'                          : 'Скорострелка в броню [1, 1, 1, 1, 2, 3]',

                'UI_Raven_DPM_Rotation'                         : 'Уроний в вёрткость [1, 2, 2, 2, 1, 1]',
                'UI_Raven_DPM_Mobility'                         : 'Уроний в подвижность [1, 2, 2, 1, 1, 1]',
                'UI_Raven_DPM_Armor'                            : 'Уроний в броню [1, 2, 2, 2, 2, 1]',
                'UI_Raven_Magazine_Rotation'                    : 'Барабан в вёрткость [1, 2, 1, 2, 1, 2]',
                'UI_Raven_Magazine_Mobility'                    : 'Барабан в подвижность [1, 2, 1, 1, 1, 2]',
                'UI_Raven_Magazine_Speed_Mobility'              : 'Барабан в скорость [1, 1, 1, 1, 1, 2]',
                'UI_Raven_Magazine_Armor'                       : 'Барабан в броню [1, 2, 1, 2, 2, 2]',
                'UI_Raven_DPS_Mobility'                         : 'Скорострелка в подвижность [1, 2, 1, 1, 2, 3]',
                'UI_Raven_DPS_Speed_Mobility'                   : 'Скорострелка в скорость [1, 1, 1, 1, 2, 3]',
                'UI_Raven_DPS_Armor'                            : 'Скорострелка в броню [1, 2, 1, 2, 2, 3]',

                'UI_Arlequin_Machine_Gun_Dynamics'              : 'Барабан в подвижность [1, 2, 2, 1, 1, 1]',
                'UI_Arlequin_Machine_Gun_Speed_Mobility'        : 'Барабан в скорость [1, 1, 2, 1, 1, 1]',
                'UI_Arlequin_Machine_Gun_HP'                    : 'Барабан в ХП [1, 2, 2, 2, 2, 1]',
                'UI_Arlequin_Double_Gun_Dynamics'               : 'Шотган в подвижность [1, 2, 1, 1, 1, 2]',
                'UI_Arlequin_Double_Gun_Speed_Mobility'         : 'Шотган в скорость [1, 1, 1, 1, 1, 2]',
                'UI_Arlequin_Double_Gun_HP'                     : 'Шотган в ХП [1, 2, 1, 2, 2, 2]',
                'UI_Arlequin_HE_Dynamics'                       : 'Фугаска в подвижность [1, 2, 2, 1, 2, 3]',
                'UI_Arlequin_HE_Speed_Mobility'                 : 'Фугаска в скорость [1, 1, 2, 1, 2, 3]',
                'UI_Arlequin_HE_HP'                             : 'Фугаска в ХП [1, 2, 2, 2, 2, 3]',

                'UI_Harbinger_Mk_IV_DPM_Rotation'               : 'Уроний вёрткость [1, 2, 1, 2, 1, 1]',
                'UI_Harbinger_Mk_IV_DPM_Mobility'               : 'Уроний в подвижность [1, 2, 1, 1, 1, 1]',
                'UI_Harbinger_Mk_IV_DPM_Armor'                  : 'Уроний в броню [1, 2, 1, 2, 2, 1]',
                'UI_Harbinger_Mk_IV_Autoreloader_Rotation'      : 'Барабан вёрткость [1, 2, 1, 2, 1, 2]',
                'UI_Harbinger_Mk_IV_Autoreloader_Mobility'      : 'Барабан подвижность [1, 2, 1, 1, 1, 2]',
                'UI_Harbinger_Mk_IV_Autoreloader_Speed_Mobility': 'Барабан в скорость [1, 1, 1, 1, 1, 2]',
                'UI_Harbinger_Mk_IV_Autoreloader_Armor'         : 'Барабан в броню [1, 2, 1, 2, 2, 2]',
                'UI_Harbinger_Mk_IV_DPS_Mobility'               : 'Скорострелка в подвижность [1, 2, 1, 1, 2, 3]',
                'UI_Harbinger_Mk_IV_DPS_Speed_Mobility'         : 'Скорострелка в скорость [1, 1, 1, 1, 2, 3]',
                'UI_Harbinger_Mk_IV_DPS_Armor'                  : 'Скорострелка в броню [1, 2, 1, 2, 2, 3]',
                'UI_autoUpgrade_text'   : 'Авто улучшение танка в бою, режим Стальной Охотник',
                'UI_autoUpgrade_tooltip': '',
                'UI_showLoot3D_text'    : 'Показывать 3d маркер лута, после нажатия кнопки Радар',
                'UI_showLoot3D_tooltip' : '',
            })

        self.data, self.i18n = g_gui.register_data(self.ids, self.data, self.i18n, 'spoter')
        g_gui.register(self.ids, self.template, self.data, self.apply)
        print '[LOAD_MOD]:  [%s %s, %s]' % (self.ids, self.version, self.author)