Exemplo 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
Exemplo 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
Exemplo 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))
Exemplo 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)
Exemplo 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))
Exemplo 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)