- [NEW] editor::getCurrentTemplate
- [NEW] editor::setCurrentTemplate()
This commit is contained in:
@@ -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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user