# 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.stormmod

UILib.galaxy

// L8757
UISetBattleNetButtonOffset(PlayerGroupAll(), 280, 0)