mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 01:55:25 -04:00
476dab90c6
Updated ChoixCondition and ChoixAction dialogs to support an arbitrary number of parameters. git-svn-id: svn://localhost@403 8062f311-0dae-4547-b526-b8ab9ac864a5
18 lines
474 B
C++
18 lines
474 B
C++
#include <wx/log.h>
|
|
#include <SFML/Window.hpp>
|
|
|
|
#include "DndTextSceneEditor.h"
|
|
#include "SceneCanvas.h"
|
|
|
|
bool DndTextSceneEditor::OnDropText(wxCoord x, wxCoord y, const wxString& text)
|
|
{
|
|
sceneCanvas.edittimeRenderer.objectToAdd = text;
|
|
|
|
sceneCanvas.AddObjetSelected( sceneCanvas.ConvertCoords(x, 0).x,
|
|
sceneCanvas.ConvertCoords(0, y).y);
|
|
|
|
sceneCanvas.edittimeRenderer.objectToAdd = "";
|
|
|
|
return true;
|
|
}
|