Changed Mouse instructions description to mention touchscreen support

This commit is contained in:
Florian Rival
2014-12-10 15:12:31 +01:00
parent 97b4ae7b1a
commit 2124d87107

View File

@@ -20,10 +20,10 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
#if defined(GD_IDE_ONLY)
extension.AddAction("CentreSourisX",
_("Center mouse horizontaly"),
_("Center cursor horizontally"),
_("Put the cursor in the middle of the screen horizontally."),
_("Center mouse horizontaly"),
_("Mouse"),
_("Center cursor horizontally"),
_("Mouse and touch"),
"res/actions/mouse24.png",
"res/actions/mouse.png")
@@ -31,10 +31,10 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
.MarkAsAdvanced();
extension.AddAction("CentreSourisY",
_("Center mouse verticaly"),
_("Center cursor verticaly"),
_("Put the cursor in the middle of the screen vertically."),
_("Center mouse verticaly"),
_("Mouse"),
_("Center cursor verticaly"),
_("Mouse and touch"),
"res/actions/mouse24.png",
"res/actions/mouse.png")
@@ -45,7 +45,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
_("Hide the cursor"),
_("Hide the cursor."),
_("Hide the cursor"),
_("Mouse"),
_("Mouse and touch"),
"res/actions/mouse24.png",
"res/actions/mouse.png")
.AddCodeOnlyParameter("currentScene", "")
@@ -55,7 +55,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
_("Show the cursor"),
_("Show the cursor."),
_("Show the cursor"),
_("Mouse"),
_("Mouse and touch"),
"res/actions/mouse24.png",
"res/actions/mouse.png")
@@ -64,9 +64,9 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
extension.AddAction("SetSourisXY",
_("Position the cursor of the mouse"),
_("Position the cursor to given coordinates."),
_("Position the cursor at the given coordinates."),
_("Position cursor at _PARAM1_;_PARAM2_"),
_("Mouse"),
_("Mouse and touch"),
"res/actions/mouse24.png",
"res/actions/mouse.png")
@@ -76,10 +76,10 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
.MarkAsAdvanced();
extension.AddAction("CentreSouris",
_("Center the mouse"),
_("Center the mouse."),
_("Center the mouse"),
_("Mouse"),
_("Center the cursor"),
_("Center the cursor on the screen."),
_("Center the cursor"),
_("Mouse and touch"),
"res/actions/mouse24.png",
"res/actions/mouse.png")
@@ -87,13 +87,12 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
.MarkAsAdvanced();
extension.AddCondition("SourisX",
_("X position of the mouse"),
_("Test the X position of the cursor."),
_("The X position of the cursor is _PARAM1__PARAM2_"),
_("Mouse"),
_("Cursor/touch X position"),
_("Compare the X position of the cursor or of a touch."),
_("Cursor/touch X position is _PARAM1__PARAM2_"),
_("Mouse and touch"),
"res/conditions/mouse24.png",
"res/conditions/mouse.png")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("relationalOperator", _("Sign of the test"))
.AddParameter("expression", _("X position"))
@@ -102,10 +101,10 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
.SetManipulatedType("number");
extension.AddCondition("SourisY",
_("Y position of the mouse"),
_("Test the Y position of the cursor."),
_("The Y position of the cursor is _PARAM1__PARAM2_"),
_("Mouse"),
_("Cursor/touch Y position"),
_("Compare the Y position of the cursor or of a touch."),
_("Cursor/touch Y position is _PARAM1__PARAM2_"),
_("Mouse and touch"),
"res/conditions/mouse24.png",
"res/conditions/mouse.png")
.AddCodeOnlyParameter("currentScene", "")
@@ -116,22 +115,22 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
.SetManipulatedType("number");
extension.AddCondition("SourisBouton",
_("Mouse button"),
_("Test if the choosen button of the mouse is pressed."),
_("The button _PARAM1_ is pressed"),
_("Mouse"),
_("Mouse button down or touch held"),
_("Return true if the specified button of the mouse is down or if any touch is in contact with the screen."),
_("Touch or _PARAM1_ mouse button is down"),
_("Mouse and touch"),
"res/conditions/mouse24.png",
"res/conditions/mouse.png")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("mouse", _("Button to test"))
.MarkAsSimple();
extension.AddExpression("MouseX", _("X position of the mouse"), _("X position of the mouse"), _("Mouse"), "res/actions/mouse.png")
extension.AddExpression("MouseX", _("Cursor/touch X position"), _("Cursor/touch X position"), _("Mouse and touch"), "res/actions/mouse.png")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("layer", _("Layer"), "", true).SetDefaultValue("\"\"")
.AddParameter("camera", _("Camera"), "", true).SetDefaultValue("0");
extension.AddExpression("SourisX", _("X position of the mouse"), _("X position of the mouse"), _("Mouse"), "res/actions/mouse.png")
extension.AddExpression("SourisX", _("Cursor/touch X position"), _("Cursor/touch X position"), _("Mouse and touch"), "res/actions/mouse.png")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("layer", _("Layer"), "", true).SetDefaultValue("\"\"")
.AddParameter("camera", _("Camera"), "", true).SetDefaultValue("0")
@@ -139,13 +138,13 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
.SetHidden();
extension.AddExpression("MouseY", _("Y position of the mouse"), _("Y position of the mouse"), _("Mouse"), "res/actions/mouse.png")
extension.AddExpression("MouseY", _("Cursor/touch Y position"), _("Cursor/touch Y position"), _("Mouse and touch"), "res/actions/mouse.png")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("layer", _("Layer"), "", true).SetDefaultValue("\"\"")
.AddParameter("camera", _("Camera"), "", true).SetDefaultValue("0");
extension.AddExpression("SourisY", _("Y position of the mouse"), _("Y position of the mouse"), _("Mouse"), "res/actions/mouse.png")
extension.AddExpression("SourisY", _("Cursor/touch Y position"), _("Cursor/touch Y position"), _("Mouse and touch"), "res/actions/mouse.png")
.AddCodeOnlyParameter("currentScene", "")
.AddParameter("layer", _("Layer"), "", true).SetDefaultValue("\"\"")
.AddParameter("camera", _("Camera"), "", true).SetDefaultValue("0")
@@ -153,7 +152,7 @@ void GD_CORE_API BuiltinExtensionsImplementer::ImplementsMouseExtension(gd::Plat
.SetHidden();
extension.AddExpression("MouseWheelDelta", _("Mouse wheel : Displacement"), _("Mouse wheel displacement"), _("Mouse"), "res/actions/mouse.png")
extension.AddExpression("MouseWheelDelta", _("Mouse wheel: Displacement"), _("Mouse wheel displacement"), _("Mouse and touch"), "res/actions/mouse.png")
.AddCodeOnlyParameter("currentScene", "");
#endif