# Clear BattleNet Button Offset
Grammar — Clear the BattleNet Button Position for players
Flags —Native
|Action
Clear the custom positioning of the BattleNet Button. This will cause it to return to the default location
# Arguments
playergroup
— Players
Returns — void
native void UIClearBattleNetButtonOffset(
playergroup inPlayers,
);
# 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/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:3165
lib281DEC45_gf_ShowHideStoryUI(true);
lib281DEC45_gf_ZSS_UIMainUpdate();
UIClearBattleNetButtonOffset(PlayerGroupAll());
TriggerExecute(lib281DEC45_gt_ZSS_PlayIdleLines, true, false);
libSwaC_gf_DispatchStoryEvent(libSwaC_ge_ZS_Event_StoryUtilViewMainSet, "", "", false);
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:3224
lib281DEC45_gf_ShowHideStoryUI(false);
DialogSetSubtitlePositionOverride(c_invalidDialogId);
UIClearBattleNetButtonOffset(PlayerGroupAll());
lib281DEC45_gf_ZSS_DebugStoryCheatDisplay();
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:3231
lib281DEC45_gf_ShowHideStoryUI(false);
DialogSetSubtitlePositionOverride(c_invalidDialogId);
UIClearBattleNetButtonOffset(PlayerGroupAll());
lib281DEC45_gf_ZSS_DebugSceneOpen();
}
campaigns/swarmstoryutil.sc2mod — base.sc2data/Lib281DEC45.galaxy:3238
lib281DEC45_gf_ShowHideStoryUI(false);
DialogSetSubtitlePositionOverride(c_invalidDialogId);
UIClearBattleNetButtonOffset(PlayerGroupAll());
}
else {
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:6243
libVCST_gf_ShowHideStoryUI(false);
DialogSetSubtitlePositionOverride(c_invalidDialogId);
UIClearBattleNetButtonOffset(PlayerGroupAll());
libVCST_gf_PS_DebugStoryCheatDisplay();
return true;
campaigns/voidstory.sc2campaign — base.sc2data/TriggerLibs/VoidCampaignStoryLib.galaxy:6266
libVCST_gf_ShowHideStoryUI(false);
DialogSetSubtitlePositionOverride(c_invalidDialogId);
UIClearBattleNetButtonOffset(PlayerGroupAll());
return true;
}
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:5123
libNCST_gf_ShowHideStoryUI(false);
DialogSetSubtitlePositionOverride(c_invalidDialogId);
UIClearBattleNetButtonOffset(PlayerGroupAll());
libNCST_gf_NS_DebugStoryCheatDisplay();
libNCST_gv_nS_InStoryCheat = true;
mods/missionpacks/novacampaign.sc2mod — base.sc2data/LibNCST.galaxy:5146
libNCST_gf_ShowHideStoryUI(false);
DialogSetSubtitlePositionOverride(c_invalidDialogId);
UIClearBattleNetButtonOffset(PlayerGroupAll());
return true;
}