From b09bfe98167ebbfd63c09b00a4bafdef6d7ed5bc Mon Sep 17 00:00:00 2001 From: victorlevasseur Date: Thu, 4 Sep 2014 18:54:40 +0200 Subject: [PATCH] Add a new insertion mode (can now insert tiles in a rectangle) --- .../Platformer with tile map object.gdg | 4 +- .../Output/Release_Windows/res/fill16.png | Bin 0 -> 559 bytes Extensions/TileMapObject/TileMapDialogs.cpp | 32 +- Extensions/TileMapObject/TileMapDialogs.h | 2 + Extensions/TileMapObject/TileMapDialogs.wxcp | 882 ++++++++++++------ Extensions/TileMapObject/TileMapDialogs.xrc | 163 +++- Extensions/TileMapObject/TileMapDialogsIds.h | 7 +- .../TileMapDialogs_wxsmith_bitmaps.cpp | 422 +++++++-- .../TileMapDialogs_wxsmith_bitmaps.xrc | 3 + .../TileMapObject/TileMapObjectEditor.cpp | 12 + .../TileMapObject/TileMapObjectEditor.h | 7 +- Extensions/TileMapObject/TileMapPanel.cpp | 102 +- Extensions/TileMapObject/TileMapPanel.h | 37 +- 13 files changed, 1234 insertions(+), 439 deletions(-) create mode 100644 Binaries/Output/Release_Windows/res/fill16.png diff --git a/Binaries/Output/Release_Windows/Examples/Platformer with tile map object.gdg b/Binaries/Output/Release_Windows/Examples/Platformer with tile map object.gdg index 37049a8e92..f94cc63062 100644 --- a/Binaries/Output/Release_Windows/Examples/Platformer with tile map object.gdg +++ b/Binaries/Output/Release_Windows/Examples/Platformer with tile map object.gdg @@ -62,7 +62,7 @@ - + @@ -251,7 +251,7 @@ - -1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152,152|-1,-1,-1,-1,-1,-1,-1,40,103,152,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,104,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,24,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,72,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,96,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,40,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,132,132,132,103,152,152,152|-1,-1,-1,-1,-1,132,132,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,132,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,132,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,132,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,132,132,132,103,152,152,152|-1,-1,-1,-1,-1,132,132,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,132,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,33,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,33,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,21,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 + -1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152,152|-1,-1,-1,-1,-1,-1,-1,40,103,152,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,104,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,24,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,72,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,96,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,40,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,132,132,132,103,152,152,152|-1,-1,-1,-1,-1,132,132,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,132,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,132,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,132,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,132,132,132,103,152,152,152|-1,-1,-1,-1,-1,132,132,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,132,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,132,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,132,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,33,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,33,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,21,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1,-1,-1,-1,-1,-1,-1,-1,103,152,152,152|-1,-1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-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1|-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1 diff --git a/Binaries/Output/Release_Windows/res/fill16.png b/Binaries/Output/Release_Windows/res/fill16.png new file mode 100644 index 0000000000000000000000000000000000000000..71805b311eb9a5d7d4ddc03a2cc2e187f01d915f GIT binary patch literal 559 zcmV+~0?_@5P)Px#1ZP1_K>z@;j|==^1poj532;bRa{vGi!vFvd!vV){sAK>D02p*dSaefwW^{L9 za%BK;VQFr3E^cLXAT%y8E;Eegmrwuz0ia1lK~y+TmC`Xt0#O(T@FNNw3M3jDnj{(y zEif8tQxJ?6aS+bIRS+=*w`ge+hj0+&7DsUkaS?|jT*QVl3Bf2xGDs6kEA7DDZnF-Kpv&iSW6o|!IC=|N=oyb!rXMOz~;cy#XZ;b+hK!YN=+!SPWvkkre zN?I(!Y%b&AphN+33ks6WcE%&i8zNYJ3GsLjR%;a|(-T3+1@Tftq#Fxyrb<5B7!i0s8(J<>g=pdkyNVJN61b{I}S%> zBErlsJ%be4je^AE-Kj`2`Gx)cdoXjV2auxuNKuezv@;PoJ#9*@-AV`k4ra^H1hY^W zI#seoi=~7}L>xgpo;t`A4~3+~O4z-(A%KMEKR{k1&;KGESEE<$_cuo7j}7Tnr@NrY x@$sj0wHch8jQ;G;939o^gCa$~?_nfBmLEcE~Y002ovPDHLkV1hg1;Sm4; literal 0 HcmV?d00001 diff --git a/Extensions/TileMapObject/TileMapDialogs.cpp b/Extensions/TileMapObject/TileMapDialogs.cpp index 0a15e8daf0..72773a8674 100644 --- a/Extensions/TileMapObject/TileMapDialogs.cpp +++ b/Extensions/TileMapObject/TileMapDialogs.cpp @@ -67,10 +67,36 @@ TileMapObjectEditorBase::TileMapObjectEditorBase(wxWindow* parent, wxWindowID id flexGridSizer200->AddGrowableRow(1); m_mainPanel->SetSizer(flexGridSizer200); + wxFlexGridSizer* flexGridSizer490 = new wxFlexGridSizer(0, 2, 0, 0); + flexGridSizer490->SetFlexibleDirection( wxBOTH ); + flexGridSizer490->SetNonFlexibleGrowMode( wxFLEX_GROWMODE_SPECIFIED ); + flexGridSizer490->AddGrowableCol(1); + flexGridSizer490->AddGrowableRow(0); + + flexGridSizer200->Add(flexGridSizer490, 1, wxALL|wxEXPAND, 0); + + m_toolbar492 = new wxToolBar(m_mainPanel, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxTB_NODIVIDER|wxTB_FLAT); + m_toolbar492->SetToolBitmapSize(wxSize(16,16)); + + flexGridSizer490->Add(m_toolbar492, 0, wxALL|wxEXPAND|wxALIGN_TOP, 0); + + m_toolbar492->AddTool(MODE_SINGLE_TILE_TOOL_ID, _("Pencil mode"), wxXmlResource::Get()->LoadBitmap(wxT("edit16")), wxNullBitmap, wxITEM_RADIO, _("Pencil mode\nAdd tiles only where the mouse goes."), wxT(""), NULL); + + m_toolbar492->AddTool(MODE_RECTANGLE_TILE_TOOL_ID, _("Rectangle mode"), wxXmlResource::Get()->LoadBitmap(wxT("rectangle")), wxNullBitmap, wxITEM_RADIO, _("Rectangle mode\nAdd tile in a rectangle from the position where the mouse was pressed to the position the mouse was released."), wxT(""), NULL); + + m_toolbar492->AddSeparator(); + + m_toolbar492->AddTool(FILL_WITH_TILE_TOOL_ID, _("Fill layer"), wxXmlResource::Get()->LoadBitmap(wxT("fill16")), wxNullBitmap, wxITEM_NORMAL, _("Fill the whole layer with the selected tile."), wxT(""), NULL); + + m_toolbar492->AddTool(ERASE_ALL_TILES_TOOL_ID, _("Erase all the layer"), wxXmlResource::Get()->LoadBitmap(wxT("delete16")), wxNullBitmap, wxITEM_NORMAL, _("Delete all the tiles from the current layer."), wxT(""), NULL); + + m_toolbar492->AddSeparator(); + m_toolbar492->Realize(); + m_mainPanelToolbar = new wxToolBar(m_mainPanel, wxID_ANY, wxDefaultPosition, wxSize(-1,-1), wxTB_HORZ_TEXT|wxTB_NODIVIDER|wxTB_FLAT); m_mainPanelToolbar->SetToolBitmapSize(wxSize(16,16)); - flexGridSizer200->Add(m_mainPanelToolbar, 0, wxALL|wxEXPAND, 0); + flexGridSizer490->Add(m_mainPanelToolbar, 0, wxALL|wxEXPAND, 0); m_mainPanelToolbar->AddTool(CHANGE_MAP_SIZE_TOOL_ID, _("Change map size"), wxXmlResource::Get()->LoadBitmap(wxT("options16")), wxNullBitmap, wxITEM_NORMAL, wxT(""), wxT(""), NULL); @@ -149,6 +175,8 @@ TileMapObjectEditorBase::TileMapObjectEditorBase(wxWindow* parent, wxWindowID id this->Connect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(TileMapObjectEditorBase::OnCloseButtonClicked), NULL, this); this->Connect(CONFIGURE_TILESET_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnTileSetConfigureButtonClicked), NULL, this); this->Connect(EDIT_TILE_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnTileEditToolClicked), NULL, this); + this->Connect(MODE_SINGLE_TILE_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnTileInsertionModeChanged), NULL, this); + this->Connect(MODE_RECTANGLE_TILE_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnTileInsertionModeChanged), NULL, this); this->Connect(CHANGE_MAP_SIZE_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnChangeMapSizeButtonClicked), NULL, this); m_layerChoice->Connect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(TileMapObjectEditorBase::OnLayerChoiceChanged), NULL, this); this->Connect(HIDE_UPPER_LAYERS_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnHideUpperLayerChecked), NULL, this); @@ -163,6 +191,8 @@ TileMapObjectEditorBase::~TileMapObjectEditorBase() this->Disconnect(wxEVT_CLOSE_WINDOW, wxCloseEventHandler(TileMapObjectEditorBase::OnCloseButtonClicked), NULL, this); this->Disconnect(CONFIGURE_TILESET_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnTileSetConfigureButtonClicked), NULL, this); this->Disconnect(EDIT_TILE_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnTileEditToolClicked), NULL, this); + this->Disconnect(MODE_SINGLE_TILE_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnTileInsertionModeChanged), NULL, this); + this->Disconnect(MODE_RECTANGLE_TILE_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnTileInsertionModeChanged), NULL, this); this->Disconnect(CHANGE_MAP_SIZE_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnChangeMapSizeButtonClicked), NULL, this); m_layerChoice->Disconnect(wxEVT_COMMAND_CHOICE_SELECTED, wxCommandEventHandler(TileMapObjectEditorBase::OnLayerChoiceChanged), NULL, this); this->Disconnect(HIDE_UPPER_LAYERS_TOOL_ID, wxEVT_COMMAND_TOOL_CLICKED, wxCommandEventHandler(TileMapObjectEditorBase::OnHideUpperLayerChecked), NULL, this); diff --git a/Extensions/TileMapObject/TileMapDialogs.h b/Extensions/TileMapObject/TileMapDialogs.h index aea63a7db5..c05c8f373a 100644 --- a/Extensions/TileMapObject/TileMapDialogs.h +++ b/Extensions/TileMapObject/TileMapDialogs.h @@ -40,6 +40,7 @@ protected: wxToolBar* m_tileSetToolBar; TileSetPanel* m_tileSetPanel; wxPanel* m_mainPanel; + wxToolBar* m_toolbar492; wxToolBar* m_mainPanelToolbar; wxStaticText* m_staticText355; wxChoice* m_layerChoice; @@ -55,6 +56,7 @@ protected: virtual void OnCloseButtonClicked(wxCloseEvent& event) { event.Skip(); } virtual void OnTileSetConfigureButtonClicked(wxCommandEvent& event) { event.Skip(); } virtual void OnTileEditToolClicked(wxCommandEvent& event) { event.Skip(); } + virtual void OnTileInsertionModeChanged(wxCommandEvent& event) { event.Skip(); } virtual void OnChangeMapSizeButtonClicked(wxCommandEvent& event) { event.Skip(); } virtual void OnLayerChoiceChanged(wxCommandEvent& event) { event.Skip(); } virtual void OnHideUpperLayerChecked(wxCommandEvent& event) { event.Skip(); } diff --git a/Extensions/TileMapObject/TileMapDialogs.wxcp b/Extensions/TileMapObject/TileMapDialogs.wxcp index 65b8613a3c..b565e7f6b4 100644 --- a/Extensions/TileMapObject/TileMapDialogs.wxcp +++ b/Extensions/TileMapObject/TileMapDialogs.wxcp @@ -1,7 +1,7 @@ { "metadata": { "m_generatedFilesDir": ".", - "m_objCounter": 478, + "m_objCounter": 508, "m_includeFiles": ["TileMapDialogsIds.h"], "m_bitmapFunction": "wxCF6DCInitBitmapResources", "m_bitmapsFile": "TileMapDialogs_wxsmith_bitmaps.cpp", @@ -667,130 +667,55 @@ }], "m_events": [], "m_children": [{ - "m_type": 4461, - "proportion": 0, + "m_type": 4403, + "proportion": 1, "border": 0, "gbSpan": "1,1", "gbPosition": "0,0", - "m_styles": ["wxTB_HORZ_TEXT", "wxTB_NODIVIDER", "wxTB_FLAT"], + "m_styles": [], "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "wxID_ANY" - }, { - "type": "string", - "m_label": "Size:", - "m_value": "-1,-1" - }, { "type": "string", "m_label": "Name:", - "m_value": "m_mainPanelToolbar" + "m_value": "flexGridSizer490" }, { "type": "string", - "m_label": "Tooltip:", + "m_label": "Style:", "m_value": "" }, { "type": "string", - "m_label": "Bitmap Size:", - "m_value": "16,16" + "m_label": "# Columns:", + "m_value": "2" }, { "type": "string", - "m_label": "Margins:", - "m_value": "-1,-1" + "m_label": "# Rows:", + "m_value": "0" }, { "type": "string", - "m_label": "Padding:", + "m_label": "Growable columns:", "m_value": "1" }, { "type": "string", - "m_label": "Separator Size:", - "m_value": "5" + "m_label": "Growable rows:", + "m_value": "0" + }, { + "type": "string", + "m_label": "Horizontal gap:", + "m_value": "0" + }, { + "type": "string", + "m_label": "Vertical gap:", + "m_value": "0" }], "m_events": [], "m_children": [{ - "m_type": 4462, + "m_type": 4461, "proportion": 0, - "border": 5, + "border": 0, "gbSpan": "1,1", "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": [], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "CHANGE_MAP_SIZE_TOOL_ID" - }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_changeMapSizeTool" - }, { - "type": "string", - "m_label": "Label:", - "m_value": "Change map size" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "string", - "m_label": "Help String:", - "m_value": "" - }, { - "type": "bitmapPicker", - "m_label": "Bitmap File:", - "m_path": "../../Binaries/Output/Release_Windows/res/icons_default/options16.png" - }, { - "type": "filePicker", - "m_label": "Disabled-Bitmap File", - "m_path": "" - }, { - "type": "choice", - "m_label": "Kind:", - "m_selection": 0, - "m_options": ["normal", "checkable", "radio", "separator", "dropdown"] - }, { - "type": "bool", - "m_label": "Construct the Dropdown Menu:", - "m_value": true - }], - "m_events": [{ - "m_eventName": "wxEVT_COMMAND_TOOL_CLICKED", - "m_eventClass": "wxCommandEvent", - "m_eventHandler": "wxCommandEventHandler", - "m_functionNameAndSignature": "OnChangeMapSizeButtonClicked(wxCommandEvent& event)", - "m_description": "Process a wxEVT_COMMAND_TOOL_CLICKED event (a synonym for wxEVT_COMMAND_MENU_SELECTED). Pass the id of the tool", - "m_noBody": false - }], - "m_children": [] - }, { - "m_type": 4504, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": [], - "m_properties": [{ - "type": "string", - "m_label": "Name:", - "m_value": "m_tbSeparator351" - }, { - "type": "choice", - "m_label": "Kind:", - "m_selection": 0, - "m_options": ["separator"] - }], - "m_events": [], - "m_children": [] - }, { - "m_type": 4405, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], + "m_styles": ["wxTB_NODIVIDER", "wxTB_FLAT"], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND", "wxALIGN_TOP"], "m_properties": [{ "type": "winid", "m_label": "ID:", @@ -801,71 +726,285 @@ "m_value": "-1,-1" }, { "type": "string", - "m_label": "Minimum Size:", - "m_value": "-1,-1" + "m_label": "Name:", + "m_value": "m_toolbar492" }, { "type": "string", - "m_label": "Name:", - "m_value": "m_staticText355" - }, { - "type": "multi-string", "m_label": "Tooltip:", "m_value": "" }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false + "type": "string", + "m_label": "Bitmap Size:", + "m_value": "16,16" }, { "type": "string", - "m_label": "Class Name:", - "m_value": "" + "m_label": "Margins:", + "m_value": "-1,-1" }, { "type": "string", - "m_label": "Include File:", - "m_value": "" + "m_label": "Padding:", + "m_value": "1" }, { "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Label:", - "m_value": "Current layer:" - }, { - "type": "string", - "m_label": "Wrap:", - "m_value": "-1" + "m_label": "Separator Size:", + "m_value": "5" }], "m_events": [], - "m_children": [] + "m_children": [{ + "m_type": 4462, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": [], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "MODE_SINGLE_TILE_TOOL_ID" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_toolbarItem494" + }, { + "type": "string", + "m_label": "Label:", + "m_value": "Pencil mode" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "Pencil mode\\nAdd tiles only where the mouse goes." + }, { + "type": "string", + "m_label": "Help String:", + "m_value": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File:", + "m_path": "../../Binaries/Output/Release_Windows/res/icons_default/edit16.png" + }, { + "type": "filePicker", + "m_label": "Disabled-Bitmap File", + "m_path": "" + }, { + "type": "choice", + "m_label": "Kind:", + "m_selection": 2, + "m_options": ["normal", "checkable", "radio", "separator", "dropdown"] + }, { + "type": "bool", + "m_label": "Construct the Dropdown Menu:", + "m_value": true + }], + "m_events": [{ + "m_eventName": "wxEVT_COMMAND_TOOL_CLICKED", + "m_eventClass": "wxCommandEvent", + "m_eventHandler": "wxCommandEventHandler", + "m_functionNameAndSignature": "OnTileInsertionModeChanged(wxCommandEvent& event)", + "m_description": "Process a wxEVT_COMMAND_TOOL_CLICKED event (a synonym for wxEVT_COMMAND_MENU_SELECTED). Pass the id of the tool", + "m_noBody": false + }], + "m_children": [] + }, { + "m_type": 4462, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": [], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "MODE_RECTANGLE_TILE_TOOL_ID" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_toolbarItem500" + }, { + "type": "string", + "m_label": "Label:", + "m_value": "Rectangle mode" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "Rectangle mode\\nAdd tile in a rectangle from the position where the mouse was pressed to the position the mouse was released." + }, { + "type": "string", + "m_label": "Help String:", + "m_value": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File:", + "m_path": "../../Binaries/Output/Release_Windows/res/conditions/rectangle.png" + }, { + "type": "filePicker", + "m_label": "Disabled-Bitmap File", + "m_path": "" + }, { + "type": "choice", + "m_label": "Kind:", + "m_selection": 2, + "m_options": ["normal", "checkable", "radio", "separator", "dropdown"] + }, { + "type": "bool", + "m_label": "Construct the Dropdown Menu:", + "m_value": true + }], + "m_events": [{ + "m_eventName": "wxEVT_COMMAND_TOOL_CLICKED", + "m_eventClass": "wxCommandEvent", + "m_eventHandler": "wxCommandEventHandler", + "m_functionNameAndSignature": "OnTileInsertionModeChanged(wxCommandEvent& event)", + "m_description": "Process a wxEVT_COMMAND_TOOL_CLICKED event (a synonym for wxEVT_COMMAND_MENU_SELECTED). Pass the id of the tool", + "m_noBody": false + }], + "m_children": [] + }, { + "m_type": 4504, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": [], + "m_properties": [{ + "type": "string", + "m_label": "Name:", + "m_value": "m_tbSeparator498" + }, { + "type": "choice", + "m_label": "Kind:", + "m_selection": 0, + "m_options": ["separator"] + }], + "m_events": [], + "m_children": [] + }, { + "m_type": 4462, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": [], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "FILL_WITH_TILE_TOOL_ID" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_toolbarItem502" + }, { + "type": "string", + "m_label": "Label:", + "m_value": "Fill layer" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "Fill the whole layer with the selected tile." + }, { + "type": "string", + "m_label": "Help String:", + "m_value": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File:", + "m_path": "../../Binaries/Output/Release_Windows/res/fill16.png" + }, { + "type": "filePicker", + "m_label": "Disabled-Bitmap File", + "m_path": "" + }, { + "type": "choice", + "m_label": "Kind:", + "m_selection": 0, + "m_options": ["normal", "checkable", "radio", "separator", "dropdown"] + }, { + "type": "bool", + "m_label": "Construct the Dropdown Menu:", + "m_value": true + }], + "m_events": [], + "m_children": [] + }, { + "m_type": 4462, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": [], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "ERASE_ALL_TILES_TOOL_ID" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_toolbarItem504" + }, { + "type": "string", + "m_label": "Label:", + "m_value": "Erase all the layer" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "Delete all the tiles from the current layer." + }, { + "type": "string", + "m_label": "Help String:", + "m_value": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File:", + "m_path": "../../Binaries/Output/Release_Windows/res/icons_default/delete16.png" + }, { + "type": "filePicker", + "m_label": "Disabled-Bitmap File", + "m_path": "" + }, { + "type": "choice", + "m_label": "Kind:", + "m_selection": 0, + "m_options": ["normal", "checkable", "radio", "separator", "dropdown"] + }, { + "type": "bool", + "m_label": "Construct the Dropdown Menu:", + "m_value": true + }], + "m_events": [], + "m_children": [] + }, { + "m_type": 4504, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": [], + "m_properties": [{ + "type": "string", + "m_label": "Name:", + "m_value": "m_tbSeparator508" + }, { + "type": "choice", + "m_label": "Kind:", + "m_selection": 0, + "m_options": ["separator"] + }], + "m_events": [], + "m_children": [] + }] }, { - "m_type": 4411, + "m_type": 4461, "proportion": 0, - "border": 5, + "border": 0, "gbSpan": "1,1", "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], + "m_styles": ["wxTB_HORZ_TEXT", "wxTB_NODIVIDER", "wxTB_FLAT"], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM", "wxEXPAND"], "m_properties": [{ "type": "winid", "m_label": "ID:", @@ -876,145 +1015,338 @@ "m_value": "-1,-1" }, { "type": "string", - "m_label": "Minimum Size:", + "m_label": "Name:", + "m_value": "m_mainPanelToolbar" + }, { + "type": "string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "string", + "m_label": "Bitmap Size:", + "m_value": "16,16" + }, { + "type": "string", + "m_label": "Margins:", "m_value": "-1,-1" }, { "type": "string", - "m_label": "Name:", - "m_value": "m_layerChoice" - }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" - }, { - "type": "colour", - "m_label": "Bg Colour:", - "colour": "" - }, { - "type": "colour", - "m_label": "Fg Colour:", - "colour": "" - }, { - "type": "font", - "m_label": "Font:", - "m_value": "" - }, { - "type": "bool", - "m_label": "Hidden", - "m_value": false - }, { - "type": "bool", - "m_label": "Disabled", - "m_value": false - }, { - "type": "bool", - "m_label": "Focused", - "m_value": false + "m_label": "Padding:", + "m_value": "1" }, { "type": "string", - "m_label": "Class Name:", - "m_value": "" - }, { - "type": "string", - "m_label": "Include File:", - "m_value": "" - }, { - "type": "string", - "m_label": "Style:", - "m_value": "" - }, { - "type": "multi-string", - "m_label": "Choices:", - "m_value": "Back;Middle;Top" - }, { - "type": "string", - "m_label": "Selection:", - "m_value": "0" - }], - "m_events": [{ - "m_eventName": "wxEVT_COMMAND_CHOICE_SELECTED", - "m_eventClass": "wxCommandEvent", - "m_eventHandler": "wxCommandEventHandler", - "m_functionNameAndSignature": "OnLayerChoiceChanged(wxCommandEvent& event)", - "m_description": "Process a wxEVT_COMMAND_CHOICE_SELECTED event, when an item on the list is selected.", - "m_noBody": false - }], - "m_children": [] - }, { - "m_type": 4504, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": [], - "m_properties": [{ - "type": "string", - "m_label": "Name:", - "m_value": "m_tbSeparator363" - }, { - "type": "choice", - "m_label": "Kind:", - "m_selection": 0, - "m_options": ["separator"] + "m_label": "Separator Size:", + "m_value": "5" }], "m_events": [], - "m_children": [] - }, { - "m_type": 4462, - "proportion": 0, - "border": 5, - "gbSpan": "1,1", - "gbPosition": "0,0", - "m_styles": [], - "m_sizerFlags": [], - "m_properties": [{ - "type": "winid", - "m_label": "ID:", - "m_winid": "HIDE_UPPER_LAYERS_TOOL_ID" + "m_children": [{ + "m_type": 4462, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": [], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "CHANGE_MAP_SIZE_TOOL_ID" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_changeMapSizeTool" + }, { + "type": "string", + "m_label": "Label:", + "m_value": "Change map size" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "string", + "m_label": "Help String:", + "m_value": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File:", + "m_path": "../../Binaries/Output/Release_Windows/res/icons_default/options16.png" + }, { + "type": "filePicker", + "m_label": "Disabled-Bitmap File", + "m_path": "" + }, { + "type": "choice", + "m_label": "Kind:", + "m_selection": 0, + "m_options": ["normal", "checkable", "radio", "separator", "dropdown"] + }, { + "type": "bool", + "m_label": "Construct the Dropdown Menu:", + "m_value": true + }], + "m_events": [{ + "m_eventName": "wxEVT_COMMAND_TOOL_CLICKED", + "m_eventClass": "wxCommandEvent", + "m_eventHandler": "wxCommandEventHandler", + "m_functionNameAndSignature": "OnChangeMapSizeButtonClicked(wxCommandEvent& event)", + "m_description": "Process a wxEVT_COMMAND_TOOL_CLICKED event (a synonym for wxEVT_COMMAND_MENU_SELECTED). Pass the id of the tool", + "m_noBody": false + }], + "m_children": [] }, { - "type": "string", - "m_label": "Name:", - "m_value": "m_hideUpperLayerCheck" + "m_type": 4504, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": [], + "m_properties": [{ + "type": "string", + "m_label": "Name:", + "m_value": "m_tbSeparator351" + }, { + "type": "choice", + "m_label": "Kind:", + "m_selection": 0, + "m_options": ["separator"] + }], + "m_events": [], + "m_children": [] }, { - "type": "string", - "m_label": "Label:", - "m_value": "Hide upper layers" + "m_type": 4405, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "wxID_ANY" + }, { + "type": "string", + "m_label": "Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_staticText355" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "multi-string", + "m_label": "Label:", + "m_value": "Current layer:" + }, { + "type": "string", + "m_label": "Wrap:", + "m_value": "-1" + }], + "m_events": [], + "m_children": [] }, { - "type": "multi-string", - "m_label": "Tooltip:", - "m_value": "" + "m_type": 4411, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": ["wxALL", "wxLEFT", "wxRIGHT", "wxTOP", "wxBOTTOM"], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "wxID_ANY" + }, { + "type": "string", + "m_label": "Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Minimum Size:", + "m_value": "-1,-1" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_layerChoice" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "colour", + "m_label": "Bg Colour:", + "colour": "" + }, { + "type": "colour", + "m_label": "Fg Colour:", + "colour": "" + }, { + "type": "font", + "m_label": "Font:", + "m_value": "" + }, { + "type": "bool", + "m_label": "Hidden", + "m_value": false + }, { + "type": "bool", + "m_label": "Disabled", + "m_value": false + }, { + "type": "bool", + "m_label": "Focused", + "m_value": false + }, { + "type": "string", + "m_label": "Class Name:", + "m_value": "" + }, { + "type": "string", + "m_label": "Include File:", + "m_value": "" + }, { + "type": "string", + "m_label": "Style:", + "m_value": "" + }, { + "type": "multi-string", + "m_label": "Choices:", + "m_value": "Back;Middle;Top" + }, { + "type": "string", + "m_label": "Selection:", + "m_value": "0" + }], + "m_events": [{ + "m_eventName": "wxEVT_COMMAND_CHOICE_SELECTED", + "m_eventClass": "wxCommandEvent", + "m_eventHandler": "wxCommandEventHandler", + "m_functionNameAndSignature": "OnLayerChoiceChanged(wxCommandEvent& event)", + "m_description": "Process a wxEVT_COMMAND_CHOICE_SELECTED event, when an item on the list is selected.", + "m_noBody": false + }], + "m_children": [] }, { - "type": "string", - "m_label": "Help String:", - "m_value": "" + "m_type": 4504, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": [], + "m_properties": [{ + "type": "string", + "m_label": "Name:", + "m_value": "m_tbSeparator363" + }, { + "type": "choice", + "m_label": "Kind:", + "m_selection": 0, + "m_options": ["separator"] + }], + "m_events": [], + "m_children": [] }, { - "type": "bitmapPicker", - "m_label": "Bitmap File:", - "m_path": "../../Binaries/Output/Release_Windows/res/icons_default/layer16.png" - }, { - "type": "filePicker", - "m_label": "Disabled-Bitmap File", - "m_path": "" - }, { - "type": "choice", - "m_label": "Kind:", - "m_selection": 1, - "m_options": ["normal", "checkable", "radio", "separator", "dropdown"] - }, { - "type": "bool", - "m_label": "Construct the Dropdown Menu:", - "m_value": true - }], - "m_events": [{ - "m_eventName": "wxEVT_COMMAND_TOOL_CLICKED", - "m_eventClass": "wxCommandEvent", - "m_eventHandler": "wxCommandEventHandler", - "m_functionNameAndSignature": "OnHideUpperLayerChecked(wxCommandEvent& event)", - "m_description": "Process a wxEVT_COMMAND_TOOL_CLICKED event (a synonym for wxEVT_COMMAND_MENU_SELECTED). Pass the id of the tool", - "m_noBody": false - }], - "m_children": [] + "m_type": 4462, + "proportion": 0, + "border": 5, + "gbSpan": "1,1", + "gbPosition": "0,0", + "m_styles": [], + "m_sizerFlags": [], + "m_properties": [{ + "type": "winid", + "m_label": "ID:", + "m_winid": "HIDE_UPPER_LAYERS_TOOL_ID" + }, { + "type": "string", + "m_label": "Name:", + "m_value": "m_hideUpperLayerCheck" + }, { + "type": "string", + "m_label": "Label:", + "m_value": "Hide upper layers" + }, { + "type": "multi-string", + "m_label": "Tooltip:", + "m_value": "" + }, { + "type": "string", + "m_label": "Help String:", + "m_value": "" + }, { + "type": "bitmapPicker", + "m_label": "Bitmap File:", + "m_path": "../../Binaries/Output/Release_Windows/res/icons_default/layer16.png" + }, { + "type": "filePicker", + "m_label": "Disabled-Bitmap File", + "m_path": "" + }, { + "type": "choice", + "m_label": "Kind:", + "m_selection": 1, + "m_options": ["normal", "checkable", "radio", "separator", "dropdown"] + }, { + "type": "bool", + "m_label": "Construct the Dropdown Menu:", + "m_value": true + }], + "m_events": [{ + "m_eventName": "wxEVT_COMMAND_TOOL_CLICKED", + "m_eventClass": "wxCommandEvent", + "m_eventHandler": "wxCommandEventHandler", + "m_functionNameAndSignature": "OnHideUpperLayerChecked(wxCommandEvent& event)", + "m_description": "Process a wxEVT_COMMAND_TOOL_CLICKED event (a synonym for wxEVT_COMMAND_MENU_SELECTED). Pass the id of the tool", + "m_noBody": false + }], + "m_children": [] + }] }] }, { "m_type": 4403, diff --git a/Extensions/TileMapObject/TileMapDialogs.xrc b/Extensions/TileMapObject/TileMapDialogs.xrc index c9b634111f..791cec5ea9 100644 --- a/Extensions/TileMapObject/TileMapDialogs.xrc +++ b/Extensions/TileMapObject/TileMapDialogs.xrc @@ -117,54 +117,125 @@ 0 0 1 - + wxALL|wxEXPAND - - - 16,16 - - - - - - ../../Binaries/Output/Release_Windows/res/icons_default/options16.png + + + 2 + 0 + 0 + 0 + 1 + 0 + + wxALL|wxEXPAND|wxALIGN_TOP + + + 16,16 + + 1 + + + + + + + + ../../Binaries/Output/Release_Windows/res/icons_default/edit16.png + + + 1 + + + + + + + + ../../Binaries/Output/Release_Windows/res/conditions/rectangle.png + + + + + + + + + + + ../../Binaries/Output/Release_Windows/res/fill16.png + + + + + + + + + + ../../Binaries/Output/Release_Windows/res/icons_default/delete16.png + + + - - - - + 16,16 + + + + + + ../../Binaries/Output/Release_Windows/res/icons_default/options16.png + + + + +