def getGateLineWidth(owner): if owner == OID_NONE: return 1 rel = min(REL_UNDEF,client.getRelationTo(owner)) if rel == 1250: return 2 return 1
def getGateLineWidth(owner): if owner == Const.OID_NONE: return 1 rel = min(Const.REL_UNDEF, client.getRelationTo(owner)) if rel == 1250: return 2 return 1
def getControlColor(owner, onlyDiplo = False): if owner == OID_NONE: return False if not onlyDiplo: if gdata.config.defaults.highlights == 'yes': if gdata.playersHighlightColors.has_key(owner): return fadeDarkColor(gdata.playersHighlightColors[owner]) rel = min(REL_UNDEF,client.getRelationTo(owner)) return fadeDarkColor(getFFColorCode(rel))
def getPlayerColor(owner, onlyDiplo = False): if owner == Const.OID_NONE: return getFFColorCode(Const.REL_UNDEF) if not onlyDiplo: if gdata.config.defaults.highlights == 'yes': if gdata.playersHighlightColors.has_key(owner): return gdata.playersHighlightColors[owner] rel = min(Const.REL_UNDEF,client.getRelationTo(owner)) return getFFColorCode(rel)
def getControlColor(owner, onlyDiplo=False): if owner == Const.OID_NONE: return False if not onlyDiplo: if gdata.config.defaults.highlights == 'yes': if gdata.playersHighlightColors.has_key(owner): return fadeDarkColor(gdata.playersHighlightColors[owner]) rel = min(Const.REL_UNDEF, client.getRelationTo(owner)) return fadeDarkColor(getFFColorCode(rel))
def getPlayerColor(owner, onlyDiplo=False): if owner == OID_NONE: return getFFColorCode(REL_UNDEF) if not onlyDiplo: if gdata.config.defaults.highlights == 'yes': if gdata.playersHighlightColors.has_key(owner): return gdata.playersHighlightColors[owner] rel = min(REL_UNDEF, client.getRelationTo(owner)) return getFFColorCode(rel)