Converted py_instance to a macro (don't ask me why it doesn't work as a function) and first pass at UICaption functionality. UISprite C++ tests.

This commit is contained in:
John McCardle 2023-09-03 20:40:52 -04:00
commit 9486104377
5 changed files with 337 additions and 44 deletions

View file

@ -124,6 +124,7 @@ PyObject* PyInit_mcrfpy()
//std::cout << "Adding UIFrame object to module\n";
PyModule_AddType(m, &mcrfpydef::PyColorType);
PyModule_AddType(m, &mcrfpydef::PyUICaptionType);
if (PyModule_AddType(m, &mcrfpydef::PyUIFrameType) < 0)
{
@ -133,6 +134,7 @@ PyObject* PyInit_mcrfpy()
}
PyModule_AddType(m, &mcrfpydef::PyUICollectionType);
PyModule_AddType(m, &mcrfpydef::PyUICollectionIterType);
return m;