mirror of
https://github.com/Heretek-AI/GDevelop.git
synced 2026-07-22 18:15:27 -04:00
Update extensions to be compiled without wxWidgets GUI
This commit is contained in:
@@ -5,8 +5,12 @@ Copyright (c) 2011-2015 Florian Rival (Florian.Rival@gmail.com)
|
||||
This project is released under the MIT License.
|
||||
*/
|
||||
|
||||
#if defined(GD_IDE_ONLY) && !defined(GD_NO_WX_GUI)
|
||||
#include <wx/bitmap.h>
|
||||
#endif
|
||||
#include <SFML/Graphics.hpp>
|
||||
#include <string>
|
||||
#include "GDCore/Tools/Localization.h"
|
||||
#include "GDCpp/Object.h"
|
||||
#include "GDCpp/ImageManager.h"
|
||||
#include "GDCpp/Serialization/SerializerElement.h"
|
||||
@@ -15,7 +19,6 @@ This project is released under the MIT License.
|
||||
#include "GDCpp/RuntimeScene.h"
|
||||
#include "TextEntryObject.h"
|
||||
#if defined(GD_IDE_ONLY)
|
||||
#include <wx/bitmap.h>
|
||||
#include "GDCore/IDE/ArbitraryResourceWorker.h"
|
||||
#include "GDCpp/CommonTools.h"
|
||||
#include "GDCore/IDE/Dialogs/MainFrameWrapper.h"
|
||||
@@ -77,7 +80,9 @@ void TextEntryObject::LoadEdittimeIcon()
|
||||
|
||||
bool TextEntryObject::GenerateThumbnail(const gd::Project & project, wxBitmap & thumbnail) const
|
||||
{
|
||||
#if !defined(GD_NO_WX_GUI)
|
||||
thumbnail = wxBitmap("CppPlatform/Extensions/textentry.png", wxBITMAP_TYPE_ANY);
|
||||
#endif
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user