mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-24 11:55:28 -04:00
110 lines
3.0 KiB
C++
110 lines
3.0 KiB
C++
/**
|
|
|
|
Game Develop - Tiled Sprite Extension
|
|
Copyright (c) 2012 Victor Levasseur (victorlevasseur01@orange.fr)
|
|
Copyright (c) 2013-2014 Florian Rival (Florian.Rival@gmail.com)
|
|
|
|
This software is provided 'as-is', without any express or implied
|
|
warranty. In no event will the authors be held liable for any damages
|
|
arising from the use of this software.
|
|
|
|
Permission is granted to anyone to use this software for any purpose,
|
|
including commercial applications, and to alter it and redistribute it
|
|
freely, subject to the following restrictions:
|
|
|
|
1. The origin of this software must not be misrepresented; you must not
|
|
claim that you wrote the original software. If you use this software
|
|
in a product, an acknowledgment in the product documentation would be
|
|
appreciated but is not required.
|
|
|
|
2. Altered source versions must be plainly marked as such, and must not be
|
|
misrepresented as being the original software.
|
|
|
|
3. This notice may not be removed or altered from any source
|
|
distribution.
|
|
|
|
*/
|
|
|
|
#if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
|
|
#ifndef TILEDSPRITEOBJECTEDITOR_H
|
|
#define TILEDSPRITEOBJECTEDITOR_H
|
|
|
|
//(*Headers(TiledSpriteObjectEditor)
|
|
#include <wx/sizer.h>
|
|
#include <wx/stattext.h>
|
|
#include <wx/textctrl.h>
|
|
#include <wx/checkbox.h>
|
|
#include <wx/statline.h>
|
|
#include <wx/panel.h>
|
|
#include <wx/bmpbuttn.h>
|
|
#include <wx/button.h>
|
|
#include <wx/dialog.h>
|
|
//*)
|
|
#include <wx/aui/aui.h>
|
|
namespace gd { class Project; }
|
|
class TiledSpriteObject;
|
|
namespace gd { class MainFrameWrapper; }
|
|
class ResourcesEditor;
|
|
|
|
class TiledSpriteObjectEditor: public wxDialog
|
|
{
|
|
public:
|
|
|
|
TiledSpriteObjectEditor( wxWindow* parent, gd::Project & game_, TiledSpriteObject & object_, gd::MainFrameWrapper & mainFrameWrapper_ );
|
|
virtual ~TiledSpriteObjectEditor();
|
|
|
|
//(*Declarations(TiledSpriteObjectEditor)
|
|
wxPanel* Core;
|
|
wxTextCtrl* widthEdit;
|
|
wxTextCtrl* heightEdit;
|
|
wxStaticText* StaticText8;
|
|
wxButton* cancelBt;
|
|
wxButton* imageBankBt;
|
|
wxStaticText* StaticText7;
|
|
wxStaticLine* StaticLine1;
|
|
wxCheckBox* smoothCheckBox;
|
|
wxBitmapButton* frontAddFromBt;
|
|
wxButton* okBt;
|
|
wxTextCtrl* frontTextureEdit;
|
|
//*)
|
|
ResourcesEditor * resourcesEditor;
|
|
|
|
protected:
|
|
|
|
//(*Identifiers(TiledSpriteObjectEditor)
|
|
static const long ID_STATICTEXT7;
|
|
static const long ID_TEXTCTRL7;
|
|
static const long ID_STATICTEXT8;
|
|
static const long ID_TEXTCTRL8;
|
|
static const long ID_TEXTCTRL1;
|
|
static const long ID_BITMAPBUTTON1;
|
|
static const long ID_CHECKBOX1;
|
|
static const long ID_STATICLINE1;
|
|
static const long ID_BUTTON3;
|
|
static const long ID_BUTTON1;
|
|
static const long ID_BUTTON2;
|
|
static const long ID_PANEL1;
|
|
//*)
|
|
|
|
private:
|
|
|
|
//(*Handlers(TiledSpriteObjectEditor)
|
|
void OncancelBtClick(wxCommandEvent& event);
|
|
void OnokBtClick(wxCommandEvent& event);
|
|
void OnfrontAddFromBtClick(wxCommandEvent& event);
|
|
void OnimageBankBtClick(wxCommandEvent& event);
|
|
//*)
|
|
|
|
gd::Project & game;
|
|
gd::MainFrameWrapper & mainFrameWrapper;
|
|
TiledSpriteObject & object;
|
|
|
|
wxAuiManager m_mgr; ///< Used to display the image bank editor
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
#endif
|
|
#endif
|
|
|