Alignment: reactive or automatically calculated repositioning of UIDrawables on their parent
This commit is contained in:
parent
73230989ad
commit
4bf590749c
23 changed files with 1350 additions and 397 deletions
|
|
@ -13,6 +13,7 @@
|
|||
#include "PyFOV.h"
|
||||
#include "PyTransition.h"
|
||||
#include "PyEasing.h"
|
||||
#include "PyAlignment.h"
|
||||
#include "PyKey.h"
|
||||
#include "PyMouseButton.h"
|
||||
#include "PyInputState.h"
|
||||
|
|
@ -603,6 +604,13 @@ PyObject* PyInit_mcrfpy()
|
|||
PyErr_Clear();
|
||||
}
|
||||
|
||||
// Add Alignment enum class for automatic child positioning
|
||||
PyObject* alignment_class = PyAlignment::create_enum_class(m);
|
||||
if (!alignment_class) {
|
||||
// If enum creation fails, continue without it (non-fatal)
|
||||
PyErr_Clear();
|
||||
}
|
||||
|
||||
// Add automation submodule
|
||||
PyObject* automation_module = McRFPy_Automation::init_automation_module();
|
||||
if (automation_module != NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue