OpenTTD Source 20260704-master-gbf70c61fb8
Cursor sprite numbers.

Topics

 Animated cursors.
static const CursorID SPR_CURSOR_MOUSE = 0
static const CursorID SPR_CURSOR_ZZZ = 1
static const CursorID SPR_CURSOR_BUOY = 702
static const CursorID SPR_CURSOR_QUERY = 719
static const CursorID SPR_CURSOR_HQ = 720
static const CursorID SPR_CURSOR_SHIP_DEPOT = 721
static const CursorID SPR_CURSOR_SIGN = 722
static const CursorID SPR_CURSOR_TREE = 2010
static const CursorID SPR_CURSOR_BUY_LAND = 4792
static const CursorID SPR_CURSOR_LEVEL_LAND = SPR_OPENTTD_BASE + 92
static const CursorID SPR_CURSOR_TOWN = 4080
static const CursorID SPR_CURSOR_INDUSTRY = 4081
static const CursorID SPR_CURSOR_ROCKY_AREA = 4087
static const CursorID SPR_CURSOR_DESERT = 4088
static const CursorID SPR_CURSOR_TRANSMITTER = 4089
static const CursorID SPR_CURSOR_AIRPORT = 2724
static const CursorID SPR_CURSOR_DOCK = 3668
static const CursorID SPR_CURSOR_CANAL = SPR_OPENTTD_BASE + 89
static const CursorID SPR_CURSOR_LOCK = SPR_OPENTTD_BASE + 87
static const CursorID SPR_CURSOR_RIVER = SPR_OPENTTD_BASE + 137
static const CursorID SPR_CURSOR_AQUEDUCT = SPR_OPENTTD_BASE + 146
static const CursorID SPR_CURSOR_BRIDGE = 2593
static const CursorID SPR_CURSOR_NS_TRACK = 1263
static const CursorID SPR_CURSOR_SWNE_TRACK = 1264
static const CursorID SPR_CURSOR_EW_TRACK = 1265
static const CursorID SPR_CURSOR_NWSE_TRACK = 1266
static const CursorID SPR_CURSOR_NS_MONO = 1267
static const CursorID SPR_CURSOR_SWNE_MONO = 1268
static const CursorID SPR_CURSOR_EW_MONO = 1269
static const CursorID SPR_CURSOR_NWSE_MONO = 1270
static const CursorID SPR_CURSOR_NS_MAGLEV = 1271
static const CursorID SPR_CURSOR_SWNE_MAGLEV = 1272
static const CursorID SPR_CURSOR_EW_MAGLEV = 1273
static const CursorID SPR_CURSOR_NWSE_MAGLEV = 1274
static const CursorID SPR_CURSOR_NS_ELRAIL = SPR_ELRAIL_BASE + 40
static const CursorID SPR_CURSOR_SWNE_ELRAIL = SPR_ELRAIL_BASE + 41
static const CursorID SPR_CURSOR_EW_ELRAIL = SPR_ELRAIL_BASE + 42
static const CursorID SPR_CURSOR_NWSE_ELRAIL = SPR_ELRAIL_BASE + 43
static const CursorID SPR_CURSOR_RAIL_STATION = 1300
static const CursorID SPR_CURSOR_TUNNEL_RAIL = 2434
static const CursorID SPR_CURSOR_TUNNEL_ELRAIL = SPR_ELRAIL_BASE + 45
static const CursorID SPR_CURSOR_TUNNEL_MONO = 2435
static const CursorID SPR_CURSOR_TUNNEL_MAGLEV = 2436
static const CursorID SPR_CURSOR_AUTORAIL = SPR_OPENTTD_BASE + 54
static const CursorID SPR_CURSOR_AUTOELRAIL = SPR_OPENTTD_BASE + 58
static const CursorID SPR_CURSOR_AUTOMONO = SPR_OPENTTD_BASE + 64
static const CursorID SPR_CURSOR_AUTOMAGLEV = SPR_OPENTTD_BASE + 70
static const CursorID SPR_CURSOR_WAYPOINT = SPR_OPENTTD_BASE + 77
static const CursorID SPR_CURSOR_RAIL_DEPOT = 1296
static const CursorID SPR_CURSOR_ELRAIL_DEPOT = SPR_OPENTTD_BASE + 62
static const CursorID SPR_CURSOR_MONO_DEPOT = SPR_OPENTTD_BASE + 68
static const CursorID SPR_CURSOR_MAGLEV_DEPOT = SPR_OPENTTD_BASE + 74
static const CursorID SPR_CURSOR_CONVERT_RAIL = SPR_OPENTTD_BASE + 56
static const CursorID SPR_CURSOR_CONVERT_ELRAIL = SPR_OPENTTD_BASE + 60
static const CursorID SPR_CURSOR_CONVERT_MONO = SPR_OPENTTD_BASE + 66
static const CursorID SPR_CURSOR_CONVERT_MAGLEV = SPR_OPENTTD_BASE + 72
static const CursorID SPR_CURSOR_ROAD_NESW = 1311
static const CursorID SPR_CURSOR_ROAD_NWSE = 1312
static const CursorID SPR_CURSOR_AUTOROAD = SPR_OPENTTD_BASE + 83
static const CursorID SPR_CURSOR_TRAMWAY_NESW = SPR_TRAMWAY_BASE + 2
static const CursorID SPR_CURSOR_TRAMWAY_NWSE = SPR_TRAMWAY_BASE + 3
static const CursorID SPR_CURSOR_AUTOTRAM = SPR_OPENTTD_BASE + 85
static const CursorID SPR_CURSOR_ROAD_DEPOT = 1297
static const CursorID SPR_CURSOR_BUS_STATION = 2725
static const CursorID SPR_CURSOR_TRUCK_STATION = 2726
static const CursorID SPR_CURSOR_ROAD_TUNNEL = 2433
static const CursorID SPR_CURSOR_CLONE_TRAIN = SPR_OPENTTD_BASE + 110
static const CursorID SPR_CURSOR_CLONE_ROADVEH = SPR_OPENTTD_BASE + 111
static const CursorID SPR_CURSOR_CLONE_SHIP = SPR_OPENTTD_BASE + 112
static const CursorID SPR_CURSOR_CLONE_AIRPLANE = SPR_OPENTTD_BASE + 113

Detailed Description

Variable Documentation

◆ SPR_CURSOR_AIRPORT

const CursorID SPR_CURSOR_AIRPORT = 2724
static

Airport cursors.

Definition at line 1582 of file sprites.h.

Referenced by BuildAirToolbarWindow::OnClick().

◆ SPR_CURSOR_AQUEDUCT

const CursorID SPR_CURSOR_AQUEDUCT = SPR_OPENTTD_BASE + 146
static

Dock cursors.

Definition at line 1590 of file sprites.h.

Referenced by BuildDocksToolbarWindow::OnClick().

◆ SPR_CURSOR_AUTOELRAIL

const CursorID SPR_CURSOR_AUTOELRAIL = SPR_OPENTTD_BASE + 58
static

Rail cursors.

Definition at line 1626 of file sprites.h.

◆ SPR_CURSOR_AUTOMAGLEV

const CursorID SPR_CURSOR_AUTOMAGLEV = SPR_OPENTTD_BASE + 70
static

Rail cursors.

Definition at line 1628 of file sprites.h.

◆ SPR_CURSOR_AUTOMONO

const CursorID SPR_CURSOR_AUTOMONO = SPR_OPENTTD_BASE + 64
static

Rail cursors.

Definition at line 1627 of file sprites.h.

◆ SPR_CURSOR_AUTORAIL

const CursorID SPR_CURSOR_AUTORAIL = SPR_OPENTTD_BASE + 54
static

Rail cursors.

Definition at line 1625 of file sprites.h.

◆ SPR_CURSOR_AUTOROAD

const CursorID SPR_CURSOR_AUTOROAD = SPR_OPENTTD_BASE + 83
static

Road cursors.

Definition at line 1646 of file sprites.h.

◆ SPR_CURSOR_AUTOTRAM

const CursorID SPR_CURSOR_AUTOTRAM = SPR_OPENTTD_BASE + 85
static

Road cursors.

Definition at line 1649 of file sprites.h.

◆ SPR_CURSOR_BRIDGE

const CursorID SPR_CURSOR_BRIDGE = 2593
static

Shared road & rail cursors.

Definition at line 1594 of file sprites.h.

Referenced by BuildRailToolbarWindow::GetCursorForWidget(), and BuildRoadToolbarWindow::GetCursorForWidget().

◆ SPR_CURSOR_BUOY

const CursorID SPR_CURSOR_BUOY = 702
static

Terraform cursors.

Definition at line 1564 of file sprites.h.

Referenced by BuildDocksToolbarWindow::OnClick().

◆ SPR_CURSOR_BUS_STATION

const CursorID SPR_CURSOR_BUS_STATION = 2725
static

Road cursors.

Definition at line 1652 of file sprites.h.

Referenced by BuildRoadToolbarWindow::GetCursorForWidget().

◆ SPR_CURSOR_BUY_LAND

const CursorID SPR_CURSOR_BUY_LAND = 4792
static

Terraform cursors.

Definition at line 1571 of file sprites.h.

Referenced by TerraformToolbarWindow::OnClick().

◆ SPR_CURSOR_CANAL

const CursorID SPR_CURSOR_CANAL = SPR_OPENTTD_BASE + 89
static

Dock cursors.

Definition at line 1587 of file sprites.h.

Referenced by BuildDocksToolbarWindow::OnClick().

◆ SPR_CURSOR_CLONE_AIRPLANE

const CursorID SPR_CURSOR_CLONE_AIRPLANE = SPR_OPENTTD_BASE + 113
static

Vehicle cursors.

Definition at line 1661 of file sprites.h.

Referenced by DepotWindow::OnClick().

◆ SPR_CURSOR_CLONE_ROADVEH

const CursorID SPR_CURSOR_CLONE_ROADVEH = SPR_OPENTTD_BASE + 111
static

Vehicle cursors.

Definition at line 1659 of file sprites.h.

Referenced by DepotWindow::OnClick().

◆ SPR_CURSOR_CLONE_SHIP

const CursorID SPR_CURSOR_CLONE_SHIP = SPR_OPENTTD_BASE + 112
static

Vehicle cursors.

Definition at line 1660 of file sprites.h.

Referenced by DepotWindow::OnClick().

◆ SPR_CURSOR_CLONE_TRAIN

const CursorID SPR_CURSOR_CLONE_TRAIN = SPR_OPENTTD_BASE + 110
static

Vehicle cursors.

Definition at line 1658 of file sprites.h.

Referenced by DepotWindow::OnClick().

◆ SPR_CURSOR_CONVERT_ELRAIL

const CursorID SPR_CURSOR_CONVERT_ELRAIL = SPR_OPENTTD_BASE + 60
static

Rail cursors.

Definition at line 1638 of file sprites.h.

◆ SPR_CURSOR_CONVERT_MAGLEV

const CursorID SPR_CURSOR_CONVERT_MAGLEV = SPR_OPENTTD_BASE + 72
static

Rail cursors.

Definition at line 1640 of file sprites.h.

◆ SPR_CURSOR_CONVERT_MONO

const CursorID SPR_CURSOR_CONVERT_MONO = SPR_OPENTTD_BASE + 66
static

Rail cursors.

Definition at line 1639 of file sprites.h.

◆ SPR_CURSOR_CONVERT_RAIL

const CursorID SPR_CURSOR_CONVERT_RAIL = SPR_OPENTTD_BASE + 56
static

Rail cursors.

Definition at line 1637 of file sprites.h.

◆ SPR_CURSOR_DESERT

const CursorID SPR_CURSOR_DESERT = 4088
static

Terraform cursors.

Definition at line 1577 of file sprites.h.

Referenced by ScenarioEditorLandscapeGenerationWindow::OnClick().

◆ SPR_CURSOR_DOCK

const CursorID SPR_CURSOR_DOCK = 3668
static

Dock cursors.

Definition at line 1586 of file sprites.h.

Referenced by BuildDocksToolbarWindow::OnClick().

◆ SPR_CURSOR_ELRAIL_DEPOT

const CursorID SPR_CURSOR_ELRAIL_DEPOT = SPR_OPENTTD_BASE + 62
static

Rail cursors.

Definition at line 1633 of file sprites.h.

◆ SPR_CURSOR_EW_ELRAIL

const CursorID SPR_CURSOR_EW_ELRAIL = SPR_ELRAIL_BASE + 42
static

Rail cursors.

Definition at line 1615 of file sprites.h.

◆ SPR_CURSOR_EW_MAGLEV

const CursorID SPR_CURSOR_EW_MAGLEV = 1273
static

Rail cursors.

Definition at line 1610 of file sprites.h.

◆ SPR_CURSOR_EW_MONO

const CursorID SPR_CURSOR_EW_MONO = 1269
static

Rail cursors.

Definition at line 1605 of file sprites.h.

◆ SPR_CURSOR_EW_TRACK

const CursorID SPR_CURSOR_EW_TRACK = 1265
static

Rail cursors.

Definition at line 1600 of file sprites.h.

◆ SPR_CURSOR_HQ

const CursorID SPR_CURSOR_HQ = 720
static

Terraform cursors.

Definition at line 1566 of file sprites.h.

Referenced by CompanyWindow::OnClick().

◆ SPR_CURSOR_INDUSTRY

const CursorID SPR_CURSOR_INDUSTRY = 4081
static

Terraform cursors.

Definition at line 1575 of file sprites.h.

Referenced by BuildIndustryWindow::OnClick().

◆ SPR_CURSOR_LEVEL_LAND

const CursorID SPR_CURSOR_LEVEL_LAND = SPR_OPENTTD_BASE + 92
static

Terraform cursors.

Definition at line 1572 of file sprites.h.

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

◆ SPR_CURSOR_LOCK

const CursorID SPR_CURSOR_LOCK = SPR_OPENTTD_BASE + 87
static

Dock cursors.

Definition at line 1588 of file sprites.h.

Referenced by BuildDocksToolbarWindow::OnClick().

◆ SPR_CURSOR_MAGLEV_DEPOT

const CursorID SPR_CURSOR_MAGLEV_DEPOT = SPR_OPENTTD_BASE + 74
static

Rail cursors.

Definition at line 1635 of file sprites.h.

◆ SPR_CURSOR_MONO_DEPOT

const CursorID SPR_CURSOR_MONO_DEPOT = SPR_OPENTTD_BASE + 68
static

Rail cursors.

Definition at line 1634 of file sprites.h.

◆ SPR_CURSOR_MOUSE

◆ SPR_CURSOR_NS_ELRAIL

const CursorID SPR_CURSOR_NS_ELRAIL = SPR_ELRAIL_BASE + 40
static

Rail cursors.

Definition at line 1613 of file sprites.h.

◆ SPR_CURSOR_NS_MAGLEV

const CursorID SPR_CURSOR_NS_MAGLEV = 1271
static

Rail cursors.

Definition at line 1608 of file sprites.h.

◆ SPR_CURSOR_NS_MONO

const CursorID SPR_CURSOR_NS_MONO = 1267
static

Rail cursors.

Definition at line 1603 of file sprites.h.

◆ SPR_CURSOR_NS_TRACK

const CursorID SPR_CURSOR_NS_TRACK = 1263
static

Rail cursors.

Definition at line 1598 of file sprites.h.

◆ SPR_CURSOR_NWSE_ELRAIL

const CursorID SPR_CURSOR_NWSE_ELRAIL = SPR_ELRAIL_BASE + 43
static

Rail cursors.

Definition at line 1616 of file sprites.h.

◆ SPR_CURSOR_NWSE_MAGLEV

const CursorID SPR_CURSOR_NWSE_MAGLEV = 1274
static

Rail cursors.

Definition at line 1611 of file sprites.h.

◆ SPR_CURSOR_NWSE_MONO

const CursorID SPR_CURSOR_NWSE_MONO = 1270
static

Rail cursors.

Definition at line 1606 of file sprites.h.

◆ SPR_CURSOR_NWSE_TRACK

const CursorID SPR_CURSOR_NWSE_TRACK = 1266
static

Rail cursors.

Definition at line 1601 of file sprites.h.

◆ SPR_CURSOR_QUERY

const CursorID SPR_CURSOR_QUERY = 719
static

Terraform cursors.

Definition at line 1565 of file sprites.h.

◆ SPR_CURSOR_RAIL_DEPOT

const CursorID SPR_CURSOR_RAIL_DEPOT = 1296
static

Rail cursors.

Definition at line 1632 of file sprites.h.

◆ SPR_CURSOR_RAIL_STATION

const CursorID SPR_CURSOR_RAIL_STATION = 1300
static

Rail cursors.

Definition at line 1618 of file sprites.h.

Referenced by BuildRailToolbarWindow::GetCursorForWidget().

◆ SPR_CURSOR_RIVER

const CursorID SPR_CURSOR_RIVER = SPR_OPENTTD_BASE + 137
static

Dock cursors.

Definition at line 1589 of file sprites.h.

Referenced by BuildDocksToolbarWindow::OnClick().

◆ SPR_CURSOR_ROAD_DEPOT

const CursorID SPR_CURSOR_ROAD_DEPOT = 1297
static

Road cursors.

Definition at line 1651 of file sprites.h.

◆ SPR_CURSOR_ROAD_NESW

const CursorID SPR_CURSOR_ROAD_NESW = 1311
static

Road cursors.

Definition at line 1644 of file sprites.h.

◆ SPR_CURSOR_ROAD_NWSE

const CursorID SPR_CURSOR_ROAD_NWSE = 1312
static

Road cursors.

Definition at line 1645 of file sprites.h.

◆ SPR_CURSOR_ROAD_TUNNEL

const CursorID SPR_CURSOR_ROAD_TUNNEL = 2433
static

Road cursors.

Definition at line 1654 of file sprites.h.

◆ SPR_CURSOR_ROCKY_AREA

const CursorID SPR_CURSOR_ROCKY_AREA = 4087
static

Terraform cursors.

Definition at line 1576 of file sprites.h.

Referenced by ScenarioEditorLandscapeGenerationWindow::OnClick().

◆ SPR_CURSOR_SHIP_DEPOT

const CursorID SPR_CURSOR_SHIP_DEPOT = 721
static

Terraform cursors.

Definition at line 1567 of file sprites.h.

Referenced by BuildDocksToolbarWindow::OnClick().

◆ SPR_CURSOR_SIGN

const CursorID SPR_CURSOR_SIGN = 722
static

Terraform cursors.

Definition at line 1568 of file sprites.h.

Referenced by QueryStringWindow::OnClick(), SignWindow::OnClick(), and TerraformToolbarWindow::OnClick().

◆ SPR_CURSOR_SWNE_ELRAIL

const CursorID SPR_CURSOR_SWNE_ELRAIL = SPR_ELRAIL_BASE + 41
static

Rail cursors.

Definition at line 1614 of file sprites.h.

◆ SPR_CURSOR_SWNE_MAGLEV

const CursorID SPR_CURSOR_SWNE_MAGLEV = 1272
static

Rail cursors.

Definition at line 1609 of file sprites.h.

◆ SPR_CURSOR_SWNE_MONO

const CursorID SPR_CURSOR_SWNE_MONO = 1268
static

Rail cursors.

Definition at line 1604 of file sprites.h.

◆ SPR_CURSOR_SWNE_TRACK

const CursorID SPR_CURSOR_SWNE_TRACK = 1264
static

Rail cursors.

Definition at line 1599 of file sprites.h.

◆ SPR_CURSOR_TOWN

const CursorID SPR_CURSOR_TOWN = 4080
static

Terraform cursors.

Definition at line 1574 of file sprites.h.

Referenced by FoundTownWindow::OnClick().

◆ SPR_CURSOR_TRAMWAY_NESW

const CursorID SPR_CURSOR_TRAMWAY_NESW = SPR_TRAMWAY_BASE + 2
static

Road cursors.

Definition at line 1647 of file sprites.h.

◆ SPR_CURSOR_TRAMWAY_NWSE

const CursorID SPR_CURSOR_TRAMWAY_NWSE = SPR_TRAMWAY_BASE + 3
static

Road cursors.

Definition at line 1648 of file sprites.h.

◆ SPR_CURSOR_TRANSMITTER

const CursorID SPR_CURSOR_TRANSMITTER = 4089
static

Terraform cursors.

Definition at line 1578 of file sprites.h.

◆ SPR_CURSOR_TREE

const CursorID SPR_CURSOR_TREE = 2010
static

Terraform cursors.

Definition at line 1570 of file sprites.h.

Referenced by BuildTreesWindow::UpdateMode().

◆ SPR_CURSOR_TRUCK_STATION

const CursorID SPR_CURSOR_TRUCK_STATION = 2726
static

Road cursors.

Definition at line 1653 of file sprites.h.

Referenced by BuildRoadToolbarWindow::GetCursorForWidget().

◆ SPR_CURSOR_TUNNEL_ELRAIL

const CursorID SPR_CURSOR_TUNNEL_ELRAIL = SPR_ELRAIL_BASE + 45
static

Rail cursors.

Definition at line 1621 of file sprites.h.

◆ SPR_CURSOR_TUNNEL_MAGLEV

const CursorID SPR_CURSOR_TUNNEL_MAGLEV = 2436
static

Rail cursors.

Definition at line 1623 of file sprites.h.

◆ SPR_CURSOR_TUNNEL_MONO

const CursorID SPR_CURSOR_TUNNEL_MONO = 2435
static

Rail cursors.

Definition at line 1622 of file sprites.h.

◆ SPR_CURSOR_TUNNEL_RAIL

const CursorID SPR_CURSOR_TUNNEL_RAIL = 2434
static

Rail cursors.

Definition at line 1620 of file sprites.h.

◆ SPR_CURSOR_WAYPOINT

const CursorID SPR_CURSOR_WAYPOINT = SPR_OPENTTD_BASE + 77
static

◆ SPR_CURSOR_ZZZ

const CursorID SPR_CURSOR_ZZZ = 1
static

Terraform cursors.

Definition at line 1563 of file sprites.h.

Referenced by _GenerateWorld(), GenerateWorld(), and SetMouseCursorBusy().