1 #include "globalsettingspanel.h"
2
Globalsettingspanel()3 Globalsettingspanel::Globalsettingspanel()
4 {
5 v_width = 340;
6 v_height = 388;
7
8 isMovable = true;
9
10 position.x = 50;
11 position.y = 35;
12
13 // FIXME camera sensitivity is missing
14 unsigned int vint = 12;
15 unsigned int vspace;
16 unsigned int hspace = 10;
17 // hspace = 10;
18 vspace = 7; addSettingmutator("mincritters", hspace, vspace);
19 vspace += vint; addMutator("energy", cmd.gen("decreaseenergy"), cmd.gen("increaseenergy"), hspace, vspace);
20 vspace += vint; addMutator("worldsizeX", cmd.gen("dec_worldsizex"), cmd.gen("inc_worldsizex"), hspace, vspace);
21 vspace += vint; addMutator("worldsizeY", cmd.gen("dec_worldsizey"), cmd.gen("inc_worldsizey"), hspace, vspace);
22
23 // vspace += vint;
24 vspace += vint; addSettingmutator("fsX", hspace, vspace);
25 vspace += vint; addSettingmutator("fsY", hspace, vspace);
26 vspace += vint; addSettingmutator("fullscreen", hspace, vspace);
27 vspace += vint; addSettingmutator("colormode", hspace, vspace);
28 vspace += vint; addSettingmutator("exit_if_empty", hspace, vspace);
29 vspace += vint; addSettingmutator("fpslimit", hspace, vspace);
30 vspace += vint; addSettingmutator("threads", hspace, vspace);
31 vspace += vint; addSettingmutator("drawscene", hspace, vspace);
32
33 // vspace += vint;
34 vspace += vint; addSettingmutator("critter_insertevery", hspace, vspace);
35 vspace += vint; addSettingmutator("critter_maxlifetime", hspace, vspace);
36 vspace += vint; addSettingmutator("critter_maxenergy", hspace, vspace);
37 vspace += vint; addSettingmutator("critter_startenergy", hspace, vspace);
38 vspace += vint; addSettingmutator("critter_procinterval", hspace, vspace);
39 vspace += vint; addSettingmutator("critter_minenergyproc", hspace, vspace);
40 vspace += vint; addSettingmutator("critter_sightrange", hspace, vspace);
41 vspace += vint; addSettingmutator("critter_autosaveinterval", hspace, vspace);
42 vspace += vint; addSettingmutator("critter_autoexchangeinterval", hspace, vspace);
43 vspace += vint; addSettingmutator("critter_enableomnivores", hspace, vspace);
44 vspace += vint; addSettingmutator("critter_raycastvision", hspace, vspace);
45 vspace += vint; addSettingmutator("critter_killhalfat", hspace, vspace);
46
47 vspace += vint; addSettingmutator("killhalf_decrenergypct", hspace, vspace);
48 vspace += vint; addSettingmutator("killhalf_incrworldsizeX", hspace, vspace);
49 vspace += vint; addSettingmutator("killhalf_incrworldsizeY", hspace, vspace);
50 vspace += vint; addSettingmutator("killhalf_decrmaxlifetimepct", hspace, vspace);
51
52 // vspace += vint;
53 vspace += vint; addSettingmutator("food_maxlifetime", hspace, vspace);
54 vspace += vint; addMutator("food_maxenergy", cmd.gen("dec_foodmaxenergy"), cmd.gen("inc_foodmaxenergy"), hspace, vspace);
55 vspace += vint; addSettingmutator("food_size", hspace, vspace);
56 }
57
~Globalsettingspanel()58 Globalsettingspanel::~Globalsettingspanel()
59 {
60 }
61