zheng.guan Posted July 23, 2014 Share Posted July 23, 2014 I could add an ui doc in single level game. Then I try to add an ui doc in the multi-levels game using the framework editor. But I got the error:"Interpreter::setvariable(): unknow variable "Man::window"" ,just like the pictures. Heros, who can help me? Link to comment
azagniy Posted July 25, 2014 Share Posted July 25, 2014 Hi. The "UserInterface" class constructor has a prefix parameter as a prefix to namespace in which your class implemented. In a game framework all user logic dynamically compiled in expression with specific name. This namespace name you can get from Game::getLogicNamespaceName() function. void onInit() { UserInterface ui = new UserInterface(engine.getGui(),"my_ui.ui",game.getLogicNamespaceName()); } Link to comment
Recommended Posts