| 2522 | } |
| 2523 | |
| 2524 | void CEditor::PopupSelectAutoMapReferenceInvoke(int Current, float x, float y) |
| 2525 | { |
| 2526 | static SPopupMenuId s_PopupSelectAutoMapReferenceId; |
| 2527 | s_AutoMapReferenceSelected = -100; |
| 2528 | s_AutoMapReferenceCurrent = Current; |
| 2529 | std::shared_ptr<CLayerTiles> pLayer = std::static_pointer_cast<CLayerTiles>(Map()->SelectedLayer(0)); |
| 2530 | // Width for buttons is 120, 15 is the scrollbar width, 2 is the margin between both. |
| 2531 | Ui()->DoPopupMenu(&s_PopupSelectAutoMapReferenceId, x, y, 120.0f + 15.0f + 2.0f, 26.0f + 14.0f * std::size(AUTOMAP_REFERENCE_NAMES) + 1, this, PopupSelectAutoMapReference); |
| 2532 | } |
| 2533 | |
| 2534 | int CEditor::PopupSelectAutoMapReferenceResult() |
| 2535 | { |
nothing calls this directly
no test coverage detected