|
From: | Joel Vennin |
Subject: | Re: [Adonthell-devel] Configuration file support |
Date: | Mon, 26 Apr 2004 10:25:47 +0200 |
User-agent: | Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040113 |
Alexandre Courbot wrote:
Moreover, I think we can also write an option dialog that dynamically presents the contents of the config file. For that, I have the following idea:* the config file is split into sections (Audio, Video, Gameplay, Controls ...). For each section, the option dialog generates a different page.* each option will have some meta-information attached, that tells the option dialog how to present it: as input field, as checkbox or as a slider to chose a value within a range.What do you think?Do I hear 'XML'? ;)Very good idea anyway. Perhaps the meta-information for displaying could just be the various choices available. For instance, a boolean value would instanciate into a checkbox, and so on...Alex.
XML why not, but if we want edit easily this file by hand, i think it can be more insteresting to use Yaml, you can find it at www.yaml.org.
Jol
[Prev in Thread] | Current Thread | [Next in Thread] |