# Lock Ally Color Setting

Grammar — Lock ally color settings for players in players to style
FlagsNative | Action

Locks the ally color setting that is selected for all players in the player group.

# Arguments

Returns — void

native void UIUnitColorStyleOverride(
	playergroup inPlayers,
	int style,
);

Category: UI / Game UI

# Examples

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/ttutorial01.sc2map/MapScript.galaxy:1103

    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, 0, 85);
    TransmissionSetOption(c_transmissionOptionHideAlertPanel, true);
    UIUnitColorStyleOverride(PlayerGroupActive(), c_unitColorStyleNormal);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeCharacterSheetButton, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowPings, false);

campaigns/liberty.sc2campaignbase.sc2maps/maps/campaign/tvalerian01.sc2map/MapScript.galaxy:913

    PlayerSetState(gv_p09_ACTORDOMINION, c_playerStateShowScore, false);
    PlayerSetState(gv_p11_ZERG_YELLOWSPORECANNON, c_playerStateShowScore, false);
    UIUnitColorStyleOverride(PlayerGroupAll(), c_unitColorStyleNormal);
    PlayerSetColorIndex(gv_p02_ZERG_PURPLE_NE, 4, true);
    PlayerSetColorIndex(gv_p05_ZERG_ORANGE_NW, 4, true);

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/protosscombat.sc2map/MapScript.galaxy:515

    libNtve_gf_SetAlliance(gv_pLAYER_COMPUTER1, gv_pLAYER_BOARD, libNtve_ge_AllianceSetting_Ally);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeResourcePanel, false);
    UIUnitColorStyleOverride(PlayerGroupAll(), c_unitColorStyleNormal);
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/terrancombat.sc2map/MapScript.galaxy:476

    libNtve_gf_SetAlliance(gv_pLAYER_COMPUTER1, gv_pLAYER_BOARD, libNtve_ge_AllianceSetting_Ally);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeResourcePanel, false);
    UIUnitColorStyleOverride(PlayerGroupAll(), c_unitColorStyleNormal);
    return true;
}

campaigns/liberty.sc2campaignbase.sc2maps/maps/challenges/zergcombat.sc2map/MapScript.galaxy:522

    libNtve_gf_SetAlliance(gv_pLAYER_COMPUTER1, gv_pLAYER_BOARD, 0);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeResourcePanel, false);
    UIUnitColorStyleOverride(PlayerGroupAll(), c_unitColorStyleNormal);
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/ttutorial01.sc2mapMapScript.galaxy:1103

    DialogControlSetPosition(DialogControlLastCreated(), PlayerGroupAll(), c_anchorTop, 0, 85);
    TransmissionSetOption(c_transmissionOptionHideAlertPanel, true);
    UIUnitColorStyleOverride(PlayerGroupActive(), c_unitColorStyleNormal);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeCharacterSheetButton, false);
    UISetCommandAllowed(PlayerGroupAll(), c_uiCommandAllowPings, false);

campaigns/liberty.sc2campaign/base.sc2maps/maps/campaign/tvalerian01.sc2mapMapScript.galaxy:913

    PlayerSetState(gv_p09_ACTORDOMINION, c_playerStateShowScore, false);
    PlayerSetState(gv_p11_ZERG_YELLOWSPORECANNON, c_playerStateShowScore, false);
    UIUnitColorStyleOverride(PlayerGroupAll(), c_unitColorStyleNormal);
    PlayerSetColorIndex(gv_p02_ZERG_PURPLE_NE, 4, true);
    PlayerSetColorIndex(gv_p05_ZERG_ORANGE_NW, 4, true);

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/protosscombat.sc2mapMapScript.galaxy:515

    libNtve_gf_SetAlliance(gv_pLAYER_COMPUTER1, gv_pLAYER_BOARD, libNtve_ge_AllianceSetting_Ally);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeResourcePanel, false);
    UIUnitColorStyleOverride(PlayerGroupAll(), c_unitColorStyleNormal);
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/terrancombat.sc2mapMapScript.galaxy:476

    libNtve_gf_SetAlliance(gv_pLAYER_COMPUTER1, gv_pLAYER_BOARD, libNtve_ge_AllianceSetting_Ally);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeResourcePanel, false);
    UIUnitColorStyleOverride(PlayerGroupAll(), c_unitColorStyleNormal);
    return true;
}

campaigns/liberty.sc2campaign/base.sc2maps/maps/challenges/zergcombat.sc2mapMapScript.galaxy:522

    libNtve_gf_SetAlliance(gv_pLAYER_COMPUTER1, gv_pLAYER_BOARD, 0);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeResourcePanel, false);
    UIUnitColorStyleOverride(PlayerGroupAll(), c_unitColorStyleNormal);
    return true;
}