michael.zhang Posted September 8, 2010 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
Guest extaliones Posted September 9, 2010 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"); } } } }
binstream Posted September 9, 2010 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.
michael.zhang Posted September 9, 2010 Author 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 :)
binstream Posted September 9, 2010 Posted September 9, 2010 Michael, I believe that Joulia has the most recent Unigine version since she works several meters away from our CTO =)
Guest extaliones Posted September 10, 2010 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
binstream Posted September 19, 2010 Posted September 19, 2010 Updated reference manual: https://developer.unigine.com/fileserver/download/UnigineManual-2010-09-19.chm
michael.zhang Posted September 20, 2010 Author Posted September 20, 2010 Excellent, thank you! :blink:
Recommended Posts