Jump to content

Documentation Errors


photo

Recommended Posts

Posted

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

Posted

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");
			}
		}
	}
}

Posted

UnigineScript library documentation is slightly outdated now. We are working on its update, actual version will be available for download in a few days.

Posted

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 :)

Posted

Michael, I believe that Joulia has the most recent Unigine version since she works several meters away from our CTO =)

Posted

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.

  • Like 2
  • 2 weeks later...
×
×
  • Create New...