diff --git a/Extensions/TextObject/Extension.cpp b/Extensions/TextObject/Extension.cpp
index 9fa5019c9b..1fbc2f9fc9 100644
--- a/Extensions/TextObject/Extension.cpp
+++ b/Extensions/TextObject/Extension.cpp
@@ -23,6 +23,10 @@ freely, subject to the following restrictions:
distribution.
*/
+/**
+ * Contributors to the extension:
+ * Victor Levasseur ( Bold/Italic/Underlined styles )
+ */
#include "GDL/ExtensionBase.h"
#include "GDL/Version.h"
@@ -224,6 +228,93 @@ class Extension : public ExtensionBase
DECLARE_END_OBJECT_CONDITION()
+ DECLARE_OBJECT_ACTION("SetBold",
+ _("Gras"),
+ _("Met ou non le texte en gras."),
+ _("Mettre en gras _PARAM0_ : _PARAM1_"),
+ _("Style"),
+ "res/actions/bold.png",
+ "res/actions/bold16.png");
+
+ instrInfo.AddParameter("object", _("Objet"), "Text", false);
+ instrInfo.AddParameter("yesorno", _("Mettre en gras"), "", false);
+
+ instrInfo.cppCallingInformation.SetFunctionName("SetBold").SetIncludeFile("TextObject/TextObject.h");
+
+ DECLARE_END_OBJECT_ACTION()
+
+ DECLARE_OBJECT_CONDITION("IsBold",
+ _("Gras"),
+ _("Teste si un objet texte est en gras."),
+ _("_PARAM0_ est en gras"),
+ _("Style"),
+ "res/conditions/bold.png",
+ "res/conditions/bold16.png");
+
+ instrInfo.AddParameter("object", _("Objet"), "Text", false);
+
+ instrInfo.cppCallingInformation.SetFunctionName("IsBold").SetIncludeFile("TextObject/TextObject.h");
+
+ DECLARE_END_OBJECT_CONDITION()
+
+ DECLARE_OBJECT_ACTION("SetItalic",
+ _("Italique"),
+ _("Met ou non le texte en italique."),
+ _("Mettre en italique _PARAM0_ : _PARAM1_"),
+ _("Style"),
+ "res/actions/italic.png",
+ "res/actions/italic16.png");
+
+ instrInfo.AddParameter("object", _("Objet"), "Text", false);
+ instrInfo.AddParameter("yesorno", _("Mettre en italique"), "", false);
+
+ instrInfo.cppCallingInformation.SetFunctionName("SetItalic").SetIncludeFile("TextObject/TextObject.h");
+
+ DECLARE_END_OBJECT_ACTION()
+
+ DECLARE_OBJECT_CONDITION("IsItalic",
+ _("Italique"),
+ _("Teste si un objet texte est en italique."),
+ _("_PARAM0_ est en italique"),
+ _("Style"),
+ "res/conditions/italic.png",
+ "res/conditions/italic16.png");
+
+ instrInfo.AddParameter("object", _("Objet"), "Text", false);
+
+ instrInfo.cppCallingInformation.SetFunctionName("IsItalic").SetIncludeFile("TextObject/TextObject.h");
+
+ DECLARE_END_OBJECT_CONDITION()
+
+ DECLARE_OBJECT_ACTION("SetUnderlined",
+ _("Souligné"),
+ _("Souligne ou non le texte."),
+ _("Souligner _PARAM0_ : _PARAM1_"),
+ _("Style"),
+ "res/actions/underline.png",
+ "res/actions/underline16.png");
+
+ instrInfo.AddParameter("object", _("Objet"), "Text", false);
+ instrInfo.AddParameter("yesorno", _("Souligner"), "", false);
+
+ instrInfo.cppCallingInformation.SetFunctionName("SetUnderlined").SetIncludeFile("TextObject/TextObject.h");
+
+ DECLARE_END_OBJECT_ACTION()
+
+ DECLARE_OBJECT_CONDITION("IsUnderlined",
+ _("Souligné"),
+ _("Teste si un objet texte est souligné."),
+ _("_PARAM0_ est souligné"),
+ _("Style"),
+ "res/conditions/underline.png",
+ "res/conditions/underline16.png");
+
+ instrInfo.AddParameter("object", _("Objet"), "Text", false);
+
+ instrInfo.cppCallingInformation.SetFunctionName("IsUnderlined").SetIncludeFile("TextObject/TextObject.h");
+
+ DECLARE_END_OBJECT_CONDITION()
+
DECLARE_OBJECT_ACTION("Angle",
_("Angle"),
_("Modifie l'angle d'un objet texte."),
diff --git a/Extensions/TextObject/TextExtension.cbp b/Extensions/TextObject/TextExtension.cbp
index ad23eede5d..5195774da0 100644
--- a/Extensions/TextObject/TextExtension.cbp
+++ b/Extensions/TextObject/TextExtension.cbp
@@ -320,8 +320,6 @@
-
-
@@ -340,7 +338,7 @@
-
+
@@ -364,8 +362,6 @@
-
-
@@ -385,7 +381,7 @@
-
+
@@ -408,8 +404,6 @@
-
-
@@ -428,7 +422,7 @@
-
+
@@ -448,8 +442,6 @@
-
-
@@ -468,7 +460,7 @@
-
+
@@ -488,8 +480,8 @@
-
-
+
+
@@ -500,11 +492,11 @@
-
-
-
+
+
+
-
+
@@ -528,8 +520,8 @@
-
-
+
+
@@ -541,11 +533,11 @@
-
-
-
+
+
+
-
+
diff --git a/Extensions/TextObject/TextExtension.depend b/Extensions/TextObject/TextExtension.depend
index 50777ccc8a..4bf8272bc9 100644
--- a/Extensions/TextObject/TextExtension.depend
+++ b/Extensions/TextObject/TextExtension.depend
@@ -8870,7 +8870,7 @@
1264364230 d:\florian\programmation\gamedevelop\gdl\gdl\btalignedallocator.h
"GDL/btScalar.h"
-1326232805 source:d:\florian\programmation\gamedevelop2\extensions\textobject\textobject.cpp
+1327230337 source:d:\florian\programmation\gamedevelop2\extensions\textobject\textobject.cpp
"GDL/Object.h"
"GDL/ImageManager.h"
@@ -8881,7 +8881,6 @@
"GDL/CommonTools.h"
"GDL/XmlMacros.h"
"TextObject.h"
-
"GDL/IDE/ArbitraryResourceWorker.h"
"GDL/IDE/MainEditorCommand.h"
"TextObjectEditor.h"
@@ -9156,7 +9155,7 @@
-1326144422 d:\florian\programmation\gamedevelop2\gdl\gdl\object.h
+1328304139 d:\florian\programmation\gamedevelop2\gdl\gdl\object.h
"GDL/Force.h"
@@ -12217,7 +12216,7 @@
1325335073 d:\florian\programmation\gamedevelop2\gdl\gdl\force.h
-1326058787 d:\florian\programmation\gamedevelop2\gdl\gdl\event.h
+1329063111 d:\florian\programmation\gamedevelop2\gdl\gdl\event.h
@@ -15692,26 +15691,25 @@
1325335072 d:\florian\programmation\gamedevelop2\gdl\gdl\rotatedrectangle.h
-1322924408 d:\florian\programmation\gamedevelop2\gdl\gdl\imagemanager.h
- "GDL/Game.h"
-
-
-
-
+1329066373 d:\florian\programmation\gamedevelop2\gdl\gdl\imagemanager.h
+
+
+
+
+
-1326144572 d:\florian\programmation\gamedevelop2\gdl\gdl\game.h
+1329065784 d:\florian\programmation\gamedevelop2\gdl\gdl\game.h
- "GDL/Scene.h"
"GDL/VariableList.h"
"GDL/LoadingScreen.h"
"GDL/ResourcesManager.h"
-1325335073 d:\florian\programmation\gamedevelop2\gdl\gdl\scene.h
+1328891436 d:\florian\programmation\gamedevelop2\gdl\gdl\scene.h
"GDL/Event.h"