mirror of
https://github.com/4ian/GDevelop.git
synced 2025-10-15 10:19:04 +00:00

* Update all CMakeLists of extensions to use clang-format * Run clang-format on all Extensions * Update GDCore CMakeLists.txt to add clang-format * Run clang-format on GDCore files * Update GDJS and GDCpp CMakeLists.txt to add clang-format * Run clang-format on GDCpp and GDJS files
43 lines
1.4 KiB
C++
43 lines
1.4 KiB
C++
/*
|
|
* GDevelop Core
|
|
* Copyright 2008-2016 Florian Rival (Florian.Rival@gmail.com). All rights
|
|
* reserved. This project is released under the MIT License.
|
|
*/
|
|
#include "AllBuiltinExtensions.h"
|
|
#include "GDCore/Tools/Localization.h"
|
|
|
|
using namespace std;
|
|
namespace gd {
|
|
|
|
void GD_CORE_API
|
|
BuiltinExtensionsImplementer::ImplementsExternalLayoutsExtension(
|
|
gd::PlatformExtension& extension) {
|
|
extension.SetExtensionInformation(
|
|
"BuiltinExternalLayouts",
|
|
_("External layouts"),
|
|
_("Built-in extension providing actions and conditions related to "
|
|
"external layouts"),
|
|
"Florian Rival",
|
|
"Open source (MIT License)");
|
|
|
|
#if defined(GD_IDE_ONLY)
|
|
extension
|
|
.AddAction("CreateObjectsFromExternalLayout",
|
|
_("Create objects from an external layout"),
|
|
_("Create objects from an external layout."),
|
|
_("Create objects from the external layout named _PARAM1_"),
|
|
_("External layouts"),
|
|
"res/conditions/fichier24.png",
|
|
"res/conditions/fichier.png")
|
|
.AddCodeOnlyParameter("currentScene", "")
|
|
.AddParameter("string", _("Name of the external layout"))
|
|
.AddParameter("expression", _("X position of the origin"), "", true)
|
|
.SetDefaultValue("0")
|
|
.AddParameter("expression", _("Y position of the origin"), "", true)
|
|
.SetDefaultValue("0")
|
|
.MarkAsAdvanced();
|
|
#endif
|
|
}
|
|
|
|
} // namespace gd
|