From 0212ab2377ca17f3aafa6e7ce7ec9eee505e5c3a Mon Sep 17 00:00:00 2001 From: Relintai Date: Sat, 11 Sep 2021 16:33:37 +0200 Subject: [PATCH] Initial commit. --- .gitignore | 8 ++++++++ LICENSE | 19 +++++++++++++++++++ README.md | 28 ++++++++++++++++++++++++++++ SCsub | 5 +++++ config.py | 13 +++++++++++++ register_types.cpp | 30 ++++++++++++++++++++++++++++++ register_types.h | 24 ++++++++++++++++++++++++ 7 files changed, 127 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE create mode 100644 README.md create mode 100644 SCsub create mode 100644 config.py create mode 100644 register_types.cpp create mode 100644 register_types.h diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e68a058 --- /dev/null +++ b/.gitignore @@ -0,0 +1,8 @@ +.import +*.d +*.o +*.meta +*.pyc +*.obj +*.bc + diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..748251f --- /dev/null +++ b/LICENSE @@ -0,0 +1,19 @@ +Copyright (c) 2021 Péter Magyar + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..5399310 --- /dev/null +++ b/README.md @@ -0,0 +1,28 @@ +# Skeleton Editor + +This is a c++ engine module for the Godot engine that contains a modularized version of TokageItLab's pr's 3.2 version from the godot engine repository, until it gets merged. + +The original pr is here: https://github.com/godotengine/godot/pull/45699 +Tht 3.x version (linked in tht pr itself) is here (This is the base for this module): https://github.com/TokageItLab/godot/tree/pose-edit-mode + +I'm developing this for godot 3.x, it will probably work on earlier versions though. 4.0 is not supported. + +# Building + +1. Get the source code for the engine. + +```git clone -b 3.x https://github.com/godotengine/godot.git godot``` + +2. Go into Godot's modules directory. + +``` +cd ./godot/modules/ +``` + +3. Clone this repository + +``` +git clone https://github.com/Relintai/skeleton_editor skeleton_editor +``` + +4. Build Godot. [Tutorial](https://docs.godotengine.org/en/latest/development/compiling/index.html) diff --git a/SCsub b/SCsub new file mode 100644 index 0000000..9931149 --- /dev/null +++ b/SCsub @@ -0,0 +1,5 @@ +Import('env') + +env.add_source_files(env.modules_sources,"register_types.cpp") + +#env.add_source_files(env.modules_sources,"touch_button.cpp") diff --git a/config.py b/config.py new file mode 100644 index 0000000..75b055a --- /dev/null +++ b/config.py @@ -0,0 +1,13 @@ + +def can_build(env, platform): + return True + +def configure(env): + pass + +def get_doc_classes(): + return [ + ] + +def get_doc_path(): + return "doc_classes" \ No newline at end of file diff --git a/register_types.cpp b/register_types.cpp new file mode 100644 index 0000000..fb1a334 --- /dev/null +++ b/register_types.cpp @@ -0,0 +1,30 @@ +/* +Copyright (c) 2021 Péter Magyar + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +#include "register_types.h" + +void register_skeleton_editor_types() { + +} + +void unregister_skeleton_editor_types() { +} diff --git a/register_types.h b/register_types.h new file mode 100644 index 0000000..c5e910e --- /dev/null +++ b/register_types.h @@ -0,0 +1,24 @@ +/* +Copyright (c) 2021 Péter Magyar + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +void register_skeleton_editor_types(); +void unregister_skeleton_editor_types();