Skip to content

loadIcon

loadIcon(achievement, timeoutMs?): Promise<AchievementIcon | null>

Like getIcon(), but waits for Steam to fetch the icon. Steam answers inside runCallbacks(), which init() already runs on a timer.

string

The achievement API name as configured in Steamworks.

number | null

how long to wait, in milliseconds; defaults to 5000

Promise<AchievementIcon | null>

the icon, or null when it is still missing after the timeout (no icon is set, or Steam is slow). The two cases cannot be told apart.

Turn ideas into shipped software.

HagiCode is an agentic coding workspace. OpenSpec workflows plan the change, multi-agent execution carries it out, and Hero Scenario makes the long run visible, so ideas become shipped software.

Smart
OpenSpec workflows turn intent into a path from proposal to shipped change.
Efficient
Multi-agent execution runs research, build, and review in parallel.
Fun
Rich UI interactions make planning, agent work, and projects easier to follow.