snow_zhangy Posted May 22, 2014 Share Posted May 22, 2014 hello: I have the following function inside namespace ZYYTEK::Interface_GUI::TOOLS void archive_clicked() { //select the achive folder target_df = new WidgetDialogFile(gui,"Select folder"); WidgetButton ok_b = target_df.getOkButton(); WidgetButton cancel_b = target_df.getCancelButton(); ok_b.setCallback(GUI_CLICKED,"ZYYTEK::Interface_GUI::TOOLS::Pick_File_OK"); cancel_b.setCallback(GUI_CLICKED,"ZYYTEK::Interface_GUI::TOOLS::Pick_File_Cancel"); gui.addChild(target_df,target_df.getFlags()); target_df.setPermanentFocus(); target_df.setOrder(1); } but when the i click ok button or cancel button, it always give "unknown function" error on those 2 functions. anyone know why? btw: this fuction is included in another file under namespace ZYYTEK::Interface_GUI::CREATE to initialize. thanks add:it seems the namespace use in editor plugin is different when you use setCallback, or thread(i suspect). you need put the getName() function return name in front of the namespace. then it works Link to comment
necris Posted May 26, 2014 Share Posted May 26, 2014 Hello, I just want to clarify. Is there still any problems? Link to comment
Recommended Posts