mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-23 02:25:52 -04:00
128 lines
3.5 KiB
C++
128 lines
3.5 KiB
C++
/**
|
|
|
|
GDevelop - Box 3D Extension
|
|
Copyright (c) 2008-2016 Florian Rival (Florian.Rival@gmail.com)
|
|
This project is released under the MIT License.
|
|
*/
|
|
|
|
#if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
|
|
#ifndef BOX3DOBJECTEDITOR_H
|
|
#define BOX3DOBJECTEDITOR_H
|
|
|
|
//(*Headers(Box3DObjectEditor)
|
|
#include <wx/sizer.h>
|
|
#include <wx/stattext.h>
|
|
#include <wx/textctrl.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 Box3DObject;
|
|
namespace gd { class MainFrameWrapper; }
|
|
class ResourcesEditor;
|
|
|
|
class Box3DObjectEditor: public wxDialog
|
|
{
|
|
public:
|
|
|
|
Box3DObjectEditor( wxWindow* parent, gd::Project & game_, Box3DObject & object_, gd::MainFrameWrapper & mainFrameWrapper_ );
|
|
virtual ~Box3DObjectEditor();
|
|
|
|
//(*Declarations(Box3DObjectEditor)
|
|
wxPanel* Core;
|
|
wxStaticText* StaticText9;
|
|
wxTextCtrl* widthEdit;
|
|
wxTextCtrl* bottomTextureEdit;
|
|
wxStaticText* StaticText2;
|
|
wxTextCtrl* backTextureEdit;
|
|
wxStaticText* StaticText6;
|
|
wxTextCtrl* heightEdit;
|
|
wxStaticText* StaticText8;
|
|
wxTextCtrl* depthEdit;
|
|
wxBitmapButton* rightAddFromBt;
|
|
wxStaticText* StaticText1;
|
|
wxStaticText* StaticText3;
|
|
wxTextCtrl* topTextureEdit;
|
|
wxButton* cancelBt;
|
|
wxBitmapButton* topAddFromBt;
|
|
wxBitmapButton* leftAddFromBt;
|
|
wxButton* imageBankBt;
|
|
wxBitmapButton* backAddFromBt;
|
|
wxTextCtrl* leftTextureEdit;
|
|
wxTextCtrl* rightTextureEdit;
|
|
wxStaticText* StaticText5;
|
|
wxStaticText* StaticText7;
|
|
wxStaticLine* StaticLine1;
|
|
wxBitmapButton* frontAddFromBt;
|
|
wxStaticText* StaticText4;
|
|
wxButton* okBt;
|
|
wxBitmapButton* bottomAddFromBt;
|
|
wxTextCtrl* frontTextureEdit;
|
|
//*)
|
|
ResourcesEditor * resourcesEditor;
|
|
|
|
protected:
|
|
|
|
//(*Identifiers(Box3DObjectEditor)
|
|
static const long ID_STATICTEXT7;
|
|
static const long ID_TEXTCTRL7;
|
|
static const long ID_STATICTEXT8;
|
|
static const long ID_TEXTCTRL8;
|
|
static const long ID_STATICTEXT9;
|
|
static const long ID_TEXTCTRL9;
|
|
static const long ID_STATICTEXT1;
|
|
static const long ID_TEXTCTRL1;
|
|
static const long ID_BITMAPBUTTON1;
|
|
static const long ID_STATICTEXT2;
|
|
static const long ID_TEXTCTRL2;
|
|
static const long ID_BITMAPBUTTON2;
|
|
static const long ID_STATICTEXT3;
|
|
static const long ID_TEXTCTRL3;
|
|
static const long ID_BITMAPBUTTON3;
|
|
static const long ID_STATICTEXT4;
|
|
static const long ID_TEXTCTRL4;
|
|
static const long ID_BITMAPBUTTON4;
|
|
static const long ID_STATICTEXT5;
|
|
static const long ID_TEXTCTRL5;
|
|
static const long ID_BITMAPBUTTON5;
|
|
static const long ID_STATICTEXT6;
|
|
static const long ID_TEXTCTRL6;
|
|
static const long ID_BITMAPBUTTON6;
|
|
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(Box3DObjectEditor)
|
|
void OncancelBtClick(wxCommandEvent& event);
|
|
void OnokBtClick(wxCommandEvent& event);
|
|
void OnfrontAddFromBtClick(wxCommandEvent& event);
|
|
void OntopAddFromBtClick(wxCommandEvent& event);
|
|
void OnbottomAddFromBtClick(wxCommandEvent& event);
|
|
void OnleftAddFromBtClick(wxCommandEvent& event);
|
|
void OnrightAddFromBtClick(wxCommandEvent& event);
|
|
void OnbackAddFromBtClick(wxCommandEvent& event);
|
|
void OnimageBankBtClick(wxCommandEvent& event);
|
|
//*)
|
|
|
|
gd::Project & game;
|
|
gd::MainFrameWrapper & mainFrameWrapper;
|
|
Box3DObject & object;
|
|
|
|
wxAuiManager m_mgr; ///< Used to display the image bank editor
|
|
|
|
DECLARE_EVENT_TABLE()
|
|
};
|
|
|
|
#endif
|
|
#endif
|
|
|