- [NEW] editor::getCurrentTemplate

- [NEW] editor::setCurrentTemplate()
This commit is contained in:
2024-06-14 12:21:16 +02:00
parent e101d276e8
commit 70556bf6eb
2 changed files with 15 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
namespace editor namespace editor
{ {
static bool editing = true; static bool editing = true;
static int current_template = 0;
void setEditing(const bool value) void setEditing(const bool value)
{ {
@@ -13,4 +14,15 @@ namespace editor
{ {
return editing; return editing;
} }
const int getCurrentTemplate()
{
return current_template;
}
void setCurrentTemplate(const int value)
{
current_template = value;
}
} }

View File

@@ -4,4 +4,7 @@ namespace editor
{ {
void setEditing(const bool value); void setEditing(const bool value);
const bool isEditing(); const bool isEditing();
const int getCurrentTemplate();
void setCurrentTemplate(const int value);
} }