mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 10:35:35 -04:00
7bc23ca655
(Texture coords are now calculated on the fly, only non-default hitboxes are stored and collidable property is separated from hitbox storage)
43 lines
1.3 KiB
C++
43 lines
1.3 KiB
C++
/**
|
|
|
|
GDevelop - Tile Map Extension
|
|
Copyright (c) 2014-2015 Victor Levasseur (victorlevasseur52@gmail.com)
|
|
This project is released under the MIT License.
|
|
*/
|
|
|
|
#ifndef TILESETCONFIGURATIONEDITOR_H
|
|
#define TILESETCONFIGURATIONEDITOR_H
|
|
#if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
|
|
#include "TileMapDialogs.h"
|
|
|
|
#include "TileSet.h"
|
|
|
|
class ResourcesEditor;
|
|
namespace gd {class MainFrameWrapper;}
|
|
|
|
class TileSetConfigurationEditor : public TileSetConfigurationEditorBase
|
|
{
|
|
public:
|
|
TileSetConfigurationEditor(wxWindow* parent, TileSet &tileSet_, gd::Project & game_, gd::MainFrameWrapper & mainFrameWrapper);
|
|
virtual ~TileSetConfigurationEditor();
|
|
|
|
private:
|
|
TileSet &tileSet; ///< Ref to the current TileMapObject tileset
|
|
gd::Project &game;
|
|
|
|
TileSet previewTileSet;
|
|
ResourcesEditor *resourcesEditorPnl;
|
|
|
|
void UpdatePreviewTileSetPanel(bool newTexture = false);
|
|
|
|
protected:
|
|
virtual void OnHelpButtonClicked(wxHyperlinkEvent& event);
|
|
virtual void OnTileSetParameterUpdated(wxSpinEvent& event);
|
|
virtual void OnTileSetTextureUpdated(wxCommandEvent& event);
|
|
virtual void OnCancelButtonClicked(wxCommandEvent& event);
|
|
virtual void OnOkButtonClicked(wxCommandEvent& event);
|
|
virtual void OnSetTextureButtonClicked(wxCommandEvent& event);
|
|
};
|
|
#endif
|
|
#endif // TILESETCONFIGURATIONEDITOR_H
|