Esempio n. 1
0
def getGateLineWidth(owner):
	if owner == OID_NONE:
		return 1
	rel = min(REL_UNDEF,client.getRelationTo(owner))
	if rel == 1250:
		return 2
	return 1
Esempio n. 2
0
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
Esempio n. 3
0
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))
Esempio n. 4
0
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)
Esempio n. 5
0
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))
Esempio n. 6
0
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)