NovaBryan/EVE_Dump
Log | Files | 📦 下载最新源码 (.zip) | Refs | README

publicQaToolsClient.py (2096B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\util\publicQaToolsClient.py
      2 import blue
      3 from carbon.common.script.sys.service import Service
      4 from eve.client.script.ui.shared.moveMeWindow import MoveMeWnd
      5 from eveexceptions import UserError
      6 from player_messaging.client.ui_message import prompt_player_fsd_dialog
      7 
      8 class PublicQaToolsClient(Service):
      9     __exportedcalls__ = {}
     10     __guid__ = 'svc.publicQaToolsClient'
     11     __servicename__ = 'publicQaToolsClient'
     12     __displayname__ = 'Public QA Tools Client'
     13     __dependencies__ = []
     14     __notifyevents__ = ['OnMoveMeLocations']
     15     allowedSlashCommands = ['/moveme',
     16      '/copyskills',
     17      '/copyships',
     18      '/boostsov',
     19      '/booststandings',
     20      '/giveitem',
     21      '/shipcloak',
     22      '/shipuncloak',
     23      '/mycharid',
     24      '/giveallskills',
     25      '/givetesteventskills',
     26      '/omega',
     27      '/alpha',
     28      '/completeextraction']
     29 
     30     def MoveMeTo(self, destination, *args):
     31         try:
     32             sm.GetService('sessionMgr').PerformSessionChange('MoveMeTo', sm.RemoteSvc('publicQaToolsServer').MoveMeTo, destination)
     33         except UserError as e:
     34             if e.msg == 'SystemCheck_TransferFailed_Loading':
     35                 prompt_player_fsd_dialog('CustomNotify', {'notify': 'Spooling up system. Please wait.'})
     36                 blue.pyos.synchro.SleepSim(10000)
     37                 sm.GetService('sessionMgr').PerformSessionChange('MoveMeTo', sm.RemoteSvc('publicQaToolsServer').MoveMeTo, destination)
     38             else:
     39                 raise
     40 
     41     def SlashCmd(self, commandLine):
     42         sm.RemoteSvc('publicQaToolsServer').SlashCmd(commandLine)
     43 
     44     def CommandAllowed(self, commandLine):
     45         commandLine = commandLine.lower()
     46         for command in self.allowedSlashCommands:
     47             if commandLine.startswith(command):
     48                 return True
     49 
     50         return False
     51 
     52     def CanGiveItemForMultifit(self):
     53         return sm.RemoteSvc('publicQaToolsServer').CanGiveItemForMultifit()
     54 
     55     def OnMoveMeLocations(self, solarsystems):
     56         MoveMeWnd.Open(solarSystems=solarsystems)