# Set BattleNet Button Offset

Grammar — Set the BattleNet Button Offset to offsetX, show for players
FlagsNative | Action

Allows custom positioning of the BattleNet Button, relative to the bottom right corner of the screen. Note that there is a “safe rect” constraint that prevents the button and friends list from being too far to the left or too far upwards.

# Arguments

  • playergroup — Players
  • int — Offset X
  • int — Offset Y

Returns — void

native void UISetBattleNetButtonOffset(
	playergroup inPlayers,
	int inOffsetX,
	int inOffsetY,
);

Category: UI / Game UI

# Examples

mods/heroesdata.stormmodbase.stormdata/TriggerLibs/UILib.galaxy:8757

    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeMissionTimePanel, false);
    UISetFrameVisible(PlayerGroupAll(), c_syncFrameTypeLeaderPanel, false);
    UISetBattleNetButtonOffset(PlayerGroupAll(), 280, 0);
    UISetDragSelectEnabled(PlayerGroupAll(), false);
    UISetSelectionTypeEnabled(PlayerGroupAll(), c_localSelectionTypeUnknown, false);