mirror of
https://github.com/glest/glest-source.git
synced 2025-08-13 20:03:58 +02:00
data is ready for rotation feature
some little hotkey changes
This commit is contained in:
@@ -58,7 +58,7 @@ GameCamera::GameCamera() : pos(0.f, defaultHeight, 0.f),
|
|||||||
|
|
||||||
maxRenderDistance = Config::getInstance().getFloat("RenderDistanceMax","64");
|
maxRenderDistance = Config::getInstance().getFloat("RenderDistanceMax","64");
|
||||||
maxHeight = Config::getInstance().getFloat("CameraMaxDistance","20");
|
maxHeight = Config::getInstance().getFloat("CameraMaxDistance","20");
|
||||||
minHeight = Config::getInstance().getFloat("CameraMinDistance","8");
|
minHeight = Config::getInstance().getFloat("CameraMinDistance","7");
|
||||||
maxCameraDist = maxHeight;
|
maxCameraDist = maxHeight;
|
||||||
minCameraDist = minHeight;
|
minCameraDist = minHeight;
|
||||||
minVAng = -Config::getInstance().getFloat("CameraMaxYaw","77.5");
|
minVAng = -Config::getInstance().getFloat("CameraMaxYaw","77.5");
|
||||||
|
@@ -321,7 +321,7 @@ void Gui::hotKey(char key){
|
|||||||
|
|
||||||
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s] key = [%c]\n",__FILE__,__FUNCTION__,key);
|
//SystemFlags::OutputDebug(SystemFlags::debugSystem,"In [%s::%s] key = [%c]\n",__FILE__,__FUNCTION__,key);
|
||||||
|
|
||||||
if(key==' '){
|
if(key=='G'){
|
||||||
centerCameraOnSelection();
|
centerCameraOnSelection();
|
||||||
}
|
}
|
||||||
else if(key=='I'){
|
else if(key=='I'){
|
||||||
@@ -337,9 +337,6 @@ void Gui::hotKey(char key){
|
|||||||
++selectedBuildingFacing;
|
++selectedBuildingFacing;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else {
|
|
||||||
selectInterestingUnit(iutProducer);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if(key=='D'){
|
else if(key=='D'){
|
||||||
selectInterestingUnit(iutDamaged);
|
selectInterestingUnit(iutDamaged);
|
||||||
|
@@ -84,8 +84,8 @@ MenuStateCustomGame::MenuStateCustomGame(Program *program, MainMenu *mainMenu, b
|
|||||||
// @350 ? 300 ?
|
// @350 ? 300 ?
|
||||||
labelFogOfWar.init(350, 290, 100);
|
labelFogOfWar.init(350, 290, 100);
|
||||||
listBoxFogOfWar.init(350, 260, 100);
|
listBoxFogOfWar.init(350, 260, 100);
|
||||||
listBoxFogOfWar.pushBackItem(lang.get("On"));
|
listBoxFogOfWar.pushBackItem(lang.get("Yes"));
|
||||||
listBoxFogOfWar.pushBackItem(lang.get("Off"));
|
listBoxFogOfWar.pushBackItem(lang.get("No"));
|
||||||
listBoxFogOfWar.setSelectedItemIndex(0);
|
listBoxFogOfWar.setSelectedItemIndex(0);
|
||||||
|
|
||||||
//tileset listBox
|
//tileset listBox
|
||||||
|
Reference in New Issue
Block a user