Skip to content

Commit b362abc

Browse files
committed
tidy up option list
1 parent c2abcfb commit b362abc

1 file changed

Lines changed: 39 additions & 32 deletions

File tree

src/Engine/Options.cpp

Lines changed: 39 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -66,12 +66,10 @@ void createDefault()
6666
setBool("asyncBlit", true);
6767
setInt("keyboardMode", KEYBOARD_ON);
6868
#endif
69-
setBool("anytimePsiTraining", false);
69+
// game/meta options
7070
setBool("playIntro", true);
7171
setInt("maxFrameSkip", 0);
7272
setBool("traceAI", false);
73-
setBool("sneakyAI", false);
74-
setBool("weaponSelfDestruction", false);
7573
setInt("baseXResolution", 320);
7674
setInt("baseYResolution", 200);
7775
setBool("useScaleFilter", false);
@@ -87,61 +85,70 @@ void createDefault()
8785
setInt("soundVolume", MIX_MAX_VOLUME);
8886
setInt("musicVolume", MIX_MAX_VOLUME);
8987
setString("language", "");
90-
setInt("battleScrollSpeed", 12); // 4, 8, 12, 16, 24
91-
setInt("battleScrollType", SCROLL_AUTO);
92-
setInt("battleScrollDragButton", SDL_BUTTON_MIDDLE);
93-
setBool("battleScrollDragInvert", false); // true drags away from the cursor, false drags towards (like a grab)
94-
setInt("battleScrollDragTimeTolerance", 300); // miliSecond
95-
setInt("battleScrollDragPixelTolerance", 10); // count of pixels
96-
setInt("battleFireSpeed", 6); // 2, 4, 6, 8, 10, 12
97-
setInt("battleXcomSpeed", 30); // 40, 30, 20, 10, 5, 1
98-
setInt("battleAlienSpeed", 30); // 40, 30, 20, 10, 5, 1
99-
setBool("battleInstantGrenade", false); // set to true if you want to play with the alternative grenade handling
100-
setInt("battleExplosionHeight", 0); //0, 1, 2, 3
101-
setInt("battleNewPreviewPath", 0); // requires double-click to confirm moves 0 = none, 1 = arrows, 2 = numbers, 3 = full
10288
setBool("fpsCounter", false);
103-
setBool("craftLaunchAlways", false);
104-
setBool("globeSeasons", false);
105-
setBool("globeAllRadarsOnBaseBuild", true);
10689
setBool("allowChangeListValuesByMouseWheel", false); // It applies only for lists, not for scientists/engineers screen
10790
setInt("autosave", 0);
10891
setInt("changeValueByMouseWheel", 10);
10992
setInt("audioSampleRate", 22050);
11093
setInt("audioBitDepth", 16);
11194
setInt("pauseMode", 0);
95+
setBool("allowResize", false);
96+
setInt("windowedModePositionX", -1);
97+
setInt("windowedModePositionY", -1);
98+
setBool("borderless", false);
99+
setBool("captureMouse", false);
100+
setBool("keepAspectRatio", false);
101+
setBool("cursorInBlackBandsInFullscreen", false);
102+
setBool("cursorInBlackBandsInWindow", true);
103+
setBool("cursorInBlackBandsInBorderlessWindow", false);
104+
setBool("newSeedOnLoad", false);
105+
setInt("saveOrder", SORT_DATE_DESC);
106+
107+
// geoescape options
112108
setBool("spendResearchedItems", false);
109+
setBool("anytimePsiTraining", false);
113110
setBool("alienContainmentLimitEnforced", false);
114111
setBool("canSellLiveAliens", false);
115112
setBool("canTransferCraftsWhileAirborne", false); // When the craft can reach the destination base with its fuel
116113
setBool("canManufactureMoreItemsPerHour", false);
117114
setBool("customInitialBase", false);
118115
setBool("aggressiveRetaliation", false);
119-
setBool("strafe", false);
120-
setBool("battleNotifyDeath", false);
121116
setBool("allowBuildingQueue", false);
122117
setBool("allowAutoSellProduction", false);
123118
setBool("showFundsOnGeoscape", false);
119+
setBool("psiStrengthEval", false);
120+
setBool("craftLaunchAlways", false);
121+
setBool("globeSeasons", false);
122+
setBool("globeAllRadarsOnBaseBuild", true);
123+
124+
// battlescape options
125+
setBool("sneakyAI", false);
124126
setBool("TFTDDamage", false);
127+
setBool("weaponSelfDestruction", false);
128+
setBool("battleInstantGrenade", false); // set to true if you want to play with the alternative grenade handling
129+
setInt("battleExplosionHeight", 0); //0, 1, 2, 3
130+
setInt("battleNewPreviewPath", 0); // requires double-click to confirm moves 0 = none, 1 = arrows, 2 = numbers, 3 = full
131+
setBool("strafe", false);
132+
setBool("battleNotifyDeath", false);
125133
setBool("showMoreStatsInInventoryView", false);
126-
setBool("allowResize", false);
127-
setInt("windowedModePositionX", -1);
128-
setInt("windowedModePositionY", -1);
129134
setBool("battleAutoEnd", false);
130135
setBool("allowPsionicCapture", false);
131-
setBool("psiStrengthEval", false);
132-
setBool("borderless", false);
133-
setBool("captureMouse", false);
134136
setBool("battleTooltips", true);
135137
setBool("battleHairBleach", true);
136-
setBool("keepAspectRatio", false);
137-
setBool("cursorInBlackBandsInFullscreen", false);
138-
setBool("cursorInBlackBandsInWindow", true);
139-
setBool("cursorInBlackBandsInBorderlessWindow", false);
140-
setBool("newSeedOnLoad", false);
141138
setBool("skipNextTurnScreen", false);
142139
setBool("disableAutoEquip", false);
143140
setBool("battleUFOExtenderAccuracy", false);
144-
setInt("saveOrder", SORT_DATE_DESC);
141+
142+
// battlescape control options
143+
setInt("battleScrollSpeed", 12); // 4, 8, 12, 16, 24
144+
setInt("battleScrollType", SCROLL_AUTO);
145+
setInt("battleScrollDragButton", SDL_BUTTON_MIDDLE);
146+
setBool("battleScrollDragInvert", false); // true drags away from the cursor, false drags towards (like a grab)
147+
setInt("battleScrollDragTimeTolerance", 300); // miliSecond
148+
setInt("battleScrollDragPixelTolerance", 10); // count of pixels
149+
setInt("battleFireSpeed", 6); // 2, 4, 6, 8, 10, 12
150+
setInt("battleXcomSpeed", 30); // 40, 30, 20, 10, 5, 1
151+
setInt("battleAlienSpeed", 30); // 40, 30, 20, 10, 5, 1
145152

146153
// new battle mode data
147154
setInt("NewBattleMission", 0);

0 commit comments

Comments
 (0)