mirror of
https://github.com/glest/glest-source.git
synced 2025-09-01 20:12:40 +02:00
Removed obsolete option
This commit is contained in:
@@ -4748,8 +4748,7 @@ namespace Game {
|
|||||||
const World *world = game->getWorld();
|
const World *world = game->getWorld();
|
||||||
//const Map *map= world->getMap();
|
//const Map *map= world->getMap();
|
||||||
|
|
||||||
Config &config = Config::getInstance();
|
//Config &config = Config::getInstance();
|
||||||
int tilesetObjectsToAnimate = config.getInt("AnimatedTilesetObjects", "-1");
|
|
||||||
|
|
||||||
assertGl();
|
assertGl();
|
||||||
|
|
||||||
@@ -4817,14 +4816,7 @@ namespace Game {
|
|||||||
//if(this->gameCamera->getPos().dist(o->getPos()) <= SKIP_INTERPOLATION_DISTANCE) {
|
//if(this->gameCamera->getPos().dist(o->getPos()) <= SKIP_INTERPOLATION_DISTANCE) {
|
||||||
|
|
||||||
|
|
||||||
if (tilesetObjectsToAnimate == -1) {
|
objModel->updateInterpolationData(o->getAnimProgress(), true);
|
||||||
objModel->updateInterpolationData(o->getAnimProgress(), true);
|
|
||||||
} else if (tilesetObjectsToAnimate > 0 && o->isAnimated()) {
|
|
||||||
tilesetObjectsToAnimate--;
|
|
||||||
objModel->updateInterpolationData(o->getAnimProgress(), true);
|
|
||||||
} else {
|
|
||||||
objModel->updateInterpolationData(0, true);
|
|
||||||
}
|
|
||||||
|
|
||||||
// objModel->updateInterpolationData(o->getAnimProgress(), true);
|
// objModel->updateInterpolationData(o->getAnimProgress(), true);
|
||||||
//}
|
//}
|
||||||
|
@@ -72,10 +72,6 @@ namespace Game {
|
|||||||
checkBoxUnitParticles("Options_Graphics", "checkBoxUnitParticles"),
|
checkBoxUnitParticles("Options_Graphics", "checkBoxUnitParticles"),
|
||||||
labelTilesetParticles("Options_Graphics", "labelTilesetParticles"),
|
labelTilesetParticles("Options_Graphics", "labelTilesetParticles"),
|
||||||
checkBoxTilesetParticles("Options_Graphics", "checkBoxTilesetParticles"),
|
checkBoxTilesetParticles("Options_Graphics", "checkBoxTilesetParticles"),
|
||||||
labelAnimatedTilesetObjects("Options_Graphics",
|
|
||||||
"labelAnimatedTilesetObjects"),
|
|
||||||
listBoxAnimatedTilesetObjects("Options_Graphics",
|
|
||||||
"listBoxAnimatedTilesetObjects"),
|
|
||||||
labelScreenModes("Options_Graphics", "labelScreenModes"),
|
labelScreenModes("Options_Graphics", "labelScreenModes"),
|
||||||
listBoxScreenModes("Options_Graphics", "listBoxScreenModes"),
|
listBoxScreenModes("Options_Graphics", "listBoxScreenModes"),
|
||||||
labelFullscreenWindowed("Options_Graphics", "labelFullscreenWindowed"),
|
labelFullscreenWindowed("Options_Graphics", "labelFullscreenWindowed"),
|
||||||
@@ -98,8 +94,6 @@ namespace Game {
|
|||||||
listBoxShadowIntensity("Options_Graphics", "listBoxShadowIntensity"),
|
listBoxShadowIntensity("Options_Graphics", "listBoxShadowIntensity"),
|
||||||
labelShadowTextureSize("Options_Graphics", "labelShadowTextureSize"),
|
labelShadowTextureSize("Options_Graphics", "labelShadowTextureSize"),
|
||||||
listBoxShadowTextureSize("Options_Graphics", "listBoxShadowTextureSize"),
|
listBoxShadowTextureSize("Options_Graphics", "listBoxShadowTextureSize"),
|
||||||
labelVideos("Options_Graphics", "labelVideos"),
|
|
||||||
checkBoxVideos("Options_Graphics", "checkBoxVideos"),
|
|
||||||
labelSelectionType("Options_Graphics", "labelSelectionType"),
|
labelSelectionType("Options_Graphics", "labelSelectionType"),
|
||||||
listBoxSelectionType("Options_Graphics", "listBoxSelectionType") {
|
listBoxSelectionType("Options_Graphics", "listBoxSelectionType") {
|
||||||
try {
|
try {
|
||||||
@@ -391,29 +385,6 @@ namespace Game {
|
|||||||
"true"));
|
"true"));
|
||||||
currentLine -= lineOffset;
|
currentLine -= lineOffset;
|
||||||
|
|
||||||
//animated tileset objects
|
|
||||||
labelAnimatedTilesetObjects.init(currentLabelStart, currentLine);
|
|
||||||
labelAnimatedTilesetObjects.setText(lang.
|
|
||||||
getString
|
|
||||||
("AnimatedTilesetObjects"));
|
|
||||||
|
|
||||||
listBoxAnimatedTilesetObjects.init(currentColumnStart, currentLine,
|
|
||||||
80);
|
|
||||||
listBoxAnimatedTilesetObjects.pushBackItem("0");
|
|
||||||
listBoxAnimatedTilesetObjects.pushBackItem("10");
|
|
||||||
listBoxAnimatedTilesetObjects.pushBackItem("25");
|
|
||||||
listBoxAnimatedTilesetObjects.pushBackItem("50");
|
|
||||||
listBoxAnimatedTilesetObjects.pushBackItem("100");
|
|
||||||
listBoxAnimatedTilesetObjects.pushBackItem("300");
|
|
||||||
listBoxAnimatedTilesetObjects.pushBackItem("500");
|
|
||||||
listBoxAnimatedTilesetObjects.pushBackItem("???");
|
|
||||||
listBoxAnimatedTilesetObjects.setSelectedItem("???", true);
|
|
||||||
listBoxAnimatedTilesetObjects.setSelectedItem(config.
|
|
||||||
getString
|
|
||||||
("AnimatedTilesetObjects",
|
|
||||||
"-1"), false);
|
|
||||||
currentLine -= lineOffset;
|
|
||||||
|
|
||||||
//unit particles
|
//unit particles
|
||||||
labelMapPreview.init(currentLabelStart, currentLine);
|
labelMapPreview.init(currentLabelStart, currentLine);
|
||||||
labelMapPreview.setText(lang.getString("ShowMapPreview"));
|
labelMapPreview.setText(lang.getString("ShowMapPreview"));
|
||||||
@@ -450,12 +421,6 @@ namespace Game {
|
|||||||
checkBoxRainEffect.setValue(config.getBool("RainEffect", "true"));
|
checkBoxRainEffect.setValue(config.getBool("RainEffect", "true"));
|
||||||
currentLine -= lineOffset;
|
currentLine -= lineOffset;
|
||||||
|
|
||||||
labelVideos.init(currentLabelStart, currentLine);
|
|
||||||
labelVideos.setText(lang.getString("EnableVideos"));
|
|
||||||
|
|
||||||
checkBoxVideos.init(currentColumnStart, currentLine);
|
|
||||||
checkBoxVideos.setValue(config.getBool("EnableVideos", "true"));
|
|
||||||
|
|
||||||
// end
|
// end
|
||||||
|
|
||||||
// external server port
|
// external server port
|
||||||
@@ -554,15 +519,11 @@ namespace Game {
|
|||||||
labelLights.setText(lang.getString("MaxLights"));
|
labelLights.setText(lang.getString("MaxLights"));
|
||||||
labelUnitParticles.setText(lang.getString("ShowUnitParticles"));
|
labelUnitParticles.setText(lang.getString("ShowUnitParticles"));
|
||||||
labelTilesetParticles.setText(lang.getString("ShowTilesetParticles"));
|
labelTilesetParticles.setText(lang.getString("ShowTilesetParticles"));
|
||||||
labelAnimatedTilesetObjects.setText(lang.
|
|
||||||
getString
|
|
||||||
("AnimatedTilesetObjects"));
|
|
||||||
labelMapPreview.setText(lang.getString("ShowMapPreview"));
|
labelMapPreview.setText(lang.getString("ShowMapPreview"));
|
||||||
labelEnableTextureCompression.setText(lang.
|
labelEnableTextureCompression.setText(lang.
|
||||||
getString
|
getString
|
||||||
("EnableTextureCompression"));
|
("EnableTextureCompression"));
|
||||||
labelRainEffect.setText(lang.getString("RainEffectMenuGame"));
|
labelRainEffect.setText(lang.getString("RainEffectMenuGame"));
|
||||||
labelVideos.setText(lang.getString("EnableVideos"));
|
|
||||||
|
|
||||||
buttonOk.setText(lang.getString("Save"));
|
buttonOk.setText(lang.getString("Save"));
|
||||||
buttonReturn.setText(lang.getString("Return"));
|
buttonReturn.setText(lang.getString("Return"));
|
||||||
@@ -843,7 +804,6 @@ namespace Game {
|
|||||||
} else {
|
} else {
|
||||||
listBoxSelectionType.mouseClick(x, y);
|
listBoxSelectionType.mouseClick(x, y);
|
||||||
listBoxShadows.mouseClick(x, y);
|
listBoxShadows.mouseClick(x, y);
|
||||||
listBoxAnimatedTilesetObjects.mouseClick(x, y);
|
|
||||||
listBoxShadowTextureSize.mouseClick(x, y);
|
listBoxShadowTextureSize.mouseClick(x, y);
|
||||||
listBoxShadowIntensity.mouseClick(x, y);
|
listBoxShadowIntensity.mouseClick(x, y);
|
||||||
listBoxFilter.mouseClick(x, y);
|
listBoxFilter.mouseClick(x, y);
|
||||||
@@ -866,8 +826,6 @@ namespace Game {
|
|||||||
checkBoxEnableTextureCompression.mouseClick(x, y);
|
checkBoxEnableTextureCompression.mouseClick(x, y);
|
||||||
checkBoxRainEffect.mouseClick(x, y);
|
checkBoxRainEffect.mouseClick(x, y);
|
||||||
checkBoxRainEffectMenu.mouseClick(x, y);
|
checkBoxRainEffectMenu.mouseClick(x, y);
|
||||||
|
|
||||||
checkBoxVideos.mouseClick(x, y);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -895,8 +853,6 @@ namespace Game {
|
|||||||
checkBoxTextures3D.mouseMove(x, y);
|
checkBoxTextures3D.mouseMove(x, y);
|
||||||
checkBoxUnitParticles.mouseMove(x, y);
|
checkBoxUnitParticles.mouseMove(x, y);
|
||||||
checkBoxTilesetParticles.mouseMove(x, y);
|
checkBoxTilesetParticles.mouseMove(x, y);
|
||||||
labelAnimatedTilesetObjects.mouseMove(x, y);
|
|
||||||
listBoxAnimatedTilesetObjects.mouseMove(x, y);
|
|
||||||
checkBoxTilesetParticles.mouseMove(x, y);
|
checkBoxTilesetParticles.mouseMove(x, y);
|
||||||
checkBoxMapPreview.mouseMove(x, y);
|
checkBoxMapPreview.mouseMove(x, y);
|
||||||
listBoxLights.mouseMove(x, y);
|
listBoxLights.mouseMove(x, y);
|
||||||
@@ -906,8 +862,6 @@ namespace Game {
|
|||||||
|
|
||||||
checkBoxRainEffect.mouseMove(x, y);
|
checkBoxRainEffect.mouseMove(x, y);
|
||||||
checkBoxRainEffectMenu.mouseMove(x, y);
|
checkBoxRainEffectMenu.mouseMove(x, y);
|
||||||
|
|
||||||
checkBoxVideos.mouseMove(x, y);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//bool MenuStateOptionsGraphics::isInSpecialKeyCaptureEvent() {
|
//bool MenuStateOptionsGraphics::isInSpecialKeyCaptureEvent() {
|
||||||
@@ -973,8 +927,6 @@ namespace Game {
|
|||||||
renderer.renderLabel(&labelTextures3D);
|
renderer.renderLabel(&labelTextures3D);
|
||||||
renderer.renderLabel(&labelUnitParticles);
|
renderer.renderLabel(&labelUnitParticles);
|
||||||
renderer.renderLabel(&labelTilesetParticles);
|
renderer.renderLabel(&labelTilesetParticles);
|
||||||
renderer.renderListBox(&listBoxAnimatedTilesetObjects);
|
|
||||||
renderer.renderLabel(&labelAnimatedTilesetObjects);
|
|
||||||
renderer.renderLabel(&labelMapPreview);
|
renderer.renderLabel(&labelMapPreview);
|
||||||
renderer.renderLabel(&labelLights);
|
renderer.renderLabel(&labelLights);
|
||||||
renderer.renderLabel(&labelFilter);
|
renderer.renderLabel(&labelFilter);
|
||||||
@@ -999,9 +951,6 @@ namespace Game {
|
|||||||
|
|
||||||
renderer.renderLabel(&labelSelectionType);
|
renderer.renderLabel(&labelSelectionType);
|
||||||
renderer.renderListBox(&listBoxSelectionType);
|
renderer.renderListBox(&listBoxSelectionType);
|
||||||
|
|
||||||
renderer.renderLabel(&labelVideos);
|
|
||||||
renderer.renderCheckBox(&checkBoxVideos);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
renderer.renderConsole(&console);
|
renderer.renderConsole(&console);
|
||||||
@@ -1053,22 +1002,12 @@ namespace Game {
|
|||||||
config.setBool("MapPreview", checkBoxMapPreview.getValue());
|
config.setBool("MapPreview", checkBoxMapPreview.getValue());
|
||||||
config.setInt("MaxLights", listBoxLights.getSelectedItemIndex() + 1);
|
config.setInt("MaxLights", listBoxLights.getSelectedItemIndex() + 1);
|
||||||
|
|
||||||
if (listBoxAnimatedTilesetObjects.getSelectedItem() == "???") {
|
|
||||||
config.setInt("AnimatedTilesetObjects", -1);
|
|
||||||
} else {
|
|
||||||
config.setInt("AnimatedTilesetObjects",
|
|
||||||
atoi(listBoxAnimatedTilesetObjects.getSelectedItem().
|
|
||||||
c_str()));
|
|
||||||
}
|
|
||||||
|
|
||||||
config.setBool("RainEffect", checkBoxRainEffect.getValue());
|
config.setBool("RainEffect", checkBoxRainEffect.getValue());
|
||||||
config.setBool("RainEffectMenu", checkBoxRainEffectMenu.getValue());
|
config.setBool("RainEffectMenu", checkBoxRainEffectMenu.getValue());
|
||||||
|
|
||||||
config.setBool("EnableTextureCompression",
|
config.setBool("EnableTextureCompression",
|
||||||
checkBoxEnableTextureCompression.getValue());
|
checkBoxEnableTextureCompression.getValue());
|
||||||
|
|
||||||
config.setBool("EnableVideos", checkBoxVideos.getValue());
|
|
||||||
|
|
||||||
string
|
string
|
||||||
currentResolution =
|
currentResolution =
|
||||||
config.getString("ScreenWidth") + "x" +
|
config.getString("ScreenWidth") + "x" +
|
||||||
|
@@ -57,9 +57,6 @@ namespace Game {
|
|||||||
|
|
||||||
GraphicLabel labelTilesetParticles;
|
GraphicLabel labelTilesetParticles;
|
||||||
GraphicCheckBox checkBoxTilesetParticles;
|
GraphicCheckBox checkBoxTilesetParticles;
|
||||||
GraphicLabel labelAnimatedTilesetObjects;
|
|
||||||
GraphicListBox listBoxAnimatedTilesetObjects;
|
|
||||||
|
|
||||||
|
|
||||||
GraphicLabel labelScreenModes;
|
GraphicLabel labelScreenModes;
|
||||||
GraphicListBox listBoxScreenModes;
|
GraphicListBox listBoxScreenModes;
|
||||||
@@ -92,9 +89,6 @@ namespace Game {
|
|||||||
GraphicLabel labelShadowTextureSize;
|
GraphicLabel labelShadowTextureSize;
|
||||||
GraphicListBox listBoxShadowTextureSize;
|
GraphicListBox listBoxShadowTextureSize;
|
||||||
|
|
||||||
GraphicLabel labelVideos;
|
|
||||||
GraphicCheckBox checkBoxVideos;
|
|
||||||
|
|
||||||
GraphicLabel labelSelectionType;
|
GraphicLabel labelSelectionType;
|
||||||
GraphicListBox listBoxSelectionType;
|
GraphicListBox listBoxSelectionType;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user