Title: [...]
Commit from dgtl_magician 2005-10-23 14:51 CEST

I fixed the settings.
It now truly search for attributes in different elements.
New usage for settings::get_setting:
settings->get_setting(ELEMENT,ATTRIBUTE)

For example if your XML file looks like this:
<StarLaneSettings>
	<font>
		<bigfont>Reallybig.ttf</bigfont>
	</font>
</StarLaneSettings>
Get it in the source with: settings->get_setting("font","bigfont");

Made the se::rename a little less static. But it's being called way too often.
We should make tileset and basepath global variables and read them once from the settings file.
Module File name Revision
starlane source/common.h 1.6 >>> 1.7
starlane source/se.cc 1.18 >>> 1.19
starlane source/se.h 1.15 >>> 1.16
starlane source/settings.cc 1.3 >>> 1.4
starlane source/settings.h 1.2 >>> 1.3
starlane source/settings.xml 1.2 >>> 1.3


Reply via email to