A corporation manager and dashboard for EVE Online
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 
 
 

51 lignes
1.2 KiB

  1. # -*- coding: utf-8 -*-
  2. __all__ = ["ImageServer"]
  3. class ImageServer:
  4. def __init__(self):
  5. self._url = "https://imageserver.eveonline.com/"
  6. @property
  7. def alliance_widths(self):
  8. return [32, 64, 128]
  9. @property
  10. def corp_widths(self):
  11. return [32, 64, 128, 256]
  12. @property
  13. def character_widths(self):
  14. return [32, 64, 128, 256, 512, 1024]
  15. @property
  16. def faction_widths(self):
  17. return [32, 64, 128]
  18. @property
  19. def inventory_widths(self):
  20. return [32, 64]
  21. @property
  22. def render_widths(self):
  23. return [32, 64, 128, 256, 512]
  24. def alliance(self, id, width):
  25. return self._url + "Alliance/{}_{}.png".format(id, width)
  26. def corp(self, id, width):
  27. return self._url + "Corporation/{}_{}.png".format(id, width)
  28. def character(self, id, width):
  29. return self._url + "Character/{}_{}.jpg".format(id, width)
  30. def faction(self, id, width):
  31. return self._url + "Alliance/{}_{}.jpg".format(id, width)
  32. def inventory(self, id, width):
  33. return self._url + "Type/{}_{}.jpg".format(id, width)
  34. def render(self, id, width):
  35. return self._url + "Render/{}_{}.jpg".format(id, width)