MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetCursor

Method GetCursor

src/story.cpp:169–174  ·  view source on GitHub ↗

Get the mouse cursor used while waiting for input for the button. */

Source from the content-addressed store, hash-verified

167
168/** Get the mouse cursor used while waiting for input for the button. */
169StoryPageButtonCursor StoryPageButtonData::GetCursor() const
170{
171 StoryPageButtonCursor cursor = (StoryPageButtonCursor)GB(this->referenced_id, 8, 8);
172 if (!IsValidStoryPageButtonCursor(cursor)) return INVALID_SPBC;
173 return cursor;
174}
175
176/** Get the type of vehicles that are accepted by the button */
177VehicleType StoryPageButtonData::GetVehicleType() const

Callers 1

OnPageElementClickMethod · 0.80

Calls 2

GBFunction · 0.85

Tested by

no test coverage detected