| 159 | } |
| 160 | |
| 161 | void CEditor::LayerSelectImage() |
| 162 | { |
| 163 | if(!IsNonGameTileLayerSelected()) |
| 164 | return; |
| 165 | |
| 166 | std::shared_ptr<CLayer> pLayer = Map()->SelectedLayer(0); |
| 167 | std::shared_ptr<CLayerTiles> pTiles = std::static_pointer_cast<CLayerTiles>(pLayer); |
| 168 | |
| 169 | static SLayerPopupContext s_LayerPopupContext = {}; |
| 170 | s_LayerPopupContext.m_pEditor = this; |
| 171 | Ui()->DoPopupMenu(&s_LayerPopupContext, Ui()->MouseX(), Ui()->MouseY(), 150, 300, &s_LayerPopupContext, PopupLayer); |
| 172 | PopupSelectImageInvoke(pTiles->m_Image, Ui()->MouseX(), Ui()->MouseY()); |
| 173 | } |
| 174 | |
| 175 | void CEditor::MapDetails() |
| 176 | { |
nothing calls this directly
no test coverage detected