OpenTTD Source 20260704-master-gbf70c61fb8
Animated cursors.
static const CursorID SPR_CURSOR_DEMOLISH_FIRST = 704
static const CursorID SPR_CURSOR_DEMOLISH_1 = 705
static const CursorID SPR_CURSOR_DEMOLISH_2 = 706
static const CursorID SPR_CURSOR_DEMOLISH_LAST = 707
static const CursorID SPR_CURSOR_LOWERLAND_FIRST = 699
static const CursorID SPR_CURSOR_LOWERLAND_1 = 700
static const CursorID SPR_CURSOR_LOWERLAND_LAST = 701
static const CursorID SPR_CURSOR_RAISELAND_FIRST = 696
static const CursorID SPR_CURSOR_RAISELAND_1 = 697
static const CursorID SPR_CURSOR_RAISELAND_LAST = 698
static const CursorID SPR_CURSOR_PICKSTATION_FIRST = 716
static const CursorID SPR_CURSOR_PICKSTATION_1 = 717
static const CursorID SPR_CURSOR_PICKSTATION_LAST = 718
static const CursorID SPR_CURSOR_BUILDSIGNALS_FIRST = 1292
static const CursorID SPR_CURSOR_BUILDSIGNALS_LAST = 1293
static const CursorID ANIMCURSOR_FLAG = 1U << 31
 Flag for saying a cursor sprite is an animated cursor.
static const CursorID ANIMCURSOR_DEMOLISH = ANIMCURSOR_FLAG | 0
 704 - 707 - demolish dynamite
static const CursorID ANIMCURSOR_LOWERLAND = ANIMCURSOR_FLAG | 1
 699 - 701 - lower land tool
static const CursorID ANIMCURSOR_RAISELAND = ANIMCURSOR_FLAG | 2
 696 - 698 - raise land tool
static const CursorID ANIMCURSOR_PICKSTATION = ANIMCURSOR_FLAG | 3
 716 - 718 - goto-order icon
static const CursorID ANIMCURSOR_BUILDSIGNALS = ANIMCURSOR_FLAG | 4
 1292 - 1293 - build signal

Detailed Description

See also
table/animcursors.h for animation macro (_animcursors[]).

Variable Documentation

◆ ANIMCURSOR_BUILDSIGNALS

const CursorID ANIMCURSOR_BUILDSIGNALS = ANIMCURSOR_FLAG | 4
static

1292 - 1293 - build signal

Definition at line 1692 of file sprites.h.

Referenced by BuildRailToolbarWindow::GetCursorForWidget().

◆ ANIMCURSOR_DEMOLISH

◆ ANIMCURSOR_FLAG

const CursorID ANIMCURSOR_FLAG = 1U << 31
static

Flag for saying a cursor sprite is an animated cursor.

Definition at line 1687 of file sprites.h.

Referenced by SetCursor().

◆ ANIMCURSOR_LOWERLAND

const CursorID ANIMCURSOR_LOWERLAND = ANIMCURSOR_FLAG | 1
static

699 - 701 - lower land tool

Definition at line 1689 of file sprites.h.

Referenced by ScenarioEditorLandscapeGenerationWindow::OnClick(), and TerraformToolbarWindow::OnClick().

◆ ANIMCURSOR_PICKSTATION

const CursorID ANIMCURSOR_PICKSTATION = ANIMCURSOR_FLAG | 3
static

716 - 718 - goto-order icon

Definition at line 1691 of file sprites.h.

Referenced by OrdersWindow::OrderClick_Goto().

◆ ANIMCURSOR_RAISELAND

const CursorID ANIMCURSOR_RAISELAND = ANIMCURSOR_FLAG | 2
static

696 - 698 - raise land tool

Definition at line 1690 of file sprites.h.

Referenced by ScenarioEditorLandscapeGenerationWindow::OnClick(), and TerraformToolbarWindow::OnClick().

◆ SPR_CURSOR_BUILDSIGNALS_FIRST

const CursorID SPR_CURSOR_BUILDSIGNALS_FIRST = 1292
static

Animated cursor frame.

Definition at line 1683 of file sprites.h.

◆ SPR_CURSOR_BUILDSIGNALS_LAST

const CursorID SPR_CURSOR_BUILDSIGNALS_LAST = 1293
static

Animated cursor frame.

Definition at line 1684 of file sprites.h.

◆ SPR_CURSOR_DEMOLISH_1

const CursorID SPR_CURSOR_DEMOLISH_1 = 705
static

Animated cursor frame.

Definition at line 1667 of file sprites.h.

◆ SPR_CURSOR_DEMOLISH_2

const CursorID SPR_CURSOR_DEMOLISH_2 = 706
static

Animated cursor frame.

Definition at line 1668 of file sprites.h.

◆ SPR_CURSOR_DEMOLISH_FIRST

const CursorID SPR_CURSOR_DEMOLISH_FIRST = 704
static

Animated cursor frame.

Definition at line 1666 of file sprites.h.

◆ SPR_CURSOR_DEMOLISH_LAST

const CursorID SPR_CURSOR_DEMOLISH_LAST = 707
static

Animated cursor frame.

Definition at line 1669 of file sprites.h.

◆ SPR_CURSOR_LOWERLAND_1

const CursorID SPR_CURSOR_LOWERLAND_1 = 700
static

Animated cursor frame.

Definition at line 1672 of file sprites.h.

◆ SPR_CURSOR_LOWERLAND_FIRST

const CursorID SPR_CURSOR_LOWERLAND_FIRST = 699
static

Animated cursor frame.

Definition at line 1671 of file sprites.h.

◆ SPR_CURSOR_LOWERLAND_LAST

const CursorID SPR_CURSOR_LOWERLAND_LAST = 701
static

Animated cursor frame.

Definition at line 1673 of file sprites.h.

◆ SPR_CURSOR_PICKSTATION_1

const CursorID SPR_CURSOR_PICKSTATION_1 = 717
static

Animated cursor frame.

Definition at line 1680 of file sprites.h.

◆ SPR_CURSOR_PICKSTATION_FIRST

const CursorID SPR_CURSOR_PICKSTATION_FIRST = 716
static

Animated cursor frame.

Definition at line 1679 of file sprites.h.

◆ SPR_CURSOR_PICKSTATION_LAST

const CursorID SPR_CURSOR_PICKSTATION_LAST = 718
static

Animated cursor frame.

Definition at line 1681 of file sprites.h.

◆ SPR_CURSOR_RAISELAND_1

const CursorID SPR_CURSOR_RAISELAND_1 = 697
static

Animated cursor frame.

Definition at line 1676 of file sprites.h.

◆ SPR_CURSOR_RAISELAND_FIRST

const CursorID SPR_CURSOR_RAISELAND_FIRST = 696
static

Animated cursor frame.

Definition at line 1675 of file sprites.h.

◆ SPR_CURSOR_RAISELAND_LAST

const CursorID SPR_CURSOR_RAISELAND_LAST = 698
static

Animated cursor frame.

Definition at line 1677 of file sprites.h.