# Anchor Timer Window

Grammar — Anchor window|Timer Window to the anchor of the screen, offset by (xOffset, yOffset)
FlagsNative | Action

The timer window will be automatically positioned relative to the screen using the given anchor and offset.

# Arguments

  • int [ preset::TimerWindow ] — Window
  • int [ preset::Anchor ] — Anchor
  • int — X Offset
  • int — Y Offset

Returns — void

native void TimerWindowSetAnchor(
	int inWindow,
	int inAnchor,
	int inOffsetX,
	int inOffsetY,
);

Category: Timer / Timer Windows

# Examples

# campaigns/swarmstory.sc2campaign

SwarmCampaignLib.galaxy

// L2613
TimerWindowSetAnchor(TimerWindowLastCreated(), c_anchorTop, 0, -12)

# campaigns/voidstory.sc2campaign

VoidCampaignUILib.galaxy

// L5263
TimerWindowSetAnchor(lp_timerWindow, c_anchorTopRight, 0, 50)

# mods/missionpacks/novacampaign.sc2mod

LibNCUI.galaxy

// L3713
TimerWindowSetAnchor(lp_timerWindow, c_anchorTopRight, 0, 50)

# mods/starcoop/starcoop.sc2mod

LibCOUI.galaxy

// L5131
TimerWindowSetAnchor(lp_timerWindow, c_anchorTopRight, 0, 50)
// L8751
TimerWindowSetAnchor(libCOUI_gv_cU_TimerWindow, c_anchorTopRight, 0, 175)
// L8754
TimerWindowSetAnchor(libCOUI_gv_cU_TimerWindow, c_anchorTopRight, 0, 50)

# mods/voidprologue.sc2mod

LibA3DDD02B.galaxy

// L1607
TimerWindowSetAnchor(TimerWindowLastCreated(), c_anchorTop, 0, -12)