Jump to content

Documentation Errors


photo

Recommended Posts

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

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

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

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
Link to comment
  • 2 weeks later...
×
×
  • Create New...