diff --git a/Extensions/TextObject/Extension.cpp b/Extensions/TextObject/Extension.cpp index 7cd8feba60..a8a1017409 100644 --- a/Extensions/TextObject/Extension.cpp +++ b/Extensions/TextObject/Extension.cpp @@ -47,6 +47,7 @@ class Extension : public ExtensionBase "Compil Games", "zlib/libpng License ( Open Source )") + //Declaration of all objects available DECLARE_OBJECT("Text", _("Texte"), @@ -56,6 +57,8 @@ class Extension : public ExtensionBase &DestroyTextObject, "TextObject"); + #if defined(GD_IDE_ONLY) + objInfos.SetIncludeFile("TextObject/TextObject.h"); DECLARE_OBJECT_ACTION("String", @@ -244,8 +247,10 @@ class Extension : public ExtensionBase instrInfo.cppCallingInformation.SetFunctionName("GetString").SetIncludeFile("TextObject/TextObject.h"); DECLARE_END_OBJECT_STR_EXPRESSION() + #endif DECLARE_END_OBJECT() + CompleteCompilationInformation(); }; virtual ~Extension() {}; diff --git a/Extensions/TextObject/TextExtension.cbp b/Extensions/TextObject/TextExtension.cbp index 4def537cda..ba47f2e14e 100644 --- a/Extensions/TextObject/TextExtension.cbp +++ b/Extensions/TextObject/TextExtension.cbp @@ -320,8 +320,8 @@ - - + + @@ -340,7 +340,7 @@ - + @@ -364,8 +364,8 @@ - - + + @@ -385,7 +385,7 @@ - + @@ -408,8 +408,8 @@ - - + + @@ -428,7 +428,7 @@ - + @@ -448,8 +448,8 @@ - - + + @@ -468,7 +468,7 @@ - + diff --git a/Extensions/TextObject/TextExtension.depend b/Extensions/TextObject/TextExtension.depend index fd910a0839..2192422f66 100644 --- a/Extensions/TextObject/TextExtension.depend +++ b/Extensions/TextObject/TextExtension.depend @@ -8870,16 +8870,17 @@ 1264364230 d:\florian\programmation\gamedevelop\gdl\gdl\btalignedallocator.h "GDL/btScalar.h" -1311366091 source:d:\florian\programmation\gamedevelop2\extensions\textobject\textobject.cpp +1313697701 source:d:\florian\programmation\gamedevelop2\extensions\textobject\textobject.cpp "GDL/Object.h" "GDL/ImageManager.h" "GDL/tinyxml.h" "GDL/FontManager.h" "GDL/Position.h" + "GDL/RotatedRectangle.h" + "GDL/CommonTools.h" "TextObject.h" - "GDL/CommonTools.h" "GDL/ResourcesMergingHelper.h" "GDL/MainEditorCommand.h" "TextObjectEditor.h" @@ -9150,19 +9151,15 @@ -1311891521 d:\florian\programmation\gamedevelop2\gdl\gdl\object.h - +1312670601 d:\florian\programmation\gamedevelop2\gdl\gdl\object.h "GDL/Force.h" - - - + "GDL/ListVariable.h" "GDL/ObjectHelpers.h" - "GDL/RotatedRectangle.h" 1307990306 d:\florian\programmation\gamedevelop2\extlibs\wxwidgets\include\wx\wx.h "wx/defs.h" @@ -12213,16 +12210,9 @@ 1253308510 d:\florian\programmation\gamedevelop2\extlibs\wxwidgets\include\wx\cocoa\mdi.h "wx/frame.h" -1297544852 d:\florian\programmation\gamedevelop2\gdl\gdl\force.h - "GDL/Event.h" - - - - - "GDL/Log.h" +1312668877 d:\florian\programmation\gamedevelop2\gdl\gdl\force.h -1311454311 d:\florian\programmation\gamedevelop2\gdl\gdl\event.h - +1313855658 d:\florian\programmation\gamedevelop2\gdl\gdl\event.h @@ -15661,11 +15651,11 @@ -1297523943 d:\florian\programmation\gamedevelop2\gdl\gdl\log.h +1313672531 d:\florian\programmation\gamedevelop2\gdl\gdl\log.h -1309204429 d:\florian\programmation\gamedevelop2\gdl\gdl\instruction.h +1312827069 d:\florian\programmation\gamedevelop2\gdl\gdl\instruction.h @@ -15689,10 +15679,8 @@ "GDL/Variable.h" -1312475842 d:\florian\programmation\gamedevelop2\gdl\gdl\variable.h +1312668877 d:\florian\programmation\gamedevelop2\gdl\gdl\variable.h - - 1297523943 d:\florian\programmation\gamedevelop2\gdl\gdl\objecthelpers.h @@ -15711,7 +15699,7 @@ -1307193655 d:\florian\programmation\gamedevelop2\gdl\gdl\game.h +1313670759 d:\florian\programmation\gamedevelop2\gdl\gdl\game.h "GDL/Object.h" @@ -15721,7 +15709,7 @@ "GDL/Image.h" "GDL/LoadingScreen.h" -1310075239 d:\florian\programmation\gamedevelop2\gdl\gdl\scene.h +1313668638 d:\florian\programmation\gamedevelop2\gdl\gdl\scene.h "GDL/Event.h" @@ -15794,18 +15782,17 @@ -1311366091 d:\florian\programmation\gamedevelop2\extensions\textobject\textobject.h +1312720598 d:\florian\programmation\gamedevelop2\extensions\textobject\textobject.h "GDL/Object.h" - + -1308418294 d:\florian\programmation\gamedevelop2\gdl\gdl\commontools.h +1313672614 d:\florian\programmation\gamedevelop2\gdl\gdl\commontools.h - "GDL/Image.h" - + "GDL/LightweightCommonTools.h" 1297523943 d:\florian\programmation\gamedevelop2\gdl\gdl\resourcesmerginghelper.h @@ -15856,7 +15843,7 @@ "wx/pen.h" "wx/bitmap.h" -1294511660 d:\florian\programmation\gamedevelop2\extensions\textobject\textobjecteditor.h +1312638095 d:\florian\programmation\gamedevelop2\extensions\textobject\textobjecteditor.h @@ -15966,7 +15953,7 @@ 1307990301 d:\florian\programmation\gamedevelop2\extlibs\wxwidgets\include\wx\generic\statline.h -1306594475 source:d:\florian\programmation\gamedevelop2\extensions\textobject\textobjecteditor.cpp +1312638121 source:d:\florian\programmation\gamedevelop2\extensions\textobject\textobjecteditor.cpp "TextObjectEditor.h" @@ -16005,13 +15992,13 @@ "wx/gdicmn.h" "wx/dialog.h" -1312376915 source:d:\florian\programmation\gamedevelop2\extensions\textobject\extension.cpp +1313706188 source:d:\florian\programmation\gamedevelop2\extensions\textobject\extension.cpp "GDL/ExtensionBase.h" "GDL/Version.h" "TextObject.h" -1312580948 d:\florian\programmation\gamedevelop2\gdl\gdl\extensionbase.h +1313695175 d:\florian\programmation\gamedevelop2\gdl\gdl\extensionbase.h @@ -16021,7 +16008,11 @@ -1312582381 d:\florian\programmation\gamedevelop2\gdl\gdl\version.h +1313841848 d:\florian\programmation\gamedevelop2\gdl\gdl\version.h 1299115781 d:\florian\programmation\gamedevelop2\extlibs\boost\boost\version.hpp +1312714221 d:\florian\programmation\gamedevelop2\gdl\gdl\lightweightcommontools.h + + + diff --git a/Extensions/TextObject/TextExtension.layout b/Extensions/TextObject/TextExtension.layout index fe10ffb987..58c5f5377e 100644 --- a/Extensions/TextObject/TextExtension.layout +++ b/Extensions/TextObject/TextExtension.layout @@ -2,13 +2,13 @@ - + - + - + diff --git a/Extensions/TextObject/TextObject.cpp b/Extensions/TextObject/TextObject.cpp index cc5a89ce36..4f703a84e4 100644 --- a/Extensions/TextObject/TextObject.cpp +++ b/Extensions/TextObject/TextObject.cpp @@ -31,11 +31,12 @@ freely, subject to the following restrictions: #include "GDL/tinyxml.h" #include "GDL/FontManager.h" #include "GDL/Position.h" +#include "GDL/RotatedRectangle.h" +#include "GDL/CommonTools.h" #include "TextObject.h" #if defined(GD_IDE_ONLY) #include -#include "GDL/CommonTools.h" #include "GDL/ResourcesMergingHelper.h" #include "GDL/MainEditorCommand.h" #include "TextObjectEditor.h" @@ -337,7 +338,7 @@ void TextObject::SetColor( unsigned int r, unsigned int g, unsigned int b ) void TextObject::SetColor(const std::string & colorStr) { - vector < string > colors = SpliterStringToVector(colorStr, ';'); + vector < string > colors = SplitString(colorStr, ';'); if ( colors.size() < 3 ) return; //La couleur est incorrecte diff --git a/Extensions/TextObject/TextObject.h b/Extensions/TextObject/TextObject.h index cbd72ad8ac..7dcbac8927 100644 --- a/Extensions/TextObject/TextObject.h +++ b/Extensions/TextObject/TextObject.h @@ -28,7 +28,7 @@ freely, subject to the following restrictions: #define TEXTOBJECT_H #include "GDL/Object.h" -#include +#include class ImageManager; class RuntimeScene; class Object; @@ -67,8 +67,8 @@ class GD_EXTENSION_API TextObject : public Object virtual wxPanel * CreateInitialPositionPanel( wxWindow* parent, const Game & game_, const Scene & scene_, const InitialPosition & position ); virtual void UpdateInitialPositionFromPanel(wxPanel * panel, InitialPosition & position); - virtual void GetPropertyForDebugger (unsigned int propertyNb, string & name, string & value) const; - virtual bool ChangeProperty(unsigned int propertyNb, string newValue); + virtual void GetPropertyForDebugger (unsigned int propertyNb, std::string & name, std::string & value) const; + virtual bool ChangeProperty(unsigned int propertyNb, std::string newValue); virtual unsigned int GetNumberOfProperties() const; #endif