예제 #1
0
 def GetSecurityLabel(self):
     securityStatus = sm.GetService('map').GetSecurityStatus(
         self.jobData.solarSystemID)
     sec, col = FmtSystemSecStatus(securityStatus, 1)
     col.a = 1.0
     color = StrFromColor(col)
     return '<color=%s>%s</color>' % (color, sec)
예제 #2
0
 def GetSystemNameText(self, solarSystemID):
     solarSystemName = GetByLabel(
         'UI/Contracts/ContractsWindow/ShowInfoLink',
         showInfoName=cfg.evelocations.Get(solarSystemID).name,
         info=('showinfo', const.groupSolarSystem, solarSystemID))
     sec, col = FmtSystemSecStatus(
         self.mapSvc.GetSecurityStatus(solarSystemID), 1)
     col.a = 1.0
     color = StrFromColor(col)
     text = '<color=%s>%s</color> %s' % (color, sec, solarSystemName)
     return text
예제 #3
0
 def GetSecurityWithColor(self):
     sec, col = FmtSystemSecStatus(self.GetSecurity(), 1)
     col.a = 1.0
     color = StrFromColor(col)
     return '<color=%s>%s</color>' % (color, sec)