void MetatilePickerLayeredGraphicScene ::pressMouse(int x, int y, InputEventData eventData) { if (eventData.mouseLeftButton() || eventData.mouseRightButton()) { // Pick tile toolManager_->setCurrentTool(LevelEditorTools::metatilePaint); toolManager_->setPickedMetatileIndex(coordinateToMetatileIndex(x, y)); } }
void LengthMapLayeredGraphicScene ::pressMouse(InputEventData eventData) { if (eventData.mouseRightButton()) { doDialogEdit(eventData.x(), eventData.y()); return; } alterMagnitude(eventData.x(), eventData.y()); }