# Lock Ally Color Setting
Grammar — Lock ally color settings for players in players to style
Flags —Native
|Action
Locks the ally color setting that is selected for all players in the player group.
# Arguments
playergroup
— Playersint
<preset::AllyColorSetting> — Style
Returns — void
native void UIUnitColorStyleOverride(
playergroup inPlayers,
int style,
);
# Related
Category: UI / Game UI
- Set Screen Mode —
void
— UISetMode - Set Minimum Letterbox Height —
void
— UISetMinimumLetterboxHeight - Show/Hide Game UI —
void
— libNtve_gf_HideGameUI - Add/Remove UI Frame Type For Global Filter List —
void
— libNtve_gf_AddRemoveUIFrameTypeForGlobalFilterList - UI Frame Flag — preset —
int
- UI Frame Flag Check —
bool
— libNtve_gf_UIFrameFlagCheck - For Each UI Frame — macro
- Show/Hide UI Frame —
void
— UISetFrameVisible - Set BattleNet Button Offset —
void
— UISetBattleNetButtonOffset - Clear BattleNet Button Offset —
void
— UIClearBattleNetButtonOffset - UI Frame Is Visible —
bool
— UIFrameVisible - Show/Hide World —
void
— UISetWorldVisible - Show/Hide Achievement Panel —
void
— AchievementPanelSetVisible - Show/Hide Mouse Cursor —
void
— UISetCursorVisible - Enable/Disable Mouse Cursor Auto Hide —
void
— UISetCursorAutoHide - Enable/Disable Drag Selection —
void
— UISetDragSelectEnabled - Set Hot Key Profile —
void
— UISetHotkeyProfile - Lock Ally Color Setting —
void
— UIUnitColorStyleOverride - Unlock Ally Color Setting —
void
— UIUnitColorStyleClearOverride - Lock Flyer Helper Display —
void
— UIFlyerHelperOverride - Unlock Flyer Helper Display —
void
— UIFlyerHelperClearOverride - Lock Status Bar Display —
void
— UIStatusBarOverride - Unlock Status Bar Display —
void
— UIStatusBarClearOverride - Set Achievement Toast Style —
void
— UISetAchievementToastStyle - Set Minimap Background Color —
void
— UISetMiniMapBackGroundColor - Show/Hide Minimap Camera Field of View —
void
— UISetMiniMapCameraFoVVisible - Set Minimap Bounds —
void
— UISetMiniMapBounds - Enable/Disable Command Type —
void
— UISetCommandAllowed - Turn Ability Highlight On/Off —
void
— UISetButtonHighlighted - Turn Button Highlight On/Off —
void
— UISetButtonFaceHighlighted - Set Command Type Disabled Message —
void
— UISetCommandDisallowedMessage - Show/Hide Resource —
void
— UISetResourceVisible - Enable/Disable Selection Type —
void
— UISetSelectionTypeEnabled - Launch Nydus Link —
void
— UILaunchNydusLink - Show/Hide Message Log —
void
— UIMessageLogPanelSetVisible - Set Targeting Order —
void
— UISetTargetingOrder - Enable/Disable Hotkey —
void
— UISetHotkeyAllowed - Target Mode Updated —
void
— TriggerAddEventTargetModeUpdate - Resources Requested —
void
— TriggerAddEventResourceRequest - Resources Traded —
void
— TriggerAddEventResourceTrade - Target Mode Ability Command —
abilcmd
— EventTargetModeAbilCmd - Target Mode State —
int
<preset::TargetModeState> — EventTargetModeState - Resource Requested Amount —
int
— EventResourceRequestAmount - Resource Traded Amount —
int
— EventResourceTradeAmount - Resource Traded Recipient —
int
— EventResourceTradeRecipient
# Examples
campaigns/liberty.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.sc2campaign — base.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.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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.sc2campaign/base.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;
}