# Anchor Timer Window
Grammar — Anchor window|Timer Window to the anchor of the screen, offset by (xOffset, yOffset)
Flags —Native
|Action
The timer window will be automatically positioned relative to the screen using the given anchor and offset.
# Arguments
int
[ preset::TimerWindow ] — Windowint
[ preset::Anchor ] — Anchorint
— X Offsetint
— Y Offset
Returns — void
native void TimerWindowSetAnchor(
int inWindow,
int inAnchor,
int inOffsetX,
int inOffsetY,
);
# Related
Category: Timer / Timer Windows
- [F] —
int
[ preset::TimerWindow ] — Create Timer Window — ( TimerWindowCreate ) - [F] —
int
[ preset::TimerWindow ] — Last Created Timer Window — ( TimerWindowLastCreated ) - [F] —
void
— Show/Hide Timer Window — ( TimerWindowShow ) - [F] —
bool
— Timer Window Is Visible — ( TimerWindowVisible ) - [F] —
void
— Destroy Timer Window — ( TimerWindowDestroy ) - [F] —
void
— Anchor Timer Window — ( TimerWindowSetAnchor ) - [F] —
void
— Move Timer Window — ( TimerWindowSetPosition ) - [F] —
void
— Reset Timer Window Position — ( TimerWindowResetPosition ) - [F] —
void
— Set Title For Timer Window — ( TimerWindowSetTitle ) - [F] —
void
— Set Timer For Timer Window — ( TimerWindowSetTimer ) - [F] —
void
— Set Time Format For Timer Window — ( TimerWindowSetFormat ) - [F] —
void
— Set Style For Timer Window — ( TimerWindowSetStyle ) - [F] —
void
— Set Gap Width For Timer Window — ( TimerWindowSetGapWidth ) - [F] —
void
— Set Height For Timer Window — ( TimerWindowSetFixedHeight ) - [F] —
void
— Set Timer Window Color — ( TimerWindowSetColor ) - [F] —
void
— Show/Hide Timer Window Border — ( TimerWindowShowBorder ) - [F] —
void
— Show/Hide Timer Window Progress Bar — ( TimerWindowShowProgressBar ) - [F] —
void
— Set Timer Window Progress Color — ( TimerWindowSetProgressColor ) - [F] —
void
— Set Timer Window Image Type — ( TimerWindowSetImageType ) - [F] —
fixed
— Elapsed Time Of Timer — ( TimerGetElapsed ) - [F] —
fixed
— Remaining Time Of Timer — ( TimerGetRemaining )
# Examples
# campaigns/swarmstory.sc2campaign
// L2613
TimerWindowSetAnchor(TimerWindowLastCreated(), c_anchorTop, 0, -12)
# campaigns/voidstory.sc2campaign
// L5263
TimerWindowSetAnchor(lp_timerWindow, c_anchorTopRight, 0, 50)
# mods/missionpacks/novacampaign.sc2mod
// L3713
TimerWindowSetAnchor(lp_timerWindow, c_anchorTopRight, 0, 50)
# mods/starcoop/starcoop.sc2mod
// 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
// L1607
TimerWindowSetAnchor(TimerWindowLastCreated(), c_anchorTop, 0, -12)