Repository navigation
KenshiLua v0.3.4-alpha
Overview
Major refactoring of event and callback systems, with MyGUI backwards compatibility now integrated natively into C++.
Features
Events Refactoring
- Refactored hook and callback registrations to use standard C++ symbols (e.g.,
Character::declareDead,InputHandler::keyDownEvent) - Implemented legacy compatability subsystem to dynamically resolve 220+ legacy event aliases with deprecation warnings
- Added
Events.on/off/register/unregisterandWidget:on/offnamespaces in Lua
Enums
- Use C++ enum names for all enums and removed all shortened/synthetic enum member aliases
- Registered nested class enums directly under parent class namespaces
Containers
- Added script-owned container factories:
lektor,ogre_unordered_set, andogre_unordered_map - Implemented Lua-managed object lifecycles via
pushObjectOwnedCustom - Added
extractContainerTypeNamefor flexible argument resolution - Modularized container registration in
RegisterBindings.cpp
MyGUI Backwards Compatibility
- Embedded MyGUI backwards compatibility natively in C++, polyfilling global helpers and 34 monolithic widget property fallbacks
- Purged obsolete
lib/mygui/compat.luafile
Bug Fixes
- Fixed return value handling for
YesNoMaybetypes in bindings - Removed invalid deallocation in
lektorstorage forgetAllAttackers() - Restored underscore prefixes to
CharStatsproperties to prevent name collisions with methods - Fixed
FactionBinding::getAllActiveSquadsreturn value (was returning 0 instead of 1)
Documentation
- Updated
CallbacksReference.mdwith C++ event symbol names - Updated
MyGUIReference.mdwithWidget:on/offcallback attachment syntax - Added
ContainersReference.mddocumentation - Updated doc generator scripts to match new event and callback structures
Full Changelog: v0.3.3-alpha...v0.3.4-alpha