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

Function SelectSignTool

src/toolbar_gui.cpp:196–205  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194static ToolbarMode _toolbar_mode;
195
196static CallBackFunction SelectSignTool()
197{
198 if (_last_started_action == CBF_PLACE_SIGN) {
199 ResetObjectToPlace();
200 return CBF_NONE;
201 } else {
202 SetObjectToPlace(SPR_CURSOR_SIGN, PAL_NONE, HT_RECT, WC_MAIN_TOOLBAR, 0);
203 return CBF_PLACE_SIGN;
204 }
205}
206
207/* --- Pausing --- */
208

Callers 2

MenuClickForestFunction · 0.85
ToolbarScenPlaceSignFunction · 0.85

Calls 2

ResetObjectToPlaceFunction · 0.85
SetObjectToPlaceFunction · 0.85

Tested by

no test coverage detected