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

comparisonGridUtil.py (410B)


      1 #Embedded file name: C:\BuildAgent\work\20d73f1b24eed06e\eve\release\V24.01\eve\client\script\ui\comparison\comparisonGridUtil.py
      2 NUM_TYPES_COMPACT = 5
      3 
      4 def is_compact(num_types):
      5     return num_types >= NUM_TYPES_COMPACT
      6 
      7 
      8 def get_icon_size(num_types):
      9     if is_compact(num_types):
     10         return 32
     11     return 64
     12 
     13 
     14 def get_max_column_width(_is_compact):
     15     if _is_compact:
     16         return 90
     17     return 120