comparison mde/gui/content/options.d @ 79:61ea26abe4dd

Moved mde/mergetag/parse/parse(To/From) to mde/mergetag/(de)serialize. Implemented (de)serialization of structs.
author Diggory Hardy <diggory.hardy@gmail.com>
date Tue, 05 Aug 2008 11:51:51 +0100
parents 08d3b6bcf891
children 4d5d53e4f881
comparison
equal deleted inserted replaced
78:79a1809421aa 79:61ea26abe4dd
35 char[][] list = opts.list!(char[])(); 35 char[][] list = opts.list!(char[])();
36 36
37 textOpts.length = list.length; 37 textOpts.length = list.length;
38 foreach (i,s; list) { 38 foreach (i,s; list) {
39 Translation.Entry transled = trans.getStruct (s); 39 Translation.Entry transled = trans.getStruct (s);
40 textOpts[i] = new ContentOptionText(opts, s, transled.str, transled.desc); 40 textOpts[i] = new ContentOptionText(opts, s, transled.name, transled.desc);
41 } 41 }
42 } 42 }
43 43
44 ContentOption[] list () { 44 ContentOption[] list () {
45 return textOpts; 45 return textOpts;
46 } 46 }
47 47
48 static OptionList trial () { 48 static OptionList trial () {
49 return new OptionList (miscOpts, "OptionsMisc"); 49 return new OptionList (miscOpts, "L10n/OptionsMisc");
50 } 50 }
51 51
52 protected: 52 protected:
53 ContentOption[] textOpts; 53 ContentOption[] textOpts;
54 } 54 }