Pages

Cursor actions and artwork

Morphing action glyphs, action colours, replacement cursor images and sprite strips, and which cursor wins.

The compact cursor shows each order as an action glyph beside or inside the pointer. Its colours and pictures come from the theme; replace them when your game has its own cursor art.

The worked example

Replace the pointer and the Capture badge with your own PNGs, the badge as a strip of 32 equal-width frames played at 15 per second:

[images]
CursorPointer = "ui/cursors/pointer.png"
CursorCapture = "ui/cursors/capture.png"

[sizes]
CursorPointerBadges = 1
CursorPointerFrames = 1
CursorCaptureFrames = 32
CursorCaptureFps = 15
CursorHotspotX = 0
CursorHotspotY = 0

[colors]
CursorCapture = "#ffe8a0"

Morphing action glyphs

With CursorMorphActions=1, the action glyph grows into the pointer's open rear wedge while the pointer artwork and click hotspot remain fixed. CursorMorphGlyphSize, CursorMorphGlyphOffsetX and CursorMorphGlyphOffsetY place the glyph in logical pixels. Command uses CursorMove, CursorPatrol, CursorReclaim, CursorRepair, CursorGuard, CursorAssist, CursorCapture, CursorUnavailable and CursorSpecial in [colors] for action tinting. The HUD shares these colors where it displays the same action. D-Gun uses a red attack ring around a lightning bolt with small arcs. Reduced motion shows the full-size glyph and a steady bolt. Capture’s flag waves and the Out of Range symbol pulses through authored sprite frames. Both use their first frame with Reduced Motion enabled. Studio's Cursor screen displays the compact pointer and every action and drawing glyph at the preview resolution using the game's cursor renderer.

Cursor image roles

Optional [images] roles replace the native pointer or individual badges: CursorPointer, CursorSelect, CursorMove, CursorAttack, CursorGuard, CursorAssist, CursorRepair, CursorPatrol, CursorReclaim, CursorCapture, CursorBuild, CursorLoad, CursorUnload, CursorUnavailable, CursorWait, CursorPencil, CursorDot, CursorLine, CursorArrow, CursorEraser and CursorPan. A missing optional image uses the native geometry. Command enables the native three-ring Attack badge with CursorAttackRings = 1. Set it to zero to use custom CursorAttack artwork. The native badge takes its tint from CursorAttack and rhythm from WorldOrderAttackPulseSeconds. Sprite strips contain equal-width frames in one row; each role's <role>Frames (1–64) and <role>Fps (0.1–60) are sizes. CursorHotspotX and CursorHotspotY offset the pointer artwork in unscaled cursor pixels. Badge artwork stays beside the pointer and never moves its click point. Import original PNG artwork through Studio's Artwork workspace, then bind the image role and edit its frame and geometry values in theme materials.

Cursor precedence

A selected Command theme supplies its modern cursor family as the default. An explicit game cursor policy, player cursor choice, or Custom profile takes precedence; selecting a theme never overwrites saved player preferences.

What goes wrong

A cursor image that is missing logs nothing: the player sees the native geometry for that role instead of your artwork. A strip whose <role>Frames does not match the image shows cut or doubled frames. Open Studio's Cursor screen to see every glyph as the game draws it.

Next