@@ -398,6 +398,7 @@ GlobalData* GlobalData::m_theOriginal = NULL;
398398 { " EnforceMaxCameraHeight" , INI::parseBool, NULL , offsetof ( GlobalData, m_enforceMaxCameraHeight ) },
399399 { " KeyboardScrollSpeedFactor" , INI::parseReal, NULL , offsetof ( GlobalData, m_keyboardScrollFactor ) },
400400 { " KeyboardDefaultScrollSpeedFactor" , INI::parseReal, NULL , offsetof ( GlobalData, m_keyboardDefaultScrollFactor ) },
401+ { " KeyboardCameraRotateSpeed" , INI::parseReal, NULL , offsetof ( GlobalData, m_keyboardCameraRotateSpeed ) },
401402 { " MovementPenaltyDamageState" , INI::parseIndexList, TheBodyDamageTypeNames, offsetof ( GlobalData, m_movementPenaltyDamageState ) },
402403
403404// you cannot set this; it always has a value of 100%.
@@ -457,6 +458,11 @@ GlobalData* GlobalData::m_theOriginal = NULL;
457458
458459 { " SpecialPowerViewObject" , INI::parseAsciiString, NULL , offsetof ( GlobalData, m_specialPowerViewObjectName ) },
459460
461+ // TheSuperHackers @feature Customize the opacity (0..1) and shadows of build preview objects. Shadows are enabled by default.
462+ // Note that disabling shadows loses a fair bit of contrast visually and warrants raising the opacity.
463+ { " ObjectPlacementOpacity" , INI::parseReal, NULL , offsetof ( GlobalData, m_objectPlacementOpacity ) },
464+ { " ObjectPlacementShadows" , INI::parseBool, NULL , offsetof ( GlobalData, m_objectPlacementShadows ) },
465+
460466 { " StandardPublicBone" , INI::parseAsciiStringVectorAppend, NULL , offsetof (GlobalData, m_standardPublicBones) },
461467 { " ShowMetrics" , INI::parseBool, NULL , offsetof ( GlobalData, m_showMetrics ) },
462468 { " DefaultStartingCash" , Money::parseMoneyAmount, NULL , offsetof ( GlobalData, m_defaultStartingCash ) },
@@ -486,7 +492,6 @@ GlobalData* GlobalData::m_theOriginal = NULL;
486492 { " NetworkPlayerTimeoutTime" , INI::parseInt, NULL , offsetof (GlobalData, m_networkPlayerTimeoutTime) },
487493 { " NetworkDisconnectScreenNotifyTime" , INI::parseInt, NULL , offsetof (GlobalData, m_networkDisconnectScreenNotifyTime) },
488494
489- { " KeyboardCameraRotateSpeed" , INI::parseReal, NULL , offsetof ( GlobalData, m_keyboardCameraRotateSpeed ) },
490495 { " PlayStats" , INI::parseInt, NULL , offsetof ( GlobalData, m_playStats ) },
491496
492497#if defined(RTS_DEBUG)
@@ -874,6 +879,9 @@ GlobalData::GlobalData()
874879 m_standardMinefieldDensity = 0 .01f ;
875880 m_standardMinefieldDistance = 40 .0f ;
876881
882+ m_objectPlacementOpacity = 0 .45f ;
883+ m_objectPlacementShadows = TRUE ;
884+
877885 m_groupSelectMinSelectSize = 5 ;
878886 m_groupSelectVolumeBase = 0 .5f ;
879887 m_groupSelectVolumeIncrement = 0 .02f ;
0 commit comments