michael.zhang Posted September 8, 2010 Share Posted September 8, 2010 Hello, I noticed that in the latest documentation packaged with the 9/7/2010 Binary SDK, class User Interface specifies an update() function. However, in the system.h:148 script, it uses the updateWidgets() function. Just a slight inconsistency. Is this the correct forum for documentation mistakes? Thanks Link to comment
Guest extaliones Posted September 9, 2010 Share Posted September 9, 2010 Hello, UserInterface has only update function and the script in system.h calls update : /* */ void set_language(int lang) { if(language != lang) { language = lang; if(locale != "") { if(language == 0) engine.gui.loadDictionary(locale + ".en"); if(language == 1) engine.gui.loadDictionary(locale + ".ru"); user_interface.update(); foreach(string tab; tab_prefix) { call(tab + "init"); call(tab + "update"); } } } } Link to comment
binstream Posted September 9, 2010 Share Posted September 9, 2010 UnigineScript library documentation is slightly outdated now. We are working on its update, actual version will be available for download in a few days. Link to comment
michael.zhang Posted September 9, 2010 Author Share Posted September 9, 2010 Hey extaliones, Looks like you need to update your sdk ;) (Or, you have an even MORE updated version than me, which changes it back...) void set_language(int lang) { if(language != lang) { language = lang; if(locale != "") { if(language == 0) engine.gui.loadDictionary(locale + ".en"); if(language == 1) engine.gui.loadDictionary(locale + ".ru"); user_interface.updateWidgets(); foreach(string tab; tab_prefix) { call(tab + "init"); call(tab + "update"); } } } } Okay, looking forward to the new documentation :) Link to comment
binstream Posted September 9, 2010 Share Posted September 9, 2010 Michael, I believe that Joulia has the most recent Unigine version since she works several meters away from our CTO =) Link to comment
Guest extaliones Posted September 10, 2010 Share Posted September 10, 2010 Hello, Sorry I have an old extracted core, you are right the documentation is outwear. UserInterface class has new interface. Please, stand by for documentation update. 2 Link to comment
binstream Posted September 19, 2010 Share Posted September 19, 2010 Updated reference manual: https://developer.unigine.com/fileserver/download/UnigineManual-2010-09-19.chm Link to comment
michael.zhang Posted September 20, 2010 Author Share Posted September 20, 2010 Excellent, thank you! :blink: Link to comment
Recommended Posts