data is ready for rotation feature

some little hotkey changes
This commit is contained in:
Titus Tscharntke
2010-03-27 16:08:03 +00:00
parent 21acde48a9
commit 42919a50f2
3 changed files with 4 additions and 7 deletions

View File

@@ -58,7 +58,7 @@ GameCamera::GameCamera() : pos(0.f, defaultHeight, 0.f),
maxRenderDistance = Config::getInstance().getFloat("RenderDistanceMax","64");
maxHeight = Config::getInstance().getFloat("CameraMaxDistance","20");
minHeight = Config::getInstance().getFloat("CameraMinDistance","8");
minHeight = Config::getInstance().getFloat("CameraMinDistance","7");
maxCameraDist = maxHeight;
minCameraDist = minHeight;
minVAng = -Config::getInstance().getFloat("CameraMaxYaw","77.5");

View File

@@ -321,7 +321,7 @@ void Gui::hotKey(char key){
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s] key = [%c]\n",__FILE__,__FUNCTION__,key);
if(key==' '){
if(key=='G'){
centerCameraOnSelection();
}
else if(key=='I'){
@@ -337,9 +337,6 @@ void Gui::hotKey(char key){
++selectedBuildingFacing;
}
}
else {
selectInterestingUnit(iutProducer);
}
}
else if(key=='D'){
selectInterestingUnit(iutDamaged);

View File

@@ -84,8 +84,8 @@ MenuStateCustomGame::MenuStateCustomGame(Program *program, MainMenu *mainMenu, b
// @350 ? 300 ?
labelFogOfWar.init(350, 290, 100);
listBoxFogOfWar.init(350, 260, 100);
listBoxFogOfWar.pushBackItem(lang.get("On"));
listBoxFogOfWar.pushBackItem(lang.get("Off"));
listBoxFogOfWar.pushBackItem(lang.get("Yes"));
listBoxFogOfWar.pushBackItem(lang.get("No"));
listBoxFogOfWar.setSelectedItemIndex(0);
//tileset listBox