MCPcopy Create free account
hub / github.com/ddnet/ddnet / LayerSelectImage

Method LayerSelectImage

src/game/editor/quick_actions.cpp:161–173  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159}
160
161void 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
175void CEditor::MapDetails()
176{

Callers

nothing calls this directly

Calls 6

MapFunction · 0.85
UiFunction · 0.85
SelectedLayerMethod · 0.80
DoPopupMenuMethod · 0.80
MouseXMethod · 0.80
MouseYMethod · 0.80

Tested by

no test coverage detected